svn commit: r324954 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Tue Oct 24 14:28:58 UTC 2017


Author: tuexen
Date: Tue Oct 24 14:28:56 2017
New Revision: 324954
URL: https://svnweb.freebsd.org/changeset/base/324954

Log:
  Fix a locking issue found by running AFL on the userland stack.
  Thanks to Felix Weinrank for reporting the issue.
  
  MFC after:	3 days

Modified:
  head/sys/netinet/sctp_input.c

Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c	Tue Oct 24 12:56:08 2017	(r324953)
+++ head/sys/netinet/sctp_input.c	Tue Oct 24 14:28:56 2017	(r324954)
@@ -4863,9 +4863,6 @@ process_control_chunks:
 				if ((stcb != NULL) && (stcb->asoc.total_output_queue_size)) {
 					;
 				} else {
-					if (stcb != NULL) {
-						SCTP_TCB_UNLOCK(stcb);
-					}
 					*offset = length;
 					if (stcb != NULL) {
 #if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)


More information about the svn-src-head mailing list