------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 2418 at fs/btrfs/block-group.c:3811 do_chunk_alloc fs/btrfs/block-group.c:3811 [inline] WARNING: CPU: 1 PID: 2418 at fs/btrfs/block-group.c:3811 btrfs_chunk_alloc+0xee1/0xfb0 fs/btrfs/block-group.c:4053 Modules linked in: CPU: 1 PID: 2418 Comm: kworker/u4:8 Not tainted 6.8.0-rc1-syzkaller-gecb1b8288dc7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3811 [inline] RIP: 0010:btrfs_chunk_alloc+0xee1/0xfb0 fs/btrfs/block-group.c:4053 Code: bc ad 8b 44 89 e6 e8 3e 75 96 fd 90 0f 0b 90 90 e9 19 fe ff ff e8 8f ae d0 fd 90 48 c7 c7 a0 bc ad 8b 89 ee e8 20 75 96 fd 90 <0f> 0b 90 90 e9 20 fe ff ff e8 71 ae d0 fd 90 48 c7 c7 a0 bc ad 8b RSP: 0018:ffffc90009e37968 EFLAGS: 00010246 RAX: 13f6c103e3c6fc00 RBX: ffff888060548001 RCX: ffff88802859bb80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffffffffffffe4 R08: ffffffff8154c492 R09: 1ffff920013c6ecc R10: dffffc0000000000 R11: fffff520013c6ecd R12: ffff88805edf7000 R13: dffffc0000000000 R14: ffff8880645bd000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a8f5bbb950 CR3: 000000002c729000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x4d6/0xcf0 fs/btrfs/space-info.c:784 btrfs_async_reclaim_metadata_space+0x29f/0x350 fs/btrfs/space-info.c:1089 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 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:242