------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 5388 at fs/btrfs/block-group.c:3758 do_chunk_alloc fs/btrfs/block-group.c:3758 [inline] WARNING: CPU: 1 PID: 5388 at fs/btrfs/block-group.c:3758 btrfs_chunk_alloc+0xe5a/0x1010 fs/btrfs/block-group.c:4000 Modules linked in: CPU: 1 PID: 5388 Comm: kworker/u4:8 Not tainted 6.4.0-rc5-syzkaller-00305-g022ce8862dff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3758 [inline] RIP: 0010:btrfs_chunk_alloc+0xe5a/0x1010 fs/btrfs/block-group.c:4000 Code: fd 48 c7 c7 40 0f 2c 8b 44 89 e6 e8 30 97 a6 fd 0f 0b e9 fb fd ff ff e8 14 18 df fd 48 c7 c7 40 0f 2c 8b 89 ee e8 16 97 a6 fd <0f> 0b e9 06 fe ff ff e8 fa 17 df fd 48 c7 c7 40 0f 2c 8b 44 89 e6 RSP: 0018:ffffc900059e79c8 EFLAGS: 00010246 RAX: 0793333933176200 RBX: ffff88807a510001 RCX: ffff888037d18000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffffffffffffe4 R08: ffffffff81530142 R09: fffff52000b3ceb1 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807bc2e800 R13: dffffc0000000000 R14: ffff8880351f6000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020036000 CR3: 000000002e44c000 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_data_space+0x14a/0x4f0 fs/btrfs/space-info.c:1294 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308