This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add Prefer_MAP_32BIT_EXEC for Silvermont


On Fri, Dec 11, 2015 at 12:59 PM, Andi Kleen <andi@firstfloor.org> wrote:
>
>
> BTW the patch could be fixed to support all 4GB by guessing a hole
> and using the mmap hint. But it would complicate it somewhat.
>

That means user space has to keep track mmap/mremap/munmap.
It isn't going to work.

We need a new MAP_4GB bit to get 4GB address and we can make it
backward compatible with old kernels.   Can we extend the 64-bit
mmap interface to pass the extra bit in upper 32bits of the 5th argument
if we have run out bits in the 5th argument.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]