Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/cgroup/namespace.c copy_cgroup_ns() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 1 | ns_tree | 8013593300199546880 |
| PARAM_VALUE | 2 | id | 0,5 |
| FUZZY_MAX | 2 | id | 5 |
| NS_CAPABLE | 0 | 21 | |
| HARD_MAX | 2 | id | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/time/namespace.c clone_time_ns() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->__ns_ref.refs.counter | 1 |
| PARAM_VALUE | 0 | ns->__ns_ref_active.counter | 0-1 |
| PARAM_VALUE | 0 | ns->ns_id | 0 |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->stashed | 0 |
| PARAM_VALUE | 1 | ns_tree | 732401172809281536 |
| PARAM_VALUE | 2 | id | 0,6 |
| FUZZY_MAX | 2 | id | 6 |
| HARD_MAX | 2 | id | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/time/namespace.c time_ns_init() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 9106558094946472000 |
| PARAM_VALUE | 1 | ns_tree | 732401172809281536 |
| PARAM_VALUE | 2 | id | 6 |
| NOCHECK_CALL |
kernel/pid_namespace.c create_pid_namespace() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->__ns_ref.refs.counter | 1 |
| PARAM_VALUE | 0 | ns->__ns_ref_active.counter | 0-1 |
| PARAM_VALUE | 0 | ns->ns_id | 0 |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->stashed | 0 |
| PARAM_VALUE | 1 | ns_tree | 1386394329188192256 |
| PARAM_VALUE | 2 | id | 0,4 |
| FUZZY_MAX | 2 | id | 4 |
| HARD_MAX | 2 | id | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/pid_namespace.c pid_namespaces_init() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 5090646797026435392 |
| PARAM_VALUE | 1 | ns_tree | 1386394329188192256 |
| PARAM_VALUE | 2 | id | 4 |
| NOCHECK_CALL |
fs/namespace.c init_mount_tree() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 43159351630516224 |
| PARAM_VALUE | 1 | ns_tree | 2836868247855108096 |
| PARAM_VALUE | 2 | id | 8 |
| NOCHECK_CALL | |||
| LOCK2 | &root.dentry->d_inode->i_rwsem | ||
| LOCK2 | global &namespace_sem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
kernel/cgroup/cgroup.c cgroup_init() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 7536951226330361856 |
| PARAM_VALUE | 1 | ns_tree | 8013593300199546880 |
| PARAM_VALUE | 2 | id | 5 |
| NOCHECK_CALL |
kernel/user_namespace.c create_user_ns() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->__ns_ref.refs.counter | 1 |
| PARAM_VALUE | 0 | ns->__ns_ref_active.counter | 0-1 |
| PARAM_VALUE | 0 | ns->ns_id | 0 |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->stashed | 0 |
| PARAM_VALUE | 1 | ns_tree | 3487737289816088576 |
| PARAM_VALUE | 2 | id | 0,3 |
| FUZZY_MAX | 2 | id | 3 |
| HARD_MAX | 2 | id | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/user_namespace.c user_namespaces_init() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 251279612184977664 |
| PARAM_VALUE | 1 | ns_tree | 3487737289816088576 |
| PARAM_VALUE | 2 | id | 3 |
| NOCHECK_CALL |
ipc/shm.c ipc_ns_init() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 5749214724423633536 |
| PARAM_VALUE | 1 | ns_tree | 7080217876805644288 |
| PARAM_VALUE | 2 | id | 1 |
| NOCHECK_CALL |
kernel/utsname.c clone_uts_ns() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->__ns_ref.refs.counter | 1 |
| PARAM_VALUE | 0 | ns->__ns_ref_active.counter | 0-1 |
| PARAM_VALUE | 0 | ns->ns_id | 0 |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_owner_root.ns_list_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_tree_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns_unified_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->stashed | 0 |
| PARAM_VALUE | 1 | ns_tree | 1386394329188192256 |
| PARAM_VALUE | 2 | id | 0,4 |
| FUZZY_MAX | 2 | id | 4 |
| HARD_MAX | 2 | id | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/utsname.c uts_ns_init() -> __ns_tree_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 6625064446233792960 |
| PARAM_VALUE | 1 | ns_tree | 1386394329188192256 |
| PARAM_VALUE | 2 | id | 0 |
| NOCHECK_CALL |