Documented in 1 files:
Defined in 1 files as a function:
Referenced in 13 files:
- drivers/net/wireguard/peerlookup.c, line 17
- fs/crypto/fname.c, line 473
- fs/nfsd/nfsfh.c
- lib/tests/siphash_kunit.c
- net/core/flow_dissector.c, line 1811
- net/core/secure_seq.c
- net/ipv4/tcp_fastopen.c
- net/ipv6/route.c, line 1566
- net/ipv6/syncookies.c, line 60
- net/netfilter/nf_conntrack_core.c
- net/netfilter/nf_conntrack_expect.c, line 111
- net/netfilter/nf_conntrack_netlink.c, line 2991
- net/netfilter/nf_nat_core.c, line 167
Smatch caller information:
net/netfilter/nf_conntrack_netlink.c nf_expect_get_id() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 40 |
| PARAM_VALUE | 2 | key | 9139155457321172992 |
| BUF_SIZE | 0 | data | 40 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &nf_conntrack_expect_lock | ||
| HALF_LOCKED2 | global &once_lock | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nf_nat_core.c hash_by_src() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 5625062536926916608 |
| PARAM_VALUE | 1 | len | 32 |
| PARAM_VALUE | 2 | key | 2140902331844100096 |
| BUF_SIZE | 0 | data | 32 |
| MEM_ZERO | 0 | data | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | global &once_lock | ||
| HALF_LOCKED2 | rcu_read |
lib/tests/siphash_kunit.c siphash_test() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-63 |
| PARAM_VALUE | 2 | key | 4485508664070451200 |
| BUF_SIZE | 0 | data | 64 |
| FUZZY_MAX | 1 | len | 63 |
| HARD_MAX | 1 | len | 63 |
lib/tests/siphash_kunit.c siphash_test() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 7202709655944650753 |
| PARAM_VALUE | 0 | *data | 0-255 |
| PARAM_VALUE | 1 | len | 0-63 |
| PARAM_VALUE | 2 | key | 4485508664070451200 |
| BUF_SIZE | 0 | data | 64 |
| FUZZY_MAX | 1 | len | 63 |
| HARD_MAX | 1 | len | 63 |
drivers/net/wireguard/peerlookup.c pubkey_bucket() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 32 |
| PARAM_VALUE | 2 | key | 4096-ptr_max |
| BUF_SIZE | 0 | data | (-1),32 |
| DATA_SOURCE | 0 | data | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 0 | data | |
| HALF_LOCKED2 | &table->lock | ||
| HALF_LOCKED2 | &wg->device_update_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/ipv6/syncookies.c cookie_hash() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 7200731064559976448 |
| PARAM_VALUE | 1 | len | 40 |
| PARAM_VALUE | 2 | key | 4096-ptr_max |
| BUF_SIZE | 0 | data | 40 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | global &once_lock |
net/netfilter/nf_conntrack_expect.c nf_ct_expect_dst_hash() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 5130330766912741376 |
| PARAM_VALUE | 1 | len | 24 |
| PARAM_VALUE | 2 | key | 5369623255696769024 |
| BUF_SIZE | 0 | data | 24 |
| MEM_ZERO | 0 | data | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &nf_conntrack_expect_lock | ||
| HALF_LOCKED2 | global &once_lock |
net/core/secure_seq.c secure_ipv6_port_ephemeral() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4290583916249509888 |
| PARAM_VALUE | 1 | len | 38 |
| PARAM_VALUE | 2 | key | 3709827806680903680 |
| BUF_SIZE | 0 | data | 40 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | sk |
net/core/secure_seq.c secure_tcpv6_seq_and_ts_off() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 7045166276067745792 |
| PARAM_VALUE | 1 | len | 36 |
| PARAM_VALUE | 2 | key | 3709827806680903680 |
| BUF_SIZE | 0 | data | 40 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
fs/crypto/fname.c fscrypt_fname_siphash() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0 |
| PARAM_VALUE | 2 | key | 4096-ptr_max |
| BUF_SIZE | 0 | data | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | data | unit_byte |
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | &dir->i_rwsem |
net/ipv4/tcp_fastopen.c __tcp_fastopen_cookie_gen_cipher() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 8 |
| PARAM_VALUE | 2 | key | 4096-ptr_max |
| BUF_SIZE | 0 | data | 4 |
| BUF_SIZE | 2 | key | (-1),32 |
| BUF_SIZE | 2 | key | (-1),32 |
| DATA_SOURCE | 2 | key | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| LOCK2 | bh | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
net/ipv4/tcp_fastopen.c __tcp_fastopen_cookie_gen_cipher() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 32 |
| PARAM_VALUE | 2 | key | 4096-ptr_max |
| BUF_SIZE | 0 | data | 16 |
| BUF_SIZE | 2 | key | (-1),32 |
| BUF_SIZE | 2 | key | (-1),32 |
| DATA_SOURCE | 2 | key | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| LOCK2 | bh | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
net/core/flow_dissector.c __flow_hash_from_keys() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 40,44,48,72 |
| BUF_SIZE | 0 | data | 4 |
| DATA_SOURCE | 2 | key | $1 |
| BIT_INFO | 1 | len | 0x0,0x7f |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/ipv6/route.c rt6_exception_hash() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 1999904633712283648 |
| PARAM_VALUE | 1 | len | 32 |
| PARAM_VALUE | 2 | key | 5020590504971317248 |
| BUF_SIZE | 0 | data | 32 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &once_lock | ||
| HALF_LOCKED2 | global &rt6_exception_lock | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nf_conntrack_core.c hash_conntrack_raw() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 39 |
| PARAM_VALUE | 2 | key | 1657599769650925568 |
| CAPPED_DATA | 0 | data | 1 |
| DATA_SOURCE | 0 | data | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &once_lock | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nf_conntrack_core.c nf_ct_get_id() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 40 |
| PARAM_VALUE | 2 | key | 2500037751943892992 |
| BUF_SIZE | 0 | data | 40 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &once_lock | ||
| HALF_LOCKED2 | rcu_read |
fs/nfsd/nfsfh.c fh_append_mac() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 2 | key | 1-u64max |
| BUF_SIZE | 0 | data | 128 |
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/nfsd/nfsfh.c fh_verify_mac() -> siphash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | data | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-4294967287,18446744073709551609-u64max |
| PARAM_VALUE | 2 | key | 1-u64max |
| BUF_SIZE | 0 | data | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | &fhp->fh_dentry->d_lockref.lock |