svn commit: r354341 - head/sys/arm64/linux
Ed Maste
emaste at FreeBSD.org
Mon Nov 4 21:23:31 UTC 2019
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,
More information about the svn-src-all
mailing list