Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/net/netkit.c netkit_link_prog_attach() -> bpf_mprog_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | entry | 1-u64max |
| PARAM_VALUE | 1 | entry_new | 4215350955873001472 |
| PARAM_VALUE | 2 | prog_new | 4096-ptr_max |
| PARAM_VALUE | 3 | link | 4096-ptr_max |
| PARAM_VALUE | 3 | link->attach_type | 54-55 |
| PARAM_VALUE | 3 | link->id | 0 |
| PARAM_VALUE | 3 | link->ops | 1799189109274214400 |
| PARAM_VALUE | 3 | link->prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->refcnt.counter | 1 |
| PARAM_VALUE | 3 | link->type | 13 |
| PARAM_VALUE | 4 | prog_old | 0 |
| BUF_SIZE | 0 | entry | (-1),520 |
| BUF_SIZE | 0 | entry | (-1),520 |
| DATA_SOURCE | 0 | entry | r netkit_entry_fetch |
| DATA_SOURCE | 3 | link | $0 |
| DATA_SOURCE | 5 | flags | $1 |
| DATA_SOURCE | 6 | id_or_fd | $2 |
| DATA_SOURCE | 7 | revision | $3 |
| LOCK2 | global &rtnl_mutex |
drivers/net/netkit.c netkit_link_update() -> bpf_mprog_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | entry | 1-u64max |
| PARAM_VALUE | 1 | entry_new | 4206322737569996800 |
| PARAM_VALUE | 2 | prog_new | 4096-ptr_max |
| PARAM_VALUE | 3 | link | 4096-ptr_max |
| PARAM_VALUE | 3 | link->ops | 4096-ptr_max |
| PARAM_VALUE | 3 | link->ops->update_map | 0 |
| PARAM_VALUE | 3 | link->ops->update_prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->prog->aux | 4096-ptr_max |
| PARAM_VALUE | 4 | prog_old | 4096-ptr_max |
| PARAM_VALUE | 5 | flags | 36 |
| PARAM_VALUE | 7 | revision | 0 |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | link | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | link | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | entry | r netkit_entry_fetch |
| DATA_SOURCE | 2 | prog_new | $1 |
| DATA_SOURCE | 3 | link | $0 |
| PARAM_COMPARE | 2 | prog_new | != $4 |
| PARAM_COMPARE | 2 | prog_new | != $4 |
| PARAM_COMPARE | 4 | prog_old | != $2 |
| LOCK2 | global &rtnl_mutex |
drivers/net/netkit.c netkit_prog_attach() -> bpf_mprog_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | entry | 1-u64max |
| PARAM_VALUE | 1 | entry_new | 809383299608215552 |
| PARAM_VALUE | 2 | prog_new | 4096-ptr_max |
| PARAM_VALUE | 2 | prog_new->type | 3,9,18,25,28,30 |
| PARAM_VALUE | 3 | link | 0 |
| PARAM_VALUE | 4 | prog_old | 0,4096-ptr_max |
| PARAM_VALUE | 5 | flags | 0-16382 |
| PARAM_VALUE | 6 | id_or_fd | 0 |
| PARAM_VALUE | 7 | revision | 0 |
| BUF_SIZE | 0 | entry | (-1),520 |
| BUF_SIZE | 0 | entry | (-1),520 |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 4 | prog_old | s32min-(-2),0-s32max |
| BUF_SIZE | 4 | prog_old | s32min-(-2),0-s32max |
| CAPPED_DATA | 2 | prog_new->type | 1 |
| DATA_SOURCE | 0 | entry | r netkit_entry_fetch |
| DATA_SOURCE | 2 | prog_new | $1 |
| BIT_INFO | 5 | flags | 0x0,0x203c |
| LOCK2 | global &rtnl_mutex |
kernel/bpf/tcx.c tcx_link_prog_attach() -> bpf_mprog_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | entry | 1-u64max |
| PARAM_VALUE | 1 | entry_new | 2457989663004717056 |
| PARAM_VALUE | 2 | prog_new | 4096-ptr_max |
| PARAM_VALUE | 3 | link | 4096-ptr_max |
| PARAM_VALUE | 3 | link->attach_type | 46-47 |
| PARAM_VALUE | 3 | link->id | 0 |
| PARAM_VALUE | 3 | link->ops | 9106235090037911552 |
| PARAM_VALUE | 3 | link->prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->refcnt.counter | 1 |
| PARAM_VALUE | 3 | link->type | 11 |
| PARAM_VALUE | 4 | prog_old | 0 |
| BUF_SIZE | 0 | entry | (-1),520 |
| BUF_SIZE | 0 | entry | (-1),520 |
| DATA_SOURCE | 0 | entry | r tcx_entry_fetch_or_create |
| DATA_SOURCE | 3 | link | $0 |
| DATA_SOURCE | 5 | flags | $1 |
| DATA_SOURCE | 6 | id_or_fd | $2 |
| DATA_SOURCE | 7 | revision | $3 |
| FUZZY_MAX | 3 | link->attach_type | 46 |
| BIT_INFO | 3 | link->attach_type | 0x2e,0x2f |
| LOCK2 | global &rtnl_mutex |
kernel/bpf/tcx.c tcx_link_update() -> bpf_mprog_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | entry | 1-u64max |
| PARAM_VALUE | 1 | entry_new | 2792833556032512000 |
| PARAM_VALUE | 2 | prog_new | 4096-ptr_max |
| PARAM_VALUE | 3 | link | 4096-ptr_max |
| PARAM_VALUE | 3 | link->ops | 4096-ptr_max |
| PARAM_VALUE | 3 | link->ops->update_map | 0 |
| PARAM_VALUE | 3 | link->ops->update_prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->prog->aux | 4096-ptr_max |
| PARAM_VALUE | 4 | prog_old | 4096-ptr_max |
| PARAM_VALUE | 5 | flags | 36 |
| PARAM_VALUE | 7 | revision | 0 |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | link | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | link | s32min-(-2),1-s32max |
| DATA_SOURCE | 2 | prog_new | $1 |
| DATA_SOURCE | 3 | link | $0 |
| PARAM_COMPARE | 2 | prog_new | != $4 |
| PARAM_COMPARE | 2 | prog_new | != $4 |
| PARAM_COMPARE | 4 | prog_old | != $2 |
| LOCK2 | global &rtnl_mutex |
kernel/bpf/tcx.c tcx_prog_attach() -> bpf_mprog_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | entry | 1-u64max |
| PARAM_VALUE | 1 | entry_new | 1861313963176132608 |
| PARAM_VALUE | 2 | prog_new | 4096-ptr_max |
| PARAM_VALUE | 2 | prog_new->type | 3,9,18,25,28,30 |
| PARAM_VALUE | 3 | link | 0 |
| PARAM_VALUE | 4 | prog_old | 0,4096-ptr_max |
| PARAM_VALUE | 5 | flags | 0-16382 |
| PARAM_VALUE | 6 | id_or_fd | 0 |
| PARAM_VALUE | 7 | revision | 0 |
| BUF_SIZE | 0 | entry | (-1),520 |
| BUF_SIZE | 0 | entry | (-1),520 |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | prog_new | s32min-(-2),1-s32max |
| BUF_SIZE | 4 | prog_old | s32min-(-2),0-s32max |
| BUF_SIZE | 4 | prog_old | s32min-(-2),0-s32max |
| CAPPED_DATA | 2 | prog_new->type | 1 |
| DATA_SOURCE | 0 | entry | r tcx_entry_fetch_or_create |
| DATA_SOURCE | 2 | prog_new | $1 |
| BIT_INFO | 5 | flags | 0x0,0x203c |
| LOCK2 | global &rtnl_mutex |