Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753999Ab3CORc2 (ORCPT ); Fri, 15 Mar 2013 13:32:28 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:36350 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419Ab3CORc0 (ORCPT ); Fri, 15 Mar 2013 13:32:26 -0400 Date: Fri, 15 Mar 2013 17:32:20 +0000 From: Russell King - ARM Linux To: Hillf Danton Cc: Mark Jackson , lkml , Linux-MM Subject: Re: Kernel oops on mmap ? Message-ID: <20130315173220.GP4977@n2100.arm.linux.org.uk> References: <51409575.9060304@mimc.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2047 Lines: 48 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 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 : [] lr : [] 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/