WARNING: CPU: 0 PID: 1019 at fs/btrfs/transaction.c:1983 cleanup_transaction+0x6fa/0x7e0 fs/btrfs/transaction.c:1983 Modules linked in: CPU: 0 PID: 1019 Comm: kworker/u4:5 Not tainted 6.5.0-rc6-syzkaller-00034-g2d7b8c6b90e4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:cleanup_transaction+0x6fa/0x7e0 fs/btrfs/transaction.c:1983 Code: 6d 00 fe 0f 0b 43 80 7c 25 00 00 0f 85 53 fa ff ff e9 56 fa ff ff e8 b5 6d 00 fe 48 c7 c7 00 64 4a 8b 44 89 f6 e8 26 87 c7 fd <0f> 0b e9 a7 fa ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ff f9 ff RSP: 0018:ffffc90005267640 EFLAGS: 00010246 RAX: 40547ade9f800800 RBX: 0000000000000000 RCX: ffff888021a4bb80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90005267770 R08: ffffffff8152d442 R09: 1ffff92000a4ce40 R10: dffffc0000000000 R11: fffff52000a4ce41 R12: dffffc0000000000 R13: 1ffff1100eb6f4f1 R14: 00000000ffffffe4 R15: ffff888075b7a788 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f341e5f26a8 CR3: 0000000033bc0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x268e/0x2ff0 fs/btrfs/transaction.c:2563 flush_space+0xa4a/0xe70 fs/btrfs/space-info.c:808 btrfs_async_reclaim_metadata_space+0x29f/0x350 fs/btrfs/space-info.c:1078 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304