aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2024-01-17 07:11:27 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2024-01-17 07:11:27 +0000
commita079c891c01b1f8b32d79b490d9e7b7542e26d0f (patch)
treec663811d2489a8d97e4138df77622d7d524203cd
parentdc02374f54455e354495870c24f86bb2966a7960 (diff)
downloadsrc-a079c891c01b1f8b32d79b490d9e7b7542e26d0f.tar.gz
src-a079c891c01b1f8b32d79b490d9e7b7542e26d0f.zip
sctp: restore missing inpcb lock
Fixes: 5bba2728079ed4da33f727dbc2b6ae1de02ba897 Reported-by: syzbot+b8636c973dc20fea4a9b@syzkaller.appspotmail.com Reported-by: syzbot+d76a18ee8bbe6f7d3056@syzkaller.appspotmail.com
-rw-r--r--sys/netinet/sctp_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 51c056e052a5..b847271a7bd3 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -874,6 +874,7 @@ sctp_shutdown(struct socket *so, enum shutdown_how how)
/* FALLTHROUGH */
case SHUT_WR:
+ SCTP_INP_RLOCK(inp);
socantsendmore(so);
stcb = LIST_FIRST(&inp->sctp_asoc_list);
if (stcb == NULL) {