freebsd-nq/sys/compat/freebsd32
Kornel Dulęba 939f0b6323 Implement shared page address randomization
It used to be mapped at the top of the UVA.
If the randomization is enabled any address above .data section will be
randomly chosen and a guard page will be inserted in the shared page
default location.
The shared page is now mapped in exec_map_stack, instead of
exec_new_vmspace. The latter function is called before image activator
has a chance to parse ASLR related flags.
The KERN_PROC_VM_LAYOUT sysctl was extended to provide shared page
address.
The feature is enabled by default for 64 bit applications on all
architectures.
It can be toggled kern.elf64.aslr.shared_page sysctl.

Approved by:	mw(mentor)
Sponsored by:	Stormshield
Obtained from:	Semihalf
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D35349
2022-07-18 16:27:37 +02:00
..
freebsd32_abort2.c freebsd32: add real abort2 2021-11-17 20:12:25 +00:00
freebsd32_capability.c fd: rename fget*_locked to fget*_noref 2022-02-22 18:53:43 +00:00
freebsd32_ioctl.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
freebsd32_ioctl.h
freebsd32_ipc.h freebsd32: Fix layout of struct shmid_kernel32. 2022-01-18 10:42:21 -08:00
freebsd32_misc.c Rework how shared page related data is stored 2022-07-18 16:27:32 +02:00
freebsd32_misc.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
freebsd32_proto.h sysent: regen for syscallarg_t 2022-03-28 19:43:03 +01:00
freebsd32_signal.h sys/compat: Use C99 fixed-width integer types. 2021-12-28 09:41:33 -08:00
freebsd32_syscall.h Regen 2021-12-09 02:49:10 +02:00
freebsd32_syscalls.c Regen 2021-12-09 02:49:10 +02:00
freebsd32_sysent.c sysent: regen after 52a1d90c8b, posix_fadvise in capmode 2022-04-14 15:17:36 -04:00
freebsd32_systrace_args.c Regen 2021-12-09 02:49:10 +02:00
freebsd32_util.h sys/compat: Use C99 fixed-width integer types. 2021-12-28 09:41:33 -08:00
freebsd32.h Implement shared page address randomization 2022-07-18 16:27:37 +02:00
Makefile freebsd32: generate from sys/kern/syscalls.master 2021-11-22 22:36:58 +00:00
syscalls.conf freebsd32: generate from sys/kern/syscalls.master 2021-11-22 22:36:58 +00:00