]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes/x86: Remove IRQ disabling from jprobe handlers
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 3 Oct 2017 07:18:02 +0000 (16:18 +0900)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Oct 2017 17:11:48 +0000 (19:11 +0200)
commit0586f49760fda1d56b677dd2459022b5aacc3edc
tree69bec1f802f6e85fcbbc6ef4fe1a86823c5ab091
parente587571ab124a5f709bbac00a501ebe077fec6ca
kprobes/x86: Remove IRQ disabling from jprobe handlers

Jprobes actually don't need to disable IRQs while calling
handlers, because of how we specify the kernel interface in
Documentation/kprobes.txt:

-----
 Probe handlers are run with preemption disabled.  Depending on the
 architecture and optimization state, handlers may also run with
 interrupts disabled (e.g., kretprobe handlers and optimized kprobe
 handlers run without interrupt disabled on x86/x86-64).
-----

So let's remove IRQ disabling from jprobes too.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E . McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/150701508194.32266.14458959863314097305.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/kprobes/core.c