Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262238AbVBKSSx (ORCPT ); Fri, 11 Feb 2005 13:18:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262241AbVBKSSx (ORCPT ); Fri, 11 Feb 2005 13:18:53 -0500 Received: from wproxy.gmail.com ([64.233.184.196]:6727 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S262238AbVBKSSU (ORCPT ); Fri, 11 Feb 2005 13:18:20 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=PMcNvilKawvZuHHBX16WJHKBVYOkTRRVkijX077T1hNqlN1DWsiN6Q5bUTQmWyZwRhmgVQX2A2sEDnGjwQo5yjwQZr785xw8/SRybwbIFgmqpeoWJEzn8n3WtKKoNLauicnpCR/4GISwtAX6tXOK/2LryqjwGu5soUvWPtVfR4g= Message-ID: <58cb370e05021110181c2dbf96@mail.gmail.com> Date: Fri, 11 Feb 2005 19:18:19 +0100 From: Bartlomiej Zolnierkiewicz Reply-To: Bartlomiej Zolnierkiewicz To: Florian Lohoff Subject: Re: [OOps] 2.6.11-rc3 rmmod ide-scsi Cc: linux-kernel@vger.kernel.org In-Reply-To: <20050208175529.GA28369@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050208175529.GA28369@paradigm.rfc822.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4412 Lines: 95 Hi Florian, Thanks for the report, addition of MRW support to cdrom.c exposed bugs in ide-scsi locking. ide-scsi is a "virtual" host driver which is a bridge between IDE and SCSI subsystems so fixing ide-scsi requires assuring that locking is correct both for IDE and SCSI "side". Required changes consist of: * adding reference counting to ide-scsi (now in ide-dev-2.6 tree) * fixing various races in IDE device drivers to make conversion to driver model possible (now in ide-dev-2.6 tree) * converting IDE device drivers to driver model (posted for review) * fixing reference counting w.r.t. SCSI subsystem (in testing) With all the above changes I can rmmod ide-scsi safely. In short: this will hopefully get fixed in -mm tree soon. Regards, Bartlomiej On Tue, 8 Feb 2005 18:55:29 +0100, Florian Lohoff wrote: > > Hi, > got this oops while unloading ide-scsi (rmmod segfaulted) > > UP P4 1.7Ghz non Preempt, No HT, IDE DVD/CD-RW, IDE Disk, Vanilla > Kernel, (-chaos -> Debian make-kpkg --append-to-version=-chaos) > > Linux chaos 2.6.11-rc3-chaos #1 Fri Feb 4 23:27:57 CET 2005 i686 GNU/Linux > > Unable to handle kernel NULL pointer dereference at virtual address 000001e0 > printing eip: > e089e539 > *pde = 00000000 > Oops: 0000 [#1] > Modules linked in: nls_iso8859_1 isofs autofs4 nfs lockd sunrpc snd_ens1371 snd_rawmidi snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd snd_page_alloc e100 i2c_i801 i2c_core evdev usbhid uhci_hcd usbcore intel_agp agpgart sr_mod cdrom dm_mod ide_scsi scsi_mod eepro100 mii > CPU: 0 > EIP: 0060:[] Not tainted VLI > EFLAGS: 00010002 (2.6.11-rc3-chaos) > EIP is at idescsi_queue+0x119/0x400 [ide_scsi] > eax: 00000000 ebx: c0971a40 ecx: e08c4a30 edx: dedf8b00 > esi: 00001388 edi: c044e234 ebp: dedf8b54 esp: c910dc94 > ds: 007b es: 007b ss: 0068 > Process rmmod (pid: 11757, threadinfo=c910c000 task=c9eec510) > Stack: dffef380 00000020 00000010 c0971a40 dedf8b00 d9546cb0 dedf8b68 deffcd80 > 000001d4 c044e234 00000293 dedf8b00 ded25400 00000000 e08c47cf dedf8b00 > e08c4a30 e08c76d0 dedf8b88 dedf8b00 df692c00 ded25400 c1583030 e08caa9a > Call Trace: > [] scsi_dispatch_cmd+0x16f/0x250 [scsi_mod] > [] scsi_done+0x0/0x30 [scsi_mod] > [] scsi_times_out+0x0/0xc0 [scsi_mod] > [] scsi_request_fn+0x1ca/0x380 [scsi_mod] > [] __elv_add_request+0x78/0xc0 > [] blk_insert_request+0xa6/0xd0 > [] scsi_insert_special_req+0x38/0x40 [scsi_mod] > [] scsi_wait_req+0x68/0xa0 [scsi_mod] > [] scsi_wait_done+0x0/0x60 [scsi_mod] > [] sr_do_ioctl+0x92/0x2a0 [sr_mod] > [] sr_packet+0x25/0x40 [sr_mod] > [] cdrom_get_disc_info+0x65/0xb0 [cdrom] > [] cdrom_mrw_exit+0x1b/0x70 [cdrom] > [] unregister_cdrom+0x83/0xb0 [cdrom] > [] sr_kref_release+0x2a/0x50 [sr_mod] > [] sr_kref_release+0x0/0x50 [sr_mod] > [] kref_put+0x39/0xa0 > [] kobject_put+0x1f/0x30 > [] sr_remove+0x39/0x4b [sr_mod] > [] sr_kref_release+0x0/0x50 [sr_mod] > [] device_release_driver+0x86/0x90 > [] bus_remove_device+0x64/0xb0 > [] device_del+0x5d/0xa0 > [] scsi_remove_device+0x4f/0xb0 [scsi_mod] > [] scsi_forget_host+0x2a/0x50 [scsi_mod] > [] scsi_remove_host+0x19/0x80 [scsi_mod] > [] idescsi_cleanup+0x4d/0x60 [ide_scsi] > [] ide_unregister_driver+0x5e/0x90 > [] try_stop_module+0x28/0x30 > [] exit_idescsi_module+0xf/0x11 [ide_scsi] > [] sys_delete_module+0x144/0x180 > [] do_munmap+0xf0/0x160 > [] sys_munmap+0x44/0x70 > [] syscall_call+0x7/0xb > Code: 8b 54 24 3c 8b 42 64 89 53 2c 89 43 14 89 43 0c 8b 4c 24 40 89 4b 30 a1 a0 0d 35 c0 8b 72 3c 01 f0 89 43 38 8b 7c 24 24 8b 47 20 <8b> 80 e0 01 00 00 a8 01 74 05 0f ba 6b 34 02 8b 43 1c 89 44 24 > > -- > Florian Lohoff flo@rfc822.org +49-171-2280134 > Heisenberg may have been 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/