From: Andrew Morton Cc: Chris Wright Cc: Jan Engelhardt Signed-off-by: Andrew Morton --- kernel/kmod.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN kernel/kmod.c~fix-kevents-childs-priority-greediness-fix kernel/kmod.c --- a/kernel/kmod.c~fix-kevents-childs-priority-greediness-fix +++ a/kernel/kmod.c @@ -164,6 +164,11 @@ static int ____call_usermodehelper(void /* We can run anywhere, unlike our parent keventd(). */ set_cpus_allowed(current, CPU_MASK_ALL); + + /* + * Our parent is keventd, which runs with elevated scheduling priority. + * Avoid propagating that into the userspace child. + */ set_user_nice(current, 0); retval = -EPERM; _