Re: [PATCH RESEND 2/2] tracing: syscall_regfunc() should not skip kernel threads
From: Steven Rostedt
Date: Thu Apr 10 2014 - 15:56:13 EST
On Thu, 10 Apr 2014 21:38:20 +0200
Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
> I _think_ that the kernel thread can only return from "call *%rbx" if
> it is no longer a kernel thread, iow, do_execve() was called.
Ah right. But only in special cases.
Actually, it only returns if the function in kernel_thread() returns,
and in the case of ____call_usermodehelper, it does an exec and
returns on success. But if it fails, it needs to call do_exit().
Thus, it's not sufficient to just say "only if do_execve is called" but
to say, if the handler that is called is only allowed to return iff it
did a execve first and succeeded.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/