linux/arch/x86/kernel/kprobes
Masami Hiramatsu 63fef14fc9 kprobes/x86: Make insn buffer always ROX and use text_poke()
Make insn buffer always ROX and use text_poke() to write
the copied instructions instead of set_memory_*().
This makes instruction buffer stronger against other
kernel subsystems because there is no window time
to modify the buffer.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@in.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: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/150304463032.17009.14195368040691676813.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-09-28 09:23:03 +02:00
..
common.h kprobes/x86: Make insn buffer always ROX and use text_poke() 2017-09-28 09:23:03 +02:00
core.c kprobes/x86: Make insn buffer always ROX and use text_poke() 2017-09-28 09:23:03 +02:00
ftrace.c kprobes/x86: Make boostable flag boolean 2017-04-12 09:23:46 +02:00
Makefile
opt.c kprobes/x86: Make insn buffer always ROX and use text_poke() 2017-09-28 09:23:03 +02:00