函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_reference_leak

函数原型:static int check_reference_leak(struct bpf_verifier_env *env)

返回类型:int

参数:

类型参数名称
struct bpf_verifier_env *env
4170  state等于cur_func(env)
4173 i小于The following fields should be last. See copy_func_state() 循环
4174  verbose(env, "Unreleased reference id=%d alloc_insn=%d\n", Track each reference created with a unique id, even if the same * instruction creates the reference multiple times (eg, via CALL)., Instruction where the allocation of this reference occurred. This * is used purely to inform the user of a reference leak.)
4177  返回:如果The following fields should be last. See copy_func_state() 则负EINVAL否则0
调用者
名称描述
check_helper_call
check_ld_absverify safety of LD_ABS|LD_IND instructions:* - they can only appear in the programs where ctx == skb* - since they are wrappers of function calls, they scratch R1-R5 registers,* preserve R6-R9, and store return value into R0* Implicit input:* ctx == skb
do_check