Move ps_strings "after" the random stackgap. This makes its location a
authorkettenis <kettenis@openbsd.org>
Tue, 20 Jan 2015 19:43:20 +0000 (19:43 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 20 Jan 2015 19:43:20 +0000 (19:43 +0000)
commita78264c4e9c84e56b13e967228e9e8fcf5e087ff
tree9fa75b55b79da83f4f990388d32b33f769420bf4
parent6d88bcf60da9ab5cea68c2001627e656e11513e1
Move ps_strings "after" the random stackgap.  This makes its location a
per-process value, and therefpore turns the VM_PSSTRINGS sysctl into a
per-process one as well.  This gets rid of a pointer to the bottom of the
stack at a fixed location.  Also clears the road for unmapping the stackgap.

ok deraadt@
12 files changed:
sys/arch/hppa/hppa/machdep.c
sys/arch/hppa64/hppa64/machdep.c
sys/arch/i386/i386/machdep.c
sys/arch/macppc/macppc/machdep.c
sys/arch/sh/sh/sh_machdep.c
sys/arch/vax/vax/trap.c
sys/kern/exec_elf.c
sys/kern/kern_exec.c
sys/kern/kern_sysctl.c
sys/kern/sys_process.c
sys/sys/proc.h
sys/uvm/uvm_meter.c