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.