Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2021 12:51:56 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: 3fa95c0fe60b - stable/13 - sctp: fix a locking issue for old unordered data
Message-ID:  <202103021251.122Cpuu1050466@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=3fa95c0fe60bbd67db6043c7e18910387bbe1bac

commit 3fa95c0fe60bbd67db6043c7e18910387bbe1bac
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-01-31 09:46:23 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2021-03-02 12:28:09 +0000

    sctp: fix a locking issue for old unordered data
    
    Thanks to Anatoly Korniltsev for reporting the issue for the
    userland stack.
    
    (cherry picked from commit 8dc6a1edca6de0c64f6c082f69097746d1346592)
---
 sys/netinet/sctp_indata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c
index 08af27c934fb..6997a0099c88 100644
--- a/sys/netinet/sctp_indata.c
+++ b/sys/netinet/sctp_indata.c
@@ -803,7 +803,7 @@ restart:
 			}
 			memset(nc, 0, sizeof(struct sctp_queued_to_read));
 			TAILQ_REMOVE(&control->reasm, chk, sctp_next);
-			sctp_add_chk_to_control(control, strm, stcb, asoc, chk, SCTP_READ_LOCK_NOT_HELD);
+			sctp_add_chk_to_control(control, strm, stcb, asoc, chk, inp_read_lock_held);
 			fsn++;
 			cnt_added++;
 			chk = NULL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103021251.122Cpuu1050466>