]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86: Disable KPROBES with DEBUG_RODATA for now
authorAndi Kleen <ak@suse.de>
Wed, 20 Jun 2007 10:23:35 +0000 (12:23 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 20 Jun 2007 21:27:26 +0000 (14:27 -0700)
Right now Kprobes cannot write to the write protected kernel text when
DEBUG_RODATA is enabled. Disallow this in Kconfig for now.

Temporary fix for 2.6.22. In .23 add code to temporarily
unprotect it.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/Kconfig.debug
arch/x86_64/Kconfig.debug

index b31c0802e1ccf53f1e5a677e802c5e34166ebc54..6293920cd1be394c32d7161dc05858fedfed6ef3 100644 (file)
@@ -49,6 +49,7 @@ config DEBUG_PAGEALLOC
 config DEBUG_RODATA
        bool "Write protect kernel read-only data structures"
        depends on DEBUG_KERNEL
+       depends on !KPROBES # temporary for 2.6.22
        help
          Mark the kernel read-only data as write-protected in the pagetables,
          in order to catch accidental (and incorrect) writes to such const
index 775d211a5cf93983ca1fd97c64f56fc18c3f8213..8a8677518447ca6624fa0e7b9545772ee6a77959 100644 (file)
@@ -9,6 +9,7 @@ source "lib/Kconfig.debug"
 config DEBUG_RODATA
        bool "Write protect kernel read-only data structures"
        depends on DEBUG_KERNEL
+       depends on !KPROBES # temporary for 2.6.22
        help
         Mark the kernel read-only data as write-protected in the pagetables,
         in order to catch accidental (and incorrect) writes to such const data.