From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Hillf Danton <dhillf@gmail.com>
Cc: Mark Jackson <mpfj-list@mimc.co.uk>,
lkml <linux-kernel@vger.kernel.org>,
Linux-MM <linux-mm@kvack.org>
Subject: Re: Kernel oops on mmap ?
Date: Fri, 15 Mar 2013 17:32:20 +0000 [thread overview]
Message-ID: <20130315173220.GP4977@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAJd=RBB=2XRwN-eCQDnBjwnm57-2C+OSairhyUrPdVMoLCfj1w@mail.gmail.com>
On Thu, Mar 14, 2013 at 09:38:02AM +0800, Hillf Danton wrote:
> [cc Russell]
> On Wed, Mar 13, 2013 at 11:04 PM, Mark Jackson <mpfj-list@mimc.co.uk> wrote:
> > Can any help diagnose what my userspace task is doing to get the followings oops ?
> >
> > [ 42.587772] Unable to handle kernel paging request at virtual address bfac6004
> > [ 42.595431] pgd = cf748000
> > [ 42.598291] [bfac6004] *pgd=00000000
>
> None pgd, why is pgd_none_or_clear_bad() not triggered?
I think you're misunderstanding what's happened here.
> > [ 42.602079] Internal error: Oops: 5 [#1] ARM
> > [ 42.606592] CPU: 0 Not tainted (3.8.0-next-20130225-00001-g2d0ce24-dirty #38)
> > [ 42.614509] PC is at unmap_single_vma+0x2d8/0x5bc
> > [ 42.619476] LR is at unmap_single_vma+0x29c/0x5bc
> > [ 42.624447] pc : [<c00aed0c>] lr : [<c00aecd0>] psr: 60000013
> > [ 42.624447] sp : cf685d88 ip : 8f9523cd fp : cf680004
> > [ 42.636567] r10: 00000000 r9 : bfac6000 r8 : 00200000
> > [ 42.642079] r7 : cf685e00 r6 : cf5e93a8 r5 : cf5e93ac r4 : 000ea000
> > [ 42.648969] r3 : 00000001 r2 : 00000000 r1 : 00000040 r0 : 00000000
...
> > [ 42.935472] Code: 0affffa4 e59d000c e3500000 1a0000a2 (e5993004)
That disassembles to this:
0: 0affffa4 beq 0xfffffe98
4: e59d000c ldr r0, [sp, #12]
8: e3500000 cmp r0, #0
c: 1a0000a2 bne 0x29c
10: e5993004 ldr r3, [r9, #4]
and r9 = 0xbfac6000, which is _not_ the address of a page table.
Unfortunately, the above doesn't tie up with the output from my
compiler, so I've no idea what that corresponds with in
unmap_single_vma().
The other surprising thing about this oops dump is the lack of
backtrace...
I think I need to see the disassembly of this function before
there can be any further diagnosis of what's going on here.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2013-03-15 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <51409575.9060304@mimc.co.uk>
2013-03-14 1:38 ` Hillf Danton
2013-03-15 17:32 ` Russell King - ARM Linux [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=20130315173220.GP4977@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=dhillf@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mpfj-list@mimc.co.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