Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 16 files:

Smatch caller information:

fs/ubifs/budget.c can_use_rp() -> in_group_p()

Type Parameter Key Value
CAPABLE 0 24
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &c->space_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &target->i_rwsem

fs/proc/base.c has_pid_permissions() -> in_group_p()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

fs/f2fs/inode.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sbi->stat_lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct f2fs_sb_info)->stat_lock

fs/f2fs/segment.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
LOCK2 &inode->i_rwsem
LOCK2 &sbi->cp_rwsem.internal_rwsem
LOCK2 &sbi->stat_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct f2fs_sb_info)->stat_lock
TYPE_LOCK (struct inode)->i_rwsem

ipc/util.c ipcperms() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
LOCK2 rcu_read
HALF_LOCKED2 &ids->rwsem
HALF_LOCKED2 &msq->q_perm.lock

ipc/util.c ipcperms() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
LOCK2 rcu_read
HALF_LOCKED2 &ids->rwsem
HALF_LOCKED2 &msq->q_perm.lock

fs/f2fs/data.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sbi->stat_lock
TYPE_LOCK (struct f2fs_sb_info)->stat_lock

fs/configfs/inode.c configfs_setattr() -> in_group_p()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock

io_uring/io_uring.c io_uring_allowed() -> in_group_p()

Type Parameter Key Value
DATA_SOURCE 0 grp r make_kgid
CAPABLE 0 21

security/keys/keyctl.c keyctl_chown_key() -> in_group_p()

Type Parameter Key Value
LOCK2 &key->sem
TYPE_LOCK (struct key)->sem

fs/f2fs/xattr.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sbi->stat_lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct f2fs_sb_info)->stat_lock

security/commoncap.c cap_bprm_creds_from_file() -> in_group_p()

Type Parameter Key Value

fs/f2fs/namei.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sbi->stat_lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct f2fs_sb_info)->stat_lock

fs/ext2/balloc.c ext2_has_free_blocks() -> in_group_p()

Type Parameter Key Value
CAPABLE 0 24
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ei->truncate_mutex

fs/hugetlbfs/inode.c can_do_hugetlb_shm() -> in_group_p()

Type Parameter Key Value
DATA_SOURCE 0 grp r make_kgid
CAPABLE 0 14
LOCK2 &ids->rwsem
TYPE_LOCK (struct ipc_ids)->rwsem

fs/f2fs/file.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sbi->stat_lock
HALF_LOCKED2 &inode->i_mapping->invalidate_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &sbi->cp_rwsem.internal_rwsem
TYPE_LOCK (struct f2fs_sb_info)->stat_lock

fs/ubifs/file.c do_attr_changes() -> in_group_p()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ui->ui_mutex
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct ubifs_inode)->ui_mutex

fs/smb/client/misc.c backup_cred() -> in_group_p()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/refcounttree.c ocfs2_vfs_reflink() -> in_group_p()

Type Parameter Key Value

fs/mnt_idmapping.c vfsgid_in_group_p() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/ext4/balloc.c ext4_has_free_clusters() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/f2fs/node.c __allow_reserved_root() -> in_group_p()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sbi->stat_lock
HALF_LOCKED2 &sbi->cp_global_sem.internal_rwsem
TYPE_LOCK (struct f2fs_sb_info)->stat_lock