------------[ cut here ]------------ WARNING: CPU: 1 PID: 2306 at fs/btrfs/transaction.c:1978 cleanup_transaction fs/btrfs/transaction.c:1978 [inline] WARNING: CPU: 1 PID: 2306 at fs/btrfs/transaction.c:1978 btrfs_commit_transaction+0xa37/0xb40 fs/btrfs/transaction.c:2462 Modules linked in: CPU: 1 PID: 2306 Comm: kworker/u4:6 Not tainted 5.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:cleanup_transaction fs/btrfs/transaction.c:1978 [inline] RIP: 0010:btrfs_commit_transaction+0xa37/0xb40 fs/btrfs/transaction.c:2462 Code: 24 e8 3d dd ff ff e9 bf f8 ff ff 41 8b 5d 24 4c 89 e7 e8 7c e5 06 00 e9 41 f7 ff ff 89 de 48 c7 c7 48 ee dd 82 e8 9a b5 cf 00 <0f> 0b 89 d9 ba ba 07 00 00 48 c7 c6 f0 a1 88 82 4d 8d ac 24 e0 0b RSP: 0018:ffffc900002b7d08 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: ffffc900002b7b98 RDX: c0000000ffffdfff RSI: 00000000ffffdfff RDI: 0000000000000000 RBP: ffff88810c7fe680 R08: 0000000000000000 R09: ffffc900002b7b40 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88811c870000 R13: ffff88810c7fe6d8 R14: ffff88811c889000 R15: ffff88810c7fe528 FS: 0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf8c258d58 CR3: 000000011c952000 CR4: 0000000000350ee0 Call Trace: may_commit_transaction fs/btrfs/space-info.c:666 [inline] flush_space+0x3cd/0x670 fs/btrfs/space-info.c:746 btrfs_async_reclaim_metadata_space+0x134/0x2f0 fs/btrfs/space-info.c:1003 process_one_work+0x2a3/0x4f0 kernel/workqueue.c:2275 worker_thread+0x50/0x3b0 kernel/workqueue.c:2421 kthread+0x116/0x130 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294