linux/arch/x86/kernel/kprobes
Masami Hiramatsu 75013fb16f kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed
Fix to the exception table entry check by using probed address
instead of the address of copied instruction.

This bug may cause unexpected kernel panic if user probe an address
where an exception can happen which should be fixup by __ex_table
(e.g. copy_from_user.)

Unless user puts a kprobe on such address, this doesn't
cause any problem.

This bug has been introduced years ago, by commit:

  464846888d ("x86/kprobes: Fix a bug which can modify kernel code permanently").

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 464846888d ("x86/kprobes: Fix a bug which can modify kernel code permanently")
Link: http://lkml.kernel.org/r/148829899399.28855.12581062400757221722.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-03-01 09:56:13 +01:00
..
common.h kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed 2017-03-01 09:56:13 +01:00
core.c kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed 2017-03-01 09:56:13 +01:00
ftrace.c kprobes/ftrace: Recover original IP if pre_handler doesn't change it 2014-11-20 11:42:48 -05:00
Makefile
opt.c kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed 2017-03-01 09:56:13 +01:00