Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- net/socket.c, line 1732 (as a function)
- tools/testing/selftests/bpf/progs/sk_bypass_prot_mem.c, line 77 (as a function)
Referenced in 9 files:
- drivers/infiniband/hw/erdma/erdma_cm.c
- drivers/infiniband/sw/siw/siw_cm.c
- drivers/nvme/target/tcp.c, line 2091
- drivers/target/iscsi/iscsi_target_login.c, line 799
- drivers/xen/pvcalls-back.c
- fs/ocfs2/cluster/tcp.c
- net/socket.c
- tools/testing/selftests/bpf/cgroup_getset_retval_hooks.h, line 5
- tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
Smatch caller information:
drivers/infiniband/sw/siw/siw_cm.c siw_connect() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2,10 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 297001442456379392 |
| PARAM_VALUE | 3 | *res | 0 |
| FUZZY_MAX | 0 | family | 10 |
| BIT_INFO | 0 | family | 0x2,0xa |
| HARD_MAX | 0 | family | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &id_priv->handler_mutex | ||
| HALF_LOCKED2 | &iser_conn->state_mutex |
drivers/infiniband/sw/siw/siw_cm.c siw_create_listen() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2,10 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 6802956010424832000 |
| BIT_INFO | 0 | family | 0x2,0xa |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &ctx->mutex | ||
| HALF_LOCKED2 | &device->client_data_rwsem | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | global &clients_rwsem | ||
| HALF_LOCKED2 | global &ctrl_lock | ||
| HALF_LOCKED2 | global &devices_rwsem | ||
| HALF_LOCKED2 | global &ib_ctx.ib_dev_mutex | ||
| HALF_LOCKED2 | global &init_lock | ||
| HALF_LOCKED2 | global &lock |
drivers/infiniband/hw/erdma/erdma_cm.c erdma_connect() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 3433835846991314944 |
| PARAM_VALUE | 3 | *res | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &id_priv->handler_mutex | ||
| HALF_LOCKED2 | &iser_conn->state_mutex |
drivers/infiniband/hw/erdma/erdma_cm.c erdma_create_listen() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 5928656154905636864 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &ctx->mutex | ||
| HALF_LOCKED2 | &device->client_data_rwsem | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | global &clients_rwsem | ||
| HALF_LOCKED2 | global &ctrl_lock | ||
| HALF_LOCKED2 | global &devices_rwsem | ||
| HALF_LOCKED2 | global &ib_ctx.ib_dev_mutex | ||
| HALF_LOCKED2 | global &init_lock | ||
| HALF_LOCKED2 | global &lock |
drivers/target/iscsi/iscsi_target_login.c iscsit_setup_np() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1,5 |
| PARAM_VALUE | 2 | protocol | 6,132 |
| PARAM_VALUE | 3 | res | 4875174172708294656 |
| PARAM_VALUE | 3 | *res | 0 |
| FUZZY_MAX | 1 | type | 5 |
| FUZZY_MAX | 2 | protocol | 132 |
| BIT_INFO | 1 | type | 0x1,0x5 |
| BIT_INFO | 2 | protocol | 0x4,0x86 |
| HARD_MAX | 1 | type | 5 |
| HARD_MAX | 2 | protocol | 132 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tpg->tpg_access_lock | ||
| LOCK2 | global &np_lock | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &subsys->su_mutex | ||
| TYPE_LOCK | (struct iscsi_portal_group)->tpg_access_lock |
drivers/xen/pvcalls-back.c pvcalls_back_bind() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 0 |
| PARAM_VALUE | 3 | res | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/xen/pvcalls-back.c pvcalls_back_connect() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 0 |
| PARAM_VALUE | 3 | res | 3163167904214061056 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
fs/ocfs2/cluster/tcp.c o2net_open_listening_sock() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 6794943919353802752 |
| PARAM_VALUE | 3 | *res | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | global &o2nm_cluster_group.cs_subsys.su_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |
fs/ocfs2/cluster/tcp.c o2net_start_connect() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 2 |
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 9096125869399326720 |
| PARAM_VALUE | 3 | *res | 0 |
| HALF_LOCKED2 | &pool->lock |
net/socket.c __sys_socket_create() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 0-15 |
| PARAM_VALUE | 3 | res | 8335150557357355008 |
| DATA_SOURCE | 0 | family | $0 |
| DATA_SOURCE | 1 | type | $1 [m] |
| DATA_SOURCE | 2 | protocol | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | family | s32min-s32max |
| USER_DATA | 1 | type | 0-15[c] |
| USER_DATA | 2 | protocol | s32min-s32max |
net/socket.c __sys_socketpair() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 0-15 |
| PARAM_VALUE | 3 | res | 8786984803213885440 |
| DATA_SOURCE | 0 | family | $0 |
| DATA_SOURCE | 1 | type | $1 [m] |
| DATA_SOURCE | 2 | protocol | $2 |
| USER_DATA | 0 | family | s32min-s32max |
| USER_DATA | 1 | type | 0-15[c] |
| USER_DATA | 2 | protocol | s32min-s32max |
net/socket.c __sys_socketpair() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | family | 0-45 |
| PARAM_VALUE | 1 | type | 0-10 |
| PARAM_VALUE | 3 | res | 2916699874103013376 |
| DATA_SOURCE | 0 | family | $0 |
| DATA_SOURCE | 1 | type | $1 [m] |
| DATA_SOURCE | 2 | protocol | $2 |
| USER_DATA | 0 | family | 0-45 |
| USER_DATA | 1 | type | 0-10[c] |
| USER_DATA | 2 | protocol | s32min-s32max |
drivers/nvme/target/tcp.c nvmet_tcp_add_port() -> sock_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| PARAM_VALUE | 2 | protocol | 6 |
| PARAM_VALUE | 3 | res | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dir->i_rwsem | ||
| LOCK2 | global &nvmet_config_sem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |