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]
Message-ID: <Pine.LNX.4.44L0.0809040958370.2474-100000@iolanthe.rowland.org>
Date:	Thu, 4 Sep 2008 10:03:36 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Thiago Galesi <thiagogalesi@...il.com>
cc:	Alex Buell <alex.buell@...ted.org.uk>,
	<linux-kernel@...r.kernel.org>, Robert Hancock <hancockr@...w.ca>,
	Tomas Styblo <tripie@...n.org>, <linux-usb@...r.kernel.org>,
	<usb-storage@...ts.one-eyed-alien.net>
Subject: Re: [PATCH] JMicron JM20337 USB-SATA data corruption bugfix - device
 152d:2338

On Thu, 4 Sep 2008, Thiago Galesi wrote:

> Ok, I looked into this a little bit further...
> 
> K3B provides an interesting log:
> 
> first, this is repeated 3 times:
> 
> (K3bDevice::ScsiCommand) failed:
>                            command:    MODE SELECT (55)
>                            errorcode:  70
>                            sense key:  ILLEGAL REQUEST (5)
>                            asc:        26
>                            ascq:       0
> 
> then it shows:
> 
> (K3bDevice::ScsiCommand) failed:
>                            command:    GET PERFORMANCE (ac)
>                            errorcode:  0
>                            sense key:  NO SENSE (2)
>                            asc:        0
>                            ascq:       0
> (K3bDevice::Device) /dev/scd0: GET PERFORMANCE length det failed.
> 
> And then all commands from then on fail
> 
> strace indicate this is sent via SG_IO IOCTL (unfortunatelly, strace
> doen't show the contents in the ioctl)
> 
> I don't know if the device is supposed to stop working when receiving
> an unkown command (like it is apparently doing), also because
> apparently cdrecord doesn't send this command but fails anyway

Who would ever design a device that was supposed to stop working when 
it received an unknown command?  Obviously there's a bug either in the 
device or in the JMicron adapter.

What commands does cdrecord send and where does it fail?

Oh yes, one other thing...  Have you tried hooking this drive directly 
to an IDE cable (avoiding the USB-ATA adapter) to see if it works okay 
in that environment?  If it does then you know where the bug is.

Alan Stern

--
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