tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Statically allocated guard pages in ELF




> On Mar 29, 2025, at 9:15 AM, Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
> 
>>> And on the plus side, a gap doesn't require mprotect, nor [...]
>> Thing is, you donâ??t actually want a *gap*, per se.  You want an allocated $
> 
> Why?  What reason is there to prefer either over the other?  As long as
> it gives a fatal signal on access, I don't see that it matters exactly
> how it's set up.

Because an actual gap (where the space is not allocated) might be naively filled later on by another mmap looking for a single page of space.

-- thorpej



Home | Main Index | Thread Index | Old Index