lib-test_hmm-invalidate-all-mirrors-on-device-private-migration-fix.patch removed from -mm tree
Andrew Morton
tree noticeThe quilt patch titled
Subject: lib/test_hmm: fix device-private backing subpage selection
has been removed from the -mm tree. Its filename was
lib-test_hmm-invalidate-all-mirrors-on-device-private-migration-fix.patch
This patch was dropped because it was folded into lib-test_hmm-invalidate-all-mirrors-on-device-private-migration.patch
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: lib/test_hmm: fix device-private backing subpage selection
Date: Sun, 22 Nov 2026 11:22:16 -0800
BACKING_PAGE() evaluates to void * because zone_device_data is void *. Adding folio_page_idx() to it advances by bytes, so a device-private PMD subpage can select the wrong RAM backing page. The new migrate_anon_huge_fault() selftest fails when it reads the last subpage.
Assign the backing address to a struct page * before adding the subpage index.
lib/test_hmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/test_hmm.c renamed from lib/test_hmm.c~lib-test_hmm-invalidate-all-mirrors-on-device-private-migration-fix +2 -2
@@ -294,9 +294,9 @@ static int dmirror_do_fault(struct dmirrif (is_device_private_page (page)) {struct folio *folio =page_folio (page); +struct page *backing =BACKING_PAGE (&folio->page); - page =BACKING_PAGE (&folio->page) + -folio_page_idx (folio, page); + page = backing +folio_page_idx (folio, page); } entry = page;if (*pfns &HMM_PFN_WRITE )
_
Patches currently in -mm which might be from [email protected] are
mm-vma-drop-mm-asynchronously-in-vma_start_read-fix.patch mm-vma-drop-mm-asynchronously-in-vma_start_read-fix-2.patch kselftest-mm-rename-read_pmd_pagesize-to-pmd_psize-fix.patch selftests-mm-check-madv_cold-and-madv_pageout-on-partly-advised-thps-fix.patch alloc_tag-introduce-ioctls-to-toggle-allocation-tracepoints-fix-fix.patch alloc_tag-introduce-ioctls-to-toggle-allocation-tracepoints-fix.patch selftests-mm-add-uffdio_move-huge-zeropage-pmd-regression-test-fix.patch selftests-mm-allocate-nr_pages-based-on-pmd-size-for-uffd-pmd_move-tests-fix.patch selftests-mm-retain-move-pmd-coverage-and-verify-huge-pmds.patch lib-test_xarray-check-unused-spare-node-after-range-creation.patch mm-memory-failure-dont-unpoison-a-leaked-raw_hwp_unreliable-folio-fix.patch mm-vmstat_kunit-add-synthetic-benchmark-for-mm-stats-fix.patch lib-test_hmm-invalidate-all-mirrors-on-device-private-migration.patch mm-prevent-pre-content-bypass-through-mremap-and-remap_file_pages.patch afs-do-not-put-error-pointer-after-address-lookup-failure.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-0.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-1.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-2.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-3.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-4.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-5.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-6.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache-fix-7.patch ocfs2-unregister-the-jbd2-shrinker-before-journal-shutdown.patch ipc-msg-clamp-negative-msg_info-usage-counts.patch squashfs-fix-leaked-page-locks-when-page-actor-allocation-fails-fix.patch ocfs2-skip-network-flush-when-no-domain-handlers-are-registered.patch selftests-ptrace-check-that-ptrace_set_syscall_info-rejects-invalid-error-values-fix.patch lib-asn1_encoder-fix-encoding-of-zero-oid-components.patch proc-serialize-task-owner-updates.patch proc-dont-lock-task-inodes-whose-owner-has-not-changed.patch drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch