------------[ cut here ]------------ WARNING: CPU: 0 PID: 2453 at fs/btrfs/transaction.c:150 btrfs_put_transaction fs/btrfs/transaction.c:150 [inline] WARNING: CPU: 0 PID: 2453 at fs/btrfs/transaction.c:150 btrfs_put_transaction+0x3d1/0x4c0 fs/btrfs/transaction.c:143 Modules linked in: CPU: 0 PID: 2453 Comm: kworker/u4:10 Not tainted 6.6.0-rc3-syzkaller-g6465e260f487 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: btrfs-qgroup-rescan btrfs_work_helper RIP: 0010:btrfs_put_transaction fs/btrfs/transaction.c:150 [inline] RIP: 0010:btrfs_put_transaction+0x3d1/0x4c0 fs/btrfs/transaction.c:143 Code: a5 e1 11 fe 0f 0b e9 b7 fc ff ff 4c 89 e7 e8 16 d1 66 fe e9 96 fc ff ff 48 89 df e8 29 d1 66 fe e9 2d fd ff ff e8 7f e1 11 fe <0f> 0b e9 9c fd ff ff e8 73 e1 11 fe 0f 0b e9 50 ff ff ff e8 67 e1 RSP: 0018:ffffc9000ab2fa20 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888017f29028 RCX: 0000000000000000 RDX: ffff8880267f8180 RSI: ffffffff8374e391 RDI: ffff888017f29330 RBP: ffff888017f29000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888017f29010 R13: ffff888017f29010 R14: ffff88806b6921f8 R15: ffff888020664000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc13d34f18 CR3: 000000000c976000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x94d/0x3b40 fs/btrfs/transaction.c:2241 btrfs_qgroup_rescan_worker+0x567/0xa40 fs/btrfs/qgroup.c:3417 btrfs_work_helper+0x20b/0xba0 fs/btrfs/async-thread.c:314 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 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:304