Re: Gadgetfs - adding support for delegation of setup requests

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

 



On Fri, Aug 12, 2016 at 09:44:17PM +0300, Binyamin Sharet wrote:
> Hi,
> 
> I'm using GadgetFs for USB host fuzzing (using umap2),
> and part of the fuzzing session is to send invalid descriptors at
> various stages.
> 
> However, some requests are not delegated to user-land (see gadgetfs_setup()
> in gadget/legacy/inode.c),
> Specifically - GET_DESCRIPTOR (device/configuration) and SET_CONFIGURATION.
> 
> Does a patch to switch the gadgetfs module to "delegate all" sounds reasonable?

Can all hardware do such delegation?

> If so - what's the preferred way to do it? I have a few options in mind:
> 
> - module parameter

Never.  This isn't the 1990's.

As for the other options, I don't care, but the gadgetfs maintainers
might...

good luck!

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux