git: 8dc6a1edca6d - main - sctp: fix a locking issue for old unordered data
Michael Tuexen
tuexen at FreeBSD.org
Sun Jan 31 10:00:48 UTC 2021
The branch main has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=8dc6a1edca6de0c64f6c082f69097746d1346592
commit 8dc6a1edca6de0c64f6c082f69097746d1346592
Author: Michael Tuexen <tuexen at FreeBSD.org>
AuthorDate: 2021-01-31 09:46:23 +0000
Commit: Michael Tuexen <tuexen at 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;
More information about the dev-commits-src-all
mailing list