[Bug 642142] New: BUG_ON when unloading pm8001 driver
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c0 Summary: BUG_ON when unloading pm8001 driver Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: chuck_tuffli@pmc-sierra.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 Any driver using libsas that connects to a JBOD which issues a PHY_VACANT will segfault when unloading (rmmod). See linux-scsi mailing list (http://marc.info/?l=linux-scsi&m=128496203905234&w=2) for details and a patch. Reproducible: Always Steps to Reproduce: 1. modprobe pm8001 2. connect device to an HP D2700 SAS disk enclosure 3. wait to detect the attached drives 4. rmmod pm8001 Actual Results: rmmod segfaults and driver does not unload. Relevant section from /var/log/messages [15764.564190] ------------[ cut here ]------------ [15764.564193] kernel BUG at /usr/src/packages/BUILD/kernel-desktop-2.6.34/linux-2.6.34/include/linux/transport_class.h:92! [15764.564197] invalid opcode: 0000 [#1] PREEMPT SMP [15764.564201] last sysfs file: /sys/devices/pci0000:00/0000:00:03.0/class [15764.564205] CPU 0 [15764.564206] Modules linked in: ses enclosure pm8001(-) edd fuse loop dm_mod libsas scsi_transport_sas iTCO_wdt ioatdma iTCO_vendor_support sr_mod shpchp i5400_edac edac_core pcspkr cdrom i5k_amb thermal processor floppy i2c_i801 dca sg pci_hotplug e1000e thermal_sys container button sd_mod ata_generic ata_piix libata scsi_mod reiserfs [last unloaded: spc] [15764.564240] [15764.564244] Pid: 2985, comm: rmmod Not tainted 2.6.34-12-desktop #1 X7DWE/X7DWE [15764.564247] RIP: 0010:[<ffffffffa023f136>] [<ffffffffa023f136>] sas_release_transport+0x66/0x70 [scsi_transport_sas] [15764.564263] RSP: 0018:ffff88007e94fed8 EFLAGS: 00010286 [15764.564266] RAX: 00000000fffffff0 RBX: ffff88007de01000 RCX: ffff88007e4f1d40 [15764.564269] RDX: 000000000000101d RSI: ffffffff81240f20 RDI: ffffffff81a46600 [15764.564272] RBP: ffffffffa02eaee0 R08: 0000000000000000 R09: ffff88007e5246a0 [15764.564275] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000880 [15764.564277] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 [15764.564280] FS: 00007fb3ea523700(0000) GS:ffff880001e00000(0000) knlGS:0000000000000000 [15764.564283] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [15764.564286] CR2: 00007f0f412c8710 CR3: 000000007f07a000 CR4: 00000000000006f0 [15764.564289] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [15764.564291] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [15764.564294] Process rmmod (pid: 2985, threadinfo ffff88007e94e000, task ffff88007bc1c5c0) [15764.564297] Stack: [15764.564299] 0000000000000880 ffffffff8108bd0f ff00313030386d70 ffffffff810fd43b [15764.564304] <0> ffff88007dd7e4c0 ffff88007be86c08 ffff88007e50d6c0 ffff88007dd7e4a8 [15764.564309] <0> 0000000000000000 ffff88007be86c60 ffffffffa02eaee0 00007fb300000880 [15764.564315] Call Trace: [15764.564343] [<ffffffff8108bd0f>] sys_delete_module+0x18f/0x2a0 [15764.564355] [<ffffffff81002ffb>] system_call_fastpath+0x16/0x1b [15764.564366] [<00007fb3ea086d77>] 0x7fb3ea086d77 [15764.564368] Code: 75 29 48 8d bb 88 08 00 00 e8 47 72 0c e1 85 c0 75 19 48 8d bb f0 08 00 00 e8 37 72 0c e1 85 c0 75 09 48 89 df 5b e9 7a b1 ed e0 <0f> 0b 0f 1f 84 00 00 00 00 00 41 57 49 89 ff 41 56 41 55 49 89 [15764.564414] RIP [<ffffffffa023f136>] sas_release_transport+0x66/0x70 [scsi_transport_sas] [15764.564423] RSP <ffff88007e94fed8> [15764.564428] ---[ end trace c9747f87f84c0091 ]--- Expected Results: No segfault and driver unloads -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c1 Tony Jones <tonyj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |tonyj@novell.com AssignedTo|kernel-maintainers@forge.pr |hare@novell.com |ovo.novell.com | --- Comment #1 from Tony Jones <tonyj@novell.com> 2010-09-28 15:24:55 UTC --- Hannes, can you take this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c2 --- Comment #2 from Hannes Reinecke <hare@novell.com> 2010-09-29 07:23:04 UTC --- Sure. I've just posted a short review on the mailing list; basically it might be a better idea to not print out the message in sas_set_ex_phy() in the case of failure, as we didn't actually attach the phy. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c3 --- Comment #3 from Hannes Reinecke <hare@novell.com> 2010-09-29 07:27:58 UTC --- Created an attachment (id=392039) --> (http://bugzilla.novell.com/attachment.cgi?id=392039) sas-expander-fixup-for-vacant-phy Fixup sas_expander.c to handle vacant phy correctly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c4 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hare@novell.com AssignedTo|hare@novell.com |jbottomley@novell.com --- Comment #4 from Hannes Reinecke <hare@novell.com> 2010-09-29 07:28:32 UTC --- But actually, this is SAS. Maybe James would be more appropriate here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c6 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |jankit@novell.com |ovo.novell.com | --- Comment #6 from Hannes Reinecke <hare@novell.com> 2011-06-03 07:00:38 UTC --- Patch has been included in our kernel repository for SLES11 SP1 and has been released via maintenance. Ankit, can you please make sure the patch is present in OpenSUSE 11.3, too? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c7 Ankit Jain <jankit@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Ankit Jain <jankit@novell.com> 2011-06-03 12:12:36 UTC --- Committed for OpenSUSE 11.3 . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=642142 https://bugzilla.novell.com/show_bug.cgi?id=642142#c8 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.3:42359 --- Comment #8 from Swamp Workflow Management <swamp@suse.de> 2011-08-02 07:59:13 UTC --- Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-devel, kernel-ec2, kernel-ec2-base, kernel-ec2-base-debuginfo, kernel-ec2-debuginfo, kernel-ec2-debugsource, kernel-ec2-devel, kernel-ec2-devel-debuginfo, kernel-ec2-extra, kernel-ec2-extra-debuginfo, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-vmi, kernel-vmi-base, kernel-vmi-base-debuginfo, kernel-vmi-debuginfo, kernel-vmi-debugsource, kernel-vmi-devel, kernel-vmi-devel-debuginfo, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop Products: openSUSE 11.3 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com