Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/bpf/verifier.c btf_check_func_arg_match() -> check_mem_reg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->cur_state | 4096-ptr_max |
| PARAM_VALUE | 0 | env->cur_state->frame | 4096-ptr_max |
| PARAM_VALUE | 0 | env->ops->gen_ld_abs | 0,4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog->aux | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog->aux->func_info | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog->aux->func_info_aux | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| PARAM_VALUE | 1 | reg->type | 0-1048592,2097168,4718608,6815760 |
| PARAM_VALUE | 4 | access_type | 3 |
| PARAM_VALUE | 5 | meta | 0 |
| DATA_SOURCE | 0 | env | $0 |
| DATA_SOURCE | 1 | reg | r get_func_arg_reg |
| DATA_SOURCE | 2 | argno | r argno_from_arg |
| NO_OVERFLOW_SIMPLE | 0 | env->cur_state->jmp_history_cnt |
kernel/bpf/verifier.c check_func_arg() -> check_mem_reg()
| 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,4096-ptr_max |
| PARAM_VALUE | 0 | env->ops->get_func_proto | 1-u64max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| PARAM_VALUE | 1 | reg->type | 0-1048592,2097168,4718608,6815760 |
| PARAM_VALUE | 4 | access_type | 1-2 |
| PARAM_VALUE | 5 | meta | 4384626442260283392 |
| PARAM_VALUE | 5 | meta->const_map_key | 0 |
| PARAM_VALUE | 5 | meta->fn->arg_size | 4096-ptr_max |
| PARAM_VALUE | 5 | meta->fn->arg_type | 4096-ptr_max |
| PARAM_VALUE | 5 | meta->func_id | 0 |
| PARAM_VALUE | 5 | meta->map.ptr | 0,4096-ptr_max |
| PARAM_VALUE | 5 | meta->ref_obj.cnt | 0-1 |
| CAPPED_DATA | 0 | env->cur_state->acquired_refs | 1 |
| DATA_SOURCE | 0 | env | $0 |
| DATA_SOURCE | 1 | reg | r reg_state |
| DATA_SOURCE | 5 | meta | $2 |
| FUZZY_MAX | 4 | access_type | 2 |
| FUZZY_MAX | 5 | meta->ref_obj.cnt | 0 |
| HARD_MAX | 4 | access_type | 2 |
| MEM_ZERO | 5 | meta |