git: 452f261b8c8e - stable/14 - kernel: Clarify kern.elfNN.nxstack sysctl description
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Jan 2025 18:48:48 UTC
The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=452f261b8c8ed7dbc90976cf776c35915f2d765f commit 452f261b8c8ed7dbc90976cf776c35915f2d765f Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2024-12-27 20:42:17 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2025-01-07 18:48:32 +0000 kernel: Clarify kern.elfNN.nxstack sysctl description The nxstack sysctl controls processing of the PT_GNU_STACK segment, not directly whether or not the stack is executable. Reviewed by: kib, shurd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48221 (cherry picked from commit 837feb4d05c2dccafa1698649b58f7b7fdc59c54) --- 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 23ddf3ac717a..18adb8adf4c8 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -126,7 +126,7 @@ int __elfN(nxstack) = #endif SYSCTL_INT(__CONCAT(_kern_elf, __ELF_WORD_SIZE), OID_AUTO, nxstack, CTLFLAG_RW, &__elfN(nxstack), 0, - __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE)) ": enable non-executable stack"); + __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE)) ": support PT_GNU_STACK for non-executable stack control"); #if defined(__amd64__) static int __elfN(vdso) = 1;