freebsd-dev/sys/compat/ia32
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
..
ia32_genassym.c Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
ia32_signal.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
ia32_sysvec.c Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
ia32_util.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00