Date: Wed, 1 Feb 2023 23:59:58 GMT From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 91a9ebe24a70 - stable/13 - sctp: improve sending of ABORT packets in response to INIT-ACKs Message-ID: <202302012359.311Nxwav005929@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=91a9ebe24a70f6fdb9e4f1e8d91e5ded52541f12 commit 91a9ebe24a70f6fdb9e4f1e8d91e5ded52541f12 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2022-10-12 23:05:44 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2023-02-01 23:59:34 +0000 sctp: improve sending of ABORT packets in response to INIT-ACKs Ensure that the initiate tag of the INIT-ACK chunk is used as the verification tag of the packet containing the ABORT chunk. Reported by: Suganya Dharma (cherry picked from commit dd36606b1bc90d1459e0d04be4ea5859d3eabb16) --- sys/netinet/sctp_input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 6fa4d0323d94..836f09f4887f 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -412,7 +412,10 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset, &nat_friendly, &cookie_found); if (abort_flag) { /* Send an abort and notify peer */ - sctp_abort_an_association(stcb->sctp_ep, stcb, op_err, false, SCTP_SO_NOT_LOCKED); + sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, + src, dst, sh, op_err, + mflowtype, mflowid, + vrf_id, net->port); *abort_no_unlock = 1; return (-1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302012359.311Nxwav005929>