loop0: detected capacity change from 0 to 32768 BTRFS: device fsid 3d39d0ba-bdae-447e-827b-b091e1a68885 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5321) BTRFS info (device loop0): first mount of filesystem 3d39d0ba-bdae-447e-827b-b091e1a68885 BTRFS info (device loop0): using crc32c (crc32c-intel) checksum algorithm BTRFS info (device loop0): using free-space-tree BTRFS info (device loop0): scrub: started on devid 1 BTRFS info (device loop0): scrub: finished on devid 1 with status: 0 BTRFS info (device loop0): balance: start -sconvert=raid0,soft BTRFS info (device loop0): relocating block group 8519680 flags system BTRFS info (device loop0): relocating block group 1048576 flags system ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5321 at fs/btrfs/volumes.c:3409 btrfs_remove_chunk+0x1877/0x1b20 fs/btrfs/volumes.c:3409 Modules linked in: CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Not tainted 6.13.0-rc3-syzkaller-00289-g48f506ad0b68 #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_remove_chunk+0x1877/0x1b20 fs/btrfs/volumes.c:3409 Code: 4c 8c 44 89 e6 e8 69 77 99 fd 90 0f 0b 90 90 e9 ea fd ff ff e8 9a d3 d8 fd 90 48 c7 c7 c0 31 4c 8c 44 89 e6 e8 4a 77 99 fd 90 <0f> 0b 90 90 e9 f3 fd ff ff e8 7b d3 d8 fd 90 48 c7 c7 c0 31 4c 8c RSP: 0000:ffffc900019bf900 EFLAGS: 00010246 RAX: 961e2cef300dca00 RBX: ffff888043b98001 RCX: 0000000000100000 RDX: ffffc9000ec1a000 RSI: 000000000003120f RDI: 0000000000031210 RBP: ffffc900019bfab0 R08: ffffffff81601a82 R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: ffffffffffffffe4 R13: ffff888035a6e300 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fd9c9e5a6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd9bd6df000 CR3: 0000000043cca000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0x292/0x3b0 fs/btrfs/volumes.c:3539 __btrfs_balance+0x1b0f/0x26b0 fs/btrfs/volumes.c:4278 btrfs_balance+0xbdc/0x10c0 fs/btrfs/volumes.c:4655 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:3670 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 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:0x7fd9c8f85d29 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:00007fd9c9e5a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd9c9175fa0 RCX: 00007fd9c8f85d29 RDX: 0000000020000780 RSI: 00000000c4009420 RDI: 0000000000000006 RBP: 00007fd9c9001aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd9c9175fa0 R15: 00007ffd770279d8