Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Nov 2019 21:23:30 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354341 - head/sys/arm64/linux
Message-ID:  <201911042123.xA4LNU0f058920@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Nov  4 21:23:30 2019
New Revision: 354341
URL: https://svnweb.freebsd.org/changeset/base/354341

Log:
  arm64 linuxulator: default to RW stack (no X)
  
  This matches Linux's default arm64 data / stack permissions.
  
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm64/linux/linux_sysvec.c

Modified: head/sys/arm64/linux/linux_sysvec.c
==============================================================================
--- head/sys/arm64/linux/linux_sysvec.c	Mon Nov  4 21:06:06 2019	(r354340)
+++ head/sys/arm64/linux/linux_sysvec.c	Mon Nov  4 21:23:30 2019	(r354341)
@@ -371,7 +371,7 @@ struct sysentvec elf_linux_sysvec = {
 	.sv_maxuser	= VM_MAXUSER_ADDRESS,
 	.sv_usrstack	= USRSTACK,
 	.sv_psstrings	= PS_STRINGS, /* XXX */
-	.sv_stackprot	= VM_PROT_ALL, /* XXX */
+	.sv_stackprot	= VM_PROT_READ | VM_PROT_WRITE,
 	.sv_copyout_strings = linux_copyout_strings,
 	.sv_setregs	= linux_exec_setregs,
 	.sv_fixlimit	= NULL,



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