* [PATCH] s390/maccess: use proper PTE accessors for copying old memory
@ 2026-07-20 14:47 Alexander Gordeev
2026-07-20 14:51 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Gordeev @ 2026-07-20 14:47 UTC (permalink / raw)
To: Vasily Gorbik, Gerald Schaefer, Heiko Carstens; +Cc: linux-s390, linux-kernel
Follow the pattern established by commit c33c794828f2 ("mm:
ptep_get() conversion") and use proper PTE accessors instead
of a direct pointer dereference in memcpy_real_iter().
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
---
arch/s390/mm/maccess.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/mm/maccess.c b/arch/s390/mm/maccess.c
index cfd219fe495c..f39968dd8063 100644
--- a/arch/s390/mm/maccess.c
+++ b/arch/s390/mm/maccess.c
@@ -96,7 +96,7 @@ size_t memcpy_real_iter(struct iov_iter *iter, unsigned long src, size_t count)
pte = mk_pte_phys(phys, PAGE_KERNEL_RO);
mutex_lock(&memcpy_real_mutex);
- if (pte_val(pte) != pte_val(*memcpy_real_ptep)) {
+ if (pte_val(pte) != pte_val(ptep_get(memcpy_real_ptep))) {
__ptep_ipte(__memcpy_real_area, memcpy_real_ptep, 0, 0, IPTE_GLOBAL);
set_pte(memcpy_real_ptep, pte);
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-20 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 14:47 [PATCH] s390/maccess: use proper PTE accessors for copying old memory Alexander Gordeev
2026-07-20 14:51 ` sashiko-bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.