Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

kernel/cgroup/cgroup.c __cgroup_procs_write() -> cgroup_attach_task()

Type Parameter Key Value
PARAM_VALUE 0 dst_cgrp 4096-ptr_max
PARAM_VALUE 0 dst_cgrp->self.flags 2-u32max
PARAM_VALUE 0 dst_cgrp->self.refcnt.percpu_count_ptr 1-u64max
PARAM_VALUE 1 leader 4096-ptr_max
PARAM_VALUE 1 leader->no_cgroup_migration 0
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.dep_map->name 0-255
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->type 0-1
BUF_SIZE 0 dst_cgrp 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 dst_cgrp 40,136,480,696,928,1128,1160,1392,1624,1848,8192
CAPPED_DATA 0 dst_cgrp 1
CAPPED_DATA 0 dst_cgrp->root 1
CAPPED_DATA 1 leader->cgroups 1
DATA_SOURCE 0 dst_cgrp r cgroup_kn_lock_live
DATA_SOURCE 1 leader r cgroup_procs_write_start
DATA_SOURCE 2 threadgroup $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 global &cgroup_mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

kernel/cgroup/cgroup-v1.c __cgroup1_procs_write() -> cgroup_attach_task()

Type Parameter Key Value
PARAM_VALUE 0 dst_cgrp 4096-ptr_max
PARAM_VALUE 0 dst_cgrp->self.flags 2-u32max
PARAM_VALUE 0 dst_cgrp->self.refcnt.percpu_count_ptr 1-u64max
PARAM_VALUE 1 leader 4096-ptr_max
PARAM_VALUE 1 leader->no_cgroup_migration 0
PARAM_VALUE 1 leader->real_cred 4096-ptr_max
PARAM_VALUE 1 leader->real_cred->non_rcu 0
PARAM_VALUE 1 leader->real_cred->process_keyring->user->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 leader->real_cred->process_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 1 leader->real_cred->process_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 1 leader->real_cred->rcu.func 1-u64max
PARAM_VALUE 1 leader->real_cred->rcu.next 0
PARAM_VALUE 1 leader->real_cred->request_key_auth->user->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 leader->real_cred->request_key_auth->user->qnbytes s32min-s32max
PARAM_VALUE 1 leader->real_cred->request_key_auth->user->qnkeys s32min-s32max
PARAM_VALUE 1 leader->real_cred->session_keyring->user->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 leader->real_cred->session_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 1 leader->real_cred->session_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 1 leader->real_cred->thread_keyring->user->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 leader->real_cred->thread_keyring->user->qnbytes s32min-s32max
PARAM_VALUE 1 leader->real_cred->thread_keyring->user->qnkeys s32min-s32max
PARAM_VALUE 1 leader->real_cred->ucounts->ns->work.entry.next 4096-ptr_max
PARAM_VALUE 1 leader->real_cred->ucounts->ns->work.entry.next->prev 4096-ptr_max
PARAM_VALUE 1 leader->real_cred->user->uidhash_node->next->pprev 1-u64max
PARAM_VALUE 1 leader->real_cred->user->uidhash_node.next->pprev 1-u64max
PARAM_VALUE 1 leader->real_cred->user_ns->work.entry.next->prev 4096-ptr_max
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.dep_map->name 0-255
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 1 leader->signal->cgroup_threadgroup_rwsem.first_waiter->type 0-1
BUF_SIZE 0 dst_cgrp 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 dst_cgrp 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 dst_cgrp r cgroup_kn_lock_live
DATA_SOURCE 1 leader r cgroup_procs_write_start
DATA_SOURCE 2 threadgroup $4
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 global &cgroup_mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

kernel/cgroup/cgroup-v1.c cgroup_attach_task_all() -> cgroup_attach_task()

Type Parameter Key Value
PARAM_VALUE 2 threadgroup 0
BUF_SIZE 0 dst_cgrp (-1)-0,8192
BUF_SIZE 0 dst_cgrp (-1)-0,8192
DATA_SOURCE 0 dst_cgrp r task_cgroup_from_root
DATA_SOURCE 1 leader $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &cgroup_mutex