Skip to content

Commit a8c15bb

Browse files
peaktocreekakpm00
authored andcommitted
mseal sysmap: update mseal.rst
Update memory sealing documentation to include details about system mappings. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jeff Xu <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Adhemerval Zanella <[email protected]> Cc: Alexander Mikhalitsyn <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Andrei Vagin <[email protected]> Cc: Anna-Maria Behnsen <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Benjamin Berg <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Rientjes <[email protected]> Cc: David S. Miller <[email protected]> Cc: Elliot Hughes <[email protected]> Cc: Florian Faineli <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Helge Deller <[email protected]> Cc: Hyeonggon Yoo <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jann Horn <[email protected]> Cc: Jason A. Donenfeld <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Jorge Lucangeli Obes <[email protected]> Cc: Linus Waleij <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Matthew Wilcow (Oracle) <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Miguel Ojeda <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Pedro Falcato <[email protected]> Cc: Peter Xu <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Stephen Röttger <[email protected]> Cc: Thomas Weißschuh <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3d38922 commit a8c15bb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Documentation/userspace-api/mseal.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,26 @@ Use cases
130130

131131
- Chrome browser: protect some security sensitive data structures.
132132

133+
- System mappings:
134+
The system mappings are created by the kernel and includes vdso, vvar,
135+
vvar_vclock, vectors (arm compat-mode), sigpage (arm compat-mode), uprobes.
136+
137+
Those system mappings are readonly only or execute only, memory sealing can
138+
protect them from ever changing to writable or unmmap/remapped as different
139+
attributes. This is useful to mitigate memory corruption issues where a
140+
corrupted pointer is passed to a memory management system.
141+
142+
If supported by an architecture (CONFIG_ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS),
143+
the CONFIG_MSEAL_SYSTEM_MAPPINGS seals all system mappings of this
144+
architecture.
145+
146+
The following architectures currently support this feature: x86-64 and arm64.
147+
148+
WARNING: This feature breaks programs which rely on relocating
149+
or unmapping system mappings. Known broken software at the time
150+
of writing includes CHECKPOINT_RESTORE, UML, gVisor, rr. Therefore
151+
this config can't be enabled universally.
152+
133153
When not to use mseal
134154
=====================
135155
Applications can apply sealing to any virtual memory region from userspace,

0 commit comments

Comments
 (0)