Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-28 12:58:56
Last Modify:2022-05-19 20:02:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_helper_mem_access

Proto: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)

Type:int

Parameter:

TypeParameterName
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  Case Ordering of fields matters. See states_equal() == g points to skb->data
3275  Case Ordering of fields matters. See states_equal() == skb->data - meta_len
3276  Return check_packet_access(env, regno, Fixed part of pointer offset, pointer types only , access_size, zero_size_allowed)
3278  Case Ordering of fields matters. See states_equal() == g points to map element value
3279  If check_map_access_type(env, regno, Fixed part of pointer offset, pointer types only , access_size, meta && raw_mode ? BPF_WRITE : BPF_READ) Then Return -EACCES
3283  Return heck read/write into a map element with possible variable offset
3285  Default
3286  Return 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
Caller
NameDescribe
check_func_arg