]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add ELF flag to disable ASLR stack gap.
authorkib <kib@FreeBSD.org>
Fri, 18 Dec 2020 23:14:39 +0000 (23:14 +0000)
committerkib <kib@FreeBSD.org>
Fri, 18 Dec 2020 23:14:39 +0000 (23:14 +0000)
commit4a242df81a9f9e347526afc36399a6880a59d6d2
tree765f627665335f3c58e4e245461589ddb0063a75
parentf0f7b63d5b7275fc6530f38eca78e2d28172042c
Add ELF flag to disable ASLR stack gap.

Also centralize and unify checks to enable ASLR stack gap in a new
helper exec_stackgap().

PR: 239873
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/compat/freebsd32/freebsd32_misc.c
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/sys/elf_common.h
sys/sys/imgact.h
usr.bin/elfctl/elfctl.c