Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

fs/smb/client/reparse.c create_native_symlink() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 16,4096-ptr_max
PARAM_VALUE 1 maxlen 4060
BUF_SIZE 0 ucs1 s32min-s32max
RX_PATH
TASK_NOT_RUNNING

fs/smb/client/reparse.c parse_reparse_nfs() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 1 maxlen 1-32763
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &sb->s_umount
HALF_LOCKED2 global &cifs_mount_mutex

fs/smb/client/reparse.c smb2_parse_native_symlink() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 4096-ptr_max
PARAM_VALUE 1 maxlen 1-s16max
DATA_SOURCE 0 ucs1 $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ucs1 unit_byte

fs/smb/client/smb2pdu.c SMB2_open_init() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 16,4096-ptr_max
PARAM_VALUE 1 maxlen 4096
DATA_SOURCE 0 ucs1 $5
RX_PATH
TASK_NOT_RUNNING

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

Type Parameter Key Value
PARAM_VALUE 0 ucs1 16,4096-ptr_max
PARAM_VALUE 1 maxlen 4096
DATA_SOURCE 0 ucs1 $4
RX_PATH
TASK_NOT_RUNNING

fs/smb/client/smb2pdu.c smb311_posix_mkdir() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 16,4096-ptr_max
PARAM_VALUE 1 maxlen 4096
BUF_SIZE 0 ucs1 s32min-s32max
DATA_SOURCE 0 ucs1 r cifs_convert_path_to_utf16
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &direntry->d_lockref.lock

fs/smb/client/smb2inode.c smb2_set_path_attr() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 16,4096-ptr_max
PARAM_VALUE 1 maxlen 4096
BUF_SIZE 0 ucs1 s32min-s32max
DATA_SOURCE 0 ucs1 r cifs_convert_path_to_utf16
RX_PATH
TASK_NOT_RUNNING

fs/smb/client/smb1session.c decode_unicode_ssetup() -> UniStrnlen()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/smb1session.c decode_unicode_ssetup() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 4096-ptr_max
PARAM_VALUE 1 maxlen 0-1073741823
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ses->session_mutex
TYPE_LOCK (struct cifs_ses)->session_mutex

fs/smb/client/inode.c cifs_sfu_type() -> UniStrnlen()

Type Parameter Key Value
PARAM_VALUE 0 ucs1 16,4096-ptr_max
PARAM_VALUE 0 *ucs1 0-255
PARAM_VALUE 1 maxlen 1-s16max
CAPPED_DATA 1 maxlen 1
DATA_SOURCE 0 ucs1 r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &cifs_mount_mutex