]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
exec: Remove the stack gap implementation
authorMark Johnston <markj@FreeBSD.org>
Mon, 17 Jan 2022 16:42:46 +0000 (11:42 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 17 Jan 2022 21:11:54 +0000 (16:11 -0500)
commit758d98debec43ff83b8a1ed9a3d3a8441b83b3cc
tree7624090de352fe1be113ba1abc344975f27038b4
parent706f4a81a81250a326ea25914e7effe1768f1a37
exec: Remove the stack gap implementation

ASLR stack randomization will reappear in a forthcoming commit.  Rather
than inserting a random gap into the stack mapping, the entire stack
mapping itself will be randomized in the same way that other mappings
are when ASLR is enabled.

No functional change intended, as the stack gap implementation is
currently disabled by default.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33704
12 files changed:
contrib/elftoolchain/readelf/readelf.c
sys/amd64/amd64/elf_machdep.c
sys/arm64/arm64/elf_machdep.c
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/ia32/ia32_sysvec.c
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/sys/elf_common.h
sys/sys/imgact.h
sys/sys/imgact_elf.h
sys/sys/sysent.h
usr.bin/elfctl/elfctl.c