https://bugzilla.novell.com/show_bug.cgi?id=271338 Summary: System panic if a Fibre Channel disk disappear while SCSI in the middle of lun scan Product: SUSE Linux 10.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bino.sebastian@emulex.com QAContact: qa@suse.de Description of problem: System panics with following message in the console if a Fibre Channel disk disappear in the middle of lun scan. How to reproduce the issue: =========================== Steps to Reproduce: 1. Connect a Emulex lpfc HBA to a SAN with atleast one storage array visible to the HBA and atleast one lun presented to the HBA. 2. Make sure that SCSI midlayer can see the SCSI lun using "cat /proc/scsi/scsi" command. 3. Unplug the Fibre Channel cable connected to the HBA. 4. Run following command immediately after unplugging the cable "echo '- - -' > /sys/class/scsi_host/host<host_no>/scan" Where <host_no> is the SCSI host number assigned to the lpfc HBA. 5. The lun_scan will wait until devloss timer expire. 6. Wait atleast 30 seconds for dev_loss timer to expire. =========== May 3 07:41:46 dhcp-74-160 kernel: Unable to handle kernel NULL pointer dereference at 0000000000000060 RIP: May 3 07:41:46 dhcp-74-160 kernel: <ffffffff802d9a40>{mutex_lock+16} May 3 07:41:46 dhcp-74-160 kernel: PGD 11cd60067 PUD 12bc90067 PMD 0 May 3 07:41:46 dhcp-74-160 kernel: Oops: 0002 [1] SMP May 3 07:41:46 dhcp-74-160 kernel: last sysfs file: /class/fc_host/host0/active_fc4s May 3 07:41:46 dhcp-74-160 kernel: CPU 1 May 3 07:41:46 dhcp-74-160 kernel: Modules linked in: cpufreq_ondemand cpufreq_userspace cpufreq_powersave powernow_k8 freq_table ipv6 af_packet button battery ac apparmor aamatch_pcre loop dm_mod usbhid shpchp ide_cd pci_hotplug uhci_hcd ohci_hcd ehci_hcd cdrom i2c_piix4 usbcore i2c_core bnx2 reiserfs edd fan thermal processor cciss qla2xxx firmware_class sg lpfc scsi_transport_fc serverworks sd_mod scsi_mod ide_disk ide_core May 3 07:41:46 dhcp-74-160 kernel: Pid: 5818, comm: lun_scan Tainted: G U 2.6.16.43-0.5-smp #1 May 3 07:41:46 dhcp-74-160 kernel: RIP: 0010:[<ffffffff802d9a40>] <ffffffff802d9a40>{mutex_lock+16} May 3 07:41:46 dhcp-74-160 kernel: RSP: 0018:ffff81019b033dd8 EFLAGS: 00010246 May 3 07:41:46 dhcp-74-160 kernel: RAX: 0000000000000000 RBX: 0000000000000060 RCX: 00000000ffffffff May 3 07:41:46 dhcp-74-160 kernel: RDX: 0000000000000000 RSI: 00000000adcc5050 RDI: 0000000000000060 May 3 07:41:46 dhcp-74-160 kernel: RBP: 0000000000000060 R08: 0000000000000001 R09: ffff810130ecb320 May 3 07:41:46 dhcp-74-160 kernel: R10: 0000000000000000 R11: 000000002bd006c0 R12: ffff81012b3a2af8 May 3 07:41:46 dhcp-74-160 kernel: R13: 0000000000000001 R14: 00000000ffffffff R15: 0000000000000000 May 3 07:41:46 dhcp-74-160 kernel: FS: 00002ad4d530cae0(0000) GS:ffff8101ae3cdc40(0000) knlGS:00000000f7f4aba0 May 3 07:41:46 dhcp-74-160 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b May 3 07:41:46 dhcp-74-160 kernel: CR2: 0000000000000060 CR3: 000000011ba37000 CR4: 00000000000006e0 May 3 07:41:46 dhcp-74-160 kernel: Process lun_scan (pid: 5818, threadinfo ffff81019b032000, task ffff8101ad3bd850) May 3 07:41:46 dhcp-74-160 kernel: Stack: 0000000000000001 00000000ffffffff 0000000000000000 ffffffff8803d187 May 3 07:41:46 dhcp-74-160 kernel: adcc50502bd006c0 ffff81012b3a2a98 00000000ffffffff 00000000ffffffff May 3 07:41:46 dhcp-74-160 kernel: ffff81012a99c000 00000000ffffffff May 3 07:41:46 dhcp-74-160 kernel: Call Trace: <ffffffff8803d187>{:scsi_mod:scsi_scan_target+78} May 3 07:41:46 dhcp-74-160 kernel: <ffffffff88073f44>{:scsi_transport_fc:fc_user_scan+85} May 3 07:41:46 dhcp-74-160 kernel: <ffffffff8803daf9>{:scsi_mod:store_scan+155} <ffffffff801bf329>{sysfs_write_file+185} May 3 07:41:46 dhcp-74-160 kernel: <ffffffff8018197b>{vfs_write+215} <ffffffff80181f42>{sys_write+69} May 3 07:41:46 dhcp-74-160 kernel: <ffffffff8010ad3e>{system_call+126} May 3 07:41:46 dhcp-74-160 kernel: May 3 07:41:46 dhcp-74-160 kernel: Code: f0 ff 0f 0f 88 9d 01 00 00 59 5e 5b c3 41 54 55 48 89 fd 53 May 3 07:41:46 dhcp-74-160 kernel: RIP <ffffffff802d9a40>{mutex_lock+16} RSP <ffff81019b033dd8> May 3 07:41:46 dhcp-74-160 kernel: CR2: 0000000000000060 -- 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, or are watching someone who is.