Re: [patch] cpusets, cgroups: disallow attaching kthreadd

From: Mike Galbraith
Date: Mon Oct 10 2011 - 22:32:10 EST


On Mon, 2011-10-10 at 09:43 -0700, Tejun Heo wrote:

> Yes, I think we need something like this. wq workers were using
> PF_THREAD_BOUND to prevent diddling from userland which made some
> unhappy. Maybe we need a flag to properly indicate "don't diddle with
> this thread from userland"? But, then, mainline kernel wouldn't need
> the current PF_THREAD_BOUND at all. Peter, Steven, what do you think?

Yeah, I was also thinking that there should really be a generic "I'm not
yours to play with" flag. This just closes two cases I've run into
regarding kthreadd, there may be others where the user needs to know
implementation details to not shoot self in foot.

-Mike

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/