函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return true if VAL is compared with a s64 sign extended from s32, and they* are with the same signedness.

函数原型:static bool cmp_val_with_extended_s64(s64 sval, struct bpf_reg_state *reg)

返回类型:bool

参数:

类型参数名称
s64sval
struct bpf_reg_state *reg
5558  返回:sval大于等于0且 minimum possible (s64)value 大于等于0且 maximum possible (s64)value 小于等于S32_MAXsval小于0且 maximum possible (s64)value 小于等于0且 minimum possible (s64)value 大于等于S32_MIN
调用者
名称描述
reg_set_min_maxAdjusts the register min/max values in the case that the dst_reg is the* variable register that we are working on, and src_reg is a constant or we're* simply doing a BPF_K check.* In JEQ/JNE cases we also adjust the var_off values.
reg_set_min_max_invSame as above, but for the case that dst_reg holds a constant and src_reg is* the variable reg.