loop0: detected capacity change from 0 to 32768 BTRFS: device fsid ed167579-eb65-4e76-9a50-61ac97e9b59d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5362) BTRFS info (device loop0): first mount of filesystem ed167579-eb65-4e76-9a50-61ac97e9b59d BTRFS info (device loop0): using sha256 (sha256-lib) checksum algorithm BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS info (device loop0): balance: start -s ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5362 at fs/btrfs/block-group.c:2796 btrfs_create_pending_block_groups+0x12c5/0x1780 fs/btrfs/block-group.c:2796 Modules linked in: CPU: 0 UID: 0 PID: 5362 Comm: syz.0.0 Not tainted 6.17.0-rc1-syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:btrfs_create_pending_block_groups+0x12c5/0x1780 fs/btrfs/block-group.c:2796 Code: 00 e8 ef 42 b9 fd 84 c0 74 29 e8 c6 a0 d2 fd e9 17 03 00 00 e8 bc a0 d2 fd 90 48 c7 c7 a0 04 d0 8b 44 89 f6 e8 7c 2f 96 fd 90 <0f> 0b 90 90 e9 be 03 00 00 e8 1d 14 8e 07 41 89 c7 31 ff 89 c6 e8 RSP: 0018:ffffc9000d35f6e0 EFLAGS: 00010246 RAX: 6206e04c5d0e7a00 RBX: ffff88805326c001 RCX: ffff88801f6f2440 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: ffffc9000d35f948 R08: ffff88801fc24253 R09: 1ffff11003f8484a R10: dffffc0000000000 R11: ffffed1003f8484b R12: 0000000000000000 R13: dffffc0000000000 R14: 00000000ffffffe4 R15: ffff888052b3d800 FS: 00007fa7cf4696c0(0000) GS:ffff88808d211000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000003000 CR3: 00000000436b1000 CR4: 0000000000352ef0 Call Trace: __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1071 btrfs_inc_block_group_ro+0x641/0x6f0 fs/btrfs/block-group.c:3085 btrfs_relocate_block_group+0x3f1/0xc60 fs/btrfs/relocation.c:3931 btrfs_relocate_chunk+0x12f/0x5c0 fs/btrfs/volumes.c:3446 __btrfs_balance+0x1860/0x23f0 fs/btrfs/volumes.c:4222 btrfs_balance+0xac2/0x11b0 fs/btrfs/volumes.c:4599 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3577 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa7ce58ebe9 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:00007fa7cf469038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa7ce7b5fa0 RCX: 00007fa7ce58ebe9 RDX: 0000200000000200 RSI: 00000000c4009420 RDI: 0000000000000005 RBP: 00007fa7ce611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa7ce7b6038 R14: 00007fa7ce7b5fa0 R15: 00007fff6e1cd888