Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/namespace.c get_sequential_mnt_ns() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
DATA_SOURCE 0 ns r __ns_tree_adjoined_rcu
LOCK2 rcu_read

fs/namespace.c grab_requested_mnt_ns() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
BUF_SIZE 0 ns s32min-(-2),1-s32max
BUF_SIZE 0 ns s32min-(-2),1-s32max
UNITS 0 ns unit_array_size

fs/namespace.c mnt_ns_from_dentry() -> to_mnt_ns()

Type Parameter Key Value
BUF_SIZE 0 ns s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ns unit_array_size

fs/namespace.c mntns_get() -> to_mnt_ns()

Type Parameter Key Value
BUF_SIZE 0 ns 256
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &task->alloc_lock
HALF_LOCKED2 &task->signal->exec_update_lock
TYPE_LOCK (struct task_struct)->alloc_lock

fs/namespace.c mntns_install() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
DATA_SOURCE 0 ns $1

fs/namespace.c mntns_owner() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
BUF_SIZE 0 ns s32min-(-1),1-s32max
BUF_SIZE 0 ns s32min-(-1),1-s32max
DATA_SOURCE 0 ns $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &ns_tree_lock.lock

fs/namespace.c mntns_put() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
BUF_SIZE 0 ns s32min-s32max
DATA_SOURCE 0 ns $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &task->signal->exec_update_lock

fs/nsfs.c is_current_namespace() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
DATA_SOURCE 0 ns $0
LOCK2 rcu_read

fs/nsfs.c ns_ioctl() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
BUF_SIZE 0 ns s32min-(-2),1-s32max
BUF_SIZE 0 ns s32min-(-2),1-s32max
UNITS 0 ns unit_array_size

fs/nsfs.c ns_ioctl() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
BUF_SIZE 0 ns s32min-(-2),1-s32max
BUF_SIZE 0 ns s32min-(-2),1-s32max
UNITS 0 ns unit_array_size

fs/nsfs.c ns_ioctl() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
BUF_SIZE 0 ns 256
CAPPED_DATA 0 &ns->stashed 1
UNITS 0 ns unit_array_size

fs/nsfs.c nsfs_fh_to_dentry() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
DATA_SOURCE 0 ns r ns_tree_lookup_rcu
RX_PATH
TASK_NOT_RUNNING

fs/nsfs.c nsfs_fh_to_dentry() -> to_mnt_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
DATA_SOURCE 0 ns r ns_tree_lookup_rcu
RX_PATH
TASK_NOT_RUNNING