Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/net/ovpn/tcp.c, line 536
- net/core/skmsg.c, line 1153
- net/kcm/kcmsock.c, line 1294
- net/strparser/strparser.c, line 494
- net/xfrm/espintcp.c, line 459
Smatch caller information:
net/kcm/kcmsock.c kcm_attach() -> strp_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | strp | 4096-ptr_max |
| PARAM_VALUE | 1 | sk | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->__sk_common.skc_family | 2,10 |
| PARAM_VALUE | 1 | sk->__sk_common.skc_state | 0-6,8-9,11-255 |
| PARAM_VALUE | 1 | sk->sk_callback_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | sk->sk_callback_lock.owner_cpu | 0 |
| PARAM_VALUE | 1 | sk->sk_callback_lock.raw_lock.cnts.counter | 0-s32max |
| PARAM_VALUE | 1 | sk->sk_lock.owned | 1 |
| PARAM_VALUE | 1 | sk->sk_lock.slock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | sk->sk_lock.wq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->sk_lock.wq.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->sk_lock.wq.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->sk_protocol | 6 |
| PARAM_VALUE | 1 | sk->sk_user_data | 0 |
| PARAM_VALUE | 2 | cb | 3671649818535772160 |
| PARAM_VALUE | 2 | cb->abort_parser | 0 |
| PARAM_VALUE | 2 | cb->lock | 0 |
| PARAM_VALUE | 2 | cb->parse_msg | 7172326450082557952 |
| PARAM_VALUE | 2 | cb->rcv_msg | 5382628580132446208 |
| PARAM_VALUE | 2 | cb->read_sock | 0 |
| PARAM_VALUE | 2 | cb->read_sock_done | 2758681989958533120 |
| PARAM_VALUE | 2 | cb->unlock | 0 |
| BIT_INFO | 1 | sk->__sk_common.skc_family | 0x2,0xa |
| UNITS | 1 | sk | unit_byte |
| LOCK2 | bh | ||
| LOCK2 | 1 | sk | |
| LOCK2 | 1 | &sk->sk_callback_lock | |
| HALF_LOCKED2 | &smc->sk | ||
| TYPE_LOCK | (struct sock)->sk_callback_lock |
net/core/skmsg.c sk_psock_init_strp() -> strp_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | strp | 4096-ptr_max |
| PARAM_VALUE | 1 | sk | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->__sk_common.skc_family | 2,10 |
| PARAM_VALUE | 1 | sk->__sk_common.skc_prot | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->__sk_common.skc_prot->psock_update_sk_prot | 1-u64max |
| PARAM_VALUE | 1 | sk->sk_callback_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | sk->sk_callback_lock.owner_cpu | 0 |
| PARAM_VALUE | 1 | sk->sk_callback_lock.raw_lock.cnts.counter | 0-s32max |
| PARAM_VALUE | 1 | sk->sk_callback_lock.raw_lock.wlocked | 0 |
| PARAM_VALUE | 1 | sk->sk_protocol | 6 |
| PARAM_VALUE | 1 | sk->sk_socket | 0,4096-ptr_max |
| PARAM_VALUE | 1 | sk->sk_type | 1 |
| PARAM_VALUE | 1 | sk->sk_user_data | 4101-18446744073709547525 |
| PARAM_VALUE | 2 | cb | 8538817170648813568 |
| PARAM_VALUE | 2 | cb->abort_parser | 0 |
| PARAM_VALUE | 2 | cb->lock | 0 |
| PARAM_VALUE | 2 | cb->parse_msg | 510045738927951872 |
| PARAM_VALUE | 2 | cb->rcv_msg | 7568917781098745856 |
| PARAM_VALUE | 2 | cb->read_sock | 0 |
| PARAM_VALUE | 2 | cb->read_sock_done | 1755368764290887680 |
| PARAM_VALUE | 2 | cb->unlock | 0 |
| BUF_SIZE | 1 | sk | (-1)-s32max |
| BUF_SIZE | 1 | sk | (-1)-s32max |
| DATA_SOURCE | 1 | sk | $0 |
| UNITS | 1 | sk | unit_byte |
| LOCK2 | bh | ||
| LOCK2 | 1 | &sk->sk_callback_lock | |
| HALF_LOCKED2 | 1 | &sk->sk_lock.slock | |
| TYPE_LOCK | (struct sock)->sk_callback_lock |
net/xfrm/espintcp.c espintcp_init_sk() -> strp_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | strp | 4096-ptr_max |
| PARAM_VALUE | 1 | sk | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->ns_tracker->alloc_stack_handle | 0-4294967295 |
| PARAM_VALUE | 1 | sk->ns_tracker->dead | 0-1 |
| PARAM_VALUE | 1 | sk->ns_tracker->free_stack_handle | 0-4294967295 |
| PARAM_VALUE | 1 | sk->sk_socket | 0,4096-ptr_max |
| PARAM_VALUE | 1 | sk->sk_user_data | 0 |
| PARAM_VALUE | 2 | cb | 6261138615996604416 |
| PARAM_VALUE | 2 | cb->abort_parser | 0 |
| PARAM_VALUE | 2 | cb->lock | 0 |
| PARAM_VALUE | 2 | cb->parse_msg | 1737045126903341056 |
| PARAM_VALUE | 2 | cb->rcv_msg | 6242123034879156224 |
| PARAM_VALUE | 2 | cb->read_sock | 0 |
| PARAM_VALUE | 2 | cb->read_sock_done | 0 |
| PARAM_VALUE | 2 | cb->unlock | 0 |
| CAPPED_DATA | 1 | sk->__sk_common.skc_net.net | 1 |
| DATA_SOURCE | 1 | sk | $0 |
| STR_LEN | 0 | strp | (-1),5 |
| STR_LEN | 1 | sk | (-1),5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | sk->sk_backlog.len | |
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | 1 | sk |
drivers/net/ovpn/tcp.c ovpn_tcp_socket_attach() -> strp_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | strp | 4096-ptr_max |
| PARAM_VALUE | 1 | sk | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->__sk_common.skc_state | 1 |
| PARAM_VALUE | 1 | sk->sk_lock.owned | 1 |
| PARAM_VALUE | 1 | sk->sk_lock.wq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | sk->sk_user_data | 0 |
| PARAM_VALUE | 2 | cb | 6440622955031199744 |
| PARAM_VALUE | 2 | cb->abort_parser | 0 |
| PARAM_VALUE | 2 | cb->lock | 0 |
| PARAM_VALUE | 2 | cb->parse_msg | 5839830444494204928 |
| PARAM_VALUE | 2 | cb->rcv_msg | 5708549383094464512 |
| PARAM_VALUE | 2 | cb->read_sock | 0 |
| PARAM_VALUE | 2 | cb->read_sock_done | 0 |
| PARAM_VALUE | 2 | cb->unlock | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | sk | unit_byte |
| LOCK2 | sk | ||
| 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 &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex |