------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 3483 at fs/btrfs/block-group.c:3941 do_chunk_alloc fs/btrfs/block-group.c:3941 [inline] WARNING: CPU: 1 PID: 3483 at fs/btrfs/block-group.c:3941 btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4183 Modules linked in: CPU: 1 UID: 0 PID: 3483 Comm: kworker/u8:9 Not tainted 6.13.0-rc1-next-20241205-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3941 [inline] RIP: 0010:btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4183 Code: a0 ad 4d 8c 89 de e8 e1 a7 7e fd 90 0f 0b 90 90 e9 23 fe ff ff e8 b2 f8 bd fd 90 48 c7 c7 a0 ad 4d 8c 89 de e8 c3 a7 7e fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 94 f8 bd fd 90 48 c7 c7 a0 ad 4d 8c RSP: 0018:ffffc9000c397928 EFLAGS: 00010246 RAX: 23290f051fd83f00 RBX: ffffffffffffffe4 RCX: ffff888032099e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8880612acb90 R08: ffffffff81600dd2 R09: 1ffff110170e519a R10: dffffc0000000000 R11: ffffed10170e519b R12: ffff88805ef0b000 R13: dffffc0000000000 R14: ffff8880627a8001 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3ff3bf9458 CR3: 0000000066cd6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x386/0xd30 fs/btrfs/space-info.c:815 btrfs_async_reclaim_metadata_space+0x178/0x3b0 fs/btrfs/space-info.c:1120 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244