函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_generic_ptr_alignment

函数原型:static int check_generic_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, const char *pointer_desc, int off, int size, bool strict)

返回类型:int

参数:

类型参数名称
struct bpf_verifier_env *env
const struct bpf_reg_state *reg
const char *pointer_desc
intoff
intsize
boolstrict
2582  如果非strictsize恒等于1则返回:0
2585  reg_off等于Add two tnums, return @a + @b
2586  如果非Returns true if @a is known to be a multiple of @size.*@size must be a power of two.
2589  Format a tnum as a pair of hex numbers (value; mask)
2590  verbose(env, "misaligned %saccess off %s+%d+%d size %d\n", pointer_desc, tn_buf, Fixed part of pointer offset, pointer types only , off, size)
2592  返回:负EACCES
2595  返回:0
调用者
名称描述
check_ptr_alignment