Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 13:00:08 |
Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_reg_sane_offset
Proto:static bool check_reg_sane_offset(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, enum bpf_reg_type type)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_verifier_env * | env | |
const struct bpf_reg_state * | reg | |
enum bpf_reg_type | type |
4406 | smin = minimum possible (s64)value |
4409 | verbose(env, "math between %s pointer and %lld is not allowed\n", string representation of 'enum bpf_reg_type' [type], val) |
4411 | Return false |
4415 | verbose(env, "%s pointer offset %d is not allowed\n", string representation of 'enum bpf_reg_type' [type], Fixed part of pointer offset, pointer types only ) |
4417 | Return false |
4421 | verbose(env, "math between %s pointer and register with unbounded min value is not allowed\n", string representation of 'enum bpf_reg_type' [type]) |
4423 | Return false |
4427 | verbose(env, "value %lld makes %s pointer be out of bounds\n", smin, string representation of 'enum bpf_reg_type' [type]) |
4429 | Return false |
4432 | Return true |
Name | Describe |
---|---|
adjust_ptr_min_max_vals | Handles arithmetic on a pointer and a scalar: computes new min/max and var_off.* Caller should also handle BPF_MOV case separately.* If we return -EACCES, caller may want to try again treating pointer as a* scalar |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |