Re: [syzbot] [xfs?] BUG: sleeping function called from invalid context in vm_map_ram

From: Lorenzo Stoakes
Date: Wed Mar 22 2023 - 01:41:52 EST


On Tue, 21 Mar 2023 at 17:03, syzbot
<syzbot+6d9043ea38ed2b9ef000@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 73f2c2a7e1d2 Add linux-next specific files for 20230320
> git tree: linux-next
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=11ad6e1cc80000
> kernel config: https://syzkaller.appspot.com/x/.config?x=f22105589e896af1
> dashboard link: https://syzkaller.appspot.com/bug?extid=6d9043ea38ed2b9ef000
> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d199bac80000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=159c7281c80000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/2e4e105e18cf/disk-73f2c2a7.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/08d761112297/vmlinux-73f2c2a7.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/4b39e3e871ce/bzImage-73f2c2a7.xz
> mounted in repro: https://storage.googleapis.com/syzbot-assets/662e0db5efdd/mount_0.gz
>
> The issue was bisected to:
>
> commit 8f4977bdd77ee3dce8af81488231e7535695f889
> Author: Lorenzo Stoakes <lstoakes@xxxxxxxxx>
> Date: Sun Mar 19 07:09:31 2023 +0000
>
> mm: vmalloc: use rwsem, mutex for vmap_area_lock and vmap_block->lock

This patch has already been dropped in mm-unstable which will
eventually reach linux-next. The current revision of this patch set
retains the spinlocks.

[snip]

--
Lorenzo Stoakes
https://ljs.io