Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
Smatch caller information:
fs/smb/client/cifsacl.c build_sec_desc() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 1 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r from_kuid |
| DATA_SOURCE | 2 | ssid | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &direntry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &direntry->d_lockref.lock | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/smb/client/cifsacl.c build_sec_desc() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 2 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r from_kgid |
| DATA_SOURCE | 2 | ssid | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &direntry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &direntry->d_lockref.lock | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/smb/server/smbacl.c build_sec_desc() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 1,5 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r from_kuid |
| DATA_SOURCE | 2 | ssid | r _kmalloc_noprof |
| FUZZY_MAX | 1 | sidtype | 5 |
| BIT_INFO | 1 | sidtype | 0x1,0x5 |
| HARD_MAX | 1 | sidtype | 5 |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smbacl.c build_sec_desc() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 6 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r from_kgid |
| DATA_SOURCE | 2 | ssid | r _kmalloc_noprof |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smbacl.c set_posix_acl_entries_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 1,5 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| PARAM_VALUE | 2 | *ssid->sub_auth | 0-4294967295 |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r posix_acl_uid_translate |
| DATA_SOURCE | 2 | ssid | r _kmalloc_noprof |
| FUZZY_MAX | 1 | sidtype | 5 |
| BIT_INFO | 1 | sidtype | 0x1,0x5 |
| HARD_MAX | 1 | sidtype | 5 |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smbacl.c set_posix_acl_entries_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 6 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| PARAM_VALUE | 2 | *ssid->sub_auth | 0-4294967295 |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r posix_acl_gid_translate |
| DATA_SOURCE | 2 | ssid | r _kmalloc_noprof |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smbacl.c set_posix_acl_entries_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 3 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| PARAM_VALUE | 2 | *ssid->authority | 0-255 |
| PARAM_VALUE | 2 | *ssid->sub_auth | 0-4294967295 |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r posix_acl_uid_translate |
| DATA_SOURCE | 2 | ssid | r _kmalloc_noprof |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smbacl.c set_posix_acl_entries_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 4 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| PARAM_VALUE | 2 | *ssid->authority | 0-255 |
| PARAM_VALUE | 2 | *ssid->sub_auth | 0-4294967295 |
| BUF_SIZE | 2 | ssid | 68 |
| DATA_SOURCE | 0 | cid | r posix_acl_gid_translate |
| DATA_SOURCE | 2 | ssid | r _kmalloc_noprof |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smbacl.c smb_check_perm_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 1,5 |
| PARAM_VALUE | 2 | ssid | 8271911337673945088 |
| DATA_SOURCE | 0 | cid | $4 |
| FUZZY_MAX | 1 | sidtype | 5 |
| BIT_INFO | 1 | sidtype | 0x1,0x5 |
| HARD_MAX | 1 | sidtype | 5 |
| NOCHECK_CALL | |||
| LOCK2 | &dir_fp->readdir_lock | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_file)->readdir_lock |
fs/smb/server/smbacl.c smb_inherit_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 1 |
| PARAM_VALUE | 2 | ssid | 1563889433997905920 |
| DATA_SOURCE | 0 | cid | $2 |
| NOCHECK_CALL |
fs/smb/server/smbacl.c smb_inherit_dacl() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | sidtype | 6 |
| PARAM_VALUE | 2 | ssid | 693938085112299520 |
| DATA_SOURCE | 0 | cid | $3 |
| NOCHECK_CALL |
fs/smb/server/smb2pdu.c find_file_posix_info() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cid | 0-4294967294 |
| PARAM_VALUE | 1 | sidtype | 5 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c find_file_posix_info() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cid | 0-4294967294 |
| PARAM_VALUE | 1 | sidtype | 6 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_populate_readdir_entry() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cid | 0-4294967294 |
| PARAM_VALUE | 1 | sidtype | 5 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| BUF_SIZE | 2 | ssid | 32 |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock | ||
| HALF_LOCKED2 | &dir->readdir_lock | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| TYPE_LOCK | (struct ksmbd_file)->readdir_lock |
fs/smb/server/smb2pdu.c smb2_populate_readdir_entry() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cid | 0-4294967294 |
| PARAM_VALUE | 1 | sidtype | 6 |
| PARAM_VALUE | 2 | ssid | 4096-ptr_max |
| BUF_SIZE | 2 | ssid | 16 |
| NOCHECK_CALL | |||
| LOCK2 | &pool->lock | ||
| HALF_LOCKED2 | &dir->readdir_lock | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| TYPE_LOCK | (struct ksmbd_file)->readdir_lock |
fs/smb/server/oplock.c create_posix_rsp_buf() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cid | 0-4294967294 |
| PARAM_VALUE | 1 | sidtype | 1 |
| BUF_SIZE | 2 | ssid | 44 |
| NOCHECK_CALL |
fs/smb/server/oplock.c create_posix_rsp_buf() -> id_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cid | 0-4294967294 |
| PARAM_VALUE | 1 | sidtype | 6 |
| BUF_SIZE | 2 | ssid | 16 |
| NOCHECK_CALL |