Defined in 3 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/crypto/caam/caamalg.c skcipher_crypt() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->parent 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->dst_nents 0-s32max
PARAM_VALUE 1 edesc->hw_desc 4096-ptr_max
PARAM_VALUE 1 edesc->iv_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->mapped_dst_nents 0-s32max
PARAM_VALUE 1 edesc->mapped_src_nents 1-s32max
PARAM_VALUE 1 edesc->sec4_sg 4096-ptr_max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 1 *edesc->hw_desc 0-4294967295
PARAM_VALUE 2 req 4096-ptr_max
PARAM_VALUE 2 req->__ctx->edesc->dst_nents 0-s32max
PARAM_VALUE 2 req->__ctx->edesc->mapped_dst_nents 0-s32max
PARAM_VALUE 2 req->__ctx->edesc->mapped_src_nents 1-s32max
PARAM_VALUE 2 req->__ctx->edesc->src_nents 0-s32max
BUF_SIZE 1 edesc 0-s32max
BUF_SIZE 1 edesc 0-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
CAPPED_DATA 1 edesc->mapped_dst_nents 1
CAPPED_DATA 1 edesc->mapped_src_nents 1
CAPPED_DATA 1 edesc->sec4_sg 1
CAPPED_DATA 2 req->cryptlen 1
CAPPED_DATA 2 req->src 1
DATA_SOURCE 1 edesc r skcipher_edesc_alloc
DATA_SOURCE 2 req $0
NOSPEC 2 req->cryptlen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dev->driver_data->inpring_avail 0-4294967295
USER_DATA 2 req->cryptlen 0-u32max[c]
USER_DATA 2 *req->iv 0-255
NO_OVERFLOW_SIMPLE 1 edesc->mapped_dst_nents
NO_OVERFLOW_SIMPLE 1 edesc->mapped_src_nents
USER_PTR 2 req->iv
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 tfm_mutex

drivers/crypto/caam/caamalg.c skcipher_crypt_done() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 2 req 4096-ptr_max
BUF_SIZE 2 req 1-s32max
BUF_SIZE 2 req 1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 2 req $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/crypto/caam/caamalg.c skcipher_do_one_req() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->bklog 1
PARAM_VALUE 1 edesc->hw_desc 4096-ptr_max
PARAM_VALUE 2 req 4096-ptr_max
PARAM_VALUE 2 req->__ctx->edesc 4096-ptr_max
PARAM_VALUE 2 req->__ctx->edesc->bklog 1
DATA_SOURCE 2 req r skcipher_request_cast
NOCHECK_CALL
HOST_DATA 0 dev->driver_data->inpring_avail 0-4294967295

drivers/crypto/caam/caamalg_qi2.c skcipher_decrypt() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->dst_nents 0-s32max
PARAM_VALUE 1 edesc->iv_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->qm_sg_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->sgt 4096-ptr_max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
BUF_SIZE 2 req (-1),1-s32max
BUF_SIZE 2 req (-1),1-s32max
CAPPED_DATA 2 req->cryptlen 1
DATA_SOURCE 1 edesc r skcipher_edesc_alloc
DATA_SOURCE 2 req $0
NOSPEC 2 req->cryptlen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 req->cryptlen 0-u32max[c]
USER_DATA 2 *req->iv 0-255
USER_PTR 2 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_decrypt_done() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 2 req 4096-ptr_max
DATA_SOURCE 2 req r skcipher_request_cast
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/crypto/caam/caamalg_qi2.c skcipher_encrypt() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->dst_nents 0-s32max
PARAM_VALUE 1 edesc->iv_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->qm_sg_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->sgt 4096-ptr_max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
CAPPED_DATA 2 req->cryptlen 1
DATA_SOURCE 1 edesc r skcipher_edesc_alloc
DATA_SOURCE 2 req $0
NOSPEC 2 req->cryptlen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 req->cryptlen 0-u32max[c]
USER_DATA 2 *req->iv 0-255
USER_PTR 2 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_qi2.c skcipher_encrypt_done() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 2 req 4096-ptr_max
DATA_SOURCE 2 req r skcipher_request_cast
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/crypto/caam/caamalg_qi.c skcipher_crypt() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 0 dev 0,4096-ptr_max
PARAM_VALUE 0 dev->bus 0,4096-ptr_max
PARAM_VALUE 0 dev->class 0,4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 dev->dma_uses_io_tlb 1
PARAM_VALUE 0 dev->driver 0,4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->drv_req.app_ctx 4096-ptr_max
PARAM_VALUE 1 edesc->drv_req.cbk 8191173197981769728
PARAM_VALUE 1 edesc->drv_req.drv_ctx 0-ptr_max
PARAM_VALUE 1 edesc->drv_req.fd_sgt 4096-ptr_max
PARAM_VALUE 1 edesc->dst_nents 0-s32max
PARAM_VALUE 1 edesc->iv_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->qm_sg_dma 0-18446744073709551614
PARAM_VALUE 1 edesc->sgt 4096-ptr_max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
BUF_SIZE 1 edesc->drv_req.app_ctx (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
CAPPED_DATA 1 edesc->drv_req.fd_sgt 1
CAPPED_DATA 2 req->cryptlen 1
DATA_SOURCE 1 edesc r skcipher_edesc_alloc
DATA_SOURCE 2 req $0
NOSPEC 2 req->cryptlen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 req->cryptlen 0-u32max[c]
USER_DATA 2 *req->iv 0-255
UNITS 0 dev unit_byte
USER_PTR 2 req->iv
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 tfm_mutex

drivers/crypto/caam/caamalg_qi.c skcipher_done() -> skcipher_unmap()

Type Parameter Key Value
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 2 req 4096-ptr_max
BUF_SIZE 2 req 1-s32max
BUF_SIZE 2 req 1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 dev unit_byte