freebsd-dev/sys/compat
Konstantin Belousov fc83c5a7d0 Make randomized stack gap between strings and pointers to argv/envs.
This effectively makes the stack base on the csu _start entry
randomized.

The gap is enabled if ASLR is for the ABI is enabled, and then
kern.elf{64,32}.aslr.stack_gap specify the max percentage of the
initial stack size that can be wasted for gap.  Setting it to zero
disables the gap, and max is capped at 50%.

Only amd64 for now.

Reviewed by:	cem, markj
Discussed with:	emaste
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D21081
2019-07-31 20:23:10 +00:00
..
cloudabi kern_shm_open: push O_CLOEXEC into caller control 2019-07-31 15:16:51 +00:00
cloudabi32 makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
cloudabi64 makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
freebsd32 Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
ia32 Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
lindebugfs LinuxKPI: Finalize move of lindebugfs from ports to base. 2019-05-19 15:44:21 +00:00
linprocfs Decode more CPU flags in cpuinfo. 2019-05-03 08:27:03 +00:00
linsysfs Remove wrong copyright line. Discussed with Carlos Neira. 2019-05-07 05:08:13 +00:00
linux linuxcommon: add module version 2019-07-10 13:47:10 +00:00
linuxkpi/common Merge the vm_page hold and wire mechanisms. 2019-07-08 19:46:20 +00:00
ndis Fix compilation with 'option NDISAPI + device ndis' and 2019-01-30 11:40:12 +00:00
netbsd sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
x86bios x86bios: use M_NOWAIT with mallocs 2018-09-13 07:04:00 +00:00