[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250813012616.4382-1-hdanton@sina.com>
Date: Wed, 13 Aug 2025 09:26:15 +0800
From: Hillf Danton <hdanton@...a.com>
To: syzbot <syzbot+4d9a13f0797c46a29e42@...kaller.appspotmail.com>
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [mm?] WARNING in move_page_tables
> Date: Tue, 12 Aug 2025 14:56:35 -0700 [thread overview]
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 53e760d89498 Merge tag 'nfsd-6.17-1' of git://git.kernel.o..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=165fe9a2580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=f9319a42cfb3bf57
> dashboard link: https://syzkaller.appspot.com/bug?extid=4d9a13f0797c46a29e42
> compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14172842580000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15b04c34580000
#syz test
--- x/mm/mremap.c
+++ y/mm/mremap.c
@@ -837,7 +837,6 @@ unsigned long move_page_tables(struct pa
new_pmd = alloc_new_pmd(mm, pmc->new_addr);
if (!new_pmd)
break;
-again:
if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) {
if (extent == HPAGE_PMD_SIZE &&
move_pgt_entry(pmc, HPAGE_PMD, old_pmd, new_pmd))
@@ -856,8 +855,9 @@ again:
continue;
if (pte_alloc(pmc->new->vm_mm, new_pmd))
break;
+ /* bail out to avoid clearing new_pmd */
if (move_ptes(pmc, extent, old_pmd, new_pmd) < 0)
- goto again;
+ break;
}
mmu_notifier_invalidate_range_end(&range);
--
Powered by blists - more mailing lists