------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 48 at fs/btrfs/block-group.c:3839 do_chunk_alloc fs/btrfs/block-group.c:3839 [inline] WARNING: CPU: 1 PID: 48 at fs/btrfs/block-group.c:3839 btrfs_chunk_alloc+0x1175/0x1180 fs/btrfs/block-group.c:4081 Modules linked in: CPU: 1 PID: 48 Comm: kworker/u4:3 Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3839 [inline] RIP: 0010:btrfs_chunk_alloc+0x1175/0x1180 fs/btrfs/block-group.c:4081 Code: e9 5d fa ff ff 48 8b 7c 24 48 e8 06 58 42 fe e9 32 fe ff ff e8 1c 3c eb fd 90 48 c7 c7 00 58 19 8b 44 89 e6 e8 cc 31 b1 fd 90 <0f> 0b 90 90 e9 2b fe ff ff 66 90 66 0f 1f 00 55 48 89 f5 53 48 89 RSP: 0018:ffffc90000b97ab0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff8880299d8890 RCX: ffffffff814e0999 RDX: ffff8880137e9dc0 RSI: ffffffff814e09a6 RDI: 0000000000000001 RBP: ffff88807a5cf000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffffffffffffe4 R13: ffff888078ba8800 R14: 0000000000000001 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f26d0b04000 CR3: 000000002df66000 CR4: 0000000000350ef0 Call Trace: flush_space+0x90b/0xd70 fs/btrfs/space-info.c:784 btrfs_async_reclaim_data_space+0x1ff/0x680 fs/btrfs/space-info.c:1305 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242