From nobody Tue Jan 07 18:48:48 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YSKns1rQkz5jlr6; Tue, 07 Jan 2025 18:48:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSKns15Tcz4q1T; Tue, 7 Jan 2025 18:48:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736275729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OrPvuJ/YPTiDw+ZHnLlwewi1ja1c2cHrj4vZhwdYt4Y=; b=l9eOh6yAtMY2onFLHxleMtvXwJPT87cw7RKtMuuxgdn/k2qqUkrnJPxsp1T/lnmi7Fb8H2 PJxRyEHAFbxEkBgTJRmad1r3q+xo/GG3Pdk+Gm8M+l2gTxWP5OIKrC8tmUDaXdb8Rcgya5 +Jgf4lwGXn9fc0USVP5fvEE9eRClB+Pzs9kJwP4IerTx3azHOIRrq1XyI/i9ABdLLTP4Cu Bbut50/Lypd0Hs13/hbQQVRJ7Uo5Wpbdy1XZc6MSVGgmYI3NkQHMTsAMe8Je9q2a0Z74eC Psucde0txGqDhdL02DJ0gE3Kn5Eu4DR424SdAqimHV8QI6ve9is+u6UoOg9YIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736275729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OrPvuJ/YPTiDw+ZHnLlwewi1ja1c2cHrj4vZhwdYt4Y=; b=IrlKmqR6u8g3IJF2fhrpyEK3WPh3DkE2VFY9/ADn2ZMNx8PyWaNgbNnfRY4oEeXQS5UbGc EwDN0JPym1JLQIccze67RHW35fDA47rq9Vfa+q1yVvjixzVpc3l6otBvU6mRI8cCpmZoWY y++46XtrMXAkPG2K1kOKVTnLlTETckS0JHe2ywCvj2JoVJ2ha5bPne1PC27Ae9HJDyZ4Uk rYf/J5BoRE/KeGVyd6yMW8BIkBUrtznEPpBVa/TvD7Lot6epnSK66JVosZ8aniR94Utxi2 Tb+rF3lnfi7lgCPOEsEhis/nurm0JYr5bZ6lznZpWjHnRpKoi7z/C1ohTwgcoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736275729; a=rsa-sha256; cv=none; b=i7ujS8ac05UR/yns0Cte+vvpYd5vcYm7/0UBSuhmCi4jn01/nnIPQr6UJpCboJCJ5juhTb Hdh5A8y7A9NTLoVXKnRpgnLG7MhD13zzxP7m1xaRPFB3N6kveu/XtDDtECk6xMOZdBQVxk MGZsGNaJTktEtHUWkQ/fUhLIVqvAcl+xt5hKMSvY5b10dW0lJRV0QDHpUyba06oTcx8o86 IviX5LNPoR0iJhMR11LYz4HEdYGLQk+lToQazfQliQjk/1bZZ5FWZ6wjTsBPc4y5zFNFLW ckkiNARWOMD30Jb48/++Fni556ZRzXYzXc4WhaGg7ViaeZ7TGF2BlCxLWbjtWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSKns0P8Qz69t; Tue, 07 Jan 2025 18:48:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 507ImmK0087205; Tue, 7 Jan 2025 18:48:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 507Immo2087202; Tue, 7 Jan 2025 18:48:48 GMT (envelope-from git) Date: Tue, 7 Jan 2025 18:48:48 GMT Message-Id: <202501071848.507Immo2087202@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 452f261b8c8e - stable/14 - kernel: Clarify kern.elfNN.nxstack sysctl description List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 452f261b8c8ed7dbc90976cf776c35915f2d765f Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=452f261b8c8ed7dbc90976cf776c35915f2d765f commit 452f261b8c8ed7dbc90976cf776c35915f2d765f Author: Ed Maste AuthorDate: 2024-12-27 20:42:17 +0000 Commit: Ed Maste 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;