Re: [PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-10-08 Thread Sasha Levin
On Mon, 2011-10-03 at 21:05 +0200, Michael S. Tsirkin wrote: I thought about this some more. If length was too large host is right now writing into pages that we have freed. That is very bad, and I don't know what do do with it, really not worth prettifying that IMO, NULL pointer is the least

Re: [PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-10-06 Thread David Miller
From: Sasha Levin levinsasha...@gmail.com Date: Wed, 28 Sep 2011 17:40:55 +0300 This patch prevents a NULL dereference when the user has passed a length longer than an actual buffer to virtio-net. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc:

Re: [PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-10-05 Thread Sasha Levin
On Mon, 2011-10-03 at 20:40 +0200, Michael S. Tsirkin wrote: On Wed, Sep 28, 2011 at 05:40:55PM +0300, Sasha Levin wrote: This patch prevents a NULL dereference when the user has passed a length longer than an actual buffer to virtio-net. Cc: Rusty Russell ru...@rustcorp.com.au Cc:

Re: [PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-10-05 Thread Michael S. Tsirkin
On Wed, Oct 05, 2011 at 03:50:14PM +0200, Sasha Levin wrote: On Mon, 2011-10-03 at 20:40 +0200, Michael S. Tsirkin wrote: On Wed, Sep 28, 2011 at 05:40:55PM +0300, Sasha Levin wrote: This patch prevents a NULL dereference when the user has passed a length longer than an actual buffer to

Re: [PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-10-03 Thread Michael S. Tsirkin
On Wed, Sep 28, 2011 at 05:40:55PM +0300, Sasha Levin wrote: This patch prevents a NULL dereference when the user has passed a length longer than an actual buffer to virtio-net. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc:

Re: [PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-10-03 Thread Michael S. Tsirkin
On Wed, Sep 28, 2011 at 05:40:55PM +0300, Sasha Levin wrote: This patch prevents a NULL dereference when the user has passed a length longer than an actual buffer to virtio-net. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc:

[PATCH v2 2/2] virtio-net: Prevent NULL dereference

2011-09-28 Thread Sasha Levin
This patch prevents a NULL dereference when the user has passed a length longer than an actual buffer to virtio-net. Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc: virtualizat...@lists.linux-foundation.org Cc: net...@vger.kernel.org Cc: kvm@vger.kernel.org