From nobody Sat Dec 28 15:34:17 2024 X-Original-To: dev-commits-src-main@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 4YL5y15KGLz5jWcK; Sat, 28 Dec 2024 15:34:17 +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 4YL5y14mCPz4ZYd; Sat, 28 Dec 2024 15:34:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735400057; 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=ykBBEWWQ84LKdgzCUIijsa1wnqKcg2jKh1qd30gTXJQ=; b=gZ9iuykApGM5WylMxlY9iDLuJMes2Qagm2EHwhcYcb9f4tVOOlVfpRyV/l1cE4ojaroqdm uN5zlDr27bpty+hfpMOoRoIQu7G3/O0U+qNPL1wTkwFF/N3lJKcYQRIZIVwm/2xcCFObvg UEzqJgFvvGvyYzqnOYTlazjmaft9FbTM9iQssUitufpF1xkEcz1jrMhtD1zU16ajLxgtrz uwWa+nIn5Jol5vHiirEt5opiW6N4+gQhWYoJ3HtloT/oNvXy7SOkQChsd30jj8+fqElyVZ H0SIyJoOspR6j7yRayQYsoaGLn26H2cgN2C9OHlc9tReJLILk3S6jnlIbc/OzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735400057; 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=ykBBEWWQ84LKdgzCUIijsa1wnqKcg2jKh1qd30gTXJQ=; b=ARcIQmr1Yb5bf7Eievf9C6Hofm0NOrfIkrtdGxWIYBEdWeRMWF35pK+pnFRiotZRBwdzGx m1BdtgcJqok0PpuUHLsXCsLph70fTHbjTkXV9gFo6B+S4SsZFlo117FY2JhkJqszTog9pk EfgGQpaXRI7U5bLGU8FxmaUyzY0jCEnpfs9ojO4ue3roSRTFksC1MuRo8Rfx9aoNpHKIDv ykSBqOEsfw0N+ubL4HLM+0gDAuJEQWWTWaTU22RDu7pfXSaInwSEiPA7vPWnpjYu+a62vA 5nbgMxzlrktenLKQ8BzCJJ0brW3xxDPtyXSgwEEWQcR066ZLa5zl5FcElTuYJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735400057; a=rsa-sha256; cv=none; b=Wg8/zOBwBVZg37miYTYRGj+q0hIHehH74RDQ4kfr7ZtbZB92oDVRQx0ifCfGGk8nFMJwLN yCopfRpCkPbAjkF1IBLHtsgl6LxOMdR7uO4kFN7wnxYtEXS8Wy8fr5giJ10t+OaoghzLLD zBIyPmtxw7LWXODrzqu8eqO/I8IqDWUbsdMjRbdTu8rLuQGTTZ1pHeayjyTUOmD5A1daQ5 +RJrCf9B4eTprqdKBdX9D5LPL4t00jg31pk1AKe/rub2MekzeH76tvlG3Or5O+qaGb/LE1 asbnLP9HZICv/PrZ0v8dFdbsZYfvlbEPoD/u3FBkGi/naKeywKbREsDVruX25A== 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 4YL5y141n7zWLV; Sat, 28 Dec 2024 15:34:17 +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 4BSFYHbX063292; Sat, 28 Dec 2024 15:34:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BSFYHU4063289; Sat, 28 Dec 2024 15:34:17 GMT (envelope-from git) Date: Sat, 28 Dec 2024 15:34:17 GMT Message-Id: <202412281534.4BSFYHU4063289@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 837feb4d05c2 - main - kernel: Clarify kern.elfNN.nxstack sysctl description List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 837feb4d05c2dccafa1698649b58f7b7fdc59c54 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=837feb4d05c2dccafa1698649b58f7b7fdc59c54 commit 837feb4d05c2dccafa1698649b58f7b7fdc59c54 Author: Ed Maste AuthorDate: 2024-12-27 20:42:17 +0000 Commit: Ed Maste 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;