Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/smb/server/unicode.c smbConvertToUTF16() -> smb_strtoUTF16()

Type Parameter Key Value
BUF_SIZE 0 to s32min-(-1),1-4096
BUF_SIZE 0 to s32min-(-1),1-4096
BUF_SIZE 1 from (-1),1-1010103
BUF_SIZE 1 from (-1),1-1010103
DATA_SOURCE 0 to $0
DATA_SOURCE 1 from $1
DATA_SOURCE 2 len $2
DATA_SOURCE 3 codepage $3
STR_LEN 0 to (-1)-1010102
STR_LEN 0 to (-1)-1010102
STR_LEN 1 from (-1),1-2
STR_LEN 1 from (-1),1-2
PREEMPT_ADD
UNITS 2 len unit_byte
LOCK2 &pool->lock
HALF_LOCKED2 &dentry->d_lockref.lock

fs/smb/server/auth.c calc_ntlmv2_hash() -> smb_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 4096-ptr_max
PARAM_VALUE 2 len 0-1010101
BUF_SIZE 0 to 2-2020204
BUF_SIZE 0 to 2-2020204
CAPPED_DATA 2 len 1
DATA_SOURCE 0 to r _kzalloc_noprof
DATA_SOURCE 2 len r __fortify_strlen
LOCK2 &conn->srv_mutex
LOCK2 &pool->lock
TYPE_LOCK (struct ksmbd_conn)->srv_mutex

fs/smb/server/auth.c calc_ntlmv2_hash() -> smb_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 16,4096-ptr_max
PARAM_VALUE 2 len 0-1010101
PARAM_VALUE 3 codepage 4096-ptr_max
BUF_SIZE 0 to 2-2020204
BUF_SIZE 0 to 2-2020204
CAPPED_DATA 2 len 1
DATA_SOURCE 0 to r _kzalloc_noprof
DATA_SOURCE 1 from $3
DATA_SOURCE 2 len r __fortify_strlen
STR_LEN 0 to 0-1010101
LOCK2 &conn->srv_mutex
LOCK2 &pool->lock
TYPE_LOCK (struct ksmbd_conn)->srv_mutex

fs/smb/server/auth.c ksmbd_build_ntlmssp_challenge_blob() -> smb_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 2 len 0-1010101
BUF_SIZE 0 to 2-2020204
BUF_SIZE 0 to 2-2020204
CAPPED_DATA 2 len 1
DATA_SOURCE 0 to r _kmalloc_noprof
DATA_SOURCE 2 len r __fortify_strlen
LOCK2 &conn->srv_mutex
LOCK2 &pool->lock
TYPE_LOCK (struct ksmbd_conn)->srv_mutex