From: Ingo Molnar <mingo@elte.hu>
To: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
William Lee Irwin III <wli@holomorphy.com>
Subject: Re: [PATCH][2.6] Fix 4G/4G and WP test lockup
Date: Thu, 16 Oct 2003 09:23:55 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.56.0310160923460.32667@earth> (raw)
In-Reply-To: <Pine.LNX.4.53.0310160244150.2328@montezuma.fsmlabs.com>
fine with me.
Ingo
On Thu, 16 Oct 2003, Zwane Mwaikambo wrote:
> Hi Ingo,
> It looks like when we do the WP test and trigger a
> (write) protection fault, the 4G/4G page fault handling path doesn't
> expect this kind of fault and instead results in recursive fault handling
> (or so it appears).
>
> How does the following look?
>
> Index: linux-2.6.0-test7-mm1/arch/i386/mm/fault.c
> ===================================================================
> RCS file: /build/cvsroot/linux-2.6.0-test7-mm1/arch/i386/mm/fault.c,v
> retrieving revision 1.1.1.1
> diff -u -p -B -r1.1.1.1 fault.c
> --- linux-2.6.0-test7-mm1/arch/i386/mm/fault.c 15 Oct 2003 09:01:14 -0000 1.1.1.1
> +++ linux-2.6.0-test7-mm1/arch/i386/mm/fault.c 16 Oct 2003 06:42:42 -0000
> @@ -260,8 +260,12 @@ asmlinkage void do_page_fault(struct pt_
> /*
> * On 4/4 all kernels faults are either bugs, vmalloc or prefetch
> */
> - if (unlikely((regs->xcs & 3) == 0))
> + if (unlikely((regs->xcs & 3) == 0)) {
> + if (error_code & 3)
> + goto bad_area_nosemaphore;
> +
> goto vmalloc_fault;
> + }
> #else
> if (unlikely(address >= TASK_SIZE)) {
> if (!(error_code & 5))
>
prev parent reply other threads:[~2003-10-16 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 7:22 Zwane Mwaikambo
2003-10-16 7:23 ` Ingo Molnar [this message]
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.56.0310160923460.32667@earth \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.com \
--cc=zwane@arm.linux.org.uk \
/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®