svn commit: r349874 - head/sys/powerpc/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Wed Jul 10 04:09:16 UTC 2019
Author: jhibbits
Date: Wed Jul 10 04:09:15 2019
New Revision: 349874
URL: https://svnweb.freebsd.org/changeset/base/349874
Log:
powerpc: Clamp 32-bit binaries to 32-bit MAXUSER
sv_maxuser specifies the maximum addressable space for user space. Presently
this is all 64-bits worth, which is impossible for a 32-bit process.
This bug has existed since the initial import of powerpc64 in 2010.
MFC after: 2 weeks
Modified:
head/sys/powerpc/powerpc/elf32_machdep.c
Modified: head/sys/powerpc/powerpc/elf32_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/elf32_machdep.c Wed Jul 10 03:45:23 2019 (r349873)
+++ head/sys/powerpc/powerpc/elf32_machdep.c Wed Jul 10 04:09:15 2019 (r349874)
@@ -97,7 +97,7 @@ struct sysentvec elf32_freebsd_sysvec = {
.sv_minuser = VM_MIN_ADDRESS,
.sv_stackprot = VM_PROT_ALL,
#ifdef __powerpc64__
- .sv_maxuser = VM_MAXUSER_ADDRESS,
+ .sv_maxuser = VM_MAXUSER_ADDRESS32,
.sv_usrstack = FREEBSD32_USRSTACK,
.sv_psstrings = FREEBSD32_PS_STRINGS,
.sv_copyout_strings = freebsd32_copyout_strings,
More information about the svn-src-all
mailing list