Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/nvme/host/tcp.c, line 1807
- drivers/nvme/target/tcp.c, line 1940
- fs/coredump.c, line 693
- net/9p/trans_fd.c, line 774
- net/handshake/handshake-test.c
- net/kcm/kcmsock.c, line 1548
- net/sctp/socket.c, line 5763
- net/socket.c
- net/sunrpc/svcsock.c, line 948
- net/sunrpc/xprtsock.c
Smatch caller information:
fs/coredump.c coredump_sock_connect() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->type | 1 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | dname | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/kcm/kcmsock.c kcm_clone() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->ops->owner | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->__sk_common.skc_state | 7 |
| PARAM_VALUE | 0 | sock->sk->sk_allocation | 3264 |
| PARAM_VALUE | 0 | sock->sk->sk_callback_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | sock->sk->sk_callback_lock.owner | (-1) |
| PARAM_VALUE | 0 | sock->sk->sk_callback_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | sock->sk->sk_error_queue.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_error_queue.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_error_queue.qlen | 0 |
| PARAM_VALUE | 0 | sock->sk->sk_rcvbuf | 212992 |
| PARAM_VALUE | 0 | sock->sk->sk_receive_queue.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_receive_queue.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_receive_queue.qlen | 0 |
| PARAM_VALUE | 0 | sock->sk->sk_send_head | 0 |
| PARAM_VALUE | 0 | sock->sk->sk_sndbuf | 212992 |
| PARAM_VALUE | 0 | sock->sk->sk_socket | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_timer.entry.pprev | 0 |
| PARAM_VALUE | 0 | sock->sk->sk_timer.flags | 0-4194302 |
| PARAM_VALUE | 0 | sock->sk->sk_use_task_frag | 1 |
| PARAM_VALUE | 0 | sock->sk->sk_wq | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_wq_raw | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_write_queue.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_write_queue.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_write_queue.qlen | 0 |
| PARAM_VALUE | 1 | flags | 0 |
| BUF_SIZE | 0 | sock | 192 |
| BUF_SIZE | 2 | dname | 32 |
| DATA_SOURCE | 0 | sock | r sock_alloc |
net/sunrpc/xprtsock.c xs_create_sock() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_lock.owned | 0-1 |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
| CAPPED_DATA | 0 | sock->sk | 1 |
| NO_OVERFLOW_SIMPLE | 0 | sock->sk->sk_prot_creator->twsk_prot->twsk_slab->sheaf_capacity | |
| NO_OVERFLOW_SIMPLE | 0 | sock->sk->sk_receive_queue.prev->data_len | |
| NO_OVERFLOW_SIMPLE | 0 | sock->sk->sk_receive_queue.prev->next->data_len | |
| NO_OVERFLOW_SIMPLE | 0 | sock->sk->sk_write_queue.next->data_len | |
| NO_OVERFLOW_SIMPLE | 0 | sock->sk->sk_write_queue.next->prev->data_len | |
| HALF_LOCKED2 | &pool->lock |
net/sunrpc/xprtsock.c xs_local_setup_socket() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_lock.owned | 0-1 |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
net/9p/trans_fd.c p9_socket_open() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->sk->sk_allocation | 3072 |
| PARAM_VALUE | 0 | sock->sk->sk_use_task_frag | 0 |
| PARAM_VALUE | 0 | sock->type | 1 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | dname | 0 |
| DATA_SOURCE | 0 | sock | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
net/sctp/socket.c sctp_getsockopt_peeloff_common() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock->state | 0-4294967295 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | dname | 0 |
| RX_PATH | |||
| LOCK2 | sk |
net/handshake/handshake-test.c handshake_req_cancel_test1() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/handshake/handshake-test.c handshake_req_cancel_test2() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/handshake/handshake-test.c handshake_req_cancel_test3() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/handshake/handshake-test.c handshake_req_destroy_test1() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/handshake/handshake-test.c handshake_req_submit_test4() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/handshake/handshake-test.c handshake_req_submit_test5() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/handshake/handshake-test.c handshake_req_submit_test6() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
net/socket.c __sys_socket_file() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->type | 0-10 |
| PARAM_VALUE | 2 | dname | 0 |
| DATA_SOURCE | 0 | sock | r __sys_socket_create |
| BIT_INFO | 1 | flags | 0x0,0x7ffffff0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/socket.c __sys_socketpair() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->type | 0-10 |
| PARAM_VALUE | 1 | flags | 0-1048574 |
| PARAM_VALUE | 2 | dname | 0 |
| BIT_INFO | 1 | flags | 0x0,0x80800 |
| USER_DATA | 1 | flags | 0-1048574[c] |
net/socket.c __sys_socketpair() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->type | 0-10 |
| PARAM_VALUE | 1 | flags | 0-1048574 |
| PARAM_VALUE | 2 | dname | 0 |
| BIT_INFO | 1 | flags | 0x0,0x80800 |
| USER_DATA | 1 | flags | 0-1048574[c] |
net/socket.c do_accept() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->ops | 4096-ptr_max |
| BUF_SIZE | 0 | sock | 192 |
| BUF_SIZE | 2 | dname | 32 |
| DATA_SOURCE | 0 | sock | r sock_alloc |
| DATA_SOURCE | 1 | flags | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | flags | 0-1048574 |
net/socket.c sock_map_fd() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->type | 0-10 |
| PARAM_VALUE | 1 | flags | 0,2048-526336 |
| PARAM_VALUE | 2 | dname | 0 |
| DATA_SOURCE | 0 | sock | $0 |
| DATA_SOURCE | 1 | flags | $1 |
| BIT_INFO | 1 | flags | 0x0,0x80800 |
| USER_DATA | 1 | flags | 0,2048-526336[c] |
drivers/nvme/target/tcp.c nvmet_tcp_alloc_queue() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 524288 |
| PARAM_VALUE | 2 | dname | 0 |
| DATA_SOURCE | 0 | sock | $1 |
| HALF_LOCKED2 | &pool->lock |
net/sunrpc/svcsock.c svc_tcp_accept() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2048 |
| PARAM_VALUE | 2 | dname | 0 |
drivers/nvme/host/tcp.c nvme_tcp_alloc_queue() -> sock_alloc_file()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sock | 4096-ptr_max |
| PARAM_VALUE | 0 | sock->type | 1 |
| PARAM_VALUE | 1 | flags | 524288 |
| PARAM_VALUE | 2 | dname | 0 |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &nvmf_dev_mutex |