The patch titled Subject: mm/migrate: fix NR_ISOLATED corruption on 64-bit has been added to the -mm tree. Its filename is mm-migrate-fix-nr_isolated-corruption-on-64-bit.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-migrate-fix-nr_isolated-corruption-on-64-bit.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-migrate-fix-nr_isolated-corruption-on-64-bit.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxxxxx> Subject: mm/migrate: fix NR_ISOLATED corruption on 64-bit Similar to commit 2da9f6305f30 ("mm/vmscan: fix NR_ISOLATED_FILE corruption on 64-bit") avoid using unsigned int for nr_pages. With unsigned int type the large unsigned int converts to a large positive signed long. Symptoms include CMA allocations hanging forever due to alloc_contig_range->...->isolate_migratepages_block waiting forever in "while (unlikely(too_many_isolated(pgdat)))". Link: https://lkml.kernel.org/r/20210728042531.359409-1-aneesh.kumar@xxxxxxxxxxxxx Fixes: c5fc5c3ae0c8 ("mm: migrate: account THP NUMA migration counters correctly") Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxx> Reported-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Reported-by: Alexey Kardashevskiy <aik@xxxxxxxxx> Cc: Yang Shi <shy828301@xxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: Nicholas Piggin <npiggin@xxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/migrate.c~mm-migrate-fix-nr_isolated-corruption-on-64-bit +++ a/mm/migrate.c @@ -2068,7 +2068,7 @@ int migrate_misplaced_page(struct page * LIST_HEAD(migratepages); new_page_t *new; bool compound; - unsigned int nr_pages = thp_nr_pages(page); + int nr_pages = thp_nr_pages(page); /* * PTE mapped THP or HugeTLB page can't reach here so the page could _ Patches currently in -mm which might be from aneesh.kumar@xxxxxxxxxxxxx are mm-migrate-fix-nr_isolated-corruption-on-64-bit.patch