Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/core/sock_map.c sock_map_get_from_fd() -> sock_map_prog_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 0-ptr_max |
| PARAM_VALUE | 1 | prog | 4096-ptr_max |
| PARAM_VALUE | 1 | prog->type | 6,9,13-16,18,20,22-23,25-26,28-30 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | link | 0 |
| PARAM_VALUE | 4 | which | 4-5,7,38 |
| BUF_SIZE | 0 | map | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | map | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | prog->type | 1 |
| CAPPED_DATA | 4 | which | 1 |
| DATA_SOURCE | 0 | map | r __bpf_map_get |
| DATA_SOURCE | 1 | prog | $1 |
| LOCK2 | global &sockmap_mutex |
net/core/sock_map.c sock_map_link_create() -> sock_map_prog_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->map_type | 15,18 |
| PARAM_VALUE | 1 | prog | 4096-ptr_max |
| PARAM_VALUE | 1 | prog->type | 14,16 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | link | 4096-ptr_max |
| PARAM_VALUE | 3 | link->attach_type | 3-7,16-18,23-28,37-38,43,58-61 |
| PARAM_VALUE | 3 | link->id | 0 |
| PARAM_VALUE | 3 | link->ops | 8439884197135114240 |
| PARAM_VALUE | 3 | link->prog | 4096-ptr_max |
| PARAM_VALUE | 3 | link->refcnt.counter | 1 |
| PARAM_VALUE | 3 | link->type | 14 |
| PARAM_VALUE | 4 | which | 3-7,16-18,23-28,37-38,43,58-61 |
| BUF_SIZE | 0 | map | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | map | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | prog->type | 1 |
| CAPPED_DATA | 4 | which | 1 |
| DATA_SOURCE | 0 | map | r bpf_map_get_with_uref |
| DATA_SOURCE | 1 | prog | $1 |
| BIT_INFO | 0 | map->map_type | 0x2,0x1f |
| LOCK2 | global &sockmap_mutex |
net/core/sock_map.c sock_map_link_release() -> sock_map_prog_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 1-u64max |
| PARAM_VALUE | 1 | prog | 0 |
| PARAM_VALUE | 3 | link | 4096-ptr_max |
| PARAM_VALUE | 3 | link->ops | 4096-ptr_max |
| PARAM_VALUE | 3 | link->ops->detach | 0,4096-ptr_max |
| PARAM_VALUE | 3 | link->ops->poll | 0,4096-ptr_max |
| PARAM_VALUE | 3 | link->ops->update_map | 0,4096-ptr_max |
| PARAM_VALUE | 3 | link->ops->update_prog | 0,4096-ptr_max |
| BUF_SIZE | 3 | link | s32min-(-1),1-s32max |
| BUF_SIZE | 3 | link | s32min-(-1),1-s32max |
| DATA_SOURCE | 3 | link | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &sockmap_mutex |
net/core/sock_map.c sock_map_prog_detach() -> sock_map_prog_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 0-ptr_max |
| PARAM_VALUE | 1 | prog | 0 |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 2 | old->type | 14,16 |
| PARAM_VALUE | 3 | link | 0 |
| PARAM_VALUE | 4 | which | 4-5,7,38 |
| BUF_SIZE | 0 | map | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | map | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | old | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | old | s32min-(-2),1-s32max |
| CAPPED_DATA | 2 | old->type | 1 |
| DATA_SOURCE | 0 | map | r __bpf_map_get |
| DATA_SOURCE | 2 | old | r bpf_prog_get |
| LOCK2 | global &sockmap_mutex |