BTRFS error (device loop0): allocation failed flags 2, wanted 4096 tree-log 0, relocation: 0 BTRFS info (device loop0): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop0): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 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 98304 reserved 94208 BTRFS info (device loop0): delayed_block_rsv: size 131072 reserved 131072 BTRFS info (device loop0): delayed_refs_rsv: size 851968 reserved 786432 BTRFS info (device loop0): block group 1048576 has 4194304 bytes, 4096 used 0 pinned 0 reserved 0 delalloc 0 super 0 zone_unusable (4190208 bytes available) [readonly] BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 0 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): 4190208 bytes available across all block groups ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 2941 at fs/btrfs/block-group.c:3943 do_chunk_alloc fs/btrfs/block-group.c:3943 [inline] WARNING: CPU: 0 PID: 2941 at fs/btrfs/block-group.c:3943 btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4185 Modules linked in: CPU: 0 UID: 0 PID: 2941 Comm: kworker/u4:10 Not tainted 6.12.0-rc3-syzkaller-00007-g6485cf5ea253 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3943 [inline] RIP: 0010:btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4185 Code: 40 b8 4e 8c 89 de e8 f1 d1 79 fd 90 0f 0b 90 90 e9 23 fe ff ff e8 c2 d7 b8 fd 90 48 c7 c7 40 b8 4e 8c 89 de e8 d3 d1 79 fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 a4 d7 b8 fd 90 48 c7 c7 40 b8 4e 8c RSP: 0000:ffffc9000c307908 EFLAGS: 00010246 RAX: 8295b0e72a398200 RBX: ffffffffffffffe4 RCX: ffff88803da10000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88803deab5c8 R08: ffffffff8155e402 R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff888012eb2800 R13: dffffc0000000000 R14: ffff888035a04001 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9a7f7b9980 CR3: 0000000011d42000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x4c0/0xd00 fs/btrfs/space-info.c:808 btrfs_async_reclaim_data_space+0x159/0x510 fs/btrfs/space-info.c:1321 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244