kprobes/x86: Disable preemption in optprobe
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 19 Sep 2017 10:00:59 +0000 (19:00 +0900)
committerIngo Molnar <mingo@kernel.org>
Thu, 28 Sep 2017 07:23:04 +0000 (09:23 +0200)
commit9a09f261a4fa52de916b0db34a36956c95f78fdc
treeff13a73c0b4baf731d9b97c71ef7e50ce1dbacd6
parente863d5396146411b615231cae0c518cb2a23371c
kprobes/x86: Disable preemption in optprobe

Disable preemption in optprobe handler as described
in Documentation/kprobes.txt, which says:

  "Probe handlers are run with preemption disabled."

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