]> git.baikalelectronics.ru Git - kernel.git/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)
commit0591b8a55c8b24f1b0000022745c50dffc982fef
treebcca1391f02a01cf1b2d5942a06d392ac0f5be11
parent0ce582b7b9fbe2cfb1757203d6998246c4d3cfa8
[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