mm-use-ptep_get-instead-of-directly-dereferencing-pte_t.patch removed from -mm tree
The quilt patch titled
Subject: mm: use ptep_get() instead of directly dereferencing pte_t*
has been removed from the -mm tree. Its filename was
mm-use-ptep_get-instead-of-directly-dereferencing-pte_t.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ryan Roberts <[email protected]>
Subject: mm: use ptep_get() instead of directly dereferencing pte_t*
Date: Mon, 10 Mar 2025 14:04:17 +0000
It is best practice for all pte accesses to go via the arch helpers, to ensure non-torn values and to allow the arch to intervene where needed (contpte for arm64 for example). While in this case it was probably safe to directly dereference, let's tidy it up for consistency.
---
mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/migrate.c renamed from mm/migrate.c~mm-use-ptep_get-instead-of-directly-dereferencing-pte_t +1 -1
@@ -202,7 +202,7 @@ static bool try_to_map_unused_to_zeropagreturn false;VM_BUG_ON_PAGE (!PageAnon (page), page);VM_BUG_ON_PAGE (!PageLocked (page), page); -VM_BUG_ON_PAGE (pte_present (*pvmw->pte), page); +VM_BUG_ON_PAGE (pte_present (ptep_get (pvmw->pte)), page);if (folio_test_mlocked (folio) || (pvmw->vma->vm_flags &VM_LOCKED ) ||mm_forbids_zeropage (pvmw->vma->vm_mm))
_
Patches currently in -mm which might be from [email protected] are