]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Fix SHUTDOWN CTSN Ack in the peer restart case
authorJere Leppänen <jere.leppanen@nokia.com>
Tue, 21 Apr 2020 19:03:42 +0000 (22:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 02:27:40 +0000 (19:27 -0700)
commitb53bcdd57ffea6c53710877d8390bfc6d432ca8e
treebb3cb42d6ee511b336bcbd7a4617d9f604ab2cb5
parent55a1670c1c573ffa090e3ce0b41cc4028d1d7094
sctp: Fix SHUTDOWN CTSN Ack in the peer restart case

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: 56a0a25436c2 ("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>
net/sctp/sm_make_chunk.c