svn commit: r364546 - stable/12/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Aug 23 21:19:18 UTC 2020


Author: tuexen
Date: Sun Aug 23 21:19:17 2020
New Revision: 364546
URL: https://svnweb.freebsd.org/changeset/base/364546

Log:
  MFC r357830:
  Don't panic under INVARIANTS when we can't allocate memory for storing
  a vtag in time wait.
  This issue was found by running syzkaller.

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

Modified: stable/12/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/12/sys/netinet/sctp_pcb.c	Sun Aug 23 21:12:37 2020	(r364545)
+++ stable/12/sys/netinet/sctp_pcb.c	Sun Aug 23 21:19:17 2020	(r364546)
@@ -4631,9 +4631,6 @@ sctp_add_vtag_to_timewait(uint32_t tag, uint32_t time,
 		SCTP_MALLOC(twait_block, struct sctp_tagblock *,
 		    sizeof(struct sctp_tagblock), SCTP_M_TIMW);
 		if (twait_block == NULL) {
-#ifdef INVARIANTS
-			panic("Can not alloc tagblock");
-#endif
 			return;
 		}
 		memset(twait_block, 0, sizeof(struct sctp_tagblock));


More information about the svn-src-stable-12 mailing list