The quilt patch titled Subject: mm/hmm: prevent infinite loop in hmm_range_fault during EBUSY retries has been removed from the -mm tree. Its filename was mm-hmm-prevent-infinite-loop-in-hmm_range_fault-during-ebusy-retries.patch This patch was dropped because an updated version will be issued ------------------------------------------------------ From: sooraj <sooraj20636@xxxxxxxxx> Subject: mm/hmm: prevent infinite loop in hmm_range_fault during EBUSY retries Date: Tue, 28 Jan 2025 01:34:22 -0500 When hmm_vma_walk_test() skips a VMA (e.g., unsupported VM_IO/PFNMAP range), it must update hmm_vma_walk->last to the end of the skipped VMA. Failing to do so causes hmm_range_fault() to restart from the same address during -EBUSY retries, reprocessing the skipped VMA indefinitely. This results in an infinite loop if the VMA remains non-processable. Update hmm_vma_walk->last to the VMA's end address in hmm_vma_walk_test() when skipping the range. This ensures subsequent iterations resume correctly after the skipped VMA, preventing infinite retry loops. Link: https://lkml.kernel.org/r/20250128063422.7604-1-sooraj20636@xxxxxxxxx Signed-off-by: sooraj <sooraj20636@xxxxxxxxx> Cc: Jason Gunthorpe <jgg@xxxxxxxxxx> Cc: Jerome Glisse <jglisse@xxxxxxxxxx> Cc: Alistair Popple <apopple@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hmm.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/hmm.c~mm-hmm-prevent-infinite-loop-in-hmm_range_fault-during-ebusy-retries +++ a/mm/hmm.c @@ -547,6 +547,8 @@ static int hmm_vma_walk_test(unsigned lo hmm_pfns_fill(start, end, range, HMM_PFN_ERROR); + /* Update last to the end of the skipped VMA to prevent reprocessing */ + hmm_vma_walk->last = end; /* Skip this vma and continue processing the next vma. */ return 1; } _ Patches currently in -mm which might be from sooraj20636@xxxxxxxxx are