Revert most of "x86: Fix alternatives and kprobes to remap write-protected kernel...
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 19:07:21 +0000 (12:07 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 19:07:21 +0000 (12:07 -0700)
commit602033ed5907a59ce86f709082a35be047743a86
tree35c9f4b3d09dd02a9088e8932f963498d5c33d98
parent07d4e9af109221ab731c5aaf832e89776c64b013
Revert most of "x86: Fix alternatives and kprobes to remap write-protected kernel text"

This reverts most of commit 19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177.

The way to DEBUG_RODATA interactions with KPROBES and CPU hotplug is to
just not mark the text as being write-protected in the first place.
Both of those facilities depend on rewriting instructions.

Having "helpful" debug facilities that just cause more problem is not
being helpful.  It just adds complexity and bugs. Not worth it.

Reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/alternative.c
arch/i386/mm/init.c
arch/x86_64/mm/init.c