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.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -8301,8 +8301,6 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event) · 8300 unmodified lines | ||
| 8301 | 8301 | |
| 8302 | 8302 | if (vma->vm_flags & VM_DENYWRITE) |
| 8303 | 8303 | flags |= MAP_DENYWRITE; |
| 8304 | − if (vma->vm_flags & VM_MAYEXEC) | |
| 8305 | − flags |= MAP_EXECUTABLE; | |
| 8306 | 8304 | if (vma->vm_flags & VM_LOCKED) |
| 8307 | 8305 | flags |= MAP_LOCKED; |
| 8308 | 8306 | if (is_vm_hugetlb_page(vma)) |