On Tue, Mar 31, 2020 at 03:04:18PM +0200, Paul FLOYD wrote:
> > It is the stack grow area and the guard, combined. Read the mmap(2), in> 
> > particular explanation of MAP_STACK and MAP_GUARD.
> I see from the mmap man page that this appeared in FreeBSD 11.1.
>  
> Do you know where the size of the stack guard gets defined? I tried searching 
> on google for stuff like 'stack MAP_GUARD size' but didn't find anything.

Guard fills the rest of the stack region, so that [guard; mapped stack]
fill the whole area as requested by mmap.  Start of the guard is at the
starting address requested from mmap (or auto-selected), end of the mapped
area is at guard start + total len.

I believe it is explained in the man page.

>  
> (I need this to fix setting up the client stack on Valgrind x86, which is 
> currently broken)
>  
> A+
> Paul
>  
> _______________________________________________
> freebsd-toolchain@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
> To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to