Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/nvme/host/auth.c nvme_auth_dhchap_setup_ctrl_response() -> nvme_auth_augmented_challenge()

Type Parameter Key Value
PARAM_VALUE 0 hmac_id 1-3
PARAM_VALUE 2 skey_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 4 aug 16,4096-ptr_max
PARAM_VALUE 5 hlen 0-255
BUF_SIZE 1 skey 1-255
BUF_SIZE 3 challenge 64
BUF_SIZE 4 aug 0-255
BUF_SIZE 4 aug 0-255
DATA_SOURCE 4 aug r _kmalloc_noprof
UNITS 0 hmac_id unit_array_size
UNITS 2 skey_len unit_byte
UNITS 5 hlen unit_byte
BYTE_COUNT 4 ==aug5 8050
LOCK2 &ctrl->dhchap_auth_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct nvme_ctrl)->dhchap_auth_mutex

drivers/nvme/host/auth.c nvme_auth_dhchap_setup_host_response() -> nvme_auth_augmented_challenge()

Type Parameter Key Value
PARAM_VALUE 0 hmac_id 1-3
PARAM_VALUE 2 skey_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 4 aug 16,4096-ptr_max
PARAM_VALUE 5 hlen 0-255
BUF_SIZE 1 skey 1-255
BUF_SIZE 3 challenge 64
BUF_SIZE 4 aug 0-255
BUF_SIZE 4 aug 0-255
DATA_SOURCE 4 aug r _kmalloc_noprof
UNITS 0 hmac_id unit_array_size
UNITS 2 skey_len unit_byte
UNITS 5 hlen unit_byte
BYTE_COUNT 4 ==aug5 8050
LOCK2 &ctrl->dhchap_auth_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct nvme_ctrl)->dhchap_auth_mutex

drivers/nvme/target/auth.c nvmet_auth_ctrl_hash() -> nvme_auth_augmented_challenge()

Type Parameter Key Value
PARAM_VALUE 0 hmac_id 1-3
PARAM_VALUE 2 skey_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 challenge 1-u64max
PARAM_VALUE 4 aug 16,4096-ptr_max
PARAM_VALUE 5 hlen 0-4000000
BUF_SIZE 1 skey s32min-(-2),1-s32max
BUF_SIZE 4 aug 0-s32max
BUF_SIZE 4 aug 0-s32max
CAPPED_DATA 5 hlen 1
DATA_SOURCE 4 aug r _kmalloc_noprof
DATA_SOURCE 5 hlen $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hmac_id unit_array_size
BYTE_COUNT 4 ==aug5 8050
HALF_LOCKED2 &pool->lock

drivers/nvme/target/auth.c nvmet_auth_host_hash() -> nvme_auth_augmented_challenge()

Type Parameter Key Value
PARAM_VALUE 0 hmac_id 1-3
PARAM_VALUE 2 skey_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 4 aug 16,4096-ptr_max
PARAM_VALUE 5 hlen 0-4000000
BUF_SIZE 1 skey s32min-(-2),1-s32max
BUF_SIZE 3 challenge 1-255
BUF_SIZE 4 aug 0-s32max
BUF_SIZE 4 aug 0-s32max
CAPPED_DATA 5 hlen 1
DATA_SOURCE 4 aug r _kmalloc_noprof
DATA_SOURCE 5 hlen $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hmac_id unit_array_size
UNITS 5 hlen unit_byte
BYTE_COUNT 4 ==aug5 8050
HALF_LOCKED2 &pool->lock