Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/smb/client/cifs_unicode.c cifs_strndup_from_utf16() -> cifs_from_utf16()

Type Parameter Key Value
PARAM_VALUE 0 to 16,4096-ptr_max
PARAM_VALUE 2 tolen 0-4000000
PARAM_VALUE 4 codepage 4096-ptr_max
PARAM_VALUE 4 codepage->uni2char 4096-ptr_max
PARAM_VALUE 5 map_type 0
BUF_SIZE 0 to 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 to 0-s32max,18446744071562067968-u64max
BUF_SIZE 1 from (-1),2-131062
BUF_SIZE 1 from (-1),2-131062
DATA_SOURCE 0 to r _kmalloc_noprof
DATA_SOURCE 1 from $0
DATA_SOURCE 3 fromlen $1
DATA_SOURCE 4 codepage $3
STR_LEN 0 to (-1)
STR_LEN 1 from (-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 from unit_byte
UNITS 3 fromlen unit_byte
BYTE_COUNT 0 ==to2 8050
HALF_LOCKED2 &ses->session_mutex

fs/smb/client/readdir.c cifs_filldir() -> cifs_from_utf16()

Type Parameter Key Value
PARAM_VALUE 0 to 4096-ptr_max
PARAM_VALUE 0 *to 0
PARAM_VALUE 1 from 0
PARAM_VALUE 2 tolen 1022
PARAM_VALUE 5 map_type 0-2
BUF_SIZE 0 to 1022
BUF_SIZE 0 to 1022
CAPPED_DATA 3 fromlen 1
DATA_SOURCE 0 to $3
DATA_SOURCE 5 map_type r cifs_remap
RX_PATH
TASK_NOT_RUNNING
UNITS 0 to unit_byte
UNITS 1 from unit_byte
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/cifsencrypt.c find_av_name() -> cifs_from_utf16()

Type Parameter Key Value
PARAM_VALUE 0 to 16,4096-ptr_max
PARAM_VALUE 3 fromlen 1-u16max
PARAM_VALUE 5 map_type 0
BUF_SIZE 0 to 0-u16max
DATA_SOURCE 0 to r _kmalloc_noprof
PARAM_COMPARE 2 tolen <= $3
PARAM_COMPARE 3 fromlen >= $2
BIT_INFO 3 fromlen 0x0,0xfffe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 fromlen unit_byte
BYTE_COUNT 0 ==to2 8050
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex