------------[ cut here ]------------ ret WARNING: fs/btrfs/extent-tree.c:879 at lookup_inline_extent_backref+0x145c/0x1a90 fs/btrfs/extent-tree.c:879, CPU#0: syz.0.0/5333 Modules linked in: CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:lookup_inline_extent_backref+0x145c/0x1a90 fs/btrfs/extent-tree.c:879 Code: 86 05 00 00 89 d8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 1f cd b9 fd bb fe ff ff ff e9 05 fd ff ff 90 <0f> 0b 90 48 8b 84 24 88 00 00 00 48 b9 00 00 00 00 00 fc ff df 80 RSP: 0018:ffffc9000fca6e80 EFLAGS: 00010202 RAX: ffffffff840ca4ab RBX: 0000000000000001 RCX: 0000000000000002 RDX: ffff888000e28000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000fca70a8 R08: 0000000000000000 R09: 1ffffd40002a22e0 R10: dffffc0000000000 R11: fffff940002a22e1 R12: ffff888012c978f0 R13: 000000000052b000 R14: 0000000000000009 R15: ffff888012da8000 FS: 00007f57e1afb6c0(0000) GS:ffff88808c549000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000003000 CR3: 0000000040458000 CR4: 0000000000352ef0 Call Trace: insert_inline_extent_backref+0xa8/0x300 fs/btrfs/extent-tree.c:1248 __btrfs_inc_extent_ref+0x262/0x820 fs/btrfs/extent-tree.c:1547 run_delayed_tree_ref fs/btrfs/extent-tree.c:1819 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1851 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2058 [inline] __btrfs_run_delayed_refs+0xfc4/0x43b0 fs/btrfs/extent-tree.c:2134 btrfs_run_delayed_refs+0x185/0x2a0 fs/btrfs/extent-tree.c:2246 qgroup_account_snapshot fs/btrfs/transaction.c:1607 [inline] create_pending_snapshot+0x11bc/0x2610 fs/btrfs/transaction.c:1879 create_pending_snapshots+0x17c/0x1c0 fs/btrfs/transaction.c:1965 btrfs_commit_transaction+0xf95/0x30b0 fs/btrfs/transaction.c:2466 create_snapshot fs/btrfs/ioctl.c:816 [inline] btrfs_mksubvol+0xa4a/0x10c0 fs/btrfs/ioctl.c:893 btrfs_mksnapshot+0xa3/0xe0 fs/btrfs/ioctl.c:935 __btrfs_ioctl_snap_create+0x45d/0x6b0 fs/btrfs/ioctl.c:1197 btrfs_ioctl_snap_create_v2+0x1e9/0x370 fs/btrfs/ioctl.c:1267 btrfs_ioctl+0x8eb/0xd50 fs/btrfs/ioctl.c:-1 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f57e0b9de99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f57e1afafe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f57e0e26090 RCX: 00007f57e0b9de99 RDX: 0000200000002480 RSI: 0000000050009417 RDI: 0000000000000005 RBP: 00007f57e0c33eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f57e0e26128 R14: 00007f57e0e26090 R15: 00007ffc08491e08