gro: Fix frag_list merging on imprecisely split packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Feb 2009 05:26:52 +0000 (21:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2009 05:26:52 +0000 (21:26 -0800)
commit56035022d86fff45299288cb372a42f752ba23fa
treeee00ef2a7153e627c3c20aee45b49270008691dc
parentfe2918b098cdbf55b69ba8762bd3de0ae64f33ff
gro: Fix frag_list merging on imprecisely split packets

The previous fix ad0f9904444de1309dedd2b9e365cae8af77d9b1 (gro:
Fix handling of imprecisely split packets) only fixed the case
of frags merging, frag_list merging in the same circumstances
were still broken.

In particular, the packet headers end up in the data stream.

This patch fixes this plus another issue where an imprecisely
split packet header may be read incorrectly (this is mostly
harmless since it'll simply cause the packet to not match and
be rejected for GRO).

Thanks to Emil Tantilov and Jeff Kirsher for helping to track
this down.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/skbuff.c