Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

fs/smb/client/smbencrypt.c E_md4hash() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 7211052550863659008
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 128
PARAM_VALUE 3 codepage 1-u64max
BUF_SIZE 0 to 258
DATA_SOURCE 1 from $0
DATA_SOURCE 3 codepage $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->server->_srv_mutex
LOCK2 &ses->session_mutex
TYPE_LOCK (struct TCP_Server_Info)->_srv_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifs_unicode.c cifsConvertToUTF16() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 2 len 4096
BUF_SIZE 0 to (-1),2-2020204
BUF_SIZE 0 to (-1),2-2020204
BUF_SIZE 1 from s32min-s32max
DATA_SOURCE 0 to $0
DATA_SOURCE 1 from $1
DATA_SOURCE 3 codepage $3
STR_LEN 0 to (-1)-1010101
STR_LEN 0 to (-1)-1010101
STR_LEN 1 from (-1)-1010101
STR_LEN 1 from (-1)-1010101
RX_PATH
TASK_NOT_RUNNING
UNITS 1 from unit_byte

fs/smb/client/smb2pdu.c SMB2_tcon() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 0-1010101
BUF_SIZE 0 to 672
BUF_SIZE 0 to 672
BUF_SIZE 1 from (-1),89,1284-1285
BUF_SIZE 1 from (-1),89,1284-1285
DATA_SOURCE 0 to r _kmalloc_noprof
DATA_SOURCE 1 from $2
DATA_SOURCE 3 codepage $4
STR_LEN 0 to 0-1010101
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ses->session_mutex

fs/smb/client/smb2pdu.c alloc_path_with_tree_prefix() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 2 len 0-1282
PARAM_VALUE 3 codepage 4096-ptr_max
BUF_SIZE 0 to 2-2147483649
BUF_SIZE 3 codepage (-1),64
BUF_SIZE 3 codepage (-1),64
DATA_SOURCE 0 to r _kzalloc_noprof
DATA_SOURCE 1 from $3 [m]
DATA_SOURCE 3 codepage r load_nls_default
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/smb/client/smb2pdu.c build_netname_ctxt() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 1 from 4096-ptr_max
PARAM_VALUE 2 len 100
PARAM_VALUE 3 codepage 4096-ptr_max
BUF_SIZE 1 from 1-s32max
BUF_SIZE 1 from 1-s32max
BUF_SIZE 3 codepage (-1),64
BUF_SIZE 3 codepage (-1),64
DATA_SOURCE 1 from $1
DATA_SOURCE 3 codepage r load_nls_default
RX_PATH
TASK_NOT_RUNNING
LOCK2 &pserver->_srv_mutex
LOCK2 &ses->session_mutex
TYPE_LOCK (struct TCP_Server_Info)->_srv_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/sess.c cifs_security_buffer_from_str() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 0,16,65,256
PARAM_VALUE 3 codepage 1-u64max
BUF_SIZE 1 from (-1),65
BUF_SIZE 1 from (-1),65
DATA_SOURCE 1 from $1
DATA_SOURCE 2 len $2
DATA_SOURCE 3 codepage $5
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifsencrypt.c build_avpair_blob() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 *to 0-255
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 0-1010101
PARAM_VALUE 3 codepage 1-u64max
CAPPED_DATA 2 len 1
DATA_SOURCE 2 len r __fortify_strlen
DATA_SOURCE 3 codepage $1
STR_LEN 0 to 0-1010101
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 to unit_byte
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifsencrypt.c calc_ntlmv2_hash() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 1-1010101
PARAM_VALUE 3 codepage 1-u64max
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 3 codepage $2
STR_LEN 0 to 1-1010101
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->server->_srv_mutex
LOCK2 &ses->session_mutex
TYPE_LOCK (struct TCP_Server_Info)->_srv_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifsencrypt.c calc_ntlmv2_hash() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 0-1010101
PARAM_VALUE 3 codepage 1-u64max
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
DATA_SOURCE 3 codepage $2
STR_LEN 0 to 0-1010101
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->server->_srv_mutex
LOCK2 &ses->session_mutex
TYPE_LOCK (struct TCP_Server_Info)->_srv_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifsencrypt.c calc_ntlmv2_hash() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 2 len 0-48
PARAM_VALUE 3 codepage 1-u64max
BUF_SIZE 0 to 2-98
BUF_SIZE 0 to 2-98
BUF_SIZE 1 from 49
CAPPED_DATA 2 len 1
DATA_SOURCE 0 to r _kmalloc_noprof
DATA_SOURCE 2 len r __fortify_strlen
DATA_SOURCE 3 codepage $2
STR_LEN 0 to 0-48
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->server->_srv_mutex
LOCK2 &ses->session_mutex
TYPE_LOCK (struct TCP_Server_Info)->_srv_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifsencrypt.c set_auth_key_response() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 1 from 4096-ptr_max
PARAM_VALUE 2 len 0-1010106
BUF_SIZE 1 from 6-1010107
BUF_SIZE 1 from 6-1010107
CAPPED_DATA 2 len 1
DATA_SOURCE 1 from r _kmalloc_noprof
DATA_SOURCE 2 len r scnprintf
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &ses->server->_srv_mutex
LOCK2 &ses->session_mutex
TYPE_LOCK (struct TCP_Server_Info)->_srv_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/smb1session.c unicode_domain_string() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 256
PARAM_VALUE 3 codepage 4096-ptr_max
DATA_SOURCE 3 codepage $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/smb1session.c unicode_oslm_strings() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 1 from 8448185770134503424
PARAM_VALUE 2 len 32
BUF_SIZE 1 from 15
DATA_SOURCE 3 codepage $1
STR_LEN 0 to 14
TERMINATED 1 from 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/smb1session.c unicode_oslm_strings() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 2 len 32
PARAM_VALUE 3 codepage 4096-ptr_max
BUF_SIZE 1 from 65
DATA_SOURCE 3 codepage $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/smb1session.c unicode_oslm_strings() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 1 from 4405815442446135296
PARAM_VALUE 2 len 32
PARAM_VALUE 3 codepage 4096-ptr_max
BUF_SIZE 1 from 26
DATA_SOURCE 3 codepage $1
STR_LEN 0 to 25
TERMINATED 1 from 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/smb1session.c unicode_ssetup_strings() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 1 from 1-u64max
PARAM_VALUE 2 len 256
DATA_SOURCE 3 codepage $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/cifssmb.c CIFSTCon() -> cifs_strtoUTF16()

Type Parameter Key Value
PARAM_VALUE 0 to 4097-18446744073709547521
PARAM_VALUE 0 *to 0-255
BUF_SIZE 1 from (-1),89,1284-1285
BUF_SIZE 1 from (-1),89,1284-1285
DATA_SOURCE 1 from $2
DATA_SOURCE 3 codepage $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ses->session_mutex