Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/bpf/btf.c btf_kfunc_is_allowed() -> __btf_kfunc_is_allowed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | btf | 4096-ptr_max |
| PARAM_VALUE | 0 | btf->kfunc_set_tab | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 0 |
| PARAM_VALUE | 2 | kfunc_btf_id | 1-s32max |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| DATA_SOURCE | 0 | btf | $0 |
| DATA_SOURCE | 2 | kfunc_btf_id | $1 |
| DATA_SOURCE | 3 | prog | $2 |
| UNITS | 2 | kfunc_btf_id | unit_array_size |
kernel/bpf/btf.c btf_kfunc_is_allowed() -> __btf_kfunc_is_allowed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | btf | 4096-ptr_max |
| PARAM_VALUE | 0 | btf->kfunc_set_tab | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 0-5,7-13 |
| PARAM_VALUE | 2 | kfunc_btf_id | 1-s32max |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| DATA_SOURCE | 0 | btf | $0 |
| DATA_SOURCE | 1 | hook | r bpf_prog_type_to_kfunc_hook |
| DATA_SOURCE | 2 | kfunc_btf_id | $1 |
| DATA_SOURCE | 3 | prog | $2 |
| UNITS | 2 | kfunc_btf_id | unit_array_size |
kernel/bpf/btf.c btf_kfunc_is_modify_return() -> __btf_kfunc_is_allowed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | btf | 4096-ptr_max |
| PARAM_VALUE | 0 | btf->kernel_btf | 1 |
| PARAM_VALUE | 1 | hook | 6 |
| PARAM_VALUE | 2 | kfunc_btf_id | 1-u32max |
| PARAM_VALUE | 3 | prog | 4096-ptr_max |
| PARAM_VALUE | 3 | prog->aux | 4096-ptr_max |
| PARAM_VALUE | 3 | prog->expected_attach_type | 59-61 |
| PARAM_VALUE | 3 | prog->sleepable | 1 |
| PARAM_VALUE | 3 | prog->type | 26 |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | btf->start_id | 1 |
| CAPPED_DATA | 2 | kfunc_btf_id | 1 |
| CAPPED_DATA | 3 | prog->expected_attach_type | 1 |
| DATA_SOURCE | 0 | btf | $0 |
| DATA_SOURCE | 2 | kfunc_btf_id | $1 |
| DATA_SOURCE | 3 | prog | $2 |
| FUZZY_MAX | 3 | prog->expected_attach_type | 61 |
| BIT_INFO | 3 | prog->expected_attach_type | 0x38,0xffffffffffffffff |
| UNITS | 2 | kfunc_btf_id | unit_array_size |