Message ID | 20200821004217.UBGpf4I1N%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-track-page-table-modifications-in-__apply_to_page_range.patch added to -mm tree | expand |
--- a/kernel/events/uprobes.c~uprobes-__replace_page-avoid-bug-in-munlock_vma_page +++ a/kernel/events/uprobes.c @@ -205,7 +205,7 @@ static int __replace_page(struct vm_area try_to_free_swap(old_page); page_vma_mapped_walk_done(&pvmw); - if (vma->vm_flags & VM_LOCKED) + if ((vma->vm_flags & VM_LOCKED) && !PageCompound(old_page)) munlock_vma_page(old_page); put_page(old_page);