Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2018 14:33:57 +0000 (UTC)
From:      Kurt Lidl <lidl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338201 - head/stand/sparc64/loader
Message-ID:  <201808221433.w7MEXv8k007567@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lidl
Date: Wed Aug 22 14:33:57 2018
New Revision: 338201
URL: https://svnweb.freebsd.org/changeset/base/338201

Log:
  Increase the size of the heap size available on sparc64 during
  operation of "loader".  The dramatic increase in size of
  SPA_MAXBLOCKSIZE in r304321 causes the heap space to be exhausted,
  so malloc() fails, ultimately leading to a memcpy() with a
  destination of 0x0.
  
  MFC after:	3 days

Modified:
  head/stand/sparc64/loader/main.c

Modified: head/stand/sparc64/loader/main.c
==============================================================================
--- head/stand/sparc64/loader/main.c	Wed Aug 22 14:06:31 2018	(r338200)
+++ head/stand/sparc64/loader/main.c	Wed Aug 22 14:33:57 2018	(r338201)
@@ -77,7 +77,7 @@ __FBSDID("$FreeBSD$");
 
 enum {
 	HEAPVA		= 0x800000,
-	HEAPSZ		= 0x1000000,
+	HEAPSZ		= 0x3000000,
 	LOADSZ		= 0x1000000	/* for kernel and modules */
 };
 



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