The patch titled subject: mm-madvise-introduce-madv_collapse-sync-hugepage-collapse-fix has been added to the -mm mm-unstable branch. Its filename is mm-madvise-introduce-madv_collapse-sync-hugepage-collapse-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-madvise-introduce-madv_collapse-sync-hugepage-collapse-fix.patch This patch will later appear in the mm-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: Yang Shi <shy828301@xxxxxxxxx> subject: mm-madvise-introduce-madv_collapse-sync-hugepage-collapse-fix Date: Tue, 13 Sep 2022 09:14:15 -0700 Link: https://lkml.kernel.org/r/CAHbLzkrr3PvKjs2vanVi5JFTQQ3R7hSNRWoHhAw+gBWOcFurcw@xxxxxxxxxxxxxx Fixes: 7d8faaf155454 ("mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse") Signed-off-by:: Yang Shi <shy828301@xxxxxxxxx> Reported-by: syzbot+915f3e317adb0e85835f@xxxxxxxxxxxxxxxxxxxxxxxxx Cc: "Zach O'Keefe" <zokeefe@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/khugepaged.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/khugepaged.c~mm-madvise-introduce-madv_collapse-sync-hugepage-collapse-fix +++ a/mm/khugepaged.c @@ -2438,6 +2438,8 @@ int madvise_collapse(struct vm_area_stru last_fail = result; goto out_nolock; } + + hend = vma->vm_end & HPAGE_PMD_MASK; } mmap_assert_locked(mm); memset(cc->node_load, 0, sizeof(cc->node_load)); _ Patches currently in -mm which might be from shy828301@xxxxxxxxx are mm-gup-fix-the-fast-gup-race-against-thp-collapse.patch powerpc-64s-radix-dont-need-to-broadcast-ipi-for-radix-pmd-collapse-flush.patch mm-madvise-introduce-madv_collapse-sync-hugepage-collapse-fix.patch