------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 335 at fs/btrfs/block-group.c:3764 btrfs_chunk_alloc+0xb4b/0xcd0 Modules linked in: CPU: 1 PID: 335 Comm: kworker/u4:3 Not tainted 6.2.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:btrfs_chunk_alloc+0xb4b/0xcd0 Code: 6e fe e9 30 f9 ff ff 48 c7 c7 60 c4 0c 8a 89 ee e8 5a 5f f6 fd 0f 0b e9 36 fd ff ff 48 c7 c7 60 c4 0c 8a 89 ee e8 45 5f f6 fd <0f> 0b e9 93 fd ff ff 48 c7 c7 60 c4 0c 8a 89 ee e8 30 5f f6 fd 0f RSP: 0018:ffffc90002c5f9c0 EFLAGS: 00010246 RAX: 9f31e2f6c42f9d00 RBX: ffff8880771e5200 RCX: 0000000000000002 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffffffffffffe4 R08: dffffc0000000000 R09: ffffed1017385153 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807162b000 R13: dffffc0000000000 R14: ffff8880780ac000 R15: ffff888029894800 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc00dffa5a8 CR3: 000000001be2e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x1ab/0xb60 btrfs_async_reclaim_metadata_space+0x21c/0x2a0 process_one_work+0x80e/0x1050 worker_thread+0x8c9/0xfd0 kthread+0x232/0x2b0 ret_from_fork+0x1f/0x30