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:
parent
1faca2699a
commit
b51bfc30ac
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user