]> err.no Git - linux-2.6/commit
[INET]: Prevent out-of-sync truesize on ip_fragment slow path
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 29 Jan 2008 04:45:20 +0000 (20:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:07 +0000 (19:27 -0800)
commit29ffe1a5c52dae13b6efead97aab9b058f38fce4
treebcca1391f02a01cf1b2d5942a06d392ac0f5be11
parent1987e7b4855fcb6a866d3279ee9f2890491bc34d
[INET]: Prevent out-of-sync truesize on ip_fragment slow path

When ip_fragment has to hit the slow path the value of skb->truesize
may go out of sync because we would have updated it without changing
the packet length.  This violates the constraints on truesize.

This patch postpones the update of skb->truesize to prevent this.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c
net/ipv6/ip6_output.c