freebsd-dev/sys/compat/freebsd32
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
..
freebsd32_capability.c Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
freebsd32_ioctl.c Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +00:00
freebsd32_ioctl.h Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +00:00
freebsd32_ipc.h Rename kernel-only members of semid_ds and msgid_ds. 2018-03-02 22:10:48 +00:00
freebsd32_misc.c Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
freebsd32_misc.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_proto.h make sysent after r347228 2019-05-07 18:10:21 +00:00
freebsd32_signal.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_syscall.h Regen. 2019-07-31 19:20:39 +00:00
freebsd32_syscalls.c Regen. 2019-07-31 19:20:39 +00:00
freebsd32_sysent.c Regen. 2019-07-31 19:20:39 +00:00
freebsd32_systrace_args.c Regen. 2019-07-31 19:20:39 +00:00
freebsd32_util.h Add const to input-only char * arguments. 2018-11-02 20:50:22 +00:00
freebsd32.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
Makefile makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
syscalls.conf Use the main capabilities.conf for freebsd32. 2018-11-14 00:46:02 +00:00
syscalls.master freebsd32 shims for copy_file_range(2). 2019-07-31 19:20:05 +00:00