--- a/kernel/events/core.c~perf-map_executable-does-not-indicate-vm_mayexec +++ a/kernel/events/core.c @@ -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))