Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
- kernel/bpf/bpf_struct_ops.c, line 860
- kernel/bpf/syscall.c, line 3696
- kernel/bpf/trampoline.c, line 1098
- net/bpf/bpf_dummy_struct_ops.c, line 174
Smatch caller information:
kernel/bpf/syscall.c bpf_tracing_prog_attach() -> bpf_tramp_link_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | link | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 2 |
| PARAM_VALUE | 2 | ops | 240261215668076544 |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| PARAM_VALUE | 3 | prog->expected_attach_type | 0,24-27,58 |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 3 | prog->type | 1 |
| DATA_SOURCE | 3 | prog | $0 |
| DATA_SOURCE | 4 | attach_type | $4 |
| DATA_SOURCE | 5 | cookie | $3 |
| BIT_INFO | 3 | prog->expected_attach_type | 0x0,0x3b |
| NOCHECK_CALL |
net/bpf/bpf_dummy_struct_ops.c bpf_struct_ops_test_run() -> bpf_tramp_link_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | link | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 9 |
| PARAM_VALUE | 2 | ops | 477815394481135616 |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| PARAM_VALUE | 5 | cookie | 0 |
| BUF_SIZE | 0 | link | 160 |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 3 | prog->aux->attach_btf_id | 1 |
| DATA_SOURCE | 0 | link | r _kzalloc_noprof |
| DATA_SOURCE | 3 | prog | $0 |
| NOCHECK_CALL |
kernel/bpf/trampoline.c cgroup_shim_alloc() -> bpf_tramp_link_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | link | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 0 |
| PARAM_VALUE | 2 | ops | 8751191128834908160 |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| PARAM_VALUE | 3 | prog->expected_attach_type | 27 |
| PARAM_VALUE | 4 | attach_type | 43 |
| PARAM_VALUE | 5 | cookie | 0 |
| BUF_SIZE | 3 | prog | 0-s32max |
| BUF_SIZE | 3 | prog | 0-s32max |
| DATA_SOURCE | 3 | prog | r bpf_prog_alloc |
| DATA_SOURCE | 4 | attach_type | $3 |
| NOCHECK_CALL | |||
| LOCK2 | global &cgroup_mutex |
kernel/bpf/bpf_struct_ops.c bpf_struct_ops_map_update_elem() -> bpf_tramp_link_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | link | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 9 |
| PARAM_VALUE | 2 | ops | 477815394481135616 |
| PARAM_VALUE | 2 | ops->dealloc | 0,4096-ptr_max |
| PARAM_VALUE | 2 | ops->dealloc_deferred | 0,1759708710073585664,5585267827817062400,6383829618595254272,7043826165124968448,7435821247301136384 |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| PARAM_VALUE | 3 | prog->expected_attach_type | 0-16777214 |
| PARAM_VALUE | 4 | attach_type | 0-16777214 |
| PARAM_VALUE | 5 | cookie | 0 |
| BUF_SIZE | 0 | link | 160 |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 3 | prog->aux->attach_btf_id | 1 |
| CAPPED_DATA | 3 | prog->expected_attach_type | 1 |
| CAPPED_DATA | 4 | attach_type | 1 |
| DATA_SOURCE | 0 | link | r _kzalloc_noprof |
| DATA_SOURCE | 3 | prog | r bpf_prog_get |
| NOCHECK_CALL | |||
| LOCK2 | &st_map->lock | ||
| TYPE_LOCK | (struct bpf_struct_ops_map)->lock |