android_kernel_samsung_a7y1.../include/net/sctp
Xin Long 9bffda7ca8 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>
2020-04-06 12:57:16 +02:00
..
auth.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checksum.h sctp: get sctphdr by offset in sctp_compute_cksum 2020-04-06 12:57:16 +02:00
command.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
constants.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sctp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
structs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tsnmap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ulpevent.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ulpqueue.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30