函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:may_access_skb

函数原型:static bool may_access_skb(enum bpf_prog_type type)

返回类型:bool

参数:

类型参数名称
enum bpf_prog_typetype
6247  :type恒等于BPF_PROG_TYPE_SOCKET_FILTER
6248  :type恒等于BPF_PROG_TYPE_SCHED_CLS
6249  :type恒等于BPF_PROG_TYPE_SCHED_ACT
6250  返回:true
6251  默认
6252  返回:false
调用者
名称描述
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