Re: [PATCH -tip ] [BUGFIX] kprobes: Fix arch_prepare_kprobe tohandle copy insn failures

From: Jonathan Lebon
Date: Fri Jun 07 2013 - 17:18:38 EST

Tested-by: Jonathan Lebon <jlebon@xxxxxxxxxx>

Stress-tested overnight in a VM with no problems.


----- Original Message -----
From: "Steven Rostedt" <rostedt@xxxxxxxxxxx>
To: "Masami Hiramatsu" <>
Cc: "Ingo Molnar" <mingo@xxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, "Ingo Molnar" <mingo@xxxxxxxxxx>, "Frank Ch. Eigler" <fche@xxxxxxxxxx>, systemtap@xxxxxxxxxxxxxx, "yrl pp-manager tt" <>
Sent: Thursday, June 6, 2013 5:06:46 PM
Subject: Re: [PATCH -tip ] [BUGFIX] kprobes: Fix arch_prepare_kprobe to handle copy insn failures

On Wed, 2013-06-05 at 12:12 +0900, Masami Hiramatsu wrote:
> Fix arch_prepare_kprobe() to handle failures in copy instruction
> correctly. This fix is related to the previous fix: 8101376
> which made __copy_instruction return an error result if failed,
> but caller site was not updated to handle it. Thus, this is the
> other half of the bugfix.
> This fix is also related to the following bug-report:
> Signed-off-by: Masami Hiramatsu <>
> Cc: Frank Ch. Eigler <fche@xxxxxxxxxx>
> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>

Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve

> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> ---
> arch/x86/kernel/kprobes/core.c | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at