Skip to contentSkip to conversation

perf-map_executable-does-not-indicate-vm_mayexec.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: perf: MAP_EXECUTABLE does not indicate VM_MAYEXEC
has been removed from the -mm tree. Its filename was
perf-map_executable-does-not-indicate-vm_mayexec.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: perf: MAP_EXECUTABLE does not indicate VM_MAYEXEC

Patch series "perf/binfmt/mm: remove in-tree usage of MAP_EXECUTABLE".

Stumbling over the history of MAP_EXECUTABLE, I noticed that we still have some in-tree users that we can get rid of.

This patch (of 3):

Before commit e9714acf8c43 ("mm: kill vma flag VM_EXECUTABLE and mm->num_exe_file_vmas"), VM_EXECUTABLE indicated MAP_EXECUTABLE. MAP_EXECUTABLE is nowadays essentially ignored by the kernel and does not relate to VM_MAYEXEC.

Fixes f972eb63b100 ("perf: Pass protection and flags bits through mmap2 interface")
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Alexander Viro <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Greg Ungerer <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Kevin Brodsky <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Feng Tang <[email protected]>
Cc Don Zickus <[email protected]>

---

 kernel/events/core.c |    2 --
 1 file changed, 2 deletions(-)
kernel/events/core.c renamed from kernel/events/core.c~perf-map_executable-does-not-indicate-vm_mayexec +0 -2
@@ -8301,8 +8301,6 @@ static void perf_event_mmap_event(struct
 
 	if (vma->vm_flags & VM_DENYWRITE)
 		flags |= MAP_DENYWRITE;
-	if (vma->vm_flags & VM_MAYEXEC)
-		flags |= MAP_EXECUTABLE;
 	if (vma->vm_flags & VM_LOCKED)
 		flags |= MAP_LOCKED;
 	if (is_vm_hugetlb_page(vma))

_

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

memory-hotplugrst-complete-admin-guide-overhaul.patch