Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 22:54:48 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335020 - head/sys/amd64/linux32
Message-ID:  <201806122254.w5CMsmNG087783@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Jun 12 22:54:48 2018
New Revision: 335020
URL: https://svnweb.freebsd.org/changeset/base/335020

Log:
  Fix number of auxargs entries to copy out for 32-bit Linuxulator.
  
  PR:		228790

Modified:
  head/sys/amd64/linux32/linux32_sysvec.c

Modified: head/sys/amd64/linux32/linux32_sysvec.c
==============================================================================
--- head/sys/amd64/linux32/linux32_sysvec.c	Tue Jun 12 22:52:27 2018	(r335019)
+++ head/sys/amd64/linux32/linux32_sysvec.c	Tue Jun 12 22:54:48 2018	(r335020)
@@ -249,9 +249,10 @@ linux_fixup_elf(register_t **stack_base, struct image_
 
 	free(imgp->auxargs, M_TEMP);
 	imgp->auxargs = NULL;
-	KASSERT(pos - argarray <= AT_COUNT, ("Too many auxargs"));
+	KASSERT(pos - argarray <= LINUX_AT_COUNT, ("Too many auxargs"));
 
-	error = copyout(&argarray[0], auxbase, sizeof(*argarray) * AT_COUNT);
+	error = copyout(&argarray[0], auxbase,
+	    sizeof(*argarray) * LINUX_AT_COUNT);
 	free(argarray, M_TEMP);
 	if (error != 0)
 		return (error);



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