From: Zwane Mwaikambo <zwane@fsmlabs.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH] Boottime allocated GDTs and doublefault handler
Date: Sun, 19 Dec 2004 17:48:51 -0700 (MST) [thread overview]
Message-ID: <Pine.LNX.4.61.0412191730330.18272@montezuma.fsmlabs.com> (raw)
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@fsmlabs.com>
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)
{
next reply other threads:[~2004-12-20 0:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-20 0:48 Zwane Mwaikambo [this message]
2004-12-20 2:28 ` [PATCH] Boottime allocated GDTs and doublefault handler Linus Torvalds
2004-12-20 7:21 ` Zwane Mwaikambo
2004-12-20 15:12 ` Zwane Mwaikambo
2005-01-09 4:55 ` Zwane Mwaikambo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0412191730330.18272@montezuma.fsmlabs.com \
--to=zwane@fsmlabs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).