------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 943 at fs/btrfs/block-group.c:3766 btrfs_chunk_alloc+0xb4b/0xcd0 Modules linked in: CPU: 0 PID: 943 Comm: kworker/u4:4 Not tainted 6.3.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:btrfs_chunk_alloc+0xb4b/0xcd0 Code: 75 fe e9 30 f9 ff ff 48 c7 c7 00 7a 0c 8a 89 ee e8 8a 43 fe fd 0f 0b e9 36 fd ff ff 48 c7 c7 00 7a 0c 8a 89 ee e8 75 43 fe fd <0f> 0b e9 93 fd ff ff 48 c7 c7 00 7a 0c 8a 89 ee e8 60 43 fe fd 0f RSP: 0018:ffffc900046379c0 EFLAGS: 00010246 RAX: 768796201a4c2300 RBX: ffff888073fc2300 RCX: 0000000000000002 RDX: 0000000000000001 RSI: ffffffff8a19a1c0 RDI: 0000000000000001 RBP: ffffffffffffffe4 R08: dffffc0000000000 R09: fffff520008c6ef5 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807c2ae000 R13: dffffc0000000000 R14: ffff888020ef4000 R15: ffff8880269cc000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe7548ab300 CR3: 000000007bb9d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x1ab/0xa60 btrfs_async_reclaim_metadata_space+0x21c/0x2a0 process_one_work+0x7c4/0xe70 worker_thread+0x8c9/0xfd0 kthread+0x232/0x2b0 ret_from_fork+0x1f/0x30