Defined in 1 files as a function:
Referenced in 5 files:
- crypto/dh.c, line 514
- drivers/crypto/atmel-ecc.c
- drivers/crypto/hisilicon/hpre/hpre_crypto.c
- drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
- include/crypto/kpp.h, line 187
Smatch caller information:
net/bluetooth/ecdh_helper.c kpp_request_alloc() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | 72-4294967367 |
| BUF_SIZE | 0 | req | 72-4294967367 |
| DATA_SOURCE | 0 | req | r _kmalloc_noprof |
| DATA_SOURCE | 1 | tfm | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/keys/dh.c kpp_request_alloc() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | 72-4294967367 |
| BUF_SIZE | 0 | req | 72-4294967367 |
| DATA_SOURCE | 0 | req | r _kmalloc_noprof |
| DATA_SOURCE | 1 | tfm | $0 |
| NOCHECK_CALL |
drivers/char/tpm/tpm2-sessions.c kpp_request_alloc() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | 72-4294967367 |
| BUF_SIZE | 0 | req | 72-4294967367 |
| DATA_SOURCE | 0 | req | r _kmalloc_noprof |
| DATA_SOURCE | 1 | tfm | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
crypto/testmgr.c kpp_request_alloc() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | 72-4294967367 |
| BUF_SIZE | 0 | req | 72-4294967367 |
| DATA_SOURCE | 0 | req | r _kmalloc_noprof |
| DATA_SOURCE | 1 | tfm | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &once_lock |
crypto/dh.c dh_safe_prime_prepare_dh_req() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/atmel-ecc.c atmel_ecdh_compute_shared_secret() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/atmel-ecc.c atmel_ecdh_generate_public_key() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/nvme/common/auth.c kpp_request_alloc() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | 72-4294967367 |
| BUF_SIZE | 0 | req | 72-4294967367 |
| DATA_SOURCE | 0 | req | r _kmalloc_noprof |
| DATA_SOURCE | 1 | tfm | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c qat_dh_compute_shared_secret() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c qat_dh_generate_public_key() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_dh_prepare_fb_req() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_ecdh_compute_shared_secret() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_ecdh_compute_shared_secret() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| DATA_SOURCE | 1 | tfm | r crypto_kpp_reqtfm |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | req->src_len | 1-u16max[u] |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_ecdh_generate_public_key() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req->base.data | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/crypto/hisilicon/hpre/hpre_crypto.c hpre_ecdh_generate_public_key() -> kpp_request_set_tfm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| PARAM_VALUE | 1 | tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| BUF_SIZE | 0 | req | (-1),6-s32max |
| DATA_SOURCE | 0 | req | $0 |
| DATA_SOURCE | 1 | tfm | r crypto_kpp_reqtfm |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->dst_len | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |