Re: [PATCH]: exec: avoid propagating PF_NO_SETAFFINITY intouserspace child

From: Peter Zijlstra
Date: Thu Nov 28 2013 - 10:02:46 EST


On Thu, Nov 28, 2013 at 04:00:55PM +0100, Oleg Nesterov wrote:
> And btw. Note ____call_usermodehelper()->set_cpus_allowed_ptr(cpu_all_mask).
>
> Even if we change the affinity of the "khelper" worker threads this
> won't restrict the user-space helpers.
>
> I think this set_cpus_allowed_ptr() should die in any case?

Yes. A while back someone proposed adding a magic cpumask to tweak in
order to contain the usermode helpers.

Obviously I thought that was a bad idea.
--
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/