summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-06-07 21:25:47 -1000
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-06-08 13:30:01 +0200
commit71385b78dbc290328e3b04ebd9b27786642afaca (patch)
tree6d5729e1a44a9b8427202db74a145016eace4831 /include/linux/debugobjects.h
parent63a6f3bc62308a491c63d0de1c537d7c9bc60859 (diff)
arm64: mm: Complete the PTE store in ptep_try_set()
ptep_try_set() installs a kernel PTE with try_cmpxchg() but, unlike __set_pte(), skips the barriers that arm64 requires after writing a valid kernel PTE. Without them a subsequent access can fault instead of seeing the new mapping. Issue them with emit_pte_barriers() rather than __set_pte_complete(). ptep_try_set() must finish the store before it returns, but __set_pte_complete() would defer the barriers when the calling context is in lazy MMU mode. v2: Emit the barriers directly instead of __set_pte_complete(). (Catalin) Fixes: 258df8fce42f ("mm: Add ptep_try_set() for lockless empty-slot installs") Suggested-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/all/aiRFcz78QTZdIHHB@arm.com/ Link: https://lore.kernel.org/bpf/7f5f7c94601312c1a401fb18998291cc@kernel.org Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions