]> git.karo-electronics.de Git - karo-tx-linux.git/commit
INET: Prevent out-of-sync truesize on ip_fragment slow path
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Feb 2008 09:55:06 +0000 (01:55 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:42 +0000 (16:18 -0800)
commit8f08540f032d07a7fb8f7576140ca426c55396f3
treeba2be34ccf8e6fa298a35aafbb4aacdcc2bd7c0f
parent4450ae03346faceb80a45b4d696c15f981080916
INET: Prevent out-of-sync truesize on ip_fragment slow path

Upstream commit: 29ffe1a5c52dae13b6efead97aab9b058f38fce4

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/ip_output.c
net/ipv6/ip6_output.c