]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd124c247e2581ba0ee1bebf5852a3a7aceec30a
treeee00ef2a7153e627c3c20aee45b49270008691dc
parentf46bf3b1d600ccf154606759d06d3c206d3f4d0a
gro: Fix frag_list merging on imprecisely split packets

The previous fix 0cc6610be8271ed63419bcdae9c9e35e339128ba (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