Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2021 10:00:48 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8dc6a1edca6d - main - sctp: fix a locking issue for old unordered data
Message-ID:  <202101311000.10VA0mws004909@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=8dc6a1edca6de0c64f6c082f69097746d1346592

commit 8dc6a1edca6de0c64f6c082f69097746d1346592
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-01-31 09:46:23 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2021-01-31 09:46:23 +0000

    sctp: fix a locking issue for old unordered data
    
    Thanks to Anatoly Korniltsev for reporting the issue for the
    userland stack.
    
    MFC after:      3 days
---
 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?202101311000.10VA0mws004909>