Re: [syzbot] [btrfs?] kernel BUG in btrfs_exclop_balance (2)

From: David Sterba
Date: Tue Jun 06 2023 - 10:14:11 EST


On Fri, May 05, 2023 at 06:43:55PM -0700, syzbot wrote:
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 7163a2111f6c Merge tag 'acpi-6.4-rc1-3' of git://git.kerne..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=175bb84c280000
> kernel config: https://syzkaller.appspot.com/x/.config?x=73a06f6ef2d5b492
> dashboard link: https://syzkaller.appspot.com/bug?extid=5e466383663438b99b44
> compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12048338280000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11ff7314280000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/01051811f2fe/disk-7163a211.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/a26c68e4c8a6/vmlinux-7163a211.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/17380fb8dad4/bzImage-7163a211.xz
> mounted in repro: https://storage.googleapis.com/syzbot-assets/b30a249e8609/mount_0.gz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+5e466383663438b99b44@xxxxxxxxxxxxxxxxxxxxxxxxx

#syz fix: btrfs: fix assertion of exclop condition when starting balance

> assertion failed: fs_info->exclusive_operation == BTRFS_EXCLOP_BALANCE_PAUSED, in fs/btrfs/ioctl.c:463

Likely the same problem as https://syzkaller.appspot.com/bug?extid=afdee14f9fd3d20448e7