mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
mm: fix non-anon COW fault
Speculative page fault should skip non-anon COW
faults. But the check uses flags from vmf which is
not initialized at that point. Fix that.
Fixes: eed0466ffa ("mm: skip speculative path for non-anonymous COW faults")
Change-Id: I86c3032680461b1369650d97a06616fd14472632
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
parent
2c8ec6785e
commit
1b7ca44c71
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue