------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 76 at fs/btrfs/block-group.c:3831 do_chunk_alloc fs/btrfs/block-group.c:3831 [inline] WARNING: CPU: 1 PID: 76 at fs/btrfs/block-group.c:3831 btrfs_chunk_alloc+0xe37/0x1010 fs/btrfs/block-group.c:4073 Modules linked in: CPU: 1 PID: 76 Comm: kworker/u4:4 Not tainted 6.5.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3831 [inline] RIP: 0010:btrfs_chunk_alloc+0xe37/0x1010 fs/btrfs/block-group.c:4073 Code: fd 48 c7 c7 20 64 4c 8b 44 89 e6 e8 f3 8b a3 fd 0f 0b e9 1d fe ff ff e8 b7 72 dc fd 48 c7 c7 20 64 4c 8b 89 ee e8 d9 8b a3 fd <0f> 0b e9 28 fe ff ff e8 9d 72 dc fd 48 c7 c7 20 64 4c 8b 44 89 e6 RSP: 0018:ffffc900015f7988 EFLAGS: 00010246 RAX: 2557f115e4088100 RBX: ffff888020f60001 RCX: ffff88801a291dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffffffffffe4 R08: ffffffff8152d442 R09: 1ffffffff20f6884 R10: dffffc0000000000 R11: fffffbfff20f6885 R12: ffff888028c3d000 R13: dffffc0000000000 R14: ffff88807da64000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9f680c2723 CR3: 000000002b416000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0xaa9/0xe70 fs/btrfs/space-info.c:767 btrfs_async_reclaim_metadata_space+0x29f/0x350 fs/btrfs/space-info.c:1078 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304