svn commit: r347658 - stable/11/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Thu May 16 08:45:55 UTC 2019
Author: tuexen
Date: Thu May 16 08:45:54 2019
New Revision: 347658
URL: https://svnweb.freebsd.org/changeset/base/347658
Log:
MFC r343960:
Fix a locking issue in the IPPROTO_SCTP level SCTP_PEER_ADDR_THLDS socket
option. The problem affects only setsockopt with invalid parameters.
This issue was found by syzkaller.
Modified:
stable/11/sys/netinet/sctp_usrreq.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/11/sys/netinet/sctp_usrreq.c Thu May 16 08:44:12 2019 (r347657)
+++ stable/11/sys/netinet/sctp_usrreq.c Thu May 16 08:45:54 2019 (r347658)
@@ -6335,6 +6335,9 @@ sctp_setopt(struct socket *so, int optname, void *optv
}
}
if (thlds->spt_pathcpthld != 0xffff) {
+ if (stcb != NULL) {
+ SCTP_TCB_UNLOCK(stcb);
+ }
error = EINVAL;
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, error);
break;
More information about the svn-src-stable-11
mailing list