* [folded-merged] lib-test_hmm-invalidate-all-mirrors-on-device-private-migration-fix.patch removed from -mm tree
@ 2026-11-25 6:52 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-11-25 6:52 UTC (permalink / raw)
To: mm-commits, vbabka, stable, shuah, rppt, rcampbell, mpenttil,
mhocko, liam, leon, jm5905938, jgg, david, akpm
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4398 bytes --]
The 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 <akpm@linux-foundation.org>
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.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Aveline Noir <jm5905938@gmail.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Mika Penttilä <mpenttil@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: <stable@vger.kernel.org>
lib/test_hmm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/lib/test_hmm.c~lib-test_hmm-invalidate-all-mirrors-on-device-private-migration-fix
+++ a/lib/test_hmm.c
@@ -294,9 +294,9 @@ static int dmirror_do_fault(struct dmirr
if (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 akpm@linux-foundation.org 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 6:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 6:52 [folded-merged] lib-test_hmm-invalidate-all-mirrors-on-device-private-migration-fix.patch removed from -mm tree Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox