Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2019 11:22: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-12@freebsd.org
Subject:   svn commit: r351991 - stable/12/sys/netinet
Message-ID:  <201909071122.x87BMO4P036376@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sat Sep  7 11:22:24 2019
New Revision: 351991
URL: https://svnweb.freebsd.org/changeset/base/351991

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

Modified:
  stable/12/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/12/sys/netinet/sctp_usrreq.c	Sat Sep  7 11:22:12 2019	(r351990)
+++ stable/12/sys/netinet/sctp_usrreq.c	Sat Sep  7 11:22:24 2019	(r351991)
@@ -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?201909071122.x87BMO4P036376>