------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 2431 at fs/btrfs/block-group.c:3853 do_chunk_alloc fs/btrfs/block-group.c:3853 [inline] WARNING: CPU: 1 PID: 2431 at fs/btrfs/block-group.c:3853 btrfs_chunk_alloc+0xedb/0xfa0 fs/btrfs/block-group.c:4095 Modules linked in: CPU: 1 PID: 2431 Comm: kworker/u4:8 Not tainted 6.6.0-rc6-syzkaller-00285-g9c5d00cb7b6b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3853 [inline] RIP: 0010:btrfs_chunk_alloc+0xedb/0xfa0 fs/btrfs/block-group.c:4095 Code: fd 48 c7 c7 60 fb 4c 8b 44 89 e6 e8 af a8 9e fd 0f 0b e9 1d fe ff ff e8 63 85 d8 fd 48 c7 c7 60 fb 4c 8b 89 ee e8 95 a8 9e fd <0f> 0b e9 28 fe ff ff e8 49 85 d8 fd 48 c7 c7 60 fb 4c 8b 44 89 e6 RSP: 0018:ffffc9000a93f968 EFLAGS: 00010246 RAX: 9ec00c0795354c00 RBX: ffff888028eec001 RCX: ffff8880258b3b80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffffffffffffe4 R08: ffffffff81543302 R09: 1ffff92001527ecc R10: dffffc0000000000 R11: fffff52001527ecd R12: ffff888078f70800 R13: dffffc0000000000 R14: ffff8880217d1800 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055be87f90000 CR3: 000000000d130000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x581/0xde0 fs/btrfs/space-info.c:765 btrfs_async_reclaim_metadata_space+0x29f/0x350 fs/btrfs/space-info.c:1069 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304