Re: usbfs and MAX_USBFS_BUFFER_SIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pete Zaitcev wrote:
> The control should be limited to a page. It is preposterous to think
> of anyone trying to send a control message with a buffer bigger than
> a couple hundred bytes, a thousand at most. If you managed to trick
> USBDEVFS_CONTROL into sending more than 16KB at a go, a check must be
> missing somewhere.

Fair argument. I haven't actually tried sending a big urb through 
USBDEVFS_CONTROL but I noticed that MAX_USBFS_BUFFER_SIZE is not checked 
in that codepath. I wonder if something else in the chain will reject 
big control urbs.

Daniel

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[Index of Archives]     [Video for Linux]     [Photo]     [Yosemite Forum]     [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]

  Powered by Linux