------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 6349 at fs/btrfs/volumes.c:3365 btrfs_remove_chunk+0x1cd2/0x2810 fs/btrfs/volumes.c:3365 Modules linked in: CPU: 1 UID: 0 PID: 6349 Comm: syz-executor.1 Not tainted 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_remove_chunk+0x1cd2/0x2810 fs/btrfs/volumes.c:3365 Code: 83 f9 19 77 10 b8 01 00 04 02 48 d3 e8 a8 01 0f 85 30 03 00 00 e8 5e 96 d1 fd 90 48 c7 c7 20 f0 dc 8b 89 de e8 bf c9 8f fd 90 <0f> 0b 90 90 41 bc 01 00 00 00 e8 3f 96 d1 fd 45 89 e0 48 8b 7c 24 RSP: 0018:ffffc90004c4f8b0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: ffffffff817b1cd8 RDX: ffff88803da02480 RSI: ffffffff817b1ce5 RDI: 0000000000000001 RBP: ffffffffffffffe4 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888023ae4900 R14: 1ffff92000989f25 R15: ffff888045549af4 FS: 00007ff0205fe6c0(0000) GS:ffff8880d6b05000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe71169cb4 CR3: 00000000490a8000 CR4: 0000000000352ef0 Call Trace: btrfs_relocate_chunk+0x2bf/0x730 fs/btrfs/volumes.c:3496 __btrfs_balance fs/btrfs/volumes.c:4227 [inline] btrfs_balance+0x1df9/0x47a0 fs/btrfs/volumes.c:4604 btrfs_ioctl_balance fs/btrfs/ioctl.c:3577 [inline] btrfs_ioctl+0x315d/0x5590 fs/btrfs/ioctl.c:5313 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff02127de69 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:00007ff0205fe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff0213abf80 RCX: 00007ff02127de69 RDX: 0000000020000480 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007ff0212ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff0213abf80 R15: 00007ffedf2c0f98