git: 837feb4d05c2 - main - kernel: Clarify kern.elfNN.nxstack sysctl description

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sat, 28 Dec 2024 15:34:17 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=837feb4d05c2dccafa1698649b58f7b7fdc59c54

commit 837feb4d05c2dccafa1698649b58f7b7fdc59c54
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-12-27 20:42:17 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-12-28 15:33:33 +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
---
 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 916011f573cf..d94f9e1e5143 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -127,7 +127,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;