]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udpv6: Fix the checksum computation when HW checksum does not apply
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Thu, 14 Sep 2017 01:30:51 +0000 (19:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:03 +0000 (11:56 +0200)
commit9276fee73c2d2874d734fa8fe7266c2433c0c6bf
treecdaf8cfcf726b163493def8bf9f3b081a2d57c9a
parentdb755cf143a576a04a6c7af66e9e15ae8fcd97da
udpv6: Fix the checksum computation when HW checksum does not apply

[ Upstream commit 63ecc3d9436f8012e49dc846d6cb0a85a3433517 ]

While trying an ESP transport mode encryption for UDPv6 packets of
datagram size 1436 with MTU 1500, checksum error was observed in
the secondary fragment.

This error occurs due to the UDP payload checksum being missed out
when computing the full checksum for these packets in
udp6_hwcsum_outgoing().

Fixes: d39d938c8228 ("ipv6: Introduce udpv6_send_skb()")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/udp.c