public inbox for mm-commits@vger.kernel.org
 help / color / mirror / Atom feed
* + docs-proc-document-protectionkey-in-smaps.patch added to mm-unstable branch
@ 2026-04-07 20:57 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-04-07 20:57 UTC (permalink / raw)
  To: mm-commits, yury.khrustalev, vbabka, skhan, rdunlap, mark.rutland,
	ljs, david, dave.hansen, corbet, kevin.brodsky, akpm


The patch titled
     Subject: docs: proc: document ProtectionKey in smaps
has been added to the -mm mm-unstable branch.  Its filename is
     docs-proc-document-protectionkey-in-smaps.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/docs-proc-document-protectionkey-in-smaps.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Kevin Brodsky <kevin.brodsky@arm.com>
Subject: docs: proc: document ProtectionKey in smaps
Date: Tue, 7 Apr 2026 13:51:33 +0100

The ProtectionKey entry was added in v4.9; back then it was x86-specific,
but it now lives in generic code and applies to all architectures
supporting pkeys (currently x86, power, arm64).

Time to document it: add a paragraph to proc.rst about the ProtectionKey
entry.

Link: https://lkml.kernel.org/r/20260407125133.564182-1-kevin.brodsky@arm.com
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reported-by: Yury Khrustalev <yury.khrustalev@arm.com>
Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Marc Rutland <mark.rutland@arm.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 Documentation/filesystems/proc.rst |    4 ++++
 1 file changed, 4 insertions(+)

--- a/Documentation/filesystems/proc.rst~docs-proc-document-protectionkey-in-smaps
+++ a/Documentation/filesystems/proc.rst
@@ -549,6 +549,10 @@ does not take into account swapped out p
 naturally aligned THP pages of any currently enabled size. 1 if true, 0
 otherwise.
 
+If both the kernel and the system support protection keys (pkeys),
+"ProtectionKey" indicates the memory protection key associated with the
+virtual memory area.
+
 "VmFlags" field deserves a separate description. This member represents the
 kernel flags associated with the particular virtual memory area in two letter
 encoded manner. The codes are the following:
_

Patches currently in -mm which might be from kevin.brodsky@arm.com are

docs-proc-document-protectionkey-in-smaps.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-07 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 20:57 + docs-proc-document-protectionkey-in-smaps.patch added to mm-unstable branch Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox