Re: [PATCH v4 19/20] fuzz: add virtio-net fuzz target

2019-11-07 Thread Stefan Hajnoczi
On Thu, Nov 7, 2019 at 2:44 PM Jason Wang wrote: > On 2019/10/30 下午10:50, Oleinik, Alexander wrote: > > From: Alexander Oleinik > > > > The virtio-net fuzz target feeds inputs to all three virtio-net > > virtqueues, and uses forking to avoid leaking state between fuzz runs. > > > > Signed-off-by:

Re: [PATCH v4 19/20] fuzz: add virtio-net fuzz target

2019-11-07 Thread Jason Wang
On 2019/10/30 下午10:50, Oleinik, Alexander wrote: From: Alexander Oleinik The virtio-net fuzz target feeds inputs to all three virtio-net virtqueues, and uses forking to avoid leaking state between fuzz runs. Signed-off-by: Alexander Oleinik Can this fuzz vhost-net or vhost-user (I only s

Re: [PATCH v4 19/20] fuzz: add virtio-net fuzz target

2019-11-07 Thread Stefan Hajnoczi
On Wed, Oct 30, 2019 at 02:50:03PM +, Oleinik, Alexander wrote: > +static void virtio_net_fuzz_multi(QTestState *s, > +const unsigned char *Data, size_t Size) > +{ > +typedef struct vq_action { > +uint8_t queue; > +uint8_t length; > +uint8_t write; > +

[PATCH v4 19/20] fuzz: add virtio-net fuzz target

2019-10-30 Thread Oleinik, Alexander
From: Alexander Oleinik The virtio-net fuzz target feeds inputs to all three virtio-net virtqueues, and uses forking to avoid leaking state between fuzz runs. Signed-off-by: Alexander Oleinik --- tests/fuzz/Makefile.include | 1 + tests/fuzz/virtio_net_fuzz.c | 123 +