CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/04/18 10:05:21
Modified files:
sys/sys : signal.h
sys/uvm : uvm_map.c
Log message:
Some programs create a PROT_NONE guard page at the far-end of the provided
stack buffer. With a page-aligned buffer, creating a MAP_STACK sub-region
would undo the PROT_NONE guard. Ignore that last page.
(We could check if the last page is non-RW before choosing to skip it. But
we've already elected to grow STK sizes to compensate. Always ignoring the
last page makes it a non-MAP_STACK guard page which can be opportunistically
discovered)
ok semarie stefan kettenis