lkml.org 
[lkml]   [2019]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] mm: fix double page fault on arm64 if PTE_AF is cleared
On Fri, Sep 06, 2019 at 09:57:47PM +0800, Jia He wrote:
> + if (!pte_young(vmf->orig_pte)) {
> + entry = pte_mkyoung(vmf->orig_pte);
> + if (ptep_set_access_flags(vmf->vma, vmf->address,
> + vmf->pte, entry, 0))
> + update_mmu_cache(vmf->vma, vmf->address,
> + vmf->pte);
> + }
> +

Oh, btw, why call update_mmu_cache() here? All you've done is changed
the 'accessed' bit. What is any architecture supposed to do in response
to this?

\
 
 \ /
  Last update: 2019-09-09 23:28    [W:0.049 / U:4.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site