Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960AbYKLCau (ORCPT ); Tue, 11 Nov 2008 21:30:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751868AbYKLCal (ORCPT ); Tue, 11 Nov 2008 21:30:41 -0500 Received: from wf-out-1314.google.com ([209.85.200.172]:51923 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbYKLCak (ORCPT ); Tue, 11 Nov 2008 21:30:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=v9yeKBCZie/buiAnqCwJbhQmGLkI4qLhCP1hRognuFXfdFAsbqGXqmkZNMdEDaBM1D uRaoAyzeYjJe2G0OT7O6QGWbYpHlIJUg+7Q0waXjPslo4Q0/CDsSawI1tlDUPM/Hao4H ohEH1+vYFiiuDPNuJLJq/3u+5qDtZRkIJmTgw= Message-ID: Date: Wed, 12 Nov 2008 10:30:39 +0800 From: "Dave Young" To: "Folkert van Heusden" Subject: Re: [2.6.26] OOPS in elv_next_request Cc: linux-kernel@vger.kernel.org In-Reply-To: <20081101161201.GQ11214@vanheusden.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081027090426.GN8318@vanheusden.com> <20081030142550.GB11214@vanheusden.com> <20081101161201.GQ11214@vanheusden.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4513 Lines: 89 On Sun, Nov 2, 2008 at 12:12 AM, Folkert van Heusden wrote: >> >> > While running my http://vanheusden.com/pyk/ script (which randomly >> >> > inserts and removes modules) I triggered the folllowing oops in a 2.6.26 >> >> > kernel on a Celeron 400 (Mendocino): >> >> > >> >> > [ 4768.664021] Floppy drive(s): fd0 is 1.44M >> > ... >> >> > [ 4768.720058] ---[ end trace 6a50caff78c47574 ]--- >> >> > [ 4769.658313] Floppy drive(s): fd0 is 1.44M >> >> > [ 4789.656060] no cont in shutdown! >> >> >> >> Hi, could you try the attached test patch? sorry for using attachment >> >> as there's some problem for my mail client to reply. >> > >> > As your patch is based on 2.6.27 I compiled the 2.6.27 kernel with it. But >> > something odd is going on: when 2.6.27 boots, right after the initrd loading >> > the screen-resolution gets changed or so, so that most text is no longer >> > visible. Also the system seems to halt. Unfortunately too early for >> > netconsole to emit the errors. >> >> Yes, the patch is based on 2.6.27, but it can be applied to 2.6.26 >> without problem. >> Could you try it with 2.6.26 again? > > Here are the results: > > [ 7041.704567] Floppy drive(s): fd0 is 1.44M > [ 7041.722756] FDC 0 is a post-1991 82077 > [ 7041.757944] BUG: unable to handle kernel NULL pointer dereference at 00000010 > [ 7041.758250] IP: [] elv_next_request+0x17f/0x190 > [ 7041.758563] *pde = 00000000 > [ 7041.758728] Oops: 0000 [#1] SMP > [ 7041.758996] Modules linked in: floppy(-) loop video output thermal ata_generic libata scsi_mod snd_mpu401_uart snd_rawmidi snd_pcm shpchp button parport ide_cd_mod cdrom fan uhci_hcd gameport snd_opl3_lib snd_hwdep pci_hotplug i2c_core snd_page_alloc dock snd_timer snd_seq_device netconsole configfs ipv6 snd soundcore via_agp agpgart evdev ext3 jbd mbcache ide_disk via82cxxx ide_pci_generic ide_core 8139too usbcore 8139cp mii pr > ocessor thermal_sys [last unloaded: battery] > [ 7041.760087] > [ 7041.760087] Pid: 6, comm: events/0 Not tainted (2.6.26-floppy-kerneldebug #1) > [ 7041.760087] EIP: 0060:[] EFLAGS: 00010046 CPU: 0 > [ 7041.760087] EIP is at elv_next_request+0x17f/0x190 > [ 7041.760087] EAX: c888e49c EBX: c940a820 ECX: 00000000 EDX: 00000000 > [ 7041.760087] ESI: c888e49c EDI: ca9487ca EBP: c940a824 ESP: c943ff34 > [ 7041.760087] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 > [ 7041.760087] Process events/0 (pid: 6, ti=c943e000 task=c942a460 task.ti=c943e000) > [ 7041.760087] Stack: 00000000 c940a820 ca94f5a4 ca9487ca c940a824 ca948813 c02bd3af 00d8f000 > [ 7041.760087] c8150100 c03b7364 c03b9e20 c03b9e20 c942a460 c942a5ec c1148e20 00000000 > [ 7041.760087] 878a643e 00000667 c940a820 c942a5ec ca94705d 00000286 c940a820 ca94f5a4 > [ 7041.760087] Call Trace: > [ 7041.760087] [] redo_fd_request+0x0/0xdc0 [floppy] > [ 7041.760087] [] redo_fd_request+0x49/0xdc0 [floppy] > [ 7041.760087] [] schedule+0x6f5/0x737 > [ 7041.760087] [] reset_interrupt+0x0/0x6c [floppy] > [ 7041.760087] [] redo_fd_request+0x0/0xdc0 [floppy] > [ 7041.760087] [] run_workqueue+0x74/0xef > [ 7041.760087] [] worker_thread+0xb7/0xc3 > [ 7041.760087] [] autoremove_wake_function+0x0/0x2d > [ 7041.760087] [] worker_thread+0x0/0xc3 > [ 7041.760087] [] kthread+0x38/0x5d > [ 7041.760087] [] kthread+0x0/0x5d > [ 7041.760087] [] kernel_thread_helper+0x7/0x10 > [ 7041.760087] ======================= > [ 7041.760087] Code: 04 24 89 e2 89 f0 e8 35 33 00 00 85 c0 74 0d 8b 1c 24 85 db 0f 85 a0 fe ff ff eb 18 8b 06 39 f0 75 dd 8b 46 0c 31 d2 8b 08 89 f0 51 10 85 c0 75 ea 31 db 5a 89 d8 5b 5e 5f 5d c3 55 89 cd 57 > [ 7041.760087] EIP: [] elv_next_request+0x17f/0x190 SS:ESP 0068:c943ff34 > [ 7041.760087] ---[ end trace d4b702ab996006dc ]--- > > >> BTW, for 2.6.27, did you set vga=normal or other things? > > None. > I also explicitly tried to set it but that didn't help > > Hi, Could you try move the flush_scheduled_work to the beginning of floppy_module_exit function and report the test result? If it still does not works, please file a bug in bugzilla.kernel.org (sorry for late reply) -- Regards dave -- 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/