Move the "stackgap" from the stack into its own page at a random address.
authorkettenis <kettenis@openbsd.org>
Mon, 26 Jan 2015 22:51:37 +0000 (22:51 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 26 Jan 2015 22:51:37 +0000 (22:51 +0000)
commit56b6d61326f145cc3ab78a126b1b1a2f3b8fcc59
treef774d4256db6efd2ab617d2ebee2dcefdd7ac633
parent7ef7c58c4901ba0443f5d13e7b33d58f0247494e
Move the "stackgap" from the stack into its own page at a random address.
This allows us the unmap the initial part of the stack, such that it can't
be used as a staging area for ROP (or other) attacks.

ok guenther@, tedu@
sys/compat/common/compat_util.c
sys/kern/kern_exec.c
sys/sys/exec.h
sys/sys/proc.h