Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/net/wireguard/socket.c wg_socket_set_peer_endpoint_from_skb() -> wg_socket_set_peer_endpoint()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
PARAM_VALUE 0 peer->refcount.refcount.refs.counter (-1073741824),0-s32max
PARAM_VALUE 1 endpoint 4743237174855712768
PARAM_VALUE 1 endpoint->addr.sa_family 0
PARAM_VALUE 1 endpoint->addr4.sin_family 0,2
PARAM_VALUE 1 endpoint->addr6.sin6_family 0,10
DATA_SOURCE 0 peer $0
MEM_ZERO 1 endpoint
NOCHECK_CALL

drivers/net/wireguard/receive.c wg_packet_consume_data_done() -> wg_socket_set_peer_endpoint()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
PARAM_VALUE 0 peer->device 4096-ptr_max
PARAM_VALUE 0 peer->rx_queue.peeked 0
PARAM_VALUE 1 endpoint 7374148853654986752
PARAM_VALUE 1 endpoint->addr.sa_family 0
PARAM_VALUE 1 endpoint->addr4.sin_addr.s_addr 0
PARAM_VALUE 1 endpoint->addr4.sin_family 0,2
PARAM_VALUE 1 endpoint->addr4.sin_port 0
PARAM_VALUE 1 endpoint->addr6.sin6_family 0,10
PARAM_VALUE 1 endpoint->addr6.sin6_port 0
PARAM_VALUE 1 endpoint->addr6.sin6_scope_id 0
PARAM_VALUE 1 endpoint->src4.s_addr 0
PARAM_VALUE 1 endpoint->src_if4 0
CAPPED_DATA 0 peer 1
DATA_SOURCE 0 peer $0
DATA_SOURCE 1 endpoint $2
MEM_ZERO 1 endpoint
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/net/wireguard/netlink.c set_peer() -> wg_socket_set_peer_endpoint()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
PARAM_VALUE 0 peer->handshake.lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 peer->handshake.lock.first_waiter->type 0-1
PARAM_VALUE 1 endpoint 2428686456434139136
PARAM_VALUE 1 endpoint->addr.sa_family 0
PARAM_VALUE 1 endpoint->addr6.sin6_port 0
PARAM_VALUE 1 endpoint->addr6.sin6_scope_id 0
PARAM_VALUE 1 endpoint->src4.s_addr 0
PARAM_VALUE 1 endpoint->src_if4 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 peer->handshake->preshared_key 0-255
USER_DATA 0 peer->handshake->remote_static 0-255
LOCK2 &wg->device_update_lock
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rx_queue_mutex
TYPE_LOCK (struct wg_device)->device_update_lock

drivers/net/wireguard/netlink.c set_peer() -> wg_socket_set_peer_endpoint()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
PARAM_VALUE 0 peer->handshake.lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 peer->handshake.lock.first_waiter->type 0-1
PARAM_VALUE 1 endpoint 2428686456434139136
PARAM_VALUE 1 endpoint->addr.sa_family 0
PARAM_VALUE 1 endpoint->addr4.sin_addr.s_addr 0
PARAM_VALUE 1 endpoint->addr4.sin_port 0
PARAM_VALUE 1 endpoint->src4.s_addr 0
PARAM_VALUE 1 endpoint->src_if4 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 peer->handshake->preshared_key 0-255
USER_DATA 0 peer->handshake->remote_static 0-255
LOCK2 &wg->device_update_lock
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rx_queue_mutex
TYPE_LOCK (struct wg_device)->device_update_lock