]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cpusets, cgroups: disallow attaching kthreadd
authorMike Galbraith <efault@gmx.de>
Fri, 16 Dec 2011 04:50:30 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:43:57 +0000 (18:43 +1100)
commit688144aeff72f04529dfb32153f3b134ae08f824
treefeea7e7b459d1a4f11186b7f3d0476ae9ce4ebea
parent25f350de4ab5de6f1fc623b9a08e4333e617efae
cpusets, cgroups: disallow attaching kthreadd

Allowing kthreadd to be moved to a non-root group makes no sense, it being
a global resource, and needlessly leads unsuspecting users toward trouble.

1. An RT workqueue worker thread spawned in a task group with no
   rt_runtime allocated is not schedulable.  Simple user error, but
   harmful to the box.

2. A worker thread which acquires PF_THREAD_BOUND can never leave a
   cpuset, rendering the cpuset immortal.

Save the user some unexpected trouble, just say no.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Paul Menage <paul@paulmenage.org>
Cc: Tejun Heo <htejun@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/cpuset.c
kernel/sched/core.c