Skip to content

Commit cf3bb03

Browse files
mhiramatingomolnar
authored andcommitted
ia64/kprobes: Don't call the ->break_handler() in ia64 kprobes code
Don't call the ->break_handler() from the ia64 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> Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-arch@vger.kernel.org Cc: linux-ia64@vger.kernel.org Link: https://lore.kernel.org/lkml/152942480045.15209.10715901482832337704.stgit@devbox Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 6e5fd3a commit cf3bb03

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎arch/ia64/include/uapi/asm/break.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515
#define __IA64_BREAK_KDB 0x80100
1616
#define __IA64_BREAK_KPROBE 0x81000 /* .. 0x81fff */
17-
#define __IA64_BREAK_JPROBE 0x82000
1817

1918
/*
2019
* OS-specific break numbers:

‎arch/ia64/kernel/kprobes.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -817,14 +817,6 @@ static int __kprobes pre_kprobes_handler(struct die_args *args)
817817
prepare_ss(p, regs);
818818
kcb->kprobe_status = KPROBE_REENTER;
819819
return 1;
820-
} else if (args->err == __IA64_BREAK_JPROBE) {
821-
/*
822-
* jprobe instrumented function just completed
823-
*/
824-
p = __this_cpu_read(current_kprobe);
825-
if (p->break_handler && p->break_handler(p, regs)) {
826-
goto ss_probe;
827-
}
828820
} else if (!is_ia64_break_inst(regs)) {
829821
/* The breakpoint instruction was removed by
830822
* another cpu right after we hit, no further
@@ -867,7 +859,6 @@ static int __kprobes pre_kprobes_handler(struct die_args *args)
867859
*/
868860
return 1;
869861

870-
ss_probe:
871862
#if !defined(CONFIG_PREEMPT)
872863
if (p->ainsn.inst_flag == INST_FLAG_BOOSTABLE && !p->post_handler) {
873864
/* Boost up -- we can execute copied instructions directly */
@@ -990,7 +981,6 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
990981
case DIE_BREAK:
991982
/* err is break number from ia64_bad_break() */
992983
if ((args->err >> 12) == (__IA64_BREAK_KPROBE >> 12)
993-
|| args->err == __IA64_BREAK_JPROBE
994984
|| args->err == 0)
995985
if (pre_kprobes_handler(args))
996986
ret = NOTIFY_STOP;

0 commit comments

Comments
 (0)