path: root/ipc
diff options
authorKOSAKI Motohiro <>2010-10-27 15:34:16 -0700
committerLinus Torvalds <>2010-10-27 18:03:13 -0700
commit98391cf4dcf893e9e74e1c14189851dbc9c5ad0d (patch)
treef76b582402e03a74628071b8190b93da274f59f4 /ipc
parent478735e38887077ac77a9756121b6ce0cb956e2f (diff)
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 <>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions