SCSI over USB showstopper bug?
- From: Joerg.Schilling@xxxxxxxxxxxxxxxxxxx (Joerg Schilling)
- Date: Tue, 31 Oct 2006 23:08:38 +0100
Hi,
it looks as if SG_GET_RESERVED_SIZE & SG_SET_RESERVED_SIZE
are not in interaction with the underlying SCSI transport.
Programs like readcd and cdda2wav that try to get very large SCSI
transfer buffers get a confirmation for nearly any SCSI transfer size
but later when readcd/cdda2wav try to transfer data with an
actual SCSI command, they fail with ENOMEM.
Correct fix: let sg.c make a callback to the underlying SCSI transport
and let it get a confirmation tfor the buffer size.
Quick and dirty fix: reduce the maximum allowed DMA size to the smallest
max DMA size of all SCSI transports.
Jörg
--
EMail:joerg@xxxxxxxxxxxxxxxxxxxxxxxxxxx (home) Jörg Schilling D-13353 Berlin
js@xxxxxxxxxxxxxxx (uni)
schilling@xxxxxxxxxxxxxxxxxxx (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: SCSI over USB showstopper bug?
- From: Arjan van de Ven
- Re: SCSI over USB showstopper bug?
- Prev by Date: [PATCH] 2.6.19-rc4 - netlink messages created with bad flags in soft_irq context
- Next by Date: Re: [PATCH] Fix potential NULL pointer dereference in echoaudio midi.
- Previous by thread: [PATCH] 2.6.19-rc4 - netlink messages created with bad flags in soft_irq context
- Next by thread: Re: SCSI over USB showstopper bug?
- Index(es):
Relevant Pages
|