Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/smb/client/cifssmb.c
- fs/smb/client/dfs_cache.c, line 92
- fs/smb/client/inode.c, line 680
- fs/smb/client/misc.c
- fs/smb/client/reparse.c
- fs/smb/client/smb1session.c
Smatch caller information:
fs/smb/client/reparse.c parse_reparse_nfs() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | maxlen | 2-65526 |
| PARAM_VALUE | 2 | is_unicode | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | maxlen | unit_byte |
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | global &cifs_mount_mutex |
fs/smb/client/reparse.c parse_reparse_wsl_symlink() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | is_unicode | 1 |
| BUF_SIZE | 0 | src | 2-131062 |
| BUF_SIZE | 0 | src | 2-131062 |
| DATA_SOURCE | 0 | src | r _kzalloc_noprof |
| 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() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | maxlen | 2-65534 |
| PARAM_VALUE | 2 | is_unicode | 1 |
| DATA_SOURCE | 0 | src | $1 |
| DATA_SOURCE | 1 | maxlen | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | src | unit_byte |
| UNITS | 1 | maxlen | unit_byte |
fs/smb/client/dfs_cache.c dfs_cache_canonical_path() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 16,4096-ptr_max |
| PARAM_VALUE | 1 | maxlen | 0-4000000 |
| PARAM_VALUE | 2 | is_unicode | 1 |
| PARAM_VALUE | 3 | codepage | 4096-ptr_max |
| BUF_SIZE | 0 | src | s32min-s32max |
| DATA_SOURCE | 0 | src | r cifs_strndup_to_utf16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cifs_mount_mutex |
fs/smb/client/misc.c parse_dfs_referrals() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 2 | is_unicode | $7 |
| DATA_SOURCE | 3 | codepage | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | src | unit_byte |
| UNITS | 1 | maxlen | unit_byte |
fs/smb/client/misc.c parse_dfs_referrals() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 2 | is_unicode | $7 |
| DATA_SOURCE | 3 | codepage | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | src | unit_byte |
| UNITS | 1 | maxlen | unit_byte |
fs/smb/client/smb1session.c decode_unicode_ssetup() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | is_unicode | 1 |
| DATA_SOURCE | 1 | maxlen | $1 |
| DATA_SOURCE | 3 | codepage | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ses->session_mutex | ||
| TYPE_LOCK | (struct cifs_ses)->session_mutex |
fs/smb/client/smb1session.c decode_unicode_ssetup() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | maxlen | 1-s32max |
| PARAM_VALUE | 2 | is_unicode | 1 |
| DATA_SOURCE | 1 | maxlen | $1 [m] |
| DATA_SOURCE | 3 | codepage | $3 |
| FUZZY_MAX | 1 | maxlen | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ses->session_mutex | ||
| TYPE_LOCK | (struct cifs_ses)->session_mutex |
fs/smb/client/smb1session.c decode_unicode_ssetup() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | maxlen | 1-s32max |
| PARAM_VALUE | 2 | is_unicode | 1 |
| DATA_SOURCE | 1 | maxlen | $1 [m] |
| DATA_SOURCE | 3 | codepage | $3 |
| FUZZY_MAX | 1 | maxlen | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ses->session_mutex | ||
| TYPE_LOCK | (struct cifs_ses)->session_mutex |
fs/smb/client/inode.c cifs_sfu_type() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 16,4096-ptr_max |
| PARAM_VALUE | 0 | *src | 0-255 |
| PARAM_VALUE | 1 | maxlen | 2-65534 |
| PARAM_VALUE | 2 | is_unicode | 1 |
| CAPPED_DATA | 1 | maxlen | 1 |
| DATA_SOURCE | 0 | src | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | maxlen | unit_byte |
| HALF_LOCKED2 | global &cifs_mount_mutex |
fs/smb/client/cifssmb.c CIFSSMBUnixQuerySymLink() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 3 | codepage | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cifs_mount_mutex |
fs/smb/client/cifssmb.c CIFSTCon() -> cifs_strndup_from_utf16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| DATA_SOURCE | 3 | codepage | $4 |
| STR_LEN | 0 | src | (-1) |
| STR_LEN | 0 | src | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ses->session_mutex |