Re: [syzbot] [cgroups?] [mm?] WARNING in folio_memcg

From: Muchun Song
Date: Mon Aug 19 2024 - 04:06:42 EST




> On Aug 19, 2024, at 15:22, syzbot <syzbot+ef4ecf7b6bdc4157bfa4@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 367b5c3d53e5 Add linux-next specific files for 20240816
> git tree: linux-next
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=11be396b980000
> kernel config: https://syzkaller.appspot.com/x/.config?x=61ba6f3b22ee5467
> dashboard link: https://syzkaller.appspot.com/bug?extid=ef4ecf7b6bdc4157bfa4
> compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=147469f5980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=153c5ad5980000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/0b1b4e3cad3c/disk-367b5c3d.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/5bb090f7813c/vmlinux-367b5c3d.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/6674cb0709b1/bzImage-367b5c3d.xz
>
> The issue was bisected to:
>
> commit ebadc95608dc3ee87ad4e5dc4f2c665c709bb899
> Author: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> Date: Wed Aug 14 09:34:15 2024 +0000
>
> mm: kmem: add lockdep assertion to obj_cgroup_memcg
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=170875f5980000
> final oops: https://syzkaller.appspot.com/x/report.txt?x=148875f5980000
> console output: https://syzkaller.appspot.com/x/log.txt?x=108875f5980000
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+ef4ecf7b6bdc4157bfa4@xxxxxxxxxxxxxxxxxxxxxxxxx

Thanks for your report. I've fixed this in patch [1].

[1] https://lore.kernel.org/linux-mm/20240819080415.44964-1-songmuchun@xxxxxxxxxxxxx/T/#u