Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The logic is similar to find_good_pkt_pointers(), both could eventually* be folded together at some point.

Proto:static void mark_ptr_or_null_regs(struct bpf_verifier_state *vstate, u32 regno, bool is_null)

Type:void

Parameter:

TypeParameterName
struct bpf_verifier_state *vstate
u32regno
boolis_null
5927  state = call stack tracking [curframe]
5928  regs = regs
5929  ref_obj_id = PTR_TO_SOCKET and PTR_TO_TCP_SOCK could be a ptr returned * from a pointer-cast helper, bpf_sk_fullsock() and * bpf_tcp_sock(). * Consider the following where "sk" is a reference counted * pointer returned from "sk = bpf_sk_lookup_tcp();": * 1: sk = bpf_s
5930  id = For PTR_TO_PACKET, used to find other pointers with the same variable * offset, so they can share range knowledge. * For PTR_TO_MAP_VALUE_OR_NULL this is used to share which map value we * came from, when one is tested for != NULL. * For PTR_TO_SOCKET thi
5933  If ref_obj_id && ref_obj_id == id && is_null Then WARN_ON_ONCE(lease function corresponding to acquire_reference_state(). Idempotent. )
5940  When i <= curframe cycle __mark_ptr_or_null_regs( call stack tracking [i], id, is_null)
Caller
NameDescribe
check_cond_jmp_op