From nobody Thu Aug 01 14:47:15 2024 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 4WZWyX0rQdz5SswD; Thu, 01 Aug 2024 14:47:16 +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 4WZWyX0LHZz4HQc; Thu, 1 Aug 2024 14:47:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722523636; 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=HTCEcOZvw4mqPDYom5BdiBEADxh8JmYWY/gvI/Kl+wk=; b=Tz0pUw8e1CLHFtsAJvym7TFbuLsYsXFTeno/wVbwc1xFirdpFtb7XMjraF0IhnNLMgoi34 U0Im/m/JPvyBdLIfaSfRk3eWXFLnbus6T2ejX3NSIyC+9Fn5Gtxx/s03rIcZ1ZHeuf6YDM fa0sPirnm6m0owZAuVfDo6Bu1nt15BZ31h+72ITjSmFme7vIAbAi6bUtvHdB1Chs+5yqnv 1l4WA2OH+vppwRlx3Fxlu07AXYFxge6elueyrntN83eUoGKVYxUiITO9DFeA+Xei9l5Js7 CG+aSDFAWLEAJLZSJE3h80qbxixX6AAK5iNoIkaYC0tURFQuasCAfsmmh/d7vA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722523636; a=rsa-sha256; cv=none; b=l057Dd7DplQ/QFsUoGs8KSr55S8rrMV9c6kuUJ4WteMtCJqoUeNhkW0NQ6yMkZ5eR1JY+/ QPuonXEOwAt3+uXpO1ndnoyP3vJtJ+nSuSm5Vw/UM9JRaybZQWKkX6aIqgF7HmnMGNOAsy UliUB5wE1cUTP9BgEU8Y37XHRZqFKojA3WmSxt6AkEHEv07ZfTLlwmH4WQ3r6jLH9gDxLG NznGYfT9bChGQXBUWLcH++bqRhrf+4u1s9FaQjzKtM7WK5NxrOF50UVfEYpivl16c6bsGU jNcUsYJqFSU9G121DHnSSccbQ53BL09ZrDLb/1brOmjq+Ci7swxn43x8iekqTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722523636; 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=HTCEcOZvw4mqPDYom5BdiBEADxh8JmYWY/gvI/Kl+wk=; b=sQE9+yZ+NYT9133ZIkrsjaIV6wdZFznj6B1LKLae2jQTy7ifvai6LWP1W96ODPtxGH/MCM tT2TIMJO5vCT5bUnrDMdpoiU0snrmJ95h+7Hbt0UlJP4vbWPKi/tpQCvWr5xaKIZMUNpn8 ZZKEug+w4463zrqevjz2IykRvTW8AoP+/po9+3d62Y6RsmUKmlXpbXAuxyWauZ2GgAW8DA EpW+WxQzJZH4g9tgcHZqRRBm0Aw1yZhflNGqoYRyBKpZdpfqU22a+QGi7y7nM9RRi79nSA I20EVflXoUAm+85e3BneoE3r/iAzfk48Zcud/8DjweRmk0GzQHPav0sb91bU9A== 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 4WZWyW73QZznc1; Thu, 1 Aug 2024 14:47:15 +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 471ElFvT039928; Thu, 1 Aug 2024 14:47:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471ElFkS039925; Thu, 1 Aug 2024 14:47:15 GMT (envelope-from git) Date: Thu, 1 Aug 2024 14:47:15 GMT Message-Id: <202408011447.471ElFkS039925@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: f8c73ba5981c - stable/14 - mitigations.7: mention supervisor mode memory access protections 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: f8c73ba5981c6d66384d5c173b650906b9741ae8 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=f8c73ba5981c6d66384d5c173b650906b9741ae8 commit f8c73ba5981c6d66384d5c173b650906b9741ae8 Author: Ed Maste AuthorDate: 2024-05-31 14:13:11 +0000 Commit: Ed Maste CommitDate: 2024-08-01 14:46:46 +0000 mitigations.7: mention supervisor mode memory access protections Reviewed by: imp (earlier), olce (earlier), kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45420 (cherry picked from commit 72ece341b42707af7837357dbb1f2c2fe17507fa) --- share/man/man7/mitigations.7 | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/share/man/man7/mitigations.7 b/share/man/man7/mitigations.7 index 950d84042c71..f68e3041c88f 100644 --- a/share/man/man7/mitigations.7 +++ b/share/man/man7/mitigations.7 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd October 6, 2023 +.Dd May 31, 2024 .Dt MITIGATIONS 7 .Os .Sh NAME @@ -234,8 +234,26 @@ and it is possible that some applications may not function correctly. .\" .\".Ss Stack Smashing Protection (SSP) .\" -.\".Ss Supervisor mode memory protection -.\" +.Ss Supervisor mode memory protection +Certain processors include features that prevent unintended access to memory +pages accessible to userspace (non-privileged) code, while in a privileged +mode. +One feature prevents execution, intended to mitigate exploitation of kernel +vulnerabilities from userland. +Another feature prevents unintended reads from or writes to user space memory +from the kernel. +This also provides effective protection against NULL pointer dereferences from +kernel. +.Bl -column -offset indent "Architecture" "Feature" "Access Type Prevented" +.It Sy Architecture Ta Sy Feature Ta Sy Access Type Prevented +.It amd64 Ta SMAP Ta Read / Write +.It amd64 Ta SMEP Ta Execute +.It arm64 Ta PAN Ta Read / Write +.It arm64 Ta PXN Ta Execute +.El +.Pp +These features are automatically used by the kernel. +There is no user-facing configuration. .Ss Hardware vulnerability controls See .Xr security 7