------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 55 at fs/btrfs/block-group.c:3758 do_chunk_alloc fs/btrfs/block-group.c:3758 [inline] WARNING: CPU: 1 PID: 55 at fs/btrfs/block-group.c:3758 btrfs_chunk_alloc+0x108d/0x1120 fs/btrfs/block-group.c:4000 Modules linked in: CPU: 1 PID: 55 Comm: kworker/u4:4 Not tainted 6.4.0-rc7-syzkaller-00019-g99ec1ed7c2ed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3758 [inline] RIP: 0010:btrfs_chunk_alloc+0x108d/0x1120 fs/btrfs/block-group.c:4000 Code: 24 48 e8 16 4c 4c fe e9 00 f8 ff ff e8 0c 4c 4c fe e9 8f fa ff ff e8 42 77 fa fd 44 89 f6 48 c7 c7 80 34 97 8a e8 23 32 c2 fd <0f> 0b 41 bf 01 00 00 00 e9 f1 fa ff ff 48 8b 7c 24 48 e8 dc 4b 4c RSP: 0018:ffffc9000201fa80 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: 0000000000000000 RDX: ffff888018ac0040 RSI: ffffffff814b2427 RDI: 0000000000000001 RBP: ffff88802117d800 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88802d4b2800 R13: ffff888021154888 R14: ffffffffffffffe4 R15: 000000002d4b2801 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb00a332d00 CR3: 0000000028b1a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x945/0xde0 fs/btrfs/space-info.c:767 btrfs_async_reclaim_metadata_space+0x39e/0xa90 fs/btrfs/space-info.c:1078 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308