Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- crypto/dh.c
- crypto/rsa.c
- drivers/crypto/virtio/virtio_crypto_akcipher_algs.c, line 373
- lib/crypto/mpi/mpi-add.c, line 102
- lib/crypto/mpi/mpi-div.c, line 44
- lib/crypto/mpi/mpiutil.c, line 125
- lib/digsig.c
Smatch caller information:
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c virtio_crypto_rsa_set_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | 0-256 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nlimbs | 0-256 |
| PARAM_VALUE | 0 | a->sign | 0 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_read_raw_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/digsig.c digsig_verify_rsa() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 0,4096-ptr_max,(-22),(-12) |
| BUF_SIZE | 0 | a | (-1)-0,32 |
| BUF_SIZE | 0 | a | (-1)-0,32 |
| NOCHECK_CALL | |||
| LOCK2 | &key->sem | ||
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct key)->sem |
lib/digsig.c digsig_verify_rsa() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 0,4096-ptr_max |
| BUF_SIZE | 0 | a | (-1)-0,32 |
| BUF_SIZE | 0 | a | (-1)-0,32 |
| NOCHECK_CALL | |||
| LOCK2 | &key->sem | ||
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct key)->sem |
lib/digsig.c digsig_verify_rsa() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| LOCK2 | &key->sem | ||
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct key)->sem |
crypto/rsa.c _rsa_dec_crt() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced | |
| NO_OVERFLOW_SIMPLE | 0 | a->nlimbs |
crypto/rsa.c _rsa_dec_crt() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 0,4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_check_exponent_fips() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | 0 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->nlimbs | 0 |
| PARAM_VALUE | 0 | a->sign | 0 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_check_exponent_fips() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | 0,5 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->sign | 0 |
| PARAM_VALUE | 0 | *a->d | 1 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_check_exponent_fips() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | 0,5 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->sign | 0 |
| PARAM_VALUE | 0 | *a->d | 1 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_check_payload() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | (-2147483647)-1 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->sign | 0-1 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_check_payload() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | (-2147483647)-0 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->sign | 0 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_dec() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_read_raw_from_sgl |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_dec() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced | |
| NO_OVERFLOW_SIMPLE | 0 | a->nlimbs |
crypto/rsa.c rsa_enc() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_read_raw_from_sgl |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_enc() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
crypto/rsa.c rsa_free_mpi_key() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | a | (-1),32 |
| BUF_SIZE | 0 | a | (-1),32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced |
lib/crypto/mpi/mpi-add.c mpi_sub() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->sign | 0-1 |
| BUF_SIZE | 0 | a | 32 |
| CAPPED_DATA | 0 | a->nlimbs | 1 |
| DATA_SOURCE | 0 | a | r mpi_copy |
| FUZZY_MAX | 0 | a->sign | 1 |
| HARD_MAX | 0 | a->sign | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
crypto/dh.c dh_clear_ctx() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced | |
| NO_OVERFLOW_SIMPLE | 0 | a->nlimbs |
crypto/dh.c dh_clear_ctx() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced | |
| NO_OVERFLOW_SIMPLE | 0 | a->nlimbs |
crypto/dh.c dh_clear_ctx() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->alloced | |
| NO_OVERFLOW_SIMPLE | 0 | a->nlimbs |
crypto/dh.c dh_compute_value() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | (-2147483647)-1 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->sign | 0-1 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/dh.c dh_compute_value() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_read_raw_from_sgl |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | a->alloced | 2-256[c] |
| USER_DATA | 0 | a->nbits | 0-16408 |
| USER_DATA | 0 | a->nlimbs | 2-256[c] |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/dh.c dh_compute_value() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/dh.c dh_is_pubkey_valid() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->alloced | 0 |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->flags | 0 |
| PARAM_VALUE | 0 | a->nbits | 0 |
| PARAM_VALUE | 0 | a->nlimbs | 0 |
| PARAM_VALUE | 0 | a->sign | 0 |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/dh.c dh_is_pubkey_valid() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| CAPPED_DATA | 0 | a | 1 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | a->nlimbs | |
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/dh.c dh_is_pubkey_valid() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
crypto/dh.c dh_is_pubkey_valid() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| BUF_SIZE | 0 | a | 32 |
| DATA_SOURCE | 0 | a | r mpi_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
lib/crypto/mpi/mpi-div.c mpi_fdiv_r() -> mpi_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->d | 0,4096-ptr_max |
| PARAM_VALUE | 0 | a->nbits | 0 |
| BUF_SIZE | 0 | a | 0,32 |
| BUF_SIZE | 0 | a | 0,32 |
| NOCHECK_CALL |