Defined in 1 files as a function:
Referenced in 7 files:
- arch/arm64/net/bpf_jit_comp.c, line 2105
- arch/loongarch/net/bpf_jit.c, line 2254
- arch/powerpc/net/bpf_jit_comp.c, line 298
- arch/riscv/net/bpf_jit_core.c, line 113
- arch/x86/net/bpf_jit_comp.c
- kernel/bpf/core.c, line 667
- net/core/filter.c, line 1674
Smatch caller information:
arch/x86/net/bpf_jit_comp.c bpf_int_jit_compile() -> bpf_prog_was_classic()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | (-1)-s32max |
| BUF_SIZE | 0 | prog | (-1)-s32max |
| BUF_SIZE | 0 | prog->aux->jit_data | 48,u64max |
| BUF_SIZE | 0 | prog->aux->priv_stack_ptr | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 0 | prog | 1 |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | prog->aux->prog->len | 1-4096[c] |
| NO_OVERFLOW_SIMPLE | 0 | prog->aux->nr_linfo | |
| NO_OVERFLOW_SIMPLE | 0 | prog->aux->offload->prog->len | |
| NO_OVERFLOW_SIMPLE | 0 | prog->aux->prog->len | |
| NO_OVERFLOW_SIMPLE | 0 | prog->len | |
| USER_PTR | 0 | prog->insns |
arch/x86/net/bpf_jit_comp.c do_jit() -> bpf_prog_was_classic()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | (-1)-s32max |
| BUF_SIZE | 0 | prog | (-1)-s32max |
| BUF_SIZE | 0 | prog->aux->jit_data | (-1),48 |
| CAPPED_DATA | 0 | prog | 1 |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | prog->aux->prog->len | 1-4096[c] |
| NO_OVERFLOW_SIMPLE | 0 | prog->aux->offload->prog->len | |
| NO_OVERFLOW_SIMPLE | 0 | prog->aux->prog->len | |
| NO_OVERFLOW_SIMPLE | 0 | prog->len | |
| USER_PTR | 0 | prog->insns |
net/core/filter.c sk_reuseport_prog_free() -> bpf_prog_was_classic()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| DATA_SOURCE | 0 | prog | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/bpf/core.c bpf_prog_kallsyms_candidate() -> bpf_prog_was_classic()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | (-1)-s32max |
| BUF_SIZE | 0 | prog | (-1)-s32max |
| DATA_SOURCE | 0 | prog | $0 |
| NOSPEC | 0 | prog->len | |
| NOSPEC | 0 | prog->type | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | prog->aux->attach_btf_id | 0-1048575 |
| USER_DATA | 0 | prog->aux->dev_bound | 0-1 |
| USER_DATA | 0 | prog->aux->offload_requested | 0-1 |
| USER_DATA | 0 | prog->aux->xdp_has_frags | 0-1[c] |
| USER_DATA | 0 | prog->expected_attach_type | 2,39 |
| USER_DATA | 0 | prog->len | 1-1000000[c] |
| USER_DATA | 0 | prog->sleepable | 0-1 |
| USER_DATA | 0 | prog->type | 0-25[c] |
| USER_PTR | 0 | prog->insns |