The patch titled Subject: mm-gup-fix-infinite-loop-within-__get_longterm_locked-v3 has been added to the -mm mm-hotfixes-unstable branch. Its filename is mm-gup-fix-infinite-loop-within-__get_longterm_locked-v3.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-gup-fix-infinite-loop-within-__get_longterm_locked-v3.patch This patch will later appear in the mm-hotfixes-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Zhaoyang Huang <zhaoyang.huang@xxxxxxxxxx> Subject: mm-gup-fix-infinite-loop-within-__get_longterm_locked-v3 Date: Wed, 22 Jan 2025 09:26:04 +0800 move definition of local Link: https://lkml.kernel.org/r/20250122012604.3654667-1-zhaoyang.huang@xxxxxxxxxx Fixes: 67e139b02d99 ("mm/gup.c: refactor check_and_migrate_movable_pages()") Signed-off-by: Zhaoyang Huang <zhaoyang.huang@xxxxxxxxxx> Reviewed-by: John Hubbard <jhubbard@xxxxxxxxxx> Suggested-by: David Hildenbrand <david@xxxxxxxxxx> Acked-by: David Hildenbrand <david@xxxxxxxxxx> Cc: Aijun Sun <aijun.sun@xxxxxxxxxx> Cc: Alistair Popple <apopple@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/gup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/gup.c~mm-gup-fix-infinite-loop-within-__get_longterm_locked-v3 +++ a/mm/gup.c @@ -2324,9 +2324,9 @@ static void collect_longterm_unpinnable_ struct list_head *movable_folio_list, struct pages_or_folios *pofs) { - unsigned long i; struct folio *prev_folio = NULL; bool drain_allow = true; + unsigned long i; for (i = 0; i < pofs->nr_entries; i++) { struct folio *folio = pofs_get_folio(pofs, i); _ Patches currently in -mm which might be from zhaoyang.huang@xxxxxxxxxx are mm-gup-fix-infinite-loop-within-__get_longterm_locked.patch mm-gup-fix-infinite-loop-within-__get_longterm_locked-v3.patch