Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- kernel/bpf/backtrack.c, line 415
- kernel/bpf/const_fold.c, line 149
- kernel/bpf/fixups.c
- kernel/bpf/liveness.c, line 1905
- kernel/bpf/verifier.c
Smatch caller information:
kernel/bpf/fixups.c jit_subprogs() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog->len | 1-u32max |
| PARAM_VALUE | 0 | env->subprog_cnt | 2-s32max |
| CAPPED_DATA | 0 | env->prog | 1 |
| CAPPED_DATA | 0 | env->subprog_cnt | 1 |
| DATA_SOURCE | 0 | env | $0 |
| FUZZY_MAX | 0 | env->subprog_cnt | 2 |
| NO_OVERFLOW_SIMPLE | 0 | env->log.kbuf | |
| NO_OVERFLOW_SIMPLE | 0 | env->prog->len | |
| NO_OVERFLOW_SIMPLE | 0 | env->subprog_cnt |
kernel/bpf/fixups.c jit_subprogs() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog->len | 1-s32max |
| PARAM_VALUE | 0 | env->subprog_cnt | 2-s32max |
| PARAM_VALUE | 0 | env->subprog_info | 4096-ptr_max |
| CAPPED_DATA | 0 | env->prog | 1 |
| CAPPED_DATA | 0 | env->subprog_cnt | 1 |
| DATA_SOURCE | 0 | env | $0 |
| FUZZY_MAX | 0 | env->subprog_cnt | 2 |
| NO_OVERFLOW_SIMPLE | 0 | env->log.kbuf | |
| NO_OVERFLOW_SIMPLE | 0 | env->prog->len | |
| NO_OVERFLOW_SIMPLE | 0 | env->subprog_cnt |
kernel/bpf/backtrack.c backtrack_insn() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| BUF_SIZE | 0 | env->cur_state | (-1),232 |
| DATA_SOURCE | 0 | env | $0 |
| STR_LEN | 0 | env | (-1),2,11 |
| STR_LEN | 0 | env | (-1),2,11 |
| NO_OVERFLOW_SIMPLE | 0 | env->cur_state->jmp_history_cnt |
kernel/bpf/liveness.c analyze_subprog() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->subprog_info | 4096-ptr_max |
| DATA_SOURCE | 0 | env | $0 |
| NO_OVERFLOW_SIMPLE | 0 | env->log.kbuf | |
| NO_OVERFLOW_SIMPLE | 0 | env->subprog_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | env->tmp_str_buf |
kernel/bpf/const_fold.c const_reg_xfer() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->subprog_cnt | 0-s32max |
| CAPPED_DATA | 0 | env->subprog_cnt | 1 |
| DATA_SOURCE | 0 | env | $0 |
kernel/bpf/verifier.c add_subprog() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog->len | 0-s32max,2147483649-u32max |
| PARAM_VALUE | 1 | off | 0-2147483646 |
| CAPPED_DATA | 1 | off | 1 |
| DATA_SOURCE | 0 | env | $0 |
| DATA_SOURCE | 1 | off | $1 |
| FUZZY_MAX | 1 | off | 0 |
| UNITS | 1 | off | unit_array_size |
kernel/bpf/verifier.c check_func_call() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->subprog_info | 4096-ptr_max |
| DATA_SOURCE | 0 | env | $0 |
kernel/bpf/verifier.c check_ld_imm() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| DATA_SOURCE | 0 | env | $0 |
kernel/bpf/verifier.c check_max_stack_depth_subprog() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| PARAM_VALUE | 0 | env->subprog_info | 4096-ptr_max |
| CAPPED_DATA | 0 | env->subprog_cnt | 1 |
| DATA_SOURCE | 0 | env | $0 |
| NO_OVERFLOW_SIMPLE | 0 | env->log.kbuf | |
| NO_OVERFLOW_SIMPLE | 0 | env->subprog_cnt |
kernel/bpf/verifier.c sort_subprogs_topo() -> bpf_find_subprog()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | env | 4096-ptr_max |
| PARAM_VALUE | 0 | env->prog | 4096-ptr_max |
| DATA_SOURCE | 0 | env | $0 |