git: 3fa95c0fe60b - stable/13 - sctp: fix a locking issue for old unordered data

Michael Tuexen tuexen at FreeBSD.org
Tue Mar 2 12:51:56 UTC 2021


The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=3fa95c0fe60bbd67db6043c7e18910387bbe1bac

commit 3fa95c0fe60bbd67db6043c7e18910387bbe1bac
Author:     Michael Tuexen <tuexen at FreeBSD.org>
AuthorDate: 2021-01-31 09:46:23 +0000
Commit:     Michael Tuexen <tuexen at 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;


More information about the dev-commits-src-all mailing list