diff options
author | David Hildenbrand <david@redhat.com> | 2021-04-22 12:08:20 +0200 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2021-09-03 18:42:01 +0200 |
commit | 8d0920bde5eb8ec7e567939b85e65a0596c8580d (patch) | |
tree | cdba733cd679ff5527daab0e8303a4da97adec4b /kernel/events | |
parent | 4589ff7ca81516381393649dec8dd4948884b2b2 (diff) | |
download | linux-8d0920bde5eb8ec7e567939b85e65a0596c8580d.tar.gz linux-8d0920bde5eb8ec7e567939b85e65a0596c8580d.tar.bz2 linux-8d0920bde5eb8ec7e567939b85e65a0596c8580d.zip |
mm: remove VM_DENYWRITE
All in-tree users of MAP_DENYWRITE are gone. MAP_DENYWRITE cannot be
set from user space, so all users are gone; let's remove it.
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 1cb1f9b8392e..19767bb9933c 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -8307,8 +8307,6 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event) else flags = MAP_PRIVATE; - if (vma->vm_flags & VM_DENYWRITE) - flags |= MAP_DENYWRITE; if (vma->vm_flags & VM_LOCKED) flags |= MAP_LOCKED; if (is_vm_hugetlb_page(vma)) |