]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes/x86: Disable preemption in ftrace-based jprobes
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 19 Sep 2017 10:01:40 +0000 (19:01 +0900)
committerIngo Molnar <mingo@kernel.org>
Thu, 28 Sep 2017 07:23:04 +0000 (09:23 +0200)
commite4474b068258388952e485ed49296b47b8a8738f
tree2f0d21e7d53e4394f81e30ebcecd5c4a5c86a68d
parent6ff92df18e6ce88c195cd45493cd231247bd1889
kprobes/x86: Disable preemption in ftrace-based jprobes

Disable preemption in ftrace-based jprobe handlers as
described in Documentation/kprobes.txt:

  "Probe handlers are run with preemption disabled."

This will fix jprobes behavior when CONFIG_PREEMPT=y.

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/150581530024.32348.9863783558598926771.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/kprobes/ftrace.c