aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mprotect.c
diff options
context:
space:
mode:
authorAnshuman Khandual <anshuman.khandual@arm.com>2025-10-07 07:31:00 +0100
committerAndrew Morton <akpm@linux-foundation.org>2025-11-16 17:27:56 -0800
commitc0efdb373c3aaacb32db59cadb0710cac13e44ae (patch)
treebbcef6d33668043fa8d5cd74542bf3a17d5efbcd /mm/mprotect.c
parentbda7bf06840d4eb133abefa5a2fd75544277bd86 (diff)
downloadtip-c0efdb373c3aaacb32db59cadb0710cac13e44ae.tar.gz
mm: replace READ_ONCE() with standard page table accessors
Replace all READ_ONCE() with a standard page table accessors i.e pxdp_get() that defaults into READ_ONCE() in cases where platform does not override. Link: https://lkml.kernel.org/r/20251007063100.2396936-1-anshuman.khandual@arm.com Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Acked-by: David Hildenbrand <david@redhat.com> Reviewed-by: Lance Yang <lance.yang@linux.dev> Reviewed-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Dev Jain <dev.jain@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mprotect.c')
-rw-r--r--mm/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c
index 113b489858341f..988c366137d506 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -599,7 +599,7 @@ again:
break;
}
- pud = READ_ONCE(*pudp);
+ pud = pudp_get(pudp);
if (pud_none(pud))
continue;