Re: [patch 2/2] kprobes x86_64 quick fix mark-ro-data

S. P. Prasanna
2007-06-19T10:07:49Z

This patch is a quick fix for x86_64 to enable kprobes only if DEBUG_RODATA is
not configured. Since DEBUG_RODATA markes the kernel text pages as read-only.

Signed-off-by: Prasanna S P. <prasanna@in.ibm.com>

arch/x86_64/Kconfig | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN arch/x86_64/Kconfig~kprobes-quick-fix-mark-ro-data-x86_64 arch/x86_64/Kconfig
--- linux-2.6.22-rc5/arch/x86_64/Kconfig~kprobes-quick-fix-mark-ro-data-x86_64 2007-06-19 14:55:56.000000000 +0530
+++ linux-2.6.22-rc5-prasanna/arch/x86_64/Kconfig 2007-06-19 14:55:56.000000000 +0530
@@ -764,6 +764,8 @@ source "drivers/firmware/Kconfig"

source fs/Kconfig

+source "arch/x86_64/Kconfig.debug"
+
menu "Instrumentation Support"
depends on EXPERIMENTAL

@@ -771,7 +773,7 @@ source "arch/x86_64/oprofile/Kconfig"

config KPROBES
bool "Kprobes (EXPERIMENTAL)"
- depends on KALLSYMS && EXPERIMENTAL && MODULES
+ depends on KALLSYMS && EXPERIMENTAL && MODULES && !DEBUG_RODATA
help
Kprobes allows you to trap at almost any kernel address and
execute a callback function. register_kprobe() establishes
@@ -780,8 +782,6 @@ config KPROBES
If in doubt, say "N".
endmenu

-source "arch/x86_64/Kconfig.debug"
-
source "security/Kconfig"

source "crypto/Kconfig"

_
--
Prasanna S.P.
Linux Technology Center
India Software Labs, IBM Bangalore
Email: prasanna@in.ibm.com
Ph: 91-80-41776329