On Sat, Sep 06, 2025 at 03:07:16PM +0200, Greg Kroah-Hartman wrote: > On Sat, Sep 06, 2025 at 09:41:16AM -0300, Daniel Almeida wrote: > > By the way, I wonder how testing would work. I tested this by plugging in my > > mouse and fiddling around with /sys/bus/usb/drivers/rust_driver_usb/new_id. I > > am not sure how this is going to work once I start looking into data transfer > > and etc. Perhaps there's a simple device out there that I should target? Or > > maybe there's a way to "fake" a USB device that would work with the sample > > driver for demonstration purposes. > > You can use the usb-gadget subsystem and dummy-hcd to create a loop-back > for a virtual USB device. That's how syzbot does USB driver fuzz > testing, there should be some documentation on that somewhere in the > tree. Gadget zero is a good one to use for testing. That's what it's meant for. If you need any help setting it up, just ask. Alan Stern