WARNING: CPU: 1 PID: 12 at fs/btrfs/transaction.c:1983 cleanup_transaction fs/btrfs/transaction.c:1983 [inline] WARNING: CPU: 1 PID: 12 at fs/btrfs/transaction.c:1983 btrfs_commit_transaction+0x3291/0x3fd0 fs/btrfs/transaction.c:2563 Modules linked in: CPU: 1 PID: 12 Comm: kworker/u4:1 Not tainted 6.5.0-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:1983 [inline] RIP: 0010:btrfs_commit_transaction+0x3291/0x3fd0 fs/btrfs/transaction.c:2563 Code: fe be 02 00 00 00 4c 89 f7 e8 0b 2a ad 00 e9 a7 d2 ff ff e8 61 d4 13 fe 8b b5 18 ff ff ff 48 c7 c7 80 c7 b5 8a e8 4f 96 da fd <0f> 0b e9 4a e3 ff ff e8 43 d4 13 fe f0 83 44 24 fc 00 49 8d bc 24 RSP: 0018:ffffc90000117960 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88807ebc0000 RCX: 0000000000000000 RDX: ffff888016675940 RSI: ffffffff814ccc86 RDI: 0000000000000001 RBP: ffffc90000117ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: ffff88807577f7c8 R14: ffff88807577f970 R15: ffff888029a68000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc0e6c2338 CR3: 0000000075e3c000 CR4: 0000000000350ee0 Call Trace: flush_space+0x1ea/0xe80 fs/btrfs/space-info.c:808 btrfs_async_reclaim_metadata_space+0x51c/0xa90 fs/btrfs/space-info.c:1078 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600 worker_thread+0x687/0x1110 kernel/workqueue.c:2751 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304