Skip to content

Commit 9a8ea3c

Browse files
kevin-brodsky-armakpm00
authored andcommitted
docs: proc: document ProtectionKey in smaps
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. [akpm@linux-foundation.org: s/system/hardware/, per review discussion] [akpm@linux-foundation.org: s/hardware/CPU/] Link: https://lore.kernel.org/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>
1 parent 89e613b commit 9a8ea3c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/filesystems/proc.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ does not take into account swapped out page of underlying shmem objects.
549549
naturally aligned THP pages of any currently enabled size. 1 if true, 0
550550
otherwise.
551551

552+
If both the kernel and the CPU support protection keys (pkeys),
553+
"ProtectionKey" indicates the memory protection key associated with the
554+
virtual memory area.
555+
552556
"VmFlags" field deserves a separate description. This member represents the
553557
kernel flags associated with the particular virtual memory area in two letter
554558
encoded manner. The codes are the following:

0 commit comments

Comments
 (0)