android_kernel_sony_sdm845/include/net/sctp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xin Long 4f05457010 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: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-03 06:24:15 +02:00
..
auth.h sctp: Use shash 2016-01-27 20:36:15 +08:00
checksum.h sctp: get sctphdr by offset in sctp_compute_cksum 2019-04-03 06:24:15 +02:00
command.h sctp: handle association restarts when the socket is closed. 2014-10-06 00:21:45 -04:00
constants.h sctp: change to use TCP_CLOSE_WAIT as SCTP_SS_CLOSING 2016-08-01 13:32:50 -07:00
sctp.h sctp: set frag_point in sctp_setsockopt_maxseg correctly 2018-02-25 11:05:41 +01:00
sm.h sctp: improve how SSN, TSN and ASCONF serial are compared 2016-09-23 06:54:58 -04:00
structs.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-02 22:20:41 -04:00
tsnmap.h sctp: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00
ulpevent.h sctp: potential read out of bounds in sctp_ulpevent_type_enabled() 2017-10-12 11:51:20 +02:00
ulpqueue.h sctp: Fix FSF address in file headers 2013-12-06 12:37:56 -05:00