Re: [syzbot] [mm?] BUG: sleeping function called from invalid context in vma_alloc_folio_noprof

From: Andrew Morton
Date: Mon Jul 15 2024 - 23:51:50 EST


On Mon, 15 Jul 2024 18:24:19 -0700 syzbot <syzbot+a3e82ae343b26b4d2335@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 3fe121b62282 Add linux-next specific files for 20240712
> git tree: linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=12ba9149980000
> kernel config: https://syzkaller.appspot.com/x/.config?x=98dd8c4bab5cdce
> dashboard link: https://syzkaller.appspot.com/bug?extid=a3e82ae343b26b4d2335
> 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=144c4b66980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=163c28f6980000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/8c6fbf69718d/disk-3fe121b6.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/39fc7e43dfc1/vmlinux-3fe121b6.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/0a78e70e4b4e/bzImage-3fe121b6.xz
>
> The issue was bisected to:
>
> commit ca567df74a28a9fb368c6b2d93e864113f73f5c2
> Author: Christian Brauner <brauner@xxxxxxxxxx>
> Date: Sun Jun 7 20:47:08 2020 +0000
>
> nsfs: add pid translation ioctls
>

yup, thanks. Breaking out of the switch statement while holding
rcu_read_lock().