Defined in 4 files as a function:
- drivers/crypto/caam/caamalg.c, line 1692 (as a function)
- drivers/crypto/caam/caamalg_qi.c, line 1254 (as a function)
- drivers/crypto/caam/caamalg_qi2.c, line 1114 (as a function)
- drivers/crypto/talitos.c, line 1711 (as a function)
Referenced in 4 files:
- drivers/crypto/caam/caamalg.c, line 1931
- drivers/crypto/caam/caamalg_qi.c, line 1456
- drivers/crypto/caam/caamalg_qi2.c
- drivers/crypto/talitos.c
Smatch caller information:
drivers/crypto/caam/caamalg.c skcipher_crypt() -> skcipher_edesc_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | encrypt | 80,128,176,336,384,432 |
| BUF_SIZE | 0 | req | (-1)-s32max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| NOSPEC | 0 | req->cryptlen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | req->dst->length | 0-2147483646[c] |
| HOST_DATA | 0 | req->src->length | 0-2147483646[c] |
| USER_DATA | 0 | req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->dst->length | 1-u32max[c] |
| USER_DATA | 0 | req->dst->offset | 0-2147551739[c] |
| USER_DATA | 0 | req->src->length | 1-u32max[c] |
| USER_DATA | 0 | req->src->offset | 0-2147551739[c] |
| USER_DATA | 0 | *req->iv | 0-255 |
| USER_PTR | 0 | req->iv | |
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | tfm_mutex |
drivers/crypto/caam/caamalg_qi2.c skcipher_decrypt() -> skcipher_edesc_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1),1-s32max |
| BUF_SIZE | 0 | req | (-1),1-s32max |
| DATA_SOURCE | 0 | req | $0 |
| NOSPEC | 0 | req->cryptlen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | req->dst->length | 0-2147483646[c] |
| HOST_DATA | 0 | req->src->length | 0-2147483646[c] |
| USER_DATA | 0 | req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->dst->length | 1-u32max[c] |
| USER_DATA | 0 | req->dst->offset | 0-2147551739[c] |
| USER_DATA | 0 | req->src->length | 1-u32max[c] |
| USER_DATA | 0 | req->src->offset | 0-2147551739[c] |
| USER_DATA | 0 | *req->iv | 0-255 |
| USER_PTR | 0 | req->iv | |
| HALF_LOCKED2 | &crypt_stat->cs_mutex | ||
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | global &key_construction_mutex | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | tfm_mutex |
drivers/crypto/caam/caamalg_qi2.c skcipher_encrypt() -> skcipher_edesc_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| NOSPEC | 0 | req->cryptlen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | req->dst->length | 0-2147483646[c] |
| HOST_DATA | 0 | req->src->length | 0-2147483646[c] |
| USER_DATA | 0 | req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->dst->length | 1-u32max[c] |
| USER_DATA | 0 | req->dst->offset | 0-2147551739[c] |
| USER_DATA | 0 | req->src->length | 1-u32max[c] |
| USER_DATA | 0 | req->src->offset | 0-2147551739[c] |
| USER_DATA | 0 | *req->iv | 0-255 |
| USER_PTR | 0 | req->iv | |
| HALF_LOCKED2 | &crypt_stat->keysig_list_mutex | ||
| HALF_LOCKED2 | &key->sem | ||
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | &walker->global_auth_tok_key->sem | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | tfm_mutex |
drivers/crypto/caam/caamalg_qi.c skcipher_crypt() -> skcipher_edesc_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| DATA_SOURCE | 1 | encrypt | $1 |
| NOSPEC | 0 | req->cryptlen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | req->dst->length | 0-2147483646[c] |
| HOST_DATA | 0 | req->src->length | 0-2147483646[c] |
| USER_DATA | 0 | req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->dst->length | 1-u32max[c] |
| USER_DATA | 0 | req->dst->offset | 0-2147551739[c] |
| USER_DATA | 0 | req->src->length | 1-u32max[c] |
| USER_DATA | 0 | req->src->offset | 0-2147551739[c] |
| USER_DATA | 0 | *req->iv | 0-255 |
| USER_PTR | 0 | req->iv | |
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | tfm_mutex |