On Fri, 14 Dec 2007, Phil Endecott wrote:

> OK, but the kernel driver can still look in the buffer even though it 
> doesn't know how much, if any, of it is actually valid; it might do 
> this as a "last chance" when talking to a broken device, e.g. my 
> printer.  Right?

Yes, the kernel could copy the entire buffer back to userspace
regardless of the amount of data transferred.  This would exert a
certain toll in operating speed, because the kernel would have to clear
the contents of the buffer beforehand to avoid a security leak.  And 
the user program still wouldn't know how much of the data in the buffer 
had actually been transferred from the device.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to