Re: Statically allocated guard pages in ELF
Jason Thorpe <[email protected]> Sat, 29 Mar 2025 09:44:18 -0700
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
> On Mar 29, 2025, at 9:15 AM, Mouse <[email protected]> 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