------------[ cut here ]------------ WARNING: CPU: 1 PID: 4307 at fs/btrfs/transaction.c:1994 cleanup_transaction fs/btrfs/transaction.c:1994 [inline] WARNING: CPU: 1 PID: 4307 at fs/btrfs/transaction.c:1994 btrfs_commit_transaction+0x33b4/0x3c70 fs/btrfs/transaction.c:2580 Modules linked in: CPU: 1 PID: 4307 Comm: kworker/u4:6 Not tainted 6.1.115-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:cleanup_transaction fs/btrfs/transaction.c:1994 [inline] RIP: 0010:btrfs_commit_transaction+0x33b4/0x3c70 fs/btrfs/transaction.c:2580 Code: 89 e7 e8 1f 8b b0 00 e9 24 d3 ff ff e8 55 60 01 fe e9 fe fe ff ff e8 4b 60 01 fe 48 c7 c7 c0 15 4e 8b 8b 34 24 e8 0c 7a c9 fd <0f> 0b e9 a8 f8 ff ff e8 30 60 01 fe e9 be fe ff ff 89 d9 80 e1 07 RSP: 0018:ffffc90003fcf740 EFLAGS: 00010246 RAX: c8e77a905c3fdf00 RBX: ffff888078d9c001 RCX: ffff88801e371dc0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90003fcfa70 R08: ffffffff8152afae R09: fffff520007f9e49 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801e373028 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff1100e85b382 FS: 0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d673aed800 CR3: 000000005f880000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x9a3/0xe60 fs/btrfs/space-info.c:807 btrfs_async_reclaim_metadata_space+0x29b/0x340 fs/btrfs/space-info.c:1080 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 process_scheduled_works kernel/workqueue.c:2355 [inline] worker_thread+0xd04/0x1200 kernel/workqueue.c:2441 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295