The patch titled Subject: mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix has been added to the -mm mm-hotfixes-unstable branch. Its filename is mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix Date: Thu Nov 24 11:29:41 AM PST 2022 avoid unintialized use of `pmd' in collapse_and_free_pmd() Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Jann Horn <jannh@xxxxxxxxxx> Cc: John Hubbard <jhubbard@xxxxxxxxxx> Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Cc: Peter Xu <peterx@xxxxxxxxxx> Cc: Yang Shi <shy828301@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/khugepaged.c | 1 - 1 file changed, 1 deletion(-) --- a/mm/khugepaged.c~mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix +++ a/mm/khugepaged.c @@ -1431,7 +1431,6 @@ static void collapse_and_free_pmd(struct */ if (vma->anon_vma) lockdep_assert_held_write(&vma->anon_vma->root->rwsem); - page_table_check_pte_clear_range(mm, addr, pmd); tlb_gather_mmu(&tlb, mm); pmd = READ_ONCE(*pmdp); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-replace-vm_warn_on-to-pr_warn-if-the-node-is-offline-with-__gfp_thisnode-v4-fix.patch mm-replace-vm_warn_on-to-pr_warn-if-the-node-is-offline-with-__gfp_thisnode-v4-fix-2.patch mm-khugepaged-fix-gup-fast-interaction-by-freeing-ptes-via-mmu_gather-fix.patch mm-memremap_pages-replace-zone_device_page_init-with-pgmap_request_folios-fix.patch mm-gup-remove-foll_migration-fix.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix-2.patch kasan-allow-sampling-page_alloc-allocations-for-hw_tags-fix.patch mm-hugetlb-convert-move_hugetlb_state-to-folios-fix.patch mm-introduce-encoded-page-pointers-with-embedded-extra-bits-fix.patch mm-delay-page_remove_rmap-until-after-the-tlb-has-been-flushed-fix.patch mm-document-sys-class-bdi-bdi-min_bytes-knob-fix.patch mm-document-sys-class-bdi-bdi-max_ratio_fine-knob-fix.patch mm-document-sys-class-bdi-bdi-min_ratio_fine-knob-fix.patch