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
This commit is contained in:
Justin Hibbits 2019-07-10 04:09:15 +00:00
parent 1faca2699a
commit b51bfc30ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349874

View file

@ -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,