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:	Tue, 26 May 2009 12:51:35 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	"Michael S. Tsirkin" <mst@...hat.com>
cc:	Kay Sievers <kay.sievers@...y.org>,
	OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
	Kernel development list <linux-kernel@...r.kernel.org>,
	USB list <linux-usb@...r.kernel.org>
Subject: Re: 2.a.30-rc7: fat filesystem misdetected as amiga

On Tue, 26 May 2009, Michael S. Tsirkin wrote:

> > They would know.  But it's easy enough to find out.  (Looks through 
> > the SCSI code...)  Here we go.  scsi_io_completion() contains this:
> > 
> > 		case ILLEGAL_REQUEST:
> > 			/* If we had an ILLEGAL REQUEST returned, then
> > 			 * we may have performed an unsupported
> > 			 * command.  The only thing this should be
> > 			 * would be a ten byte read where only a six
> > 			 * byte read was supported.  Also, on a system
> > 			 * where READ CAPACITY failed, we may have
> > 			 * read past the end of the disk.
> > 			 */
> > 			if ((cmd->device->use_10_for_rw &&
> > 			    sshdr.asc == 0x20 && sshdr.ascq == 0x00) &&
> > 			    (cmd->cmnd[0] == READ_10 ||
> > 			     cmd->cmnd[0] == WRITE_10)) {
> > 				/* This will issue a new 6-byte command. */
> > 				cmd->device->use_10_for_rw = 0;
> > 				action = ACTION_REPREP;
> > 			} else if (sshdr.asc == 0x10) /* DIX */ {
> > 				description = "Host Data Integrity Failure";
> > 				action = ACTION_FAIL;
> > 				error = -EILSEQ;
> > 			} else
> > 				action = ACTION_FAIL;
> > 			break;
> 
> Which kernel version is this? I see different code in 2.6.30-rc7.

I don't.  It looks exactly the same as this (this was taken from 
2.6.30-rc6).  Look starting at line 844 of drivers/scsi/scsi_lib.c.

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