Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757788AbYFPVVp (ORCPT ); Mon, 16 Jun 2008 17:21:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754593AbYFPVVh (ORCPT ); Mon, 16 Jun 2008 17:21:37 -0400 Received: from smtp.cs.aau.dk ([130.225.194.6]:58694 "EHLO smtp.cs.aau.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513AbYFPVVg (ORCPT ); Mon, 16 Jun 2008 17:21:36 -0400 Subject: Re: 2.6.26-git: NULL pointer deref in __switch_to From: Simon Holm =?ISO-8859-1?Q?Th=F8gersen?= To: Suresh Siddha Cc: Vegard Nossum , Patrick McHardy , Linux Kernel Mailinglist , Chuck Ebbert , "x86@kernel.org" In-Reply-To: <20080616174948.GB7788@linux-os.sc.intel.com> References: <4852B19E.4010202@trash.net> <19f34abd0806131124w32133715o3ef8c27cb0a9f96e@mail.gmail.com> <20080613224711.GA15084@linux-os.sc.intel.com> <1213611339.2495.11.camel@odie.local> <20080616174948.GB7788@linux-os.sc.intel.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 16 Jun 2008 23:21:23 +0200 Message-Id: <1213651283.2495.46.camel@odie.local> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6441 Lines: 151 man, 16 06 2008 kl. 10:49 -0700, skrev Suresh Siddha: > On Mon, Jun 16, 2008 at 03:15:39AM -0700, Simon Holm Thøgersen wrote: > > fre, 13 06 2008 kl. 15:47 -0700, skrev Suresh Siddha: > > > On Fri, Jun 13, 2008 at 11:24:01AM -0700, Vegard Nossum wrote: > > > > On Fri, Jun 13, 2008 at 7:42 PM, Patrick McHardy wrote: > > > > > I get this oops once a day, its apparently triggered by something > > > > > run by cron, but the process is a different one each time. > > > > > > > > > > Kernel is -git from yesterday shortly before the -rc6 release > > > > > (last commit is the usb-2.6 merge, the x86 patches are missing), > > > > > .config is attached. > > > > > > > > > > I'll retry with current -git, but the patches that have gone in > > > > > since I last updated don't look related. > > > > > > > > > > > > > Thanks for the report. > > > > > > > > > > > > > > [62060.043009] BUG: unable to handle kernel NULL pointer dereference at > > > > > 000001ff > > > > > [62060.043009] IP: [] __switch_to+0x2f/0x118 > > > > > [62060.043009] *pde = 00000000 > > > > > [62060.043009] Oops: 0002 [#1] PREEMPT > > > > > > Patrick, Do you see any other error messages before this BUG stmt? Can you > > > please provide the complete kernel log till the point of failure? > > > > > Suresh, I'm pretty sure this is the same problem that I reported two > > weeks ago [1]. I suggested that you tried running lguest and reproduced > > the problem locally, but I did not hear back from you. Now Patrick is > > reporting the same problem and is also indicating that the problem is > > correlated with his use of lguest, so I'd really like you to follow up > > on this. > > I am on this and did try reproducing with lguest last week but couldn't > reproduce the issue with the initrd image. May be I need a full blown > disk image. Okay, I wasn't always able to reproduce it either using that image. Maybe forcing CPU frequency to the maximum and/or adding compile load on the host help, but I'm not sure. > > > At least for me, with this patch applied on top of -rc4 or -rc6+ the > > problem still triggered after running an lguest guest for less than 30 > > seconds (the guest didn't even finish the boot of an image of Ubuntu > > with no X-server). > > Please post the oops you captured. > It is similar to the one I posted in the top of [1] earlier. The trace is different from Patrick's and the last two I posted in [1], but there has been a strong correlation between these three types of traces so I'm pretty sure they are different symptoms of the same bug. I could be wrong of course. The different traces are provoked by enabling and disabling different debugging options, and this trace is just easier to trigger and capture the full trace of. BUG: sleeping function called from invalid context at mm/slab.c:3052 in_atomic():1, irqs_disabled():0 Pid: 2449, comm: lguest Not tainted 2.6.26-rc6-debug-preempt-sleeping-spinlocks-00111-g318d65c #109 [] __might_sleep+0xe4/0xeb [] kmem_cache_alloc+0x22/0xb4 [] init_fpu+0xb0/0x14d [] math_state_restore+0x26/0x5d [] device_not_available+0x43/0x48 [] ? handle_vm86_fault+0x213/0x6b8 [] ? __switch_to+0x23/0x119 [] schedule+0x230/0x2b3 [] ? schedule_timeout+0x16/0x89 [] ? __pollwait+0xaa/0xb0 [] ? pipe_poll+0x29/0x89 [] ? do_select+0x478/0x4cd [] ? __pollwait+0x0/0xb0 [] ? default_wake_function+0x0/0xd [] ? default_wake_function+0x0/0xd [] ? default_wake_function+0x0/0xd [] ? default_wake_function+0x0/0xd [] ? default_wake_function+0x0/0xd [] ? getnstimeofday+0x37/0xbb [] ? ktime_get_ts+0x40/0x44 [] ? ktime_get+0x13/0x2f [] ? rb_insert_color+0x55/0xbc [] ? lock_timer_base+0x3d/0x79 [] ? delay_tsc+0x8e/0xab [] ? ide_dma_intr+0x0/0x79 [] ? __delay+0x9/0xb [] ? __const_udelay+0x17/0x19 [] ? ide_execute_command+0x7b/0x95 [] ? ide_dma_start+0x24/0x36 [] ? do_rw_taskfile+0x1be/0x1cf [] ? ide_do_rw_disk+0x19a/0x1dd [] ? __const_udelay+0x17/0x19 [] ? ide_do_request+0x838/0x875 [] ? ide_end_request+0x7d/0x99 [] ? task_end_request+0x43/0x55 [] ? core_sys_select+0x1e9/0x2c7 [] ? find_lock_page+0xa1/0xbb [] ? filemap_fault+0x21c/0x382 [] ? unlock_page+0x24/0x27 [] ? __do_fault+0x30f/0x347 [] ? handle_mm_fault+0x291/0x65a [] ? sys_select+0x8f/0x143 [] ? do_page_fault+0x365/0x63f [] ? sysenter_past_esp+0x78/0xb1 [] ? fn_hash_flush+0xe6/0x165 ======================= BUG: sleeping function called from invalid context at mm/slab.c:3052 in_atomic():1, irqs_disabled():0 Pid: 2449, comm: lguest Not tainted 2.6.26-rc6-debug-preempt-sleeping-spinlocks-00111-g318d65c #109 [] __might_sleep+0xe4/0xeb [] kmem_cache_alloc+0x22/0xb4 [] ? getnstimeofday+0x37/0xbb [] init_fpu+0xb0/0x14d [] math_state_restore+0x26/0x5d [] device_not_available+0x43/0x48 [] ? handle_vm86_fault+0x198/0x6b8 [] ? __switch_to+0x23/0x119 [] schedule+0x230/0x2b3 [] ? pipe_wait+0x53/0x72 [] ? autoremove_wake_function+0x0/0x30 [] ? pipe_read+0x29a/0x302 [] ? hrtimer_start+0xcc/0xf8 [] ? hrtick_set+0xcc/0x140 [] ? do_sync_read+0xba/0xf8 [] ? autoremove_wake_function+0x0/0x30 [] ? default_llseek+0xa7/0xb5 [] ? do_sync_read+0x0/0xf8 [] ? vfs_read+0x8a/0x106 [] ? sys_read+0x3b/0x60 [] ? sysenter_past_esp+0x78/0xb1 ======================= > > If you or anybody else would like to use the same guest image I use > > please just ask and I'll make it available somehow. > > Can you please upload it some where? I will also try with another guest > image meanwhile. > [access provided to Suresh in private email] Simon -- 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/