Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

kernel/bpf/cfg.c create_jt() -> bpf_find_containing_subprog()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 0 env->prog 4096-ptr_max
DATA_SOURCE 0 env $1
DATA_SOURCE 1 off $0

kernel/bpf/cfg.c mark_subprog_changes_pkt_data() -> bpf_find_containing_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
DATA_SOURCE 1 off $1

kernel/bpf/cfg.c mark_subprog_might_sleep() -> bpf_find_containing_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
DATA_SOURCE 1 off $1

kernel/bpf/cfg.c mark_subprog_might_throw() -> bpf_find_containing_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
DATA_SOURCE 1 off $1

kernel/bpf/cfg.c merge_callee_effects() -> bpf_find_containing_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
DATA_SOURCE 1 off $1

kernel/bpf/cfg.c merge_callee_effects() -> bpf_find_containing_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
DATA_SOURCE 1 off $2

kernel/bpf/cfg.c visit_abnormal_return_insn() -> bpf_find_containing_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
DATA_SOURCE 1 off $1

kernel/bpf/verifier.c bpf_find_subprog() -> bpf_find_containing_subprog()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
DATA_SOURCE 0 env $0
DATA_SOURCE 1 off $1
STR_LEN 0 env (-1),2,11
STR_LEN 0 env (-1),2,11
NO_OVERFLOW_SIMPLE 0 env->cur_state->jmp_history_cnt
NO_OVERFLOW_SIMPLE 0 env->log.kbuf
NO_OVERFLOW_SIMPLE 0 env->prog->len
NO_OVERFLOW_SIMPLE 0 env->subprog_cnt
NO_OVERFLOW_SIMPLE 0 env->tmp_str_buf
UNITS 1 off unit_array_size