Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64/kprobes: Don't call the ->break_handler() in arm64 kprobes code

Don't call the ->break_handler() from the arm64 kprobes code,
because it was only used by jprobes which got removed.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-arch@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/lkml/152942474231.15209.17684808374429473004.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Masami Hiramatsu and committed by
Ingo Molnar
c9abd554 75feff53

-8
-8
arch/arm64/kernel/probes/kprobes.c
··· 408 408 return; 409 409 } 410 410 } 411 - } else if ((le32_to_cpu(*(kprobe_opcode_t *) addr) == 412 - BRK64_OPCODE_KPROBES) && cur_kprobe) { 413 - /* We probably hit a jprobe. Call its break handler. */ 414 - if (cur_kprobe->break_handler && 415 - cur_kprobe->break_handler(cur_kprobe, regs)) { 416 - setup_singlestep(cur_kprobe, regs, kcb, 0); 417 - return; 418 - } 419 411 } 420 412 /* 421 413 * The breakpoint instruction was removed right