initio.c and k3b: git-bisect advice
Greetings,
I just ran git-bisect on Linus' tree to try to find the cause of the hangs I've been experiencing with the below bug;
http://bugzilla.kernel.org/show_bug.cgi?id=5776
and have narrowed down the search to one commit that causes the hang.
---186d330e682210100c671355580a8592e4a21692 is first bad commit commit 186d330e682210100c671355580a8592e4a21692
Author: Timothy Thelin <[email protected]> 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.
---
Running the latest k3b beta version does not produce a hang, running an earlier version does. I'm guessing that the newer k3b version properly passes the command length parameters to the SCSI system.
I just wanted to know:
a) Is this the likely cause of the hangs?
b) is the commit above correct in setting the cmd_len member even if sd, st, sr and scsi_lib fail? If those parts of SCSI system fail to set the length, why would this patch succeed to set the length correctly?
(I'm a kernelnewbie and am not very familiar with SCSI so I'm very
likely wrong. Please be gentle with the flames ;) )
If k3b was indeed passing garbage to the SCSI layers, this would be pretty dangerous because a userland application could hang the kernel arbitrarily. Or did I misunderstand?
Regards,
Srdjan Todorovic