]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IPV6: Fix IPsec datagram fragmentation
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Mar 2008 22:46:35 +0000 (14:46 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:06 +0000 (11:47 -0700)
commitba8fd2d277fcc06905a45380a2203c4bd9d8d025
tree27d820ebab24b3f28cdf04cc466890c36f2e611d
parent430ff1d0b6e50d7665baf3d8dc1ef83d3295c9ad
IPV6: Fix IPsec datagram fragmentation

Upstream commits: 28a89453b1e8de8d777ad96fa1eef27b5d1ce074
                  b5c15fc004ac83b7ad280acbe0fd4bbed7e2c8d4

This is a long-standing bug in the IPsec IPv6 code that breaks
when we emit a IPsec tunnel-mode datagram packet.  The problem
is that the code the emits the packet assumes the IPv6 stack
will fragment it later, but the IPv6 stack assumes that whoever
is emitting the packet is going to pre-fragment the packet.

In the long term we need to fix both sides, e.g., to get the
datagram code to pre-fragment as well as to get the IPv6 stack
to fragment locally generated tunnel-mode packet.

For now this patch does the second part which should make it
work for the IPsec host case.

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv6/ip6_output.c
net/ipv6/xfrm6_output.c