Thread (5 messages) 5 messages, 3 authors, 2015-08-07

Re: [PATCH net V2] virtio-net: drop NETIF_F_FRAGLIST

flat view

From: David Miller <davem@davemloft.net>
Date: 2015-08-07 07:13:28
Also in: lkml

From: Jason Wang <redacted>
Date: Wed,  5 Aug 2015 10:34:04 +0800
virtio declares support for NETIF_F_FRAGLIST, but assumes
that there are at most MAX_SKB_FRAGS + 2 fragments which isn't
always true with a fraglist.

A longer fraglist in the skb will make the call to skb_to_sgvec overflow
the sg array, leading to memory corruption.

Drop NETIF_F_FRAGLIST so we only get what we can handle.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <redacted>
Applied, thanks Jason.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help