From: Chuck Ebbert <76306.1226@compuserve.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Krzysztof Halasa <khc@pm.waw.pl>, Andi Kleen <ak@suse.de>,
Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>
Subject: [patch] i386: fix recursive fault in page-fault handler
Date: Mon, 17 Jul 2006 13:19:16 -0400 [thread overview]
Message-ID: <200607171322_MC3-1-C53B-6253@compuserve.com> (raw)
Krzysztof Halasa reported recursive faults in do_page_fault()
causing a stream of partial oops messages on the console. Fix
by adding a fixup for that code.
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
---
x86_64 looks like it has the same problem.
--- 2.6.18-rc1-32.orig/arch/i386/mm/fault.c
+++ 2.6.18-rc1-32/arch/i386/mm/fault.c
@@ -585,9 +585,20 @@ no_context:
printk(KERN_ALERT "*pte = %08lx\n", page);
}
#endif
- tsk->thread.cr2 = address;
- tsk->thread.trap_no = 14;
- tsk->thread.error_code = error_code;
+ asm ( "# set task data without causing another oops\n"
+ "1:\t"
+ "movl %3,%0\n\t"
+ "movl $14,%1\n\t"
+ "movl %4,%2\n"
+ "2:\n"
+ ".section __ex_table,\"a\"\n\t"
+ ".align 4\n\t"
+ ".long 1b,2b\n"
+ ".previous"
+ : "=m" (tsk->thread.cr2), "=m" (tsk->thread.trap_no),
+ "=m" (tsk->thread.error_code)
+ : "r" (address), "r" (error_code)
+ );
die("Oops", regs, error_code);
bust_spinlocks(0);
do_exit(SIGKILL);
--
And did you exchange a walk-on part in the war for a lead role in a cage?
--Roger Waters
next reply other threads:[~2006-07-17 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-17 17:19 Chuck Ebbert [this message]
2006-07-17 18:08 ` Linus Torvalds
2006-07-17 19:41 ` Andi Kleen
2006-07-17 19:59 Chuck Ebbert
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=200607171322_MC3-1-C53B-6253@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=khc@pm.waw.pl \
--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
all inboxes | Powered by JetHome®