Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 22 files:
- drivers/block/nbd.c, line 1219
- drivers/infiniband/hw/usnic/usnic_transport.c, line 151
- drivers/net/gtp.c, line 1659
- drivers/net/ovpn/netlink.c, line 394
- drivers/scsi/iscsi_tcp.c, line 676
- drivers/usb/usbip/stub_dev.c, line 74
- drivers/usb/usbip/vhci_sysfs.c, line 367
- drivers/usb/usbip/vudc_sysfs.c, line 138
- drivers/vhost/net.c, line 1477
- kernel/bpf/reuseport_array.c, line 259
- net/bluetooth/bnep/sock.c, line 70
- net/bluetooth/hidp/sock.c
- net/core/bpf_sk_storage.c
- net/core/sock_map.c, line 573
- net/handshake/netlink.c, line 144
- net/kcm/kcmsock.c
- net/l2tp/l2tp_core.c, line 1666
- net/psp/psp_nl.c, line 650
- net/socket.c, line 644
- net/sunrpc/svcsock.c, line 1523
- net/xdp/xsk.c, line 1573
- net/xdp/xskmap.c, line 177
Smatch caller information:
net/l2tp/l2tp_core.c l2tp_tunnel_register() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 0-s32max |
| PARAM_VALUE | 1 | err | 2864096554352144384 |
| PARAM_VALUE | 1 | *err | 0 |
| FUZZY_MAX | 0 | fd | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/bluetooth/hidp/sock.c do_hidp_sock_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 2470303517805867008 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 0 | fd | s32min-s32max |
net/bluetooth/hidp/sock.c do_hidp_sock_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 2470303517805867008 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 0 | fd | s32min-s32max |
net/bluetooth/hidp/sock.c hidp_sock_compat_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 8189886757936295936 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 0 | fd | s32min-s32max |
net/bluetooth/hidp/sock.c hidp_sock_compat_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 8189886757936295936 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 0 | fd | s32min-s32max |
net/kcm/kcmsock.c kcm_attach_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 5330625203995643904 |
| USER_DATA | 0 | fd | s32min-s32max |
net/kcm/kcmsock.c kcm_unattach_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 7676567898378108928 |
| USER_DATA | 0 | fd | s32min-s32max |
net/bluetooth/bnep/sock.c do_bnep_sock_ioctl() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 6535515051741646848 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 0 | fd | s32min-s32max |
drivers/net/gtp.c gtp_encap_enable_socket() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 0-s32max |
| PARAM_VALUE | 1 | err | 534748013355204608 |
| DATA_SOURCE | 0 | fd | $0 |
| FUZZY_MAX | 0 | fd | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &ops->srcu | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
drivers/scsi/iscsi_tcp.c iscsi_sw_tcp_conn_bind() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 4880827086445481984 |
| DATA_SOURCE | 0 | fd | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fd | s32min-s32max |
| LOCK2 | &cls_conn->ep_mutex | ||
| LOCK2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct iscsi_cls_conn)->ep_mutex |
drivers/net/ovpn/netlink.c ovpn_nl_peer_new_doit() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 6918764829035024384 |
| PARAM_VALUE | 1 | *err | 0 |
| DATA_SOURCE | 0 | fd | r nla_get_u32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| 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 &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/core/bpf_sk_storage.c bpf_fd_sk_storage_delete_elem() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 8330818808539324416 |
| USER_DATA | 0 | fd | s32min-s32max |
| HALF_LOCKED2 | rcu_read |
net/core/bpf_sk_storage.c bpf_fd_sk_storage_lookup_elem() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 1018850388742885376 |
| USER_DATA | 0 | fd | s32min-s32max |
| HALF_LOCKED2 | rcu_read |
net/core/bpf_sk_storage.c bpf_fd_sk_storage_update_elem() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 1119608045758324736 |
| USER_DATA | 0 | fd | s32min-s32max |
| HALF_LOCKED2 | rcu_read |
drivers/vhost/net.c get_raw_socket() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | s32min-(-2),0-s32max |
| PARAM_VALUE | 1 | err | 8856370768008183808 |
| DATA_SOURCE | 0 | fd | $0 |
| USER_DATA | 0 | fd | s32min-(-2),0-s32max |
| LOCK2 | &n->dev.mutex | ||
| LOCK2 | &vq->mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex | ||
| TYPE_LOCK | (struct vhost_virtqueue)->mutex |
kernel/bpf/reuseport_array.c bpf_fd_reuseport_array_update_elem() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 1275873412767416320 |
| USER_DATA | 0 | fd | s32min-s32max |
net/handshake/netlink.c handshake_nl_done_doit() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 5140863533048569856 |
| DATA_SOURCE | 0 | fd | r nla_get_s32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| 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 &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/xdp/xskmap.c xsk_map_update_elem() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 7510643321866088448 |
| USER_DATA | 0 | fd | s32min-s32max |
drivers/usb/usbip/stub_dev.c usbip_sockfd_store() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | s32min-(-2),0-s32max |
| PARAM_VALUE | 1 | err | 740503836223623168 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | &sdev->ud.lock | ||
| LOCK2 | &sdev->ud.sysfs_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct usbip_device)->lock | ||
| TYPE_LOCK | (struct usbip_device)->sysfs_lock |
net/psp/psp_nl.c psp_assoc_device_get_locked() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 5825953531238002688 |
| DATA_SOURCE | 0 | fd | r nla_get_u32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
drivers/usb/usbip/vudc_sysfs.c usbip_sockfd_store() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | s32min-(-2),0-s32max |
| PARAM_VALUE | 1 | err | 6541528834423750656 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fd | s32min-(-2),0-s32max |
| LOCK2 | &of->mutex | ||
| LOCK2 | &udc->lock | ||
| LOCK2 | &udc->ud.lock | ||
| LOCK2 | &udc->ud.sysfs_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct usbip_device)->lock | ||
| TYPE_LOCK | (struct usbip_device)->sysfs_lock | ||
| TYPE_LOCK | (struct vudc)->lock |
net/core/sock_map.c sock_map_update_elem_sys() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 0-s32max |
| PARAM_VALUE | 1 | err | 2123286764662120448 |
| USER_DATA | 0 | fd | 0-s32max |
net/xdp/xsk.c xsk_lookup_xsk_from_fd() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 4833919179377504256 |
| DATA_SOURCE | 0 | fd | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &xs->mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | global &o2nm_cluster_group.cs_subsys.su_mutex | ||
| TYPE_LOCK | (struct xdp_sock)->mutex |
net/sunrpc/svcsock.c svc_addsock() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 0-s32max |
| PARAM_VALUE | 1 | err | 1113748363447992320 |
| PARAM_VALUE | 1 | *err | 0 |
| DATA_SOURCE | 0 | fd | $2 |
| FUZZY_MAX | 0 | fd | 0 |
| USER_DATA | 0 | fd | 0-s32max |
| LOCK2 | global &nfsd_mutex |
drivers/usb/usbip/vhci_sysfs.c attach_store() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 8226728541928923136 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | &vdev->ud.sysfs_lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct usbip_device)->sysfs_lock |
drivers/infiniband/hw/usnic/usnic_transport.c usnic_transport_get_socket() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 4210098459669680128 |
| DATA_SOURCE | 0 | fd | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fd | s32min-s32max |
| HALF_LOCKED2 | &qp_grp->lock | ||
| HALF_LOCKED2 | &qp_grp->vf->pf->usdev_lock | ||
| HALF_LOCKED2 | &us_ibdev->usdev_lock | ||
| HALF_LOCKED2 | &vf->lock | ||
| TYPE_LOCK | (struct usnic_ib_dev)->usdev_lock |
drivers/block/nbd.c nbd_get_socket() -> sockfd_lookup()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | err | 16306187150753792,3814366734475501568 |
| PARAM_VALUE | 1 | *err | 0 |
| DATA_SOURCE | 0 | fd | $1 |
| DATA_SOURCE | 1 | err | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fd | 0-s32max |
| LOCK2 | &nbd->config_lock | ||
| TYPE_LOCK | (struct nbd_device)->config_lock |