Skip to contentSkip to conversation

mseal-sysmap-uprobe-mapping.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Apr 1, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mseal sysmap: uprobe mapping
has been removed from the -mm tree. Its filename was
mseal-sysmap-uprobe-mapping.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Jeff Xu <[email protected]>
Subject: mseal sysmap: uprobe mapping
Date: Wed, 5 Mar 2025 02:17:09 +0000

Provide support to mseal the uprobe mapping.

Unlike other system mappings, the uprobe mapping is not established during program startup. However, its lifetime is the same as the process's lifetime. It could be sealed from creation.

Test was done with perf tool, and observe the uprobe mapping is sealed.

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 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]>

---

 kernel/events/uprobes.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/events/uprobes.c renamed from kernel/events/uprobes.c~mseal-sysmap-uprobe-mapping +2 -1
@@ -1703,7 +1703,8 @@ static int xol_add_vma(struct mm_struct
 	}
 
 	vma = _install_special_mapping(mm, area->vaddr, PAGE_SIZE,
-				VM_EXEC|VM_MAYEXEC|VM_DONTCOPY|VM_IO,
+				VM_EXEC|VM_MAYEXEC|VM_DONTCOPY|VM_IO|
+				VM_SEALED_SYSMAP,
 				&xol_mapping);
 	if (IS_ERR(vma)) {
 		ret = PTR_ERR(vma);

_

Patches currently in -mm which might be from [email protected] are