Re: Statically allocated guard pages in ELF

Jason Thorpe <[email protected]> Sat, 29 Mar 2025 08:39:05 -0700
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
> On Mar 28, 2025, at 9:46 PM, David Holland <[email protected]> wrote:
> 
> And on the plus side, a gap doesn't require mprotect, nor does it
> require an extra mmap if the table can be placed at the beginning of
> readonly data. (iow, there isn't anything else that needs to go there)

Thing is, you don’t actually want a *gap*, per se.  You want an allocated region with PROT_NONE.

-- thorpej