KOSAKI Motohiro 98391cf4dc 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 <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Roland McGrath <roland@redhat.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-27 18:03:13 -07:00
..
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-06-16 18:05:05 +02:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-08-18 01:01:33 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:13 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:24:16 -04:00
2010-10-25 21:26:11 -04:00
2010-10-26 16:52:12 -07:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:27:18 -04:00
2010-10-25 21:26:11 -04:00
2010-10-21 18:48:04 +02:00
2010-10-25 21:26:14 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:11 -04:00
2010-10-25 21:26:15 -04:00
2010-10-15 15:53:27 +02:00
2010-08-18 08:35:46 -04:00
2010-10-25 21:27:18 -04:00
2010-10-25 21:26:11 -04:00
2010-10-26 16:52:13 -07:00
2010-10-25 21:26:11 -04:00
2010-08-18 08:35:47 -04:00
2010-08-18 08:35:48 -04:00
2010-03-12 15:52:32 -08:00
2010-08-09 16:48:44 -04:00
2010-10-25 21:27:18 -04:00
2010-08-09 16:47:43 -04:00