Randomize the initial stack pointer for a user process. Introduce a
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 22 Jun 2005 19:40:35 +0000 (19:40 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 22 Jun 2005 19:40:35 +0000 (19:40 +0000)
commit17a7ca1f56bf7d22ce2ed373f94bda1bf0706998
tree848d4844d0525f465cc9ddb8560d802e9169e03a
parent6c37d0adf27817256faff56bc0edcf4e49d3ace4
Randomize the initial stack pointer for a user process.    Introduce a
sysctl, kern.stackgrap_random, to specify the random range.  The value must
be a power of two.

Submitted-by: Craig Dooley <xlnxminusx@gmail.com>
Adapted-from: OpenBSD
sys/kern/kern_exec.c