------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 56 at fs/btrfs/block-group.c:3748 do_chunk_alloc fs/btrfs/block-group.c:3748 [inline] WARNING: CPU: 1 PID: 56 at fs/btrfs/block-group.c:3748 btrfs_chunk_alloc+0xe5a/0x1010 fs/btrfs/block-group.c:3990 Modules linked in: CPU: 1 PID: 56 Comm: kworker/u4:4 Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3748 [inline] RIP: 0010:btrfs_chunk_alloc+0xe5a/0x1010 fs/btrfs/block-group.c:3990 Code: fd 48 c7 c7 00 0c 2c 8b 44 89 e6 e8 80 c1 a6 fd 0f 0b e9 fb fd ff ff e8 04 3f df fd 48 c7 c7 00 0c 2c 8b 89 ee e8 66 c1 a6 fd <0f> 0b e9 06 fe ff ff e8 ea 3e df fd 48 c7 c7 00 0c 2c 8b 44 89 e6 RSP: 0018:ffffc900015779c8 EFLAGS: 00010246 RAX: 08f69da33b870100 RBX: ffff888065984001 RCX: ffff888012ea1dc0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffffffffffffe4 R08: ffffffff815301a2 R09: fffff520002aeeed R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888039e6c800 R13: dffffc0000000000 R14: ffff88803859d800 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055eb0f2bacc0 CR3: 000000002b269000 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