Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 22:18:24 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360712 - stable/11/sys/netinet
Message-ID:  <202005062218.046MIO6R035788@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Wed May  6 22:18:24 2020
New Revision: 360712
URL: https://svnweb.freebsd.org/changeset/base/360712

Log:
  MFC r350248: Improve SCTP locking.
  
  Fix a LOR in SCTP which was found by running syzkaller.
  
  Submitted by:		rrs
  Reported by:		markj

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	Wed May  6 22:16:14 2020	(r360711)
+++ stable/11/sys/netinet/sctp_usrreq.c	Wed May  6 22:18:24 2020	(r360712)
@@ -965,9 +965,9 @@ sctp_shutdown(struct socket *so)
 		abort_anyway:
 				op_err = sctp_generate_cause(SCTP_CAUSE_USER_INITIATED_ABT, "");
 				stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_USRREQ + SCTP_LOC_6;
+				SCTP_INP_RUNLOCK(inp);
 				sctp_abort_an_association(stcb->sctp_ep, stcb,
 				    op_err, SCTP_SO_LOCKED);
-				SCTP_INP_RUNLOCK(inp);
 				return (0);
 			}
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005062218.046MIO6R035788>