kprobes: Prohibit probing on hardirq tracers
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 12 Feb 2019 16:13:40 +0000 (01:13 +0900)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Feb 2019 07:16:40 +0000 (08:16 +0100)
commiteeeb080bae906a57b6513d37efe3c38f2cb87a1c
tree481d11a8b3e5095d8490046bd95a3522ab1dcbe1
parent6143c6fb1e8f9bde9c434038f7548a19d36b55e7
kprobes: Prohibit probing on hardirq tracers

Since kprobes breakpoint handling involves hardirq tracer,
probing these functions cause breakpoint recursion problem.

Prohibit probing on those functions.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrea Righi <righi.andrea@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/154998802073.31052.17255044712514564153.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/trace/trace_irqsoff.c
kernel/trace/trace_preemptirq.c