Affinity of call_usermode_helper fix
PATCH 1/1 Affinity of call_usermode_helper fix
Vatsa and I noticed this.
call_usermode_helper uses keventd, so the process created inherits its cpus_allowed mask. Unset it.
Name: call_usermode_helper Without Being Bound To A Specific CPU
Author: Rusty Russell
Status: Booted on 2.6.2-rc2-bk2
D: call_usermode_helper uses keventd, so the process created inherits
D: its cpus_allowed mask. Unset it.
kernel/kmod.c +2 -0
@@ -168,6 +168,8 @@ static int ____call_usermodehelper(voidrecalc_sigpending ();spin_unlock_irq (¤t->sighand->siglock); +/* We can run anywhere, unlike our parent keventd(). */ +set_cpus_allowed (current,CPU_MASK_ALL ); retval = -EPERM ;if (current->fs->root) retval =execve (sub_info->path, sub_info->argv,sub_info->envp);
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.