------------[ cut here ]------------ WARNING: CPU: 1 PID: 5349 at fs/btrfs/extent-tree.c:871 lookup_inline_extent_backref+0xc6f/0x1340 fs/btrfs/extent-tree.c:871 Modules linked in: CPU: 1 PID: 5349 Comm: syz-executor232 Not tainted 6.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:lookup_inline_extent_backref+0xc6f/0x1340 fs/btrfs/extent-tree.c:871 Code: 97 19 fe e8 13 9c 19 fe 8b b4 24 40 01 00 00 31 ff e8 75 97 19 fe 8b 84 24 40 01 00 00 85 c0 0f 84 0a 01 00 00 e8 f1 9b 19 fe <0f> 0b 41 bc fb ff ff ff e9 fb fd ff ff e8 df 9b 19 fe 48 83 c3 0d RSP: 0018:ffffc90005317040 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffed10058a828c RCX: 0000000000000000 RDX: ffff888028ba5940 RSI: ffffffff836cd58f RDI: 0000000000000005 RBP: ffff88802c541460 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000000 R14: ffff888074dd7c78 R15: ffff88802c541420 FS: 00007fa5d1b666c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555bd3d0aa20 CR3: 0000000078f53000 CR4: 0000000000350ee0 Call Trace: insert_inline_extent_backref+0xc1/0x270 fs/btrfs/extent-tree.c:1158 __btrfs_inc_extent_ref.isra.0+0xef/0x4b0 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+0x220e/0x3b80 fs/btrfs/extent-tree.c:2009 btrfs_run_delayed_refs+0x1a1/0x510 fs/btrfs/extent-tree.c:2121 qgroup_account_snapshot fs/btrfs/transaction.c:1541 [inline] create_pending_snapshot+0x1289/0x2d90 fs/btrfs/transaction.c:1817 create_pending_snapshots+0x17e/0x2d0 fs/btrfs/transaction.c:1887 btrfs_commit_transaction+0xf47/0x3fd0 fs/btrfs/transaction.c:2357 create_snapshot fs/btrfs/ioctl.c:845 [inline] btrfs_mksubvol+0xa87/0x12c0 fs/btrfs/ioctl.c:995 btrfs_mksnapshot+0xad/0xf0 fs/btrfs/ioctl.c:1041 __btrfs_ioctl_snap_create+0x43d/0x4f0 fs/btrfs/ioctl.c:1294 btrfs_ioctl_snap_create+0x168/0x200 fs/btrfs/ioctl.c:1321 btrfs_ioctl+0x53b/0x5cf0 fs/btrfs/ioctl.c:4564 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa5d8fcb2d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa5d1b66218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa5d9059718 RCX: 00007fa5d8fcb2d9 RDX: 0000000020002180 RSI: 0000000050009401 RDI: 0000000000000007 RBP: 00007fa5d9059710 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 00007fa5d902566c R13: 00007fa5d901f06b R14: 00007fa5d9024670 R15: 00007fa5d901f075