[PATCH for 2.6.22] [9/10] i386: Disable alternative() patching after boot with DEBUG_RODATA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kernel text is protected now so this won't work.

We'll fix it better next time.

Signed-off-by: Andi Kleen <[email protected]>

---
 arch/i386/kernel/alternative.c |    5 +++++
 1 file changed, 5 insertions(+)

Index: linux/arch/i386/kernel/alternative.c
===================================================================
--- linux.orig/arch/i386/kernel/alternative.c
+++ linux/arch/i386/kernel/alternative.c
@@ -308,6 +308,11 @@ void alternatives_smp_switch(int smp)
 	printk("lockdep: not fixing up alternatives.\n");
 	return;
 #endif
+#ifdef CONFIG_DEBUG_RODATA
+	/* To be fixed properly post 2.6.22 -- need to get writable
+ 	   mappings of the kernel text */
+	return;
+#endif
 
 	if (noreplace_smp || smp_alt_once)
 		return;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux