loop0: detected capacity change from 0 to 32768 BTRFS: device fsid 5e4b7888-5e56-43f0-8345-635ad0fd87c6 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5106) BTRFS info (device loop0): first mount of filesystem 5e4b7888-5e56-43f0-8345-635ad0fd87c6 BTRFS info (device loop0): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop0): using free-space-tree BTRFS info (device loop0): balance: start -s BTRFS info (device loop0): left=0, need=98304, flags=2 BTRFS info (device loop0): space_info SYSTEM has 0 free, is not full BTRFS info (device loop0): space_info total=4194304, used=4096, pinned=0, reserved=4096, may_use=0, readonly=4186112 zone_unusable=0 BTRFS info (device loop0): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop0): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0): chunk_block_rsv: size 0 reserved 0 BTRFS info (device loop0): delayed_block_rsv: size 0 reserved 0 BTRFS info (device loop0): delayed_refs_rsv: size 0 reserved 0 BTRFS info (device loop0): relocating block group 1048576 flags system ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5106 at fs/btrfs/relocation.c:4172 btrfs_relocate_block_group+0xccd/0xd90 fs/btrfs/relocation.c:4172 Modules linked in: CPU: 0 UID: 0 PID: 5106 Comm: syz.0.0 Not tainted 6.11.0-rc6-syzkaller-00308-gb31c44928842 #0 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_relocate_block_group+0xccd/0xd90 fs/btrfs/relocation.c:4172 Code: 4d 8c e8 16 19 f2 07 e9 31 ff ff ff e8 6c 50 ce fd e9 77 fe ff ff e8 62 50 ce fd 90 0f 0b 90 e9 8c fd ff ff e8 54 50 ce fd 90 <0f> 0b 90 e9 de fd ff ff e8 46 50 ce fd 90 0f 0b 90 e9 30 fe ff ff RSP: 0018:ffffc90002d3fa10 EFLAGS: 00010293 RAX: ffffffff83c53c5c RBX: 0000000000001000 RCX: ffff888000b50000 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000000 RBP: ffff88803d660068 R08: ffffffff83c53a35 R09: 1ffff920005a7f30 R10: dffffc0000000000 R11: fffff520005a7f31 R12: 1ffff11009270000 R13: 0000000000000000 R14: ffff888040f20000 R15: ffff888040f20010 FS: 00007fda9e2ed6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fda9d68f7c0 CR3: 00000000372e4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3374 __btrfs_balance+0x1b0f/0x26b0 fs/btrfs/volumes.c:4158 btrfs_balance+0xbdc/0x10c0 fs/btrfs/volumes.c:4535 btrfs_ioctl_balance+0x496/0x7d0 fs/btrfs/ioctl.c:3675 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda9d57cef9 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:00007fda9e2ed038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fda9d735f80 RCX: 00007fda9d57cef9 RDX: 0000000020000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007fda9d5ef046 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fda9d735f80 R15: 00007ffd6103c1d8