函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-27 14:17:31
Last Modify:2022-05-19 20:02:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpare two verifier states* all states stored in state_list are known to be valid, since* verifier reached 'bpf_exit' instruction through them* this function is called when verifier exploring different branches of* execution popped from the state stack

函数原型:static bool func_states_equal(struct bpf_func_state *old, struct bpf_func_state *cur)

返回类型:bool

参数:

类型参数名称
struct bpf_func_state *old
struct bpf_func_state *cur
7300  bool ret = false
7303  idmap等于分配数组内存并置零
7305  如果非idmap则返回:false
7308 i小于BPF has 10 general purpose 64-bit registers and stack frame. 循环
7309  如果非Returns true if (rold safe implies rcur safe) 则转到:out_free
7313  如果非stacksafe(old, cur, idmap)则转到:out_free
7316  如果非refsafe(old, cur)则转到:out_free
7318  ret = true
7319  out_free :
7320  kfree(idmap)
7321  返回:ret
调用者
名称描述
states_equal