Defined in 1 files as a prototype:
Defined in 6 files as a function:
- arch/arm64/net/bpf_jit_comp.c, line 2338 (as a function)
- arch/loongarch/net/bpf_jit.c, line 1568 (as a function)
- arch/powerpc/net/bpf_jit_comp.c, line 448 (as a function)
- arch/riscv/net/bpf_jit_core.c, line 199 (as a function)
- arch/x86/net/bpf_jit_comp.c, line 4150 (as a function)
- kernel/bpf/core.c, line 3371 (as a function)
Referenced in 8 files:
- arch/arm64/net/bpf_jit_comp.c
- arch/loongarch/net/bpf_jit.c
- arch/powerpc/net/bpf_jit_comp.c
- arch/riscv/net/bpf_jit_comp64.c, line 1350
- arch/riscv/net/bpf_jit_core.c, line 187
- arch/x86/net/bpf_jit_comp.c
- kernel/bpf/core.c, line 1248
- kernel/bpf/dispatcher.c, line 122
Smatch caller information:
arch/x86/net/bpf_jit_comp.c arch_prepare_bpf_trampoline() -> bpf_arch_text_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 1-u64max |
| PARAM_VALUE | 1 | src | 1-18446744073709551614 |
| PARAM_VALUE | 1 | *src | 0-255 |
| BUF_SIZE | 1 | src | 0-u32max |
| BUF_SIZE | 1 | src | 0-u32max |
| DATA_SOURCE | 0 | dst | $1 |
| DATA_SOURCE | 1 | src | r __kvmalloc_node_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dst | unit_byte |
| UNITS | 2 | len | unit_byte |
arch/x86/net/bpf_jit_comp.c bpf_int_jit_compile() -> bpf_arch_text_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 1-u64max |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 0 | dst | 4 |
| BUF_SIZE | 1 | src | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
kernel/bpf/dispatcher.c bpf_dispatcher_update() -> bpf_arch_text_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 0 | *dst | 0-255 |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | *src | 0-255 |
| PARAM_VALUE | 2 | len | 2048 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &d->mutex | ||
| TYPE_LOCK | (struct bpf_dispatcher)->mutex |
kernel/bpf/core.c bpf_jit_binary_pack_finalize() -> bpf_arch_text_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| DATA_SOURCE | 0 | dst | $0 |
| DATA_SOURCE | 1 | src | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | len | unit_byte |