------------[ cut here ]------------ WARNING: CPU: 1 PID: 41 at fs/btrfs/extent-tree.c:871 lookup_inline_extent_backref+0x8e8/0x1470 Modules linked in: CPU: 1 PID: 41 Comm: kworker/u4:2 Not tainted 6.5.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: btrfs-qgroup-rescan btrfs_work_helper RIP: 0010:lookup_inline_extent_backref+0x8e8/0x1470 fs/btrfs/extent-tree.c:871 Code: de e8 ac cb 04 fe 49 39 df 0f 87 4b 0b 00 00 e8 8e c9 04 fe eb 30 83 7d 28 00 4c 8b 6c 24 30 0f 84 11 05 00 00 e8 78 c9 04 fe <0f> 0b 41 bc fb ff ff ff e9 52 06 00 00 e8 66 c9 04 fe e9 29 06 00 RSP: 0018:ffffc90000b26b00 EFLAGS: 00010293 RAX: ffffffff8386ef08 RBX: 0000000000000000 RCX: ffff888014e49dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000b26cb0 R08: ffffffff8386ea73 R09: 0000000000000000 R10: ffffc90000b26860 R11: fffff52000164d0e R12: dffffc0000000000 R13: ffff888022afe790 R14: ffffc90000b26c20 R15: ffff88802ae7c000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556801938 CR3: 000000000d130000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: insert_inline_extent_backref+0xda/0x2a0 fs/btrfs/extent-tree.c:1158 __btrfs_inc_extent_ref+0x123/0x5f0 fs/btrfs/extent-tree.c:1458 run_delayed_tree_ref fs/btrfs/extent-tree.c:1675 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1702 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1948 [inline] __btrfs_run_delayed_refs+0x1183/0x3f90 fs/btrfs/extent-tree.c:2009 btrfs_run_delayed_refs+0x140/0x480 fs/btrfs/extent-tree.c:2121 qgroup_account_snapshot+0xce/0x360 fs/btrfs/transaction.c:1547 create_pending_snapshot+0x1052/0x2990 fs/btrfs/transaction.c:1823 create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1893 btrfs_commit_transaction+0xf40/0x2ff0 fs/btrfs/transaction.c:2363 btrfs_qgroup_rescan_worker+0x1bb6/0x1c40 fs/btrfs/qgroup.c:3417 btrfs_work_helper+0x380/0xbe0 fs/btrfs/async-thread.c:314 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304