Defined in 1 files as a function:
Referenced in 8 files:
- crypto/rng.c, line 40
- drivers/net/wireguard/cookie.c, line 190
- drivers/target/iscsi/iscsi_target_auth.c, line 55
- drivers/target/iscsi/iscsi_target_login.c, line 177
- include/crypto/curve25519.h, line 39
- include/crypto/rng.h, line 81
- security/keys/big_key.c, line 97
- security/keys/trusted-keys/trusted_core.c, line 340
Smatch caller information:
drivers/net/wireguard/cookie.c wg_cookie_message_create() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nbytes | 24 |
| BUF_SIZE | 0 | buf | 24 |
| NOCHECK_CALL |
drivers/crypto/intel/keembay/keembay-ocs-ecc.c crypto_stdrng_get_bytes() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3952914951303340032,5982919783828152320 |
| PARAM_VALUE | 1 | nbytes | 0,8-4294967288 |
| BUF_SIZE | 0 | buf | 48 |
| BUF_SIZE | 0 | buf | 48 |
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/target/iscsi/iscsi_target_auth.c chap_gen_challenge() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nbytes | 0-1999999,u32max |
| BUF_SIZE | 0 | buf | 32 |
| HALF_LOCKED2 | &pool->lock |
drivers/target/iscsi/iscsi_target_login.c iscsi_login_set_conn_values() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | nbytes | 4 |
| BUF_SIZE | 0 | buf | 4 |
| UNITS | 1 | nbytes | unit_byte |
drivers/net/wireguard/noise.c curve25519_generate_secret() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nbytes | 32 |
| BUF_SIZE | 0 | buf | 32 |
| DATA_SOURCE | 0 | buf | $0 |
| NOCHECK_CALL | |||
| LOCK2 | &handshake->lock | ||
| LOCK2 | &handshake->static_identity->lock | ||
| TYPE_LOCK | (struct noise_handshake)->lock | ||
| TYPE_LOCK | (struct noise_static_identity)->lock |
crypto/dh.c crypto_stdrng_get_bytes() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | nbytes | 8-4000000 |
| BUF_SIZE | 0 | buf | 8-536870912 |
| BUF_SIZE | 0 | buf | 8-536870912 |
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/rng.c crypto_rng_reset() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | nbytes | 1-4000000 |
| BUF_SIZE | 0 | buf | 1-u32max |
| DATA_SOURCE | 0 | buf | r _kmalloc_noprof |
| DATA_SOURCE | 1 | nbytes | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| BYTE_COUNT | 0 | ==buf1 | 8050 |
| HALF_LOCKED2 | global &crypto_default_rng_lock |
crypto/geniv.c crypto_stdrng_get_bytes() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
crypto/ecc.c crypto_stdrng_get_bytes() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nbytes | 0,8-4294967288 |
| BUF_SIZE | 0 | buf | 72 |
| BUF_SIZE | 0 | buf | 72 |
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
| BIT_INFO | 1 | nbytes | 0x0,0xfffffff8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
security/keys/big_key.c big_key_preparse() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | nbytes | 32 |
| BUF_SIZE | 0 | buf | 32 |
| DATA_SOURCE | 0 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &key_types_sem |
security/keys/trusted-keys/trusted_core.c kernel_get_random() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
net/tipc/crypto.c crypto_stdrng_get_bytes() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
| UNITS | 1 | nbytes | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/crypto/hisilicon/hpre/hpre_crypto.c crypto_stdrng_get_bytes() -> get_random_bytes_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8172967116136054784 |
| PARAM_VALUE | 1 | nbytes | 23,31,47 |
| BUF_SIZE | 0 | buf | 32,66 |
| BUF_SIZE | 0 | buf | 32,66 |
| DATA_SOURCE | 0 | buf | $0 |
| DATA_SOURCE | 1 | nbytes | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | nbytes | unit_byte |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |