diff options
author | Eric Dumazet <edumazet@google.com> | 2012-05-18 15:02:15 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-19 07:49:33 +0400 |
commit | 72e843bb09d4533208aa5573861a983c46914019 (patch) | |
tree | 989fec0c30d80aef7e036c01aa12c24977f50488 /net/ipx | |
parent | 6fba180ee8b1c86b03d33013b4c2fc54fc5fc248 (diff) | |
download | linux-72e843bb09d4533208aa5573861a983c46914019.tar.xz |
ipv6: ip6_fragment() should check CHECKSUM_PARTIAL
Quoting Tore Anderson from :
If the allfrag feature has been set on a host route (due to an ICMPv6
Packet Too Big received indicating a MTU of less than 1280),
TCP SYN/ACK packets to that destination appears to get an incorrect
TCP checksum. This in turn means they are thrown away as invalid.
In the case of an IPv4 client behind a link with a MTU of less than
1260, accessing an IPv6 server through a stateless translator,
this means that the client can only download a single large file
from the server, because once it is in the server's routing cache
with the allfrag feature set, new TCP connections can no longer
be established.
</endquote>
It appears ip6_fragment() doesn't handle CHECKSUM_PARTIAL properly.
As network drivers are not prepared to fetch correct transport header, a
safe fix is to call skb_checksum_help() before fragmenting packet.
Reported-by: Tore Anderson <tore@fud.no>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Tore Anderson <tore@fud.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipx')
0 files changed, 0 insertions, 0 deletions