Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:release_reg_references

Proto:static void release_reg_references(struct bpf_verifier_env *env, struct bpf_func_state *state, int ref_obj_id)

Type:void

Parameter:

TypeParameterName
struct bpf_verifier_env *env
struct bpf_func_state *state
intref_obj_id
3913  regs = regs
3916  When i < BPF has 10 general purpose 64-bit registers and stack frame. cycle If 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 == ref_obj_id Then
3918  mark_reg_unknown(env, regs, i)
3921  If Not reg Then Continue
3923  If 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 == ref_obj_id Then Mark a register as having a completely unknown (scalar) value.
Caller
NameDescribe
release_referenceThe pointer with the specified id has released its reference to kernel* resources. Identify all copies of the same pointer and clear the reference.