Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757835AbYHBRJq (ORCPT ); Sat, 2 Aug 2008 13:09:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756154AbYHBRJb (ORCPT ); Sat, 2 Aug 2008 13:09:31 -0400 Received: from fk-out-0910.google.com ([209.85.128.187]:8606 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755939AbYHBRJ2 (ORCPT ); Sat, 2 Aug 2008 13:09:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-disposition:message-id:content-type :content-transfer-encoding; b=T4tWeuqMPXok+apIsmlRSl+Afvh7B85AG3ecCv9IBSCFr2A9IaxL6Zatx7FK4J2Zs+ MKvXHFcnZ6HTIj3an56WPl1LgEZjZeg0+gUg6rcd8qDz3UlaCeaH2zc2Yz700tXxFTP0 lVCEeg8aJajzrm7pirsfKvY6I5UuFNms2C9i8= From: Bartlomiej Zolnierkiewicz To: Mariusz Kozlowski Subject: Re: 2.6.27-rc1-mm1: rmmod ide-cd_mod oops Date: Sat, 2 Aug 2008 18:15:57 +0200 User-Agent: KMail/1.9.9 Cc: Andrew Morton , kernel-testers@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org References: <20080731000354.24b55d5b.akpm@linux-foundation.org> <200808021123.57952.m.kozlowski@tuxland.pl> In-Reply-To: <200808021123.57952.m.kozlowski@tuxland.pl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200808021815.57573.bzolnier@gmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3372 Lines: 73 Hi, On Saturday 02 August 2008, Mariusz Kozlowski wrote: > Hi, > > rmmod on ide-cd_mod causes this oops: > > BUG: unable to handle kernel paging request at 83535683 > IP: [] ide_device_put+0xc/0x33 > *pde = 00000000 > Oops: 0000 [#1] PREEMPT > last sysfs file: /sys/devices/pci0000:00/0000:00:01.0/0000:01:05.0/resource > Modules linked in: radeon drm nfsd lockd sunrpc exportfs pcmcia uhci_hcd ehci_hcd usbcore snd_ali5451 yenta_socket pcspkr snd_ac97_codec ac97_bus rsrc_nonstatic snd_pcm snd_timer ati_agp agpgart snd soundcore snd_page_alloc ide_cd_mod(-) cdrom 8139too psmouse sony_laptop backlight floppy rtc > > Pid: 3890, comm: rmmod Not tainted (2.6.27-rc1-mm1 #2) > EIP: 0060:[] EFLAGS: 00010286 CPU: 0 > EIP is at ide_device_put+0xc/0x33 > EAX: 83535657 EBX: dc927a00 ECX: 00000003 EDX: 00000001 > ESI: dec34e34 EDI: dec34e34 EBP: d9f46ee0 ESP: d9f46edc > DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 > Process rmmod (pid: 3890, ti=d9f46000 task=dd88e780 task.ti=d9f46000) > Stack: dc927c00 d9f46eec dec2e202 dc927c00 d9f46ef8 dec2e225 dd9138dc d9f46f00 > c02469e0 d9f46f10 c024156f dd9138dc dd9139f4 d9f46f24 c024162c 00000880 > dec34e34 c0397dc0 d9f46f38 c0240a33 00000880 dec34e34 00000000 d9f46f48 > Call Trace: > [] ? ide_cd_put+0x26/0x33 [ide_cd_mod] > [] ? ide_cd_remove+0x16/0x19 [ide_cd_mod] > [] ? generic_ide_remove+0x1a/0x1e > [] ? __device_release_driver+0x59/0x7f > [] ? driver_detach+0x97/0x99 > [] ? bus_remove_driver+0x6f/0x8b > [] ? driver_unregister+0x2f/0x33 > [] ? ide_cdrom_exit+0xd/0xf [ide_cd_mod] > [] ? sys_delete_module+0x10d/0x1e2 > [] ? do_munmap+0x1d7/0x234 > [] ? trace_hardirqs_on_thunk+0xc/0x10 > [] ? sysenter_do_call+0x12/0x35 > ======================= > Code: ff ff 89 44 24 08 c7 44 24 04 a7 de 35 c0 89 34 24 e8 cb ce f9 ff 31 c0 83 c4 0c 5b 5e 5d c3 55 89 e5 53 89 c3 8b 40 24 8b 40 10 <8b> 40 2c 85 c0 74 12 8b 80 44 01 00 00 8b 40 08 85 c0 74 05 e8 > EIP: [] ide_device_put+0xc/0x33 SS:ESP 0068:d9f46edc > ---[ end trace a2eed48430d87636 ]--- > > this is easily reporoducible, more investigation points here: Unfortunately, I'm unable to reproduce it here with 2.6.27-rc1-mm1. Which IDE host driver is it happening with? Could you send me your .config? > (gdb) l *ide_device_put+0xc > 0xc0246ffa is in ide_device_put (/home/mako/linux/lkt/sources/linux-2.6.27-rc1-mm1/drivers/ide/ide.c:717). > 712 * the underlying LLDD module. > 713 */ > 714 void ide_device_put(ide_drive_t *drive) > 715 { > 716 #ifdef CONFIG_MODULE_UNLOAD > 717 struct device *host_dev = drive->hwif->host->dev[0]; <-------------------------- Could you please check whether it is drive->hwif or hwif->host exploding? [ hmm, both should never be changed after host driver initialization ] > 718 struct module *module = host_dev ? host_dev->driver->owner : NULL; > 719 > 720 if (module) > 721 module_put(module); > > Mariusz -- 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/