]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes: Fix arch_prepare_kprobe to handle copy insn failures
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 5 Jun 2013 03:12:16 +0000 (12:12 +0900)
committerIngo Molnar <mingo@kernel.org>
Thu, 20 Jun 2013 12:25:48 +0000 (14:25 +0200)
commite36148ab1f20dc543cdcfbdaad373b2e798c59c3
treee6a138c72d3ccab2a413ebf358f10ac1d4590b1e
parent0e496b11b582be73b762ef3183bb14b604a0707b
kprobes: Fix arch_prepare_kprobe to handle copy insn failures

Fix arch_prepare_kprobe() to handle failures in copy instruction
correctly. This fix is related to the previous fix: 0ff2343
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:

   https://bugzilla.redhat.com/show_bug.cgi?id=910649

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Tested-by: Jonathan Lebon <jlebon@redhat.com>
Cc: Frank Ch. Eigler <fche@redhat.com>
Cc: systemtap@sourceware.org
Cc: yrl.pp-manager.tt@hitachi.com
Link: http://lkml.kernel.org/r/20130605031216.15285.2001.stgit@mhiramat-M0-7522
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/kprobes/core.c