Re: External USB fuzzing

2018-06-06 Thread Alan Stern
On Wed, 6 Jun 2018, Andrey Konovalov wrote: > On Tue, Jun 5, 2018 at 10:06 PM, Alan Stern wrote: > > On Tue, 5 Jun 2018, Andrey Konovalov wrote: > > [...] > > > What do you need that's different from what gadgetfs provides? > > 1. It does some sanity checks on the provided USB descriptors, whi

Re: External USB fuzzing

2018-06-06 Thread Andrey Konovalov
On Tue, Jun 5, 2018 at 10:06 PM, Alan Stern wrote: > On Tue, 5 Jun 2018, Andrey Konovalov wrote: [...] > What do you need that's different from what gadgetfs provides? 1. It does some sanity checks on the provided USB descriptors, which we don't really want, since providing improper descriptors

Re: External USB fuzzing

2018-06-05 Thread Alan Stern
On Tue, 5 Jun 2018, Andrey Konovalov wrote: > On Mon, Jun 4, 2018 at 9:37 PM, Alan Stern wrote: > > On Mon, 4 Jun 2018, Andrey Konovalov wrote: > > Hi, Alan! Hi! > [...] > > >> The perfect solution would be to have something like /dev/tun for USB, > >> where you can write USB packets and the

Re: External USB fuzzing

2018-06-05 Thread Andrey Konovalov
On Mon, Jun 4, 2018 at 9:37 PM, Alan Stern wrote: > On Mon, 4 Jun 2018, Andrey Konovalov wrote: Hi, Alan! [...] >> The perfect solution would be to have something like /dev/tun for USB, >> where you can write USB packets and the kernel would synchronously >> process them. I'm not sure whether t

Re: External USB fuzzing

2018-06-04 Thread Alan Stern
On Mon, 4 Jun 2018, Andrey Konovalov wrote: > Hi Greg and Alan! > > As you might know I've been working on adding external USB fuzzing > support to syzkaller. Yes. It's an ambitious goal. > At this point a have a prototype, which is able to emulate USB devices >

External USB fuzzing

2018-06-04 Thread Andrey Konovalov
Hi Greg and Alan! As you might know I've been working on adding external USB fuzzing support to syzkaller. At this point a have a prototype, which is able to emulate USB devices from userspace via a custom written userspace interface for the gadget subsystem and CONFIG_USB_DUMMY_HCD. The pa