summaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_statetable.c
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2020-04-21 22:03:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-10 10:28:03 +0200
commit0bd74760f0f97390ea4564fd9cd48150e6cb29df (patch)
tree53a858e7523ddcb93b54708f34f73e32595f3504 /net/sctp/sm_statetable.c
parent882a1e6b4d3d24cc0eda0cbc33498768546e6686 (diff)
downloadlinux-stable-0bd74760f0f97390ea4564fd9cd48150e6cb29df.tar.gz
linux-stable-0bd74760f0f97390ea4564fd9cd48150e6cb29df.tar.bz2
linux-stable-0bd74760f0f97390ea4564fd9cd48150e6cb29df.zip
sctp: Fix SHUTDOWN CTSN Ack in the peer restart case
commit 12dfd78e3a74825e6f0bc8df7ef9f938fbc6bfe3 upstream. When starting shutdown in sctp_sf_do_dupcook_a(), get the value for SHUTDOWN Cumulative TSN Ack from the new association, which is reconstructed from the cookie, instead of the old association, which the peer doesn't have anymore. Otherwise the SHUTDOWN is either ignored or replied to with an ABORT by the peer because CTSN Ack doesn't match the peer's Initial TSN. Fixes: bdf6fa52f01b ("sctp: handle association restarts when the socket is closed.") Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp/sm_statetable.c')
0 files changed, 0 insertions, 0 deletions