Files
linux-stable-mirror/include/linux
Masami HiramatsuandIngo Molnar e336b40277 kprobes: Prohibit probing on BUG() and WARN() address
Since BUG() and WARN() may use a trap (e.g. UD2 on x86) to
get the address where the BUG() has occurred, kprobes can not
do single-step out-of-line that instruction. So prohibit
probing on such address.

Without this fix, if someone put a kprobe on WARN(), the
kernel will crash with invalid opcode error instead of
outputing warning message, because kernel can not find
correct bug address.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: David S . Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Naveen N . Rao <naveen.n.rao@linux.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/156750890133.19112.3393666300746167111.stgit@devnote2
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2019-09-05 10:15:16 +02:00
..
2019-08-15 15:18:05 +02:00
2019-07-10 09:00:57 -06:00
2019-08-15 11:09:16 -06:00
2019-07-18 09:49:30 +02:00
2019-07-23 13:59:33 -07:00
2019-07-05 21:34:50 +02:00
2019-08-19 09:43:57 -07:00
2019-07-05 15:19:10 -07:00
2019-07-08 19:25:19 -07:00
2019-07-09 14:15:37 -07:00
2019-07-26 17:01:29 -06:00
2019-08-12 10:47:55 +02:00
2019-07-16 19:23:25 -07:00
2019-07-08 10:51:25 +02:00
2019-07-12 11:05:43 -07:00
2019-07-07 11:50:03 +02:00
2019-08-15 15:18:05 +02:00
2019-07-18 10:20:13 -06:00
2019-07-10 09:00:57 -06:00