Re: usbfs and MAX_USBFS_BUFFER_SIZE

Daniel Drake <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.usb.general
Message-ID <[email protected]>
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.