BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): balance: start -s ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3588 at fs/btrfs/block-group.c:2381 btrfs_create_pending_block_groups+0x543/0x5a0 fs/btrfs/block-group.c:2381 Modules linked in: CPU: 0 PID: 3588 Comm: syz.0.15 Not tainted 5.14.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:btrfs_create_pending_block_groups+0x543/0x5a0 fs/btrfs/block-group.c:2381 Code: 50 f0 48 0f ba aa c8 19 00 00 03 72 24 83 f8 fb 74 3c 83 f8 e2 74 37 90 48 c7 c7 08 8c fe 82 89 c6 89 04 24 e8 ac ff db 00 90 <0f> 0b 90 90 8b 04 24 48 8b 7c 24 08 89 c1 ba 4d 09 00 00 48 c7 c6 RSP: 0018:ffffc90001a23c28 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888113c53000 RCX: 00000000ffffdfff RDX: 00000000ffffffea RSI: 00000000ffffdfff RDI: 0000000000000001 RBP: ffff888106fb8410 R08: ffffffff8357d408 R09: 0000000000000003 R10: 00000000ffffe000 R11: 3fffffffffffffff R12: ffff888106fb85b0 R13: ffff888105bbc000 R14: 0000000000000000 R15: ffff888113c53000 FS: 00007f751af526c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32f5ffff CR3: 000000011246c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0x36/0x210 fs/btrfs/transaction.c:973 btrfs_inc_block_group_ro+0x159/0x190 fs/btrfs/block-group.c:2581 btrfs_relocate_block_group+0x72/0x340 fs/btrfs/relocation.c:4025 btrfs_relocate_chunk+0x33/0x120 fs/btrfs/volumes.c:3160 __btrfs_balance fs/btrfs/volumes.c:3890 [inline] btrfs_balance+0x811/0xf10 fs/btrfs/volumes.c:4280 btrfs_ioctl_balance+0x332/0x3f0 fs/btrfs/ioctl.c:4118 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl fs/ioctl.c:1055 [inline] __x64_sys_ioctl+0x7e/0xb0 fs/ioctl.c:1055 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3c/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f751bcd1ef9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f751af52038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f751be89f80 RCX: 00007f751bcd1ef9 RDX: 0000000020000040 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007f751bd44b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f751be89f80 R15: 00007fff0bb6b6a8