]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite107965297be3989ba15db9b7c45ba3618313b81
tree24d4f83bb55748fa5ae79f302b641663fa0488ba
parent21bc71cc227878b9773981b67f8bba1309607e5c
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