linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tghk48@motorola.com (TAO HU)
To: linux-arm-kernel@lists.infradead.org
Subject: Bug in _und_usr on dual-core ARM?
Date: Tue, 21 Jun 2011 17:37:31 +0800	[thread overview]
Message-ID: <BANLkTinUYZm+Q3WBGLTQRXz1V2ca1AwE=g@mail.gmail.com> (raw)
In-Reply-To: <20110621091529.GA22868@n2100.arm.linux.org.uk>

Hi, Russell

Wouldn't it lead to oops with your patch?
We're trying avoid oops actually.

On Tue, Jun 21, 2011 at 5:15 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Tue, Jun 21, 2011 at 04:31:19PM +0800, TAO HU wrote:
>> Hi, All
>>
>> We got an issue on our OMAP4 SMP system.
>> Looks like __und_user(), which was triggered by a user space
>> exception, got a page fault hence lead to might_sleep() failure.
>
> Could you see whether this patch prevents the warning please.
>
> diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
> index bc0e1d8..d52b940 100644
> --- a/arch/arm/mm/fault.c
> +++ b/arch/arm/mm/fault.c
> @@ -289,7 +289,7 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
> ? ? ? ? * If we're in an interrupt or have no user
> ? ? ? ? * context, we must not take the fault..
> ? ? ? ? */
> - ? ? ? if (in_atomic() || !mm)
> + ? ? ? if (in_atomic() || irqs_disabled() || !mm)
> ? ? ? ? ? ? ? ?goto no_context;
>
> ? ? ? ?/*
>
>



-- 
Best Regards
Hu Tao

  reply	other threads:[~2011-06-21  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-21  8:31 Bug in _und_usr on dual-core ARM? TAO HU
2011-06-21  9:15 ` Russell King - ARM Linux
2011-06-21  9:37   ` TAO HU [this message]
2011-06-21  9:58     ` Russell King - ARM Linux
2012-04-20 12:37   ` Rabin Vincent

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='BANLkTinUYZm+Q3WBGLTQRXz1V2ca1AwE=g@mail.gmail.com' \
    --to=tghk48@motorola.com \
    --cc=linux-arm-kernel@lists.infradead.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).