From: KOSAKI Motohiro Date: Wed, 27 Oct 2010 22:34:16 +0000 (-0700) Subject: exec: don't turn PF_KTHREAD off when a target command was not found X-Git-Tag: v2.6.37-rc1~85^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98391cf4dcf893e9e74e1c14189851dbc9c5ad0d;p=pandora-kernel.git exec: don't turn PF_KTHREAD off when a target command was not found Presently do_execve() turns PF_KTHREAD off before search_binary_handler(). THis has a theorical risk of PF_KTHREAD getting lost. We don't have to turn PF_KTHREAD off in the ENOEXEC case. This patch moves this flag modification to after the finding of the executable file. This is only a theorical issue because kthreads do not call do_execve() directly. But fixing would be better. Signed-off-by: KOSAKI Motohiro Acked-by: Roland McGrath Acked-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed