Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2020 21:19:17 +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: r364546 - stable/12/sys/netinet
Message-ID:  <202008232119.07NLJH0C054435@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



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