gso: Ensure that the packet is long enough
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Jan 2009 04:41:12 +0000 (20:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2009 04:41:12 +0000 (20:41 -0800)
commit4e704ee3c2cd38748ca59d835435d6a7e7f6f613
tree24d4f83bb55748fa5ae79f302b641663fa0488ba
parentf557206800801410c30e53ce7a27219b2c4cf0ba
gso: Ensure that the packet is long enough

When we get a GSO packet from an untrusted source, we need to
ensure that it is sufficiently long so that we don't end up
crashing.

Based on discovery and patch by Ian Campbell.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c