Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/bpf/syscall.c link_create() -> cgroup_bpf_link_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 4096-ptr_max |
| PARAM_VALUE | 0 | attr->link_create.attach_type | 0-43,45-u32max |
| PARAM_VALUE | 1 | prog | 4096-ptr_max |
| PARAM_VALUE | 1 | prog->type | 8-9,13,15,18,23,25 |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | attr->link_create.attach_type | 1 |
| DATA_SOURCE | 0 | attr | $0 |
| DATA_SOURCE | 1 | prog | r bpf_prog_get |
kernel/bpf/syscall.c link_create() -> cgroup_bpf_link_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attr | 4096-ptr_max |
| PARAM_VALUE | 0 | attr->link_create.attach_type | 3-7,16-18,23-28,37-38,43,58-61 |
| PARAM_VALUE | 1 | prog | 4096-ptr_max |
| PARAM_VALUE | 1 | prog->expected_attach_type | 43 |
| PARAM_VALUE | 1 | prog->type | 26,29 |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | attr->link_create.attach_type | 1 |
| CAPPED_DATA | 1 | prog->type | 1 |
| DATA_SOURCE | 0 | attr | $0 |
| DATA_SOURCE | 1 | prog | r bpf_prog_get |
| PARAM_COMPARE | 0 | attr->link_create.attach_type | == $1->expected_attach_type |