Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

kernel/bpf/backtrack.c backtrack_insn() -> bpf_subprog_is_global()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 0 env->prog 4096-ptr_max
PARAM_VALUE 1 subprog 0-s32max
BUF_SIZE 0 env->cur_state (-1),232
CAPPED_DATA 0 env->prog->len 1
DATA_SOURCE 0 env $0
DATA_SOURCE 1 subprog r bpf_find_subprog
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 bpf_compute_subprog_arg_access() -> bpf_subprog_is_global()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 0 env->prog 4096-ptr_max
BUF_SIZE 0 env->callsite_at_stack 0-u64max
DATA_SOURCE 0 env $0
NO_OVERFLOW_SIMPLE 0 env->subprog_cnt

kernel/bpf/verifier.c check_func_call() -> bpf_subprog_is_global()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 0 env->prog 4096-ptr_max
PARAM_VALUE 0 env->prog->aux 4096-ptr_max
PARAM_VALUE 1 subprog 0-s32max
DATA_SOURCE 0 env $0
DATA_SOURCE 1 subprog r bpf_find_subprog
NO_OVERFLOW_SIMPLE 0 env->log.kbuf

kernel/bpf/verifier.c check_max_stack_depth_subprog() -> bpf_subprog_is_global()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 0 env->prog 4096-ptr_max
PARAM_VALUE 1 subprog 0-s32max
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 do_check_subprogs() -> bpf_subprog_is_global()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 0 env->prog 4096-ptr_max
PARAM_VALUE 0 env->prog->aux 4096-ptr_max
PARAM_VALUE 1 subprog 1-s32max
CAPPED_DATA 1 subprog 1
DATA_SOURCE 0 env $0
FUZZY_MAX 1 subprog 1
PARAM_COMPARE 0 env->subprog_cnt > $1
PARAM_COMPARE 1 subprog < $0->subprog_cnt
CONSTRAINT 1 subprog <4111
UNITS 1 subprog unit_array_size

kernel/bpf/verifier.c print_verification_stats() -> bpf_subprog_is_global()

Type Parameter Key Value
PARAM_VALUE 0 env 4096-ptr_max
PARAM_VALUE 1 subprog 1-s32max
CAPPED_DATA 1 subprog 1
DATA_SOURCE 0 env $0
BIT_INFO 0 env->log.level 0x4,0xffffffffffffffff