BTRFS info (device loop0): using crc32c (crc32c-intel) checksum algorithm BTRFS warning (device loop0): the 'inode_cache' option is deprecated and has no effect since 5.11 BTRFS info (device loop0): doing ref verification 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 -f -susage=6,vrange=0..9223372036854775809 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1856 at fs/btrfs/block-group.c:2421 btrfs_create_pending_block_groups+0x535/0x590 fs/btrfs/block-group.c:2421 Modules linked in: CPU: 0 PID: 1856 Comm: syz-executor.0 Not tainted 5.15.143-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:btrfs_create_pending_block_groups+0x535/0x590 fs/btrfs/block-group.c:2421 Code: 8b 53 58 f0 48 0f ba aa d0 19 00 00 03 72 20 83 f8 fb 74 38 83 f8 e2 74 33 89 c6 48 c7 c7 d0 60 04 83 89 04 24 e8 70 ab df 00 <0f> 0b 8b 04 24 48 8b 7c 24 08 89 c1 ba 75 09 00 00 48 c7 c6 40 fe RSP: 0018:ffffc9000042bc28 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88817d361000 RCX: ffff888237c1b7f8 RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffff888237c1b7f0 RBP: ffff88817bf1ac10 R08: ffffffff8357c488 R09: 0000000000000003 R10: 00000000ffffe000 R11: 3fffffffffffffff R12: ffff88817bf1adb0 R13: ffff88817bf10000 R14: 0000000000000000 R15: ffff88817d361000 FS: 00007f9ba03546c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ba10ee000 CR3: 00000001786f4000 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:1014 btrfs_inc_block_group_ro+0x18b/0x1d0 fs/btrfs/block-group.c:2644 btrfs_relocate_block_group+0x99/0x380 fs/btrfs/relocation.c:4041 btrfs_relocate_chunk+0x33/0x110 fs/btrfs/volumes.c:3289 __btrfs_balance fs/btrfs/volumes.c:4019 [inline] btrfs_balance+0x811/0xf10 fs/btrfs/volumes.c:4409 btrfs_ioctl_balance+0x332/0x3f0 fs/btrfs/ioctl.c:4136 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x7b/0xb0 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f9ba0fd2b29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9ba03540c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9ba10f1f80 RCX: 00007f9ba0fd2b29 RDX: 0000000020001200 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f9ba101e47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f9ba10f1f80 R15: 00007ffc8761c988