WARNING: CPU: 0 PID: 11 at fs/btrfs/transaction.c:1999 cleanup_transaction fs/btrfs/transaction.c:1999 [inline] WARNING: CPU: 0 PID: 11 at fs/btrfs/transaction.c:1999 btrfs_commit_transaction+0x31f3/0x3ed0 fs/btrfs/transaction.c:2579 Modules linked in: CPU: 0 PID: 11 Comm: kworker/u4:0 Not tainted 6.5.0-rc6-next-20230816-syzkaller #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 fs/btrfs/transaction.c:1999 [inline] RIP: 0010:btrfs_commit_transaction+0x31f3/0x3ed0 fs/btrfs/transaction.c:2579 Code: fe be 02 00 00 00 4c 89 f7 e8 19 72 ad 00 e9 45 d3 ff ff e8 2f 80 11 fe 8b b5 18 ff ff ff 48 c7 c7 a0 6a d6 8a e8 2d 90 d7 fd <0f> 0b e9 75 f5 ff ff e8 11 80 11 fe f0 83 44 24 fc 00 49 8d bc 24 RSP: 0018:ffffc90000107968 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88802a8d1000 RCX: 0000000000000000 RDX: ffff88801526bb80 RSI: ffffffff814dc276 RDI: 0000000000000001 RBP: ffffc90000107ad8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: ffff888073ced528 R14: ffff888073ced6d0 R15: ffff888027494000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555559c4650 CR3: 0000000078eb1000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x1e7/0xe30 fs/btrfs/space-info.c:799 btrfs_async_reclaim_metadata_space+0x51c/0xa90 fs/btrfs/space-info.c:1069 process_one_work+0x887/0x15d0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8bb/0x1290 kernel/workqueue.c:2784 kthread+0x33a/0x430 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:304