kib 81eb2c446b Implement a (soft) stack guard page for auto-growing stack mappings.
The unmapped page separates the tip of the stack and possible adjanced
segment, making some uses of stack overflow harder.  The stack growing
code refuses to expand the segment to the last page of the reseved
region when sysctl security.bsd.stack_guard_page is set to 1. The
default value for sysctl and accompanying tunable is 0.

Please note that mmap(MAP_FIXED) still can place a mapping right up to
the stack, making continuous region.

Reviewed by:	alc
MFC after:	1 week
2010-11-14 17:53:52 +00:00
..
2010-11-14 08:31:02 +00:00
2010-11-08 21:22:55 +00:00
2010-07-12 10:18:10 +00:00
2010-11-12 20:55:14 +00:00
2010-11-14 16:10:15 +00:00
2010-11-09 10:59:09 +00:00