------------[ cut here ]------------ WARNING: CPU: 0 PID: 41 at fs/btrfs/extent-tree.c:871 lookup_inline_extent_backref+0x8b3/0x13d0 Modules linked in: CPU: 0 PID: 41 Comm: kworker/u4:2 Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:lookup_inline_extent_backref+0x8b3/0x13d0 fs/btrfs/extent-tree.c:871 Code: de e8 b1 46 07 fe 49 39 df 0f 87 e9 0a 00 00 e8 c3 44 07 fe eb 30 83 7d 28 00 4c 8b 6c 24 28 0f 84 92 04 00 00 e8 ad 44 07 fe <0f> 0b 41 bc fb ff ff ff e9 d3 05 00 00 e8 9b 44 07 fe e9 aa 05 00 RSP: 0018:ffffc90000b26c60 EFLAGS: 00010293 RAX: ffffffff83839773 RBX: 0000000000000000 RCX: ffff8880146d0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000b26e10 R08: ffffffff838392de R09: 0000000000000000 R10: ffffc90000b269c0 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888029fdd6e0 R14: ffffc90000b26d80 R15: ffff888029dc6000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003000 CR3: 000000002243c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: insert_inline_extent_backref+0xe2/0x250 fs/btrfs/extent-tree.c:1158 __btrfs_inc_extent_ref+0x11f/0x5f0 fs/btrfs/extent-tree.c:1461 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1952 [inline] __btrfs_run_delayed_refs+0x1157/0x3f90 fs/btrfs/extent-tree.c:2013 btrfs_run_delayed_refs+0x2f5/0x480 fs/btrfs/extent-tree.c:2125 qgroup_account_snapshot+0xce/0x350 fs/btrfs/transaction.c:1545 create_pending_snapshot+0x1240/0x28c0 fs/btrfs/transaction.c:1818 create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1888 btrfs_commit_transaction+0x12b5/0x3310 fs/btrfs/transaction.c:2358 flush_space+0x9bd/0xdd0 fs/btrfs/space-info.c:808 btrfs_async_reclaim_metadata_space+0x29b/0x340 fs/btrfs/space-info.c:1078 process_one_work+0x894/0x10c0 kernel/workqueue.c:2405 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2552 kthread+0x2b0/0x340 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308