Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/net/wireguard/socket.c wg_socket_init() -> wg_socket_reinit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wg | 4096-ptr_max |
| PARAM_VALUE | 0 | wg->creating_net | 1-u64max |
| PARAM_VALUE | 0 | wg->creating_net->ns.__ns_ref.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | wg->device_update_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | new4 | 4096-ptr_max |
| PARAM_VALUE | 1 | new4->sk_allocation | 0,131072-u32max |
| PARAM_VALUE | 1 | new4->sk_sndbuf | s32max |
| PARAM_VALUE | 1 | new4->sk_socket | 4096-ptr_max |
| PARAM_VALUE | 1 | new4->sk_user_data | 0,4096-ptr_max |
| PARAM_VALUE | 2 | new6 | 0,4096-ptr_max |
| PARAM_VALUE | 2 | new6->sk_allocation | 0,131072-u32max |
| PARAM_VALUE | 2 | new6->sk_sndbuf | s32max |
| DATA_SOURCE | 0 | wg | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | new4 | unit_byte |
| UNITS | 2 | new6 | unit_byte |
| LOCK2 | 0 | &wg->device_update_lock | |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct wg_device)->device_update_lock |
drivers/net/wireguard/device.c wg_destruct() -> wg_socket_reinit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wg | 4096-ptr_max |
| PARAM_VALUE | 0 | wg->creating_net | 0 |
| PARAM_VALUE | 0 | wg->device_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | wg->device_update_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | wg->incoming_port | 0 |
| PARAM_VALUE | 1 | new4 | 0 |
| PARAM_VALUE | 2 | new6 | 0 |
| CAPPED_DATA | 0 | &wg->device_update_lock | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &wg->device_update_lock | |
| TYPE_LOCK | (struct wg_device)->device_update_lock |
drivers/net/wireguard/device.c wg_netns_exit_rtnl() -> wg_socket_reinit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wg | 4096-ptr_max |
| PARAM_VALUE | 0 | wg->creating_net | 0 |
| PARAM_VALUE | 0 | wg->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | wg->device_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | wg->device_update_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | new4 | 0 |
| PARAM_VALUE | 2 | new6 | 0 |
| CAPPED_DATA | 0 | &wg->device_list | 1 |
| CAPPED_DATA | 0 | &wg->device_update_lock | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->rtnl_mutex | ||
| LOCK2 | global &pernet_ops_rwsem | ||
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &wg->device_update_lock | |
| TYPE_LOCK | (struct net)->rtnl_mutex | ||
| TYPE_LOCK | (struct wg_device)->device_update_lock |
drivers/net/wireguard/device.c wg_stop() -> wg_socket_reinit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wg | 4096-ptr_max |
| PARAM_VALUE | 0 | wg->device_update_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | wg->device_update_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->handshake_queue.ring.consumer_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | wg->handshake_queue_len.counter | 0 |
| PARAM_VALUE | 1 | new4 | 0 |
| PARAM_VALUE | 2 | new6 | 0 |
| CAPPED_DATA | 0 | &wg->device_update_lock | 1 |
| CAPPED_DATA | 0 | &wg->peer_list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &rtnl_mutex |