BTRFS error (device loop0): allocation failed flags 2, wanted 4096 tree-log 0, relocation: 0 BTRFS critical (device loop0): entry offset 1048576, bytes 4194304, bitmap no ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 7146 at fs/btrfs/volumes.c:3234 btrfs_remove_chunk+0x18d7/0x1b10 fs/btrfs/volumes.c:3234 Modules linked in: CPU: 1 PID: 7146 Comm: syz-executor308 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:btrfs_remove_chunk+0x18d7/0x1b10 fs/btrfs/volumes.c:3234 Code: 68 57 fe e9 84 fa ff ff 4c 89 f7 e8 03 68 57 fe e9 35 ff ff ff e8 e9 5f 00 fe 90 48 c7 c7 60 d1 17 8b 89 de e8 0a 56 c6 fd 90 <0f> 0b 90 90 e9 2d ff ff ff 4c 89 f7 e8 d8 67 57 fe e9 9b fe ff ff RSP: 0018:ffffc9000e4ff818 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffffffffffe4 RCX: ffffffff814cf119 RDX: ffff88802c21bb80 RSI: ffffffff814cf126 RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88807c968878 R14: ffff888073c372d0 R15: ffff888073c372cc FS: 00007f665501d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055597dcc64a8 CR3: 000000001e63c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0x2b6/0x440 fs/btrfs/volumes.c:3364 __btrfs_balance fs/btrfs/volumes.c:4054 [inline] btrfs_balance+0x20fe/0x3f00 fs/btrfs/volumes.c:4431 btrfs_ioctl_balance fs/btrfs/ioctl.c:3623 [inline] btrfs_ioctl+0x12e8/0x61e0 fs/btrfs/ioctl.c:4658 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f6655060f59 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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:00007f665501d218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f66550ed6c8 RCX: 00007f6655060f59 RDX: 0000000020001200 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f66550ed6c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f66550ba66c R13: 0030656c69662f2e R14: 64696c6f76627573 R15: 0000000100004000