[PATCH] Boottime allocated GDTs and doublefault handler

From: Zwane Mwaikambo
Date: Sun Dec 19 2004 - 19:50:49 EST


GDTs on SMP tend to be above the current ptr_ok limits since they are
boottime allocated. How does the following new arbitrary limit look?

Signed-off-by: Zwane Mwaikambo <zwane@xxxxxxxxxxx>

Index: linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 doublefault.c
--- linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c 13 Dec 2004 14:26:45 -0000 1.1.1.1
+++ linux-2.6.10-rc3-mm1/arch/i386/kernel/doublefault.c 20 Dec 2004 00:21:31 -0000
@@ -13,7 +13,7 @@
static unsigned long doublefault_stack[DOUBLEFAULT_STACKSIZE];
#define STACK_START (unsigned long)(doublefault_stack+DOUBLEFAULT_STACKSIZE)

-#define ptr_ok(x) ((x) > PAGE_OFFSET && (x) < PAGE_OFFSET + 0x1000000)
+#define ptr_ok(x) ((x) > PAGE_OFFSET && (x) < PAGE_OFFSET + 0x2000000)

static void doublefault_fn(void)
{
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/