lkml.org 
[lkml]   [2007]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH for 2.6.22] [7/10] x86: Disable KPROBES with DEBUG_RODATA for now
    Date

    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>

    ---
    arch/i386/Kconfig.debug | 1 +
    arch/x86_64/Kconfig.debug | 1 +
    2 files changed, 2 insertions(+)

    Index: linux/arch/i386/Kconfig.debug
    ===================================================================
    --- linux.orig/arch/i386/Kconfig.debug
    +++ linux/arch/i386/Kconfig.debug
    @@ -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: linux/arch/x86_64/Kconfig.debug
    ===================================================================
    --- linux.orig/arch/x86_64/Kconfig.debug
    +++ linux/arch/x86_64/Kconfig.debug
    @@ -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.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2007-06-20 12:27    [W:4.031 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site