diff options
author | Will Deacon <[email protected]> | 2020-11-20 13:28:01 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2020-11-23 16:13:12 +0000 |
commit | 07509e10dcc77627f8b6a57381e878fe269958d3 (patch) | |
tree | 4abdc056daca6993830cd60c25354d386bb3039f /tools/perf/scripts/python/syscall-counts.py | |
parent | 774c4a3b5e5fd897909e24c0f7dd4c6579da833f (diff) |
arm64: pgtable: Fix pte_accessible()
pte_accessible() is used by ptep_clear_flush() to figure out whether TLB
invalidation is necessary when unmapping pages for reclaim. Although our
implementation is correct according to the architecture, returning true
only for valid, young ptes in the absence of racing page-table
modifications, this is in fact flawed due to lazy invalidation of old
ptes in ptep_clear_flush_young() where we elide the expensive DSB
instruction for completing the TLB invalidation.
Rather than penalise the aging path, adjust pte_accessible() to return
true for any valid pte, even if the access flag is cleared.
Cc: <[email protected]>
Fixes: 76c714be0e5e ("arm64: pgtable: implement pte_accessible()")
Reported-by: Yu Zhao <[email protected]>
Acked-by: Yu Zhao <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions