Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/net/tun.c, line 3524
- drivers/tty/tty_io.c, line 2210
- fs/fcntl.c
- fs/locks.c, line 595
- fs/notify/dnotify/dnotify.c, line 369
Smatch caller information:
drivers/tty/tty_io.c __tty_fasync() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_flags | 0,8192-u32max |
| PARAM_VALUE | 0 | filp->f_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_sb->s_cop->inode_info_offs | 1632,1640,1808,1816,2632,2640,2648,2704,2712 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_sb->s_cop->empty_dir | 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_sb->s_cop->get_context | 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_sb->s_cop->set_context | 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | filp->f_path.mnt->mnt_sb->s_export_op->flags | 0,127 |
| PARAM_VALUE | 0 | filp->private_data | 4096-ptr_max |
| PARAM_VALUE | 1 | pid | 0,4096-ptr_max |
| PARAM_VALUE | 2 | type | 1-2 |
| PARAM_VALUE | 3 | force | 0 |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp->private_data | (-1),26 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $1 |
| FUZZY_MAX | 2 | type | 2 |
| HARD_MAX | 2 | type | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | filp->f_flags | 0,8192-u32max |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_linklen | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.moved->d_inode->i_size | |
| LOCK2 | &tty->legacy_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
fs/notify/dnotify/dnotify.c fcntl_dirnotify() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 1 |
| PARAM_VALUE | 3 | force | 0 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | global &dnotify_group->mark_mutex | ||
| HALF_LOCKED2 | &fsn_mark->lock | ||
| HALF_LOCKED2 | &new_fsn_mark->lock | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex | ||
| TYPE_LOCK | (struct fsnotify_mark)->lock |
fs/locks.c lease_setup() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_flags | 0,8192-u32max |
| PARAM_VALUE | 0 | filp->f_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | type | 1 |
| PARAM_VALUE | 3 | force | 0 |
| CAPPED_DATA | 0 | filp | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | filp->f_flags | 0,8192-u32max |
| UNITS | 0 | filp | unit_byte |
| LOCK2 | &ctx->flc_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
drivers/net/tun.c tun_chr_fasync() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 0 | filp->f_flags | 0,8192-u32max |
| PARAM_VALUE | 0 | filp->f_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_op->fasync | 1-u64max |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_sb->s_cop->empty_dir | 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_sb->s_cop->get_context | 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_sb->s_cop->inode_info_offs | 1632,1640,1808,1816,2632,2640,2648,2704,2712 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_sb->s_cop->set_context | 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_parent->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 0 | filp->f_path.mnt->mnt_sb->s_export_op->flags | 0,127 |
| PARAM_VALUE | 2 | type | 1 |
| PARAM_VALUE | 3 | force | 0 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | filp->f_flags | 0,8192-u32max |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_linklen | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.moved->d_inode->i_size |
fs/fcntl.c f_delown() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pid | 0 |
| PARAM_VALUE | 2 | type | 1 |
| PARAM_VALUE | 3 | force | 1 |
| DATA_SOURCE | 0 | filp | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | filp | unit_byte |
| LOCK2 | &ctx->flc_lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/fcntl.c f_setown() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 1-2 |
| PARAM_VALUE | 3 | force | 1 |
| DATA_SOURCE | 0 | filp | $0 |
| DATA_SOURCE | 3 | force | $2 |
| FUZZY_MAX | 2 | type | 2 |
| HARD_MAX | 2 | type | 2 |
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
fs/fcntl.c f_setown_ex() -> __f_setown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 0-2 |
| PARAM_VALUE | 3 | force | 1 |
| DATA_SOURCE | 0 | filp | $0 |
| DATA_SOURCE | 1 | pid | r find_vpid |
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |