函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_helper_mem_access

函数原型:static int check_helper_mem_access(struct bpf_verifier_env *env, int regno, int access_size, bool zero_size_allowed, struct bpf_call_arg_meta *meta)

返回类型:int

参数:

类型参数名称
struct bpf_verifier_env *env
intregno
intaccess_size
boolzero_size_allowed
struct bpf_call_arg_meta *meta
3271  regs等于cur_regs(env), reg等于regs
3274  : Ordering of fields matters. See states_equal() 恒等于g points to skb->data
3275  : Ordering of fields matters. See states_equal() 恒等于skb->data - meta_len
3276  返回:check_packet_access(env, regno, Fixed part of pointer offset, pointer types only , access_size, zero_size_allowed)
3278  : Ordering of fields matters. See states_equal() 恒等于g points to map element value
3279  如果check_map_access_type(env, regno, Fixed part of pointer offset, pointer types only , access_size, meta && raw_mode ? BPF_WRITE : BPF_READ)则返回:负EACCES
3283  返回:heck read/write into a map element with possible variable offset
3285  默认
3286  返回:when register 'regno' is passed into function that will read 'access_size'* bytes from that pointer, make sure that it's within stack boundary* and all elements of stack are initialized
调用者
名称描述
check_func_arg