diff options
Diffstat (limited to 'kernel/events/uprobes.c')
-rw-r--r-- | kernel/events/uprobes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 80e8c7b697b9..a9de40815391 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c | |||
@@ -106,8 +106,8 @@ static bool valid_vma(struct vm_area_struct *vma, bool is_register) | |||
106 | if (!is_register) | 106 | if (!is_register) |
107 | return true; | 107 | return true; |
108 | 108 | ||
109 | if ((vma->vm_flags & (VM_HUGETLB|VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)) | 109 | if ((vma->vm_flags & (VM_HUGETLB | VM_WRITE | VM_MAYEXEC | VM_SHARED)) |
110 | == (VM_READ|VM_EXEC)) | 110 | == VM_MAYEXEC) |
111 | return true; | 111 | return true; |
112 | 112 | ||
113 | return false; | 113 | return false; |