Merge "mm: fix non-anon COW fault"

This commit is contained in:
qctecmdr 2021-03-19 05:14:35 -07:00 committed by Gerrit - the friendly Code Review server
commit 601026c787

View File

@ -4263,7 +4263,7 @@ int __handle_speculative_fault(struct mm_struct *mm, unsigned long address,
if (unlikely((vma_is_anonymous(vmf.vma) && !vmf.vma->anon_vma) ||
(!vma_is_anonymous(vmf.vma) &&
!(vmf.vma->vm_flags & VM_SHARED) &&
(vmf.flags & FAULT_FLAG_WRITE) &&
(flags & FAULT_FLAG_WRITE) &&
!vmf.vma->anon_vma)))
return VM_FAULT_RETRY;