See more details and a usage example here:https://github.com/xairy/raw-gadget …
-
-
-
Raw Gadget is what's been powering syzbot/syzkaller's fuzzing of the Linux kernel USB subsystem, with almost 200 bugs reported at this point: https://syzkaller.appspot.com/upstream?manager=ci2-upstream-usb …
Show this thread -
Details about syzkaller integration: https://github.com/google/syzkaller/blob/master/docs/linux/external_fuzzing_usb.md …
Show this thread -
Implemented a test suite for Raw Gadget, something that's rarely done for kernel interfaces: https://github.com/xairy/raw-gadget/tree/master/tests#raw-gadget-tests …
Show this thread
End of conversation
New conversation -
-
-
wheee! I wonder whether it's possible to convince Android OEMs to start using that instead of hacking up their own kernel code for their weird custom file transfer USB gadgets...
-
Perhaps. You should be able to use GadgetFS for that too. Raw Gadget isn't really optimized for performance yet, and will probably need some work to support more features required for real devices
- 4 more replies
New conversation -
-
-
Awesome! is there something similar for emulating PCI devices? or is the PCI subsystem too low on the stack to do such a thing? I believe the only solutions i've seen are in the form of devices emulated through qemu
-
There are hardware based solutions, but I'm not aware of any implemented solutions for emulating PCI devices within the kernel. Would love to know if something like this exists
End of conversation
New conversation -
-
-
Awesome work!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.