The quilt patch titled Subject: mm-migrate-fix-read-only-page-got-writable-when-recover-pte-fix has been removed from the -mm tree. Its filename was mm-migrate-fix-read-only-page-got-writable-when-recover-pte-fix.patch This patch was dropped because it was folded into mm-migrate-fix-read-only-page-got-writable-when-recover-pte.patch ------------------------------------------------------ From: Peter Xu <peterx@xxxxxxxxxx> Subject: mm-migrate-fix-read-only-page-got-writable-when-recover-pte-fix Date: Thu, 1 Dec 2022 10:19:22 -0500 enhance comment Link: https://lkml.kernel.org/r/Y4jIHureiOd8XjDX@x1n Signed-off-by: Peter Xu <peterx@xxxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Alistair Popple <apopple@xxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Axel Rasmussen <axelrasmussen@xxxxxxxxxx> Cc: Ives van Hoorne <ives@xxxxxxxxxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx> Cc: Nadav Amit <nadav.amit@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/migrate.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) --- a/mm/migrate.c~mm-migrate-fix-read-only-page-got-writable-when-recover-pte-fix +++ a/mm/migrate.c @@ -214,7 +214,14 @@ static bool remove_migration_pte(struct if (is_writable_migration_entry(entry)) pte = maybe_mkwrite(pte, vma); else - /* NOTE: mk_pte can have write bit set */ + /* + * NOTE: mk_pte() can have write bit set per memory + * type (e.g. shmem), or pte_mkdirty() per archs + * (e.g., sparc64). If this is a read migration + * entry, we need to make sure when we recover the + * pte from migration entry to present entry the + * write bit is cleared. + */ pte = pte_wrprotect(pte); if (pte_swp_uffd_wp(*pvmw.pte)) { _ Patches currently in -mm which might be from peterx@xxxxxxxxxx are mm-migrate-fix-read-only-page-got-writable-when-recover-pte.patch