diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-09-03 13:08:21 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-09-05 10:15:16 +0200 |
commit | e336b4027775cb458dc713745e526fa1a1996b2a (patch) | |
tree | 5a73f34085d6b815f28ab175c79323f4c187dc77 /Documentation/hwmon/ads1015.rst | |
parent | perf/x86: Make more stuff static (diff) | |
download | linux-e336b4027775cb458dc713745e526fa1a1996b2a.tar.xz linux-e336b4027775cb458dc713745e526fa1a1996b2a.zip |
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>
Diffstat (limited to 'Documentation/hwmon/ads1015.rst')
0 files changed, 0 insertions, 0 deletions