kprobes/x86: Do not disable preempt on int3 path
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 19 Jun 2018 16:16:17 +0000 (01:16 +0900)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jun 2018 10:33:20 +0000 (12:33 +0200)
commit2bbda764d720aacabaad38374d26fcccb7843f17
tree25d60c92825b75c73362b455baafb5464aca07cc
parentcce188bd58cfbd603b904dbce75f34de2eff959a
kprobes/x86: Do not disable preempt on int3 path

Since int3 and debug exception(for singlestep) are run with
IRQ disabled and while running single stepping we drop IF
from regs->flags, that path must not be preemptible. So we
can remove the preempt disable/enable calls from that path.

Suggested-by: Ingo Molnar <mingo@kernel.org>
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: 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-doc@vger.kernel.org
Link: https://lore.kernel.org/lkml/152942497779.15209.2879580696589868291.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/kprobes.txt
arch/x86/kernel/kprobes/core.c
arch/x86/kernel/kprobes/opt.c