BTRFS error (device loop0): allocation failed flags 2, wanted 4096 tree-log 0, relocation: 0 BTRFS info (device loop0): space_info SYSTEM (sub-group id 0) 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 163840 reserved 163840 BTRFS info (device loop0): delayed_refs_rsv: size 1114112 reserved 1048576 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: 43 at fs/btrfs/block-group.c:3990 do_chunk_alloc fs/btrfs/block-group.c:3990 [inline] WARNING: CPU: 0 PID: 43 at fs/btrfs/block-group.c:3990 btrfs_chunk_alloc+0xf4d/0x1150 fs/btrfs/block-group.c:4231 Modules linked in: CPU: 0 UID: 0 PID: 43 Comm: kworker/u4:3 Not tainted 6.15.0-syzkaller-07774-g90b83efa6701 #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 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3990 [inline] RIP: 0010:btrfs_chunk_alloc+0xf4d/0x1150 fs/btrfs/block-group.c:4231 Code: 48 c7 c6 20 a4 cf 8b 44 89 f2 e8 6e fe 42 fd e9 b5 fc ff ff e8 64 df d8 fd 90 48 c7 c7 c0 a3 cf 8b 44 89 f6 e8 b4 cb 9c fd 90 <0f> 0b 90 90 e9 96 fc ff ff e8 45 df d8 fd eb 05 e8 3e df d8 fd 48 RSP: 0018:ffffc90000a07798 EFLAGS: 00010246 RAX: ff856ef31480f000 RBX: 0000000000000000 RCX: ffff88801f038000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 00000000ffffff01 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa66c R12: ffff888043ab14a0 R13: ffff888030bdb800 R14: ffffffffffffffe4 R15: ffff888052860000 FS: 0000000000000000(0000) GS:ffff88808d266000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1feacaae9c CR3: 000000004295c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x30b/0xcd0 fs/btrfs/space-info.c:861 do_async_reclaim_data_space+0x11c/0x520 fs/btrfs/space-info.c:1394 btrfs_async_reclaim_data_space+0x41/0x90 fs/btrfs/space-info.c:1458 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245