summaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2019-03-18 19:47:00 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 06:27:24 +0200
commitd2af0ce54b1cbc82813b388b759877a2c6e53265 (patch)
treebaeea0a38b8e0b26c7adafd14347546b4b702fd2 /net/ipv6/tcp_ipv6.c
parent5a336f69cfa0cf9c2abf2e865b01458ef4a9ebbd (diff)
downloadtalos-obmc-linux-d2af0ce54b1cbc82813b388b759877a2c6e53265.tar.gz
talos-obmc-linux-d2af0ce54b1cbc82813b388b759877a2c6e53265.zip
sctp: get sctphdr by offset in sctp_compute_cksum
[ Upstream commit 273160ffc6b993c7c91627f5a84799c66dfe4dee ] sctp_hdr(skb) only works when skb->transport_header is set properly. But in Netfilter, skb->transport_header for ipv6 is not guaranteed to be right value for sctphdr. It would cause to fail to check the checksum for sctp packets. So fix it by using offset, which is always right in all places. v1->v2: - Fix the changelog. Fixes: e6d8b64b34aa ("net: sctp: fix and consolidate SCTP checksumming code") Reported-by: Li Shuang <shuali@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud