Messages in this thread | | | From | Paul Menage <> | Date | Wed, 19 Oct 2011 01:00:22 -0700 | Subject | Re: [patch-final] Re: patch] cpusets, cgroups: disallow attaching kthreadd |
| |
On Wed, Oct 19, 2011 at 12:54 AM, Peter Zijlstra <a.p.zijlstra@chello.nl> wrote: > I really think that if we want to restrain userspace from doing > something stupid we might as well do something that makes sense,
Totally agreed. There are two solutions proposed, both of which make sense as a method of solving the problem, and which have different levels of effect on the existing user-visible API. So which do we prefer?
If you just want to make sure people think about it before there's a problem rather than after, then an alternative would be to have a flag in cgroup_subsys such as allow_kthreadd, which defaults to false and can be explicitly set to true for subsystems that are kthreadd-safe.
Paul
| |