Re: [PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-10-06 Thread David Miller
From: Sasha Levin levinsasha...@gmail.com Date: Wed, 28 Sep 2011 17:40:54 +0300 This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than a max size of a skb, it means that we shouldn't go ahead building

Re: [PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-10-05 Thread Sasha Levin
On Mon, 2011-10-03 at 21:04 +0200, Michael S. Tsirkin wrote: On Wed, Sep 28, 2011 at 05:40:54PM +0300, Sasha Levin wrote: This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than a max size of a skb, it

Re: [PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-10-05 Thread Michael S. Tsirkin
On Wed, Oct 05, 2011 at 03:50:54PM +0200, Sasha Levin wrote: On Mon, 2011-10-03 at 21:04 +0200, Michael S. Tsirkin wrote: On Wed, Sep 28, 2011 at 05:40:54PM +0300, Sasha Levin wrote: This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit

Re: [PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-10-03 Thread David Miller
From: Sasha Levin levinsasha...@gmail.com Date: Wed, 28 Sep 2011 17:40:54 +0300 This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than a max size of a skb, it means that we shouldn't go ahead building

Re: [PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-10-03 Thread Michael S. Tsirkin
On Mon, Oct 03, 2011 at 02:19:51PM -0400, David Miller wrote: From: Sasha Levin levinsasha...@gmail.com Date: Wed, 28 Sep 2011 17:40:54 +0300 This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than

Re: [PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-10-03 Thread Michael S. Tsirkin
On Wed, Sep 28, 2011 at 05:40:54PM +0300, Sasha Levin wrote: This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than a max size of a skb, it means that we shouldn't go ahead building skbs anyway since we

[PATCH v2 1/2] virtio-net: Verify page list size before fitting into skb

2011-09-28 Thread Sasha Levin
This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than a max size of a skb, it means that we shouldn't go ahead building skbs anyway since we won't be able to send the buffer as the user requested. Cc: Rusty