* gro: Fix bogus gso_size on the first fraglist entry
@ 2010-05-21 2:46 Herbert Xu
2010-05-21 6:08 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Herbert Xu @ 2010-05-21 2:46 UTC (permalink / raw)
To: David S. Miller, netdev; +Cc: Igor Zhang
Hi:
gro: Fix bogus gso_size on the first fraglist entry
When GRO produces fraglist entries, and the resulting skb hits
an interface that is incapable of TSO but capable of FRAGLIST,
we end up producing a bogus packet with gso_size non-zero.
This was reported in the field with older versions of KVM that
did not set the TSO bits on tuntap.
This patch fixes that.
Reported-by: Igor Zhang <yugzhang@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 93c4e06..cad8e97 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -2729,6 +2729,7 @@ int skb_gro_receive(struct sk_buff **head, struct sk_buff *skb)
*NAPI_GRO_CB(nskb) = *NAPI_GRO_CB(p);
skb_shinfo(nskb)->frag_list = p;
skb_shinfo(nskb)->gso_size = pinfo->gso_size;
+ pinfo->gso_size = 0;
skb_header_release(p);
nskb->prev = p;
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: gro: Fix bogus gso_size on the first fraglist entry
2010-05-21 2:46 gro: Fix bogus gso_size on the first fraglist entry Herbert Xu
@ 2010-05-21 6:08 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-05-21 6:08 UTC (permalink / raw)
To: herbert; +Cc: netdev, yugzhang
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Fri, 21 May 2010 12:46:29 +1000
> gro: Fix bogus gso_size on the first fraglist entry
>
> When GRO produces fraglist entries, and the resulting skb hits
> an interface that is incapable of TSO but capable of FRAGLIST,
> we end up producing a bogus packet with gso_size non-zero.
>
> This was reported in the field with older versions of KVM that
> did not set the TSO bits on tuntap.
>
> This patch fixes that.
>
> Reported-by: Igor Zhang <yugzhang@redhat.com>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied and queued up for -stable, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-21 6:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 2:46 gro: Fix bogus gso_size on the first fraglist entry Herbert Xu
2010-05-21 6:08 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox