Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

fs/namespace.c attach_recursive_mnt() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
RX_PATH
LOCK2 global &mount_lock.lock

fs/namespace.c attach_recursive_mnt() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
RX_PATH
LOCK2 global &mount_lock.lock

fs/namespace.c check_for_nsfs_mounts() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &namespace_sem

fs/namespace.c cleanup_group_ids() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
BUF_SIZE 0 p (-1)-s32max
BUF_SIZE 0 p (-1)-s32max
BUF_SIZE 1 root (-1)-s32max
BUF_SIZE 1 root (-1)-s32max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
RX_PATH
HALF_LOCKED2 global &namespace_sem

fs/namespace.c collect_paths() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 &root->mnt_child 1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &audit_cmd_mutex.lock
LOCK2 global &namespace_sem
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read

fs/namespace.c commit_tree() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
RX_PATH
LOCK2 global &mount_lock.lock

fs/namespace.c copy_mnt_ns() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 1 root 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &namespace_sem
HALF_LOCKED2 &tsk->signal->exec_update_lock

fs/namespace.c copy_mnt_ns() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root r copy_tree
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &namespace_sem
HALF_LOCKED2 &tsk->signal->exec_update_lock

fs/namespace.c copy_mnt_ns() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 1 root 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &namespace_sem
HALF_LOCKED2 &tsk->signal->exec_update_lock

fs/namespace.c copy_tree() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 1 &root->mnt_child 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &namespace_sem

fs/namespace.c count_mounts() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
BUF_SIZE 0 p (-1)-s32max
BUF_SIZE 0 p (-1)-s32max
BUF_SIZE 1 root (-1)-s32max
BUF_SIZE 1 root (-1)-s32max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
RX_PATH

fs/namespace.c create_new_namespace() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 1 root 1
NS_CAPABLE 0 21
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
LOCK2 &to_path.dentry->d_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/namespace.c do_change_type() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root r real_mount
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
LOCK2 global &namespace_sem

fs/namespace.c get_detached_copy() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root r __do_loopback
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
LOCK2 global &namespace_sem

fs/namespace.c init_mount_tree() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root r real_mount
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
LOCK2 &root.dentry->d_inode->i_rwsem
LOCK2 global &namespace_sem
TYPE_LOCK (struct inode)->i_rwsem

fs/namespace.c invent_group_ids() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
BUF_SIZE 0 p (-1)-s32max
BUF_SIZE 0 p (-1)-s32max
BUF_SIZE 1 root (-1)-s32max
BUF_SIZE 1 root (-1)-s32max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
RX_PATH
HALF_LOCKED2 global &namespace_sem

fs/namespace.c lock_mnt_tree() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 &p->mnt_expire 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
BIT_INFO 0 p->mnt.mnt_flags 0x40000,0x7fffffff
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &mount_lock.lock
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem
HALF_LOCKED2 global &namespace_sem

fs/namespace.c may_umount_tree() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root r real_mount
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
LOCK2 global &mount_lock.lock

fs/namespace.c mount_setattr_commit() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
LOCK2 global &mount_lock.lock
HALF_LOCKED2 global &namespace_sem

fs/namespace.c mount_setattr_prepare() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
CAPPED_DATA 1 root->mnt_ns 1
DATA_SOURCE 1 root $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
LOCK2 global &mount_lock.lock
HALF_LOCKED2 global &namespace_sem

fs/namespace.c mount_setattr_prepare() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
CAPPED_DATA 1 root->mnt_ns 1
DATA_SOURCE 1 root $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
LOCK2 global &mount_lock.lock
HALF_LOCKED2 global &namespace_sem

fs/namespace.c mount_setattr_prepare() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
CAPPED_DATA 1 root->mnt_ns 1
DATA_SOURCE 0 p r next_mnt
DATA_SOURCE 1 root $1
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 0 &p->mnt_mounts == $0->mnt_mounts.next
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
LOCK2 global &mount_lock.lock
HALF_LOCKED2 global &namespace_sem

fs/namespace.c tree_contains_unbindable() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 root 4096-ptr_max
CAPPED_DATA 0 p 1
CAPPED_DATA 1 root 1
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
BIT_INFO 0 p->mnt_t_flags 0x0,0xfffffffd

fs/namespace.c umount_tree() -> next_mnt()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
DATA_SOURCE 1 root $0
PARAM_COMPARE 0 p == $1
PARAM_COMPARE 1 root == $0
PARAM_COMPARE 1 root == $0
BIT_INFO 0 p->mnt.mnt_flags 0x8000000,0xffffffffffffffff
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &mount_lock.lock
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem
HALF_LOCKED2 global &namespace_sem