------------[ cut here ]------------ WARNING: CPU: 0 PID: 129 at fs/btrfs/transaction.c:147 btrfs_put_transaction+0x361/0x3c0 fs/btrfs/transaction.c:146 Modules linked in: CPU: 0 PID: 129 Comm: kworker/u8:5 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Workqueue: btrfs-qgroup-rescan btrfs_work_helper RIP: 0010:btrfs_put_transaction+0x361/0x3c0 fs/btrfs/transaction.c:146 Code: fc ff df e9 05 fe ff ff e8 6c 92 ec fd 90 0f 0b 90 e9 10 fd ff ff e8 5e 92 ec fd 90 0f 0b 90 e9 87 fd ff ff e8 50 92 ec fd 90 <0f> 0b 90 e9 a4 fd ff ff e8 42 92 ec fd 48 89 df be 03 00 00 00 48 RSP: 0018:ffffc90002cef500 EFLAGS: 00010293 RAX: ffffffff83a86300 RBX: ffff88807f18a320 RCX: ffff88801b3c0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: dffffc0000000000 R08: ffffffff83a8601f R09: 1ffff1100fe31402 R10: dffffc0000000000 R11: ffffed100fe31403 R12: 00000000fffffff4 R13: ffff88807aa2f818 R14: ffff88807f18a000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb9f74a5108 CR3: 0000000077966000 CR4: 0000000000350ef0 Call Trace: btrfs_commit_transaction+0x4aa/0x3740 fs/btrfs/transaction.c:2242 btrfs_qgroup_rescan_worker+0x17ac/0x1c60 fs/btrfs/qgroup.c:3742 btrfs_work_helper+0x382/0xc10 fs/btrfs/async-thread.c:314 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0xa02/0x1770 kernel/workqueue.c:3335 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416 kthread+0x2f2/0x390 kernel/kthread.c:388 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243