Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 24 files:
- arch/powerpc/platforms/cell/spufs/inode.c
- drivers/tty/pty.c, line 602
- fs/autofs/dev-ioctl.c, line 241
- fs/ecryptfs/file.c, line 295
- fs/ecryptfs/kthread.c
- fs/exportfs/expfs.c, line 311
- fs/namespace.c
- fs/nfsd/vfs.c, line 935
- fs/nsfs.c
- fs/open.c, line 1132
- fs/overlayfs/inode.c, line 627
- fs/overlayfs/util.c, line 685
- fs/pidfs.c, line 939
- fs/smb/server/smb2pdu.c, line 3767
- fs/smb/server/vfs.c, line 1146
- fs/xfs/xfs_handle.c, line 274
- include/linux/fs.h, line 2550
- ipc/mqueue.c, line 903
- kernel/acct.c, line 240
- kernel/trace/bpf_trace.c, line 972
- net/unix/af_unix.c, line 3280
- security/apparmor/file.c, line 743
- security/integrity/ima/ima_crypto.c, line 269
- security/keys/big_key.c, line 246
Smatch caller information:
fs/pidfs.c pidfs_dentry_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 2727985322429325312,9005253064895164416 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt->mnt_sb->s_export_op->open | 0,631201664538705920,4233052046380007424 |
| PARAM_VALUE | 1 | flags | s32min-0,2-s32max |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 2 | cred | $2 |
| BIT_INFO | 1 | flags | 0x2,0xffff7fff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | flags | 0,2-s32max[c] |
security/apparmor/file.c aa_inherit_files() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 5013702961461776384 |
| PARAM_VALUE | 1 | flags | 2 |
| PARAM_VALUE | 2 | cred | 4096-ptr_max |
| DATA_SOURCE | 2 | cred | $0 |
fs/ecryptfs/kthread.c ecryptfs_privileged_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4134969166426103816 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32768,32770 |
| DATA_SOURCE | 2 | cred | $3 |
| BIT_INFO | 1 | flags | 0x8000,0x8003 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &inode_info->lower_file_mutex | ||
| HALF_LOCKED2 | &crypt_stat->cs_mutex | ||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| TYPE_LOCK | (struct ecryptfs_inode_info)->lower_file_mutex |
fs/ecryptfs/kthread.c ecryptfs_threadfn() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32770 |
| TASK_NOT_RUNNING | |||
| LOCK2 | global &ecryptfs_kthread_ctl.mux | ||
| TYPE_LOCK | (struct ecryptfs_kthread_ctl)->mux |
fs/overlayfs/inode.c ovl_security_fileattr() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 3202859271892254720,3875295349556146176,6325659418557906944,7226701679351574544 |
| PARAM_VALUE | 0 | path->dentry->d_inode->i_op->readlink | 0,1728600404483375104,2832489546165891072,2874824064778891264,3069732422725099520,4516337085607264256 |
| PARAM_VALUE | 0 | path->dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | path->dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | flags | 32768 |
| BUF_SIZE | 0 | path->dentry | (-1),1-s32max |
| DATA_SOURCE | 0 | path | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | path->dentry->moved->d_inode->i_size |
fs/autofs/dev-ioctl.c autofs_dev_ioctl_open_mountpoint() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 3186819770576539648 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
fs/overlayfs/util.c ovl_path_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->dentry->d_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,32768-32769,262144,294912-294913 |
| BUF_SIZE | 0 | path->dentry | (-1),1-s32max |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 1 | flags | $1 [m] |
| BIT_INFO | 1 | flags | 0x0,0x48001 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | flags | 32768,294912[c] |
net/unix/af_unix.c unix_open_file() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2097152 |
| NS_CAPABLE | 0 | 12 |
drivers/tty/pty.c ptm_open_peer_file() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1863747654685380608 |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| DATA_SOURCE | 1 | flags | $2 |
| USER_DATA | 1 | flags | s32min-s32max |
fs/namespace.c __do_sys_fsmount() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4829325774869012480 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2097152 |
fs/namespace.c __do_sys_fsmount() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4829325774869012480 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2097152 |
fs/namespace.c open_detached_copy() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1977385464597782528 |
| PARAM_VALUE | 0 | path->dentry->d_op | 0-ptr_max |
| PARAM_VALUE | 0 | path->dentry->d_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | path->dentry->d_sb->s_mounts->mnt_pprev_for_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 2097152 |
| BUF_SIZE | 0 | path->mnt | (-1),32 |
| DATA_SOURCE | 0 | path | $0 |
fs/namespace.c vfs_open_tree() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1977385464597782528 |
| PARAM_VALUE | 1 | flags | 2097152 |
fs/nfsd/vfs.c __nfsd_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 8814362761178370048 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32768-32770 |
| FUZZY_MAX | 1 | flags | 32770 |
| BIT_INFO | 1 | flags | 0x8000,0x8003 |
| HARD_MAX | 1 | flags | 32770 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/drm_lease.c file_clone_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
fs/nsfs.c ns_ioctl() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4349835120153522176 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
fs/nsfs.c open_namespace() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 8160041564820717568 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| HALF_LOCKED2 | &_T->lock->alloc_lock |
fs/nsfs.c open_namespace_file() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 564267100638564352 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| NS_CAPABLE | 0 | 21 | |
| LOCK2 | &to_path.dentry->d_inode->i_rwsem |
kernel/acct.c acct_on() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1649764528820232192 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 33793 |
| CAPABLE | 0 | 20 | |
| LOCK2 | global &acct_on_mutex |
fs/smb/server/vfs.c ksmbd_vfs_lookup_in_dir() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4183692766515249152 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32768 |
| DATA_SOURCE | 0 | path | $0 |
fs/exportfs/expfs.c get_name() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 9216653979525791744 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->dentry->d_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | path->dentry->d_inode->i_fop | 1-u64max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| DATA_SOURCE | 0 | path | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &child->d_lockref.lock |
fs/ecryptfs/file.c ecryptfs_dir_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 7516688162658324480 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | flags | s32min-s32max |
security/keys/big_key.c big_key_read() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| LOCK2 | &key->sem | ||
| TYPE_LOCK | (struct key)->sem |
security/integrity/ima/ima_crypto.c ima_calc_file_hash() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | s32min-0,2-s32max |
| BIT_INFO | 1 | flags | 0x0,0x7fffb83e |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &iint->mutex |
security/selinux/hooks.c flush_unauthorized_files() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 8543933401184522240 |
| PARAM_VALUE | 1 | flags | 2 |
| PARAM_VALUE | 2 | cred | 4096-ptr_max |
| DATA_SOURCE | 2 | cred | $0 |
fs/binfmt_misc.c file_clone_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
fs/xfs/xfs_handle.c xfs_open_by_handle() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 5394721921323237376 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | s32min-0,32768-s32max |
| CAPABLE | 0 | 21 | |
| BIT_INFO | 1 | flags | 0x8000,0xffffffff |
| USER_DATA | 1 | flags | s32min-0,32768-s32max |
ipc/mqueue.c mqueue_file_open() -> dentry_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1582628707651747840 |
| PARAM_VALUE | 0 | path->dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| DATA_SOURCE | 1 | flags | $2 |
| USER_DATA | 1 | flags | s32min-s32max |