------------[ cut here ]------------ WARNING: CPU: 1 PID: 38 at fs/btrfs/transaction.c:148 btrfs_put_transaction+0x3d5/0x4d0 fs/btrfs/transaction.c:148 Modules linked in: CPU: 1 PID: 38 Comm: kworker/u4:2 Not tainted 6.8.0-rc6-syzkaller-g805d849d7c3c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 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 b3 5e 62 fe e9 93 fc ff ff 48 89 df e8 d6 5e 62 fe e9 2a fd ff ff e8 1c 33 09 fe 90 <0f> 0b 90 e9 97 fd ff ff e8 0e 33 09 fe 90 0f 0b 90 e9 49 ff ff ff RSP: 0018:ffffc90000aefa08 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888062d88028 RCX: ffffffff83821811 RDX: ffff8880196e9dc0 RSI: ffffffff83821b54 RDI: ffff888062d88320 RBP: ffff888062d88000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888062d88010 R13: ffff888062d88010 R14: ffff888079320128 R15: ffff88807daec000 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000080 CR3: 000000000d57a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x94c/0x3b40 fs/btrfs/transaction.c:2257 btrfs_qgroup_rescan_worker+0x458/0xa00 fs/btrfs/qgroup.c:3628 btrfs_work_helper+0x213/0xc00 fs/btrfs/async-thread.c:315 process_one_work+0x889/0x15e0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x12a0 kernel/workqueue.c:2787 kthread+0x2c6/0x3b0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243