git: bbd9741f0b84 - stable/15 - sctp: improve locking validation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Oct 2026 18:12:59 UTC
The branch stable/15 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=bbd9741f0b843ed32d98f9ca04c04c084cfa52cb
commit bbd9741f0b843ed32d98f9ca04c04c084cfa52cb
Author: Lukas Book <lkbook@outlook.de>
AuthorDate: 2026-10-16 07:46:16 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-10-23 18:11:50 +0000
sctp: improve locking validation
Ensure that the TCB lock is hold in sctp_calc_rwnd().
Reviewed by: tuexen
(cherry picked from commit 38479a4832789c239eb1ff097ee51e93e8084315)
---
sys/netinet/sctp_indata.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c
index 693de313b970..12ebfd007e53 100644
--- a/sys/netinet/sctp_indata.c
+++ b/sys/netinet/sctp_indata.c
@@ -77,6 +77,8 @@ sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc)
{
uint32_t calc = 0;
+ SCTP_TCB_LOCK_ASSERT(stcb);
+
/*
* This is really set wrong with respect to a 1-2-m socket. Since
* the sb_cc is the count that everyone as put up. When we re-write