------------[ cut here ]------------ WARNING: CPU: 0 PID: 76 at fs/btrfs/transaction.c:148 btrfs_put_transaction+0x3d5/0x4d0 fs/btrfs/transaction.c:148 Modules linked in: CPU: 0 PID: 76 Comm: kworker/u4:5 Not tainted 6.7.0-rc7-syzkaller-00049-g453f5db0619e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: btrfs-qgroup-rescan btrfs_work_helper RIP: 0010:btrfs_put_transaction+0x3d5/0x4d0 fs/btrfs/transaction.c:148 Code: fe 90 0f 0b 90 e9 b4 fc ff ff 4c 89 e7 e8 93 8a 65 fe e9 93 fc ff ff 48 89 df e8 a6 8a 65 fe e9 2a fd ff ff e8 2c a4 0f fe 90 <0f> 0b 90 e9 97 fd ff ff e8 1e a4 0f fe 90 0f 0b 90 e9 49 ff ff ff RSP: 0018:ffffc900022efa08 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888075713028 RCX: ffffffff8376bd91 RDX: ffff88801aac4140 RSI: ffffffff8376c0d4 RDI: ffff888075713330 RBP: ffff888075713000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000002 R12: ffff888075713010 R13: ffff888075713010 R14: ffff88805e770858 R15: ffff88808586c000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f29901fe000 CR3: 000000003b2c5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x948/0x3b40 fs/btrfs/transaction.c:2291 btrfs_qgroup_rescan_worker+0x458/0xa00 fs/btrfs/qgroup.c:3614 btrfs_work_helper+0x210/0xbf0 fs/btrfs/async-thread.c:315 process_one_work+0x886/0x15d0 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2781 kthread+0x2c6/0x3a0 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:242