lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 15 Jan 2009 16:13:56 +1100
From:	Iwo Mergler <iwo@...l-direct.com.au>
To:	Alan Stern <stern@...land.harvard.edu>
CC:	Ozan Çağlayan <ozan@...dus.org.tr>,
	linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org
Subject: Re: A really interesting mass-storage BUG introduced after 2.6.18

Alan Stern wrote:
> On Tue, 13 Jan 2009, [UTF-8] Ozan Çağlayan wrote:
> 
>> Here's the usbmon log:
> ...
> 
> Here's the interesting part, right at the end of the log:
> 
>> ee5f0e80 2495844993 S Bo:1:011:1 -115 31 = 55534243 02000000 00000000 00000600 00000000 00000000 00000000 000000
>> ee5f0e80 2495845078 C Bo:1:011:1 0 31 >
>> ee5f0e80 2495845112 S Bi:1:011:2 -115 13 <
>> ee5f0e80 2495845327 C Bi:1:011:2 0 13 = 55534253 02000000 00000000 01
>> ee5f0e80 2495845338 S Bo:1:011:1 -115 31 = 55534243 03000000 12000000 80000603 00000012 00000000 00000000 000000
>> ee5f0e80 2495845579 C Bo:1:011:1 0 31 >
>> ee4d7280 2495845595 S Bi:1:011:2 -115 18 <
>> ee4d7280 2495845829 C Bi:1:011:2 0 18 = 70000600 0000000a 00000000 3a000000 0000
>> ee5f0e80 2495845850 S Bi:1:011:2 -115 13 <
>> ee5f0e80 2495845955 C Bi:1:011:2 0 13 = 55534253 03000000 00000000 00
> 
> This shows the computer sending a TEST UNIT READY command to the drive, 
> and the drive reporting Unit Attention: Media not present.  So of 
> course Linux believes there is no media loaded in the drive and doesn't 
> try to read the partition table or anything else.
> 
> Presumably if the drive is plugged in during bootup then the BIOS does 
> something to make this error status go away.  It's hard to guess what 
> that would be, however.
> 

It could be a matter of timing. Some badly designed USB devices have a
dead time between power-up and being ready, but show up on the bus as
if they where. The "Media not present" thing could be a symptom of this.

To verify it, try inserting the device slowly. The power contacts in
the USB connector are longer than the data contacts and the device gets
more time to boot.

Regards,

Iwo


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ