Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/bpf/verifier.c check_map_kptr_access() -> map_kptr_match_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->cur_state | 4096-ptr_max |
| PARAM_VALUE | 0 | env->insn_aux_data->btf_var.reg_type | 0,16,529,4112 |
| PARAM_VALUE | 0 | env->ops->gen_ld_abs | 0,5704186734949433344 |
| PARAM_VALUE | 0 | env->prog->insnsi | 4096-ptr_max |
| PARAM_VALUE | 0 | *env->tmp_arg_name | 0-255 |
| PARAM_VALUE | 1 | kptr_field | 4096-ptr_max |
| PARAM_VALUE | 1 | kptr_field->type | 0-7,9-15,17-2047,2049-u32max |
| PARAM_VALUE | 2 | reg | 4096-ptr_max |
| DATA_SOURCE | 0 | env | $0 |
| DATA_SOURCE | 1 | kptr_field | $3 |
| DATA_SOURCE | 2 | reg | r reg_state |
| DATA_SOURCE | 3 | regno | $1 |
| STR_LEN | 0 | env | (-1),3,11 |
| STR_LEN | 0 | env | (-1),3,11 |
| BIT_INFO | 1 | kptr_field->type | 0x0,0x18 |
| NO_OVERFLOW_SIMPLE | 0 | env->cur_state->jmp_history_cnt |
kernel/bpf/verifier.c check_reg_type() -> map_kptr_match_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->cur_state | 4096-ptr_max |
| PARAM_VALUE | 0 | env->ops->gen_ld_abs | 0,5704186734949433344 |
| PARAM_VALUE | 0 | env->ops->get_func_proto | 1-u64max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4096-ptr_max |
| PARAM_VALUE | 2 | reg->type | 16,272,1048592,1048848,2097168,2097424 |
| PARAM_VALUE | 3 | regno | 0-s32max,u32max |
| DATA_SOURCE | 0 | env | $0 |
| DATA_SOURCE | 2 | reg | $1 |
| NO_OVERFLOW_SIMPLE | 0 | env->cur_state->jmp_history_cnt |
kernel/bpf/verifier.c check_reg_type() -> map_kptr_match_type()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->cur_state | 4096-ptr_max |
| PARAM_VALUE | 0 | env->ops->gen_ld_abs | 0,5704186734949433344 |
| PARAM_VALUE | 0 | env->ops->get_func_proto | 1-u64max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4096-ptr_max |
| PARAM_VALUE | 2 | reg->type | 524304,528400,4718608,6815760 |
| PARAM_VALUE | 3 | regno | 2 |
| DATA_SOURCE | 0 | env | $0 |
| DATA_SOURCE | 2 | reg | $1 |
| DATA_SOURCE | 3 | regno | r reg_from_argno |
| NO_OVERFLOW_SIMPLE | 0 | env->cur_state->jmp_history_cnt |