Bug 5776
Summary: | initio: Kernel crash while launching K3B app. with SCSI driver | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Srdjan Todorovic (todorovic.s) |
Component: | SCSI | Assignee: | Mike Anderson (andmike) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | polynomial-c, protasnb |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.14 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
dmesg output under 2.6.15-git9
Serial console messages under 2.6.17 Serial console message under 2.6.18-git21 |
Description
Srdjan Todorovic
2005-12-22 20:22:59 UTC
Ran sysctl -w dev.scsi.logging_level=0xffffffff on linux 2.6.15-rc6 with SCSI logging facility selected. That produced a load of scsi debugging text. A lot of it seems to be periodic command: Test Unit Ready: 00 00 00 00 00 00 with other commands like command: Read TOC/PMA/ATIP intermixed. The last 20 or so lines are as follows: Dec 26 18:42:45 tigerclaw kernel: Trying ioctl with scsi command 30 Dec 26 18:42:45 tigerclaw kernel: scsi_add_timer: scmd: c15cb060, time: 2500, (c02:0:4:0: done 0xc15cb060 SUCCESS 2 sr 0:0:4:0: Dec 26 18:42:45 tigerclaw kernel: command: Read TOC/PMA/ATIP: 43 00 00 00 00 00 00 00 0c 40 Dec 26 18:42:45 tigerclaw kernel: : Current: sense key: Not Ready Dec 26 18:42:45 tigerclaw kernel: Additional sense: Medium not present - tray closed Dec 26 18:42:45 tigerclaw kernel: scsi host busy 1 failed 0 Dec 26 18:42:45 tigerclaw kernel: sr 0:0:4:0: Notifying upper driver of completion (result 8000002) Dec 26 18:42:45 tigerclaw kernel: 0 sectors total, 0 bytes done. Dec 26 18:42:45 tigerclaw kernel: use_sg is 1 Dec 26 18:42:45 tigerclaw kernel: scsi_block_when_processing_errors: rtn: 1 Dec 26 18:42:45 tigerclaw kernel: scsi_add_timer: scmd: c15cb060, time: 7500, (c025ef34) Dec 26 18:42:45 tigerclaw kernel: sr 0:0:4:0: send 0xc15cb060 sr 0:0:4:0: Dec 26 18:42:45 tigerclaw kernel: command: Read TOC/PMA/ATIP: 43 00 00 00 00 00 00 00 0c 00 Dec 26 18:42:45 tigerclaw kernel: buffer = 0xc1541e40, bufflen = 12, done = 0xc02617e0, queuecommand 0xc02683f2 Dec 26 18:42:45 tigerclaw kernel: leaving scsi_dispatch_cmnd() Dec 26 18:42:45 tigerclaw kernel: scsi_delete_timer: scmd: c15cb060, rtn: 1 Dec 26 18:42:45 tigerclaw kernel: sr 0:0:4:0: done 0xc15cb060 SUCCESS 2 sr 0:0:4:0: Dec 26 18:42:45 tigerclaw kernel: command: Read TOC/PMA/ATIP: 43 00 00 00 00 00 00 00 0c 00 Dec 26 18:42:45 tigerclaw kernel: : Current: sense key: Not Ready Dec 26 18:42:45 tigerclaw kernel: Additional sense: Medium not present - tray closed Dec 26 18:42:45 tigerclaw kernel: scsi host busy 1 failed 0 Dec 26 18:42:45 tigerclaw kernel: sr 0:0:4:0: Notifying upper driver of completion (result 8000002) Dec 26 18:44:38 tigerclaw kernel: klogd 1.4.1, log source = /proc/kmsg started. Created attachment 7018 [details]
dmesg output under 2.6.15-git9
Newly tested: 2.6.15 2.6.15-git9 2.6.15-mm3 All three kernels crash as detailed above. bugme-daemon@bugzilla.kernel.org wrote: > > ttp://bugzilla.kernel.org/show_bug.cgi?id=5776 > > Summary: initio: Kernel crash while launching K3B app. with SCSI > driver > Kernel Version: 2.6.14 The initio driver keeled over during some sort of scanning/querying operation. Hi, isn't this report a duplicate of http://bugzilla.kernel.org/show_bug.cgi?id=5659 is it? Cheers Lars Created attachment 9152 [details]
Serial console messages under 2.6.17
I just finally managed to get my hands on a null cable, and setup a serial
console.
Set nmi_watchdog=1 on the command line. SysRq was responsive after setting
this option.
Kernel is vanilla 2.6.17, with many many debug options turned on.
Initio driver set as module.
Lockup trigger is running k3b (if scsi device was added to application's list)
or calling k3bsetup to add the scsi device to applications list of writers.
See attachment for log.
Will test latest kernel soon.
Created attachment 9163 [details]
Serial console message under 2.6.18-git21
Log output for 2.6.18-git21
I ran git-bisect on Linus' tree to try to find the commit change that caused the hangs. Here's the commit: --- 186d330e682210100c671355580a8592e4a21692 is first bad commit commit 186d330e682210100c671355580a8592e4a21692 Author: Timothy Thelin <Timothy.Thelin@wdc.com> Date: Tue Sep 13 19:56:28 2005 -0700 [SCSI] scsi: sd, sr, st, and scsi_lib all fail to copy cmd_len to new cmd This fixes an issue in scsi command initialization from a request where sd, sr, st, and scsi_lib all fail to copy the request's cmd_len to the scsi command's cmd_len field. Signed-off-by: Timothy Thelin <timothy.thelin@wdc.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> --- Running the k3b-1.0pre2 and newer versions does not produce a hang. Running k3b-0.12.17 causes hangs. I'm guessing that the newer k3b version properly passes the command length parameters to the SCSI system. Has this problem been resolved? According to #8, the bug can be closed now, correct? Thanks. Just tested with 2.6.22.1 and k3b-1.0.3 No crash or lockup. Bug appears to be fixed for some time now. Closing bug report. |