Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:may_access_skb

Proto:static bool may_access_skb(enum bpf_prog_type type)

Type:bool

Parameter:

TypeParameterName
enum bpf_prog_typetype
6247  Case type == BPF_PROG_TYPE_SOCKET_FILTER
6248  Case type == BPF_PROG_TYPE_SCHED_CLS
6249  Case type == BPF_PROG_TYPE_SCHED_ACT
6250  Return true
6251  Default
6252  Return false
Caller
NameDescribe
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