linux/include/net/sctp
Xin Long 3ef66b61b3 sctp: get sctphdr by offset in sctp_compute_cksum
commit 273160ffc6 upstream.

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: e6d8b64b34 ("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: Ben Hutchings <ben@decadent.org.uk>
History 2019-08-13 12:38:44 +01:00
..
auth.h include/net/: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00
checksum.h sctp: get sctphdr by offset in sctp_compute_cksum 2019-08-13 12:38:44 +01:00
command.h sctp: handle association restarts when the socket is closed. 2014-10-15 12:05:30 +02:00
constants.h include/net/: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00
sctp.h sctp: Fix mangled IPv4 addresses on a IPv6 listening socket 2018-06-16 22:21:29 +01:00
sm.h net: sctp: fix skb_over_panic when receiving malformed ASCONF chunks 2014-11-13 11:48:26 +00:00
structs.h sctp: Fixup v4mapped behaviour to comply with Sock API 2018-02-13 18:42:22 +00:00
tsnmap.h sctp: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00
ulpevent.h sctp: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00
ulpqueue.h sctp: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00