summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/mce.c
diff options
context:
space:
mode:
authorAndi Kleen2007-07-22 11:12:31 +0200
committerLinus Torvalds2007-07-22 20:03:37 +0200
commit19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177 (patch)
tree39942efb826f2793692da60b04fc0e7b015fa23d /arch/x86_64/kernel/mce.c
parentx86_64: Use read and write crX in .c files (diff)
downloadkernel-qcow2-linux-19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177.tar.gz
kernel-qcow2-linux-19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177.tar.xz
kernel-qcow2-linux-19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177.zip
x86: Fix alternatives and kprobes to remap write-protected kernel text
Reenable kprobes and alternative patching when the kernel text is write protected by DEBUG_RODATA Add a general utility function to change write protected text. The new function remaps the code using vmap to write it and takes care of CPU synchronization. It also does CLFLUSH to make icache recovery faster. There are some limitations on when the function can be used, see the comment. This is a newer version that also changes the paravirt_ops code. text_poke also supports multi byte patching now. Contains bug fixes from Zach Amsden and suggestions from Mathieu Desnoyers. Cc: Jan Beulich <jbeulich@novell.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Mathieu Desnoyers <compudj@krystal.dyndns.org> Cc: Zach Amsden <zach@vmware.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/mce.c')
0 files changed, 0 insertions, 0 deletions