Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/crypto/ccree/cc_aead.c cc_proc_aead() -> validate_data_size()

Type Parameter Key Value
PARAM_VALUE 0 ctx_p 4096-ptr_max
PARAM_VALUE 0 ctx_p->drvdata 4096-ptr_max
PARAM_VALUE 1 size 0-1
PARAM_VALUE 2 req 4096-ptr_max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
DATA_SOURCE 1 size $1
DATA_SOURCE 2 req $0
NOSPEC 2 req->cryptlen
HARD_MAX 1 size 1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 req->dst->length 0-2147483646[c]
HOST_DATA 2 req->src->length 0-2147483646[c]
USER_DATA 2 req->cryptlen 0-u32max
USER_DATA 2 req->dst->length 1-2147483646[c]
USER_DATA 2 req->dst->offset 0-2147551739[c]
USER_DATA 2 req->src->length 1-2147483646[c]
USER_DATA 2 req->src->offset 0-2147551739[c]
USER_DATA 2 *req->iv 0-255
NO_OVERFLOW_SIMPLE 2 req->dst->length
NO_OVERFLOW_SIMPLE 2 req->src->length
USER_PTR 2 req->iv

drivers/crypto/ccree/cc_cipher.c cc_cipher_process() -> validate_data_size()

Type Parameter Key Value
PARAM_VALUE 0 ctx_p 4096-ptr_max
BUF_SIZE 0 ctx_p 0
NOSPEC 1 size
NOSPEC 1 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0-u32max
UNITS 1 size unit_byte
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 tfm_mutex