git: b174bec464ba - stable/13 - user stack randomization: only enable by default for 64bit processes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Oct 2023 00:45:59 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b174bec464ba8a072502e647adc9c03bb2881f17 commit b174bec464ba8a072502e647adc9c03bb2881f17 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-10-24 21:44:06 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-10-31 00:45:48 +0000 user stack randomization: only enable by default for 64bit processes (cherry picked from commit 1798b44fda382c473c9fc7762e162613a39dc23c) --- sys/kern/imgact_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 72273c2f32d9..6ab16e6cfb0c 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -200,7 +200,7 @@ SYSCTL_INT(ASLR_NODE_OID, OID_AUTO, honor_sbrk, CTLFLAG_RW, &__elfN(aslr_honor_sbrk), 0, __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE)) ": assume sbrk is used"); -static int __elfN(aslr_stack) = 1; +static int __elfN(aslr_stack) = __ELF_WORD_SIZE == 64; SYSCTL_INT(ASLR_NODE_OID, OID_AUTO, stack, CTLFLAG_RWTUN, &__elfN(aslr_stack), 0, __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE))