syzbot


WARNING in lookup_inline_extent_backref (2)

Status: upstream: reported on 2025/10/27 09:05
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+b0e66d3779134f468156@syzkaller.appspotmail.com
First crash: 117d, last: 5d03h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in lookup_inline_extent_backref (2) 1 (2) 2025/10/27 09:22
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in lookup_inline_extent_backref origin:lts-only -1 C done 5 935d 1053d 0/3 auto-obsoleted due to no activity on 2024/10/04 17:22
upstream WARNING in lookup_inline_extent_backref btrfs -1 C error inconclusive 304 246d 1170d 0/29 auto-obsoleted due to no activity on 2025/08/25 22:17
linux-6.1 WARNING in lookup_inline_extent_backref origin:upstream -1 C done 2 808d 976d 3/3 fixed on 2024/01/01 13:36

Sample crash report:
------------[ cut here ]------------
ret
WARNING: fs/btrfs/extent-tree.c:837 at lookup_inline_extent_backref+0x178c/0x1a60 fs/btrfs/extent-tree.c:837, CPU#1: syz.4.1684/13244
Modules linked in:
CPU: 1 UID: 0 PID: 13244 Comm: syz.4.1684 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
RIP: 0010:lookup_inline_extent_backref+0x178c/0x1a60 fs/btrfs/extent-tree.c:837
Code: 8a 04 4f fe e9 a5 e9 ff ff 48 8b 3c 24 e8 7c 04 4f fe e9 db f7 ff ff 4c 89 e7 e8 cf 04 4f fe e9 74 eb ff ff e8 65 96 e4 fd 90 <0f> 0b 90 48 8b 14 24 b8 ff ff 37 00 48 c1 e0 2a 48 c1 ea 03 80 3c
RSP: 0018:ffffc9000394ef58 EFLAGS: 00010287
RAX: 0000000000011666 RBX: 0000000000000000 RCX: ffffc9001e1e3000
RDX: 0000000000080000 RSI: ffffffff84228d9b RDI: ffff888036610000
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88807c00c74a
R13: 00000000000000b6 R14: 0000000000510000 R15: 00000000000000b6
FS:  00007f1cbf0916c0(0000) GS:ffff8881246b6000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcbe8b45690 CR3: 000000006ab73000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 insert_inline_extent_backref+0xc1/0x2b0 fs/btrfs/extent-tree.c:1206
 __btrfs_inc_extent_ref+0x216/0x7e0 fs/btrfs/extent-tree.c:1505
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1771 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1803 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2003 [inline]
 __btrfs_run_delayed_refs+0xdc9/0x3870 fs/btrfs/extent-tree.c:2078
 btrfs_run_delayed_refs+0x1a4/0x3c0 fs/btrfs/extent-tree.c:2190
 qgroup_account_snapshot fs/btrfs/transaction.c:1589 [inline]
 create_pending_snapshot+0x150b/0x3770 fs/btrfs/transaction.c:1872
 create_pending_snapshots+0x17d/0x2d0 fs/btrfs/transaction.c:1942
 btrfs_commit_transaction+0x963/0x3860 fs/btrfs/transaction.c:2439
 create_snapshot fs/btrfs/ioctl.c:779 [inline]
 btrfs_mksubvol+0x8fe/0x1290 fs/btrfs/ioctl.c:857
 btrfs_mksnapshot+0xa1/0xe0 fs/btrfs/ioctl.c:899
 __btrfs_ioctl_snap_create+0x548/0x720 fs/btrfs/ioctl.c:1163
 btrfs_ioctl_snap_create_v2+0x36b/0x4a0 fs/btrfs/ioctl.c:1242
 btrfs_ioctl+0x3965/0x64e0 fs/btrfs/ioctl.c:5127
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl fs/ioctl.c:583 [inline]
 __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1cbe19bf79
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:00007f1cbf091028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1cbe415fa0 RCX: 00007f1cbe19bf79
RDX: 0000200000001480 RSI: 0000000050009417 RDI: 0000000000000005
RBP: 00007f1cbe2327e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1cbe416038 R14: 00007f1cbe415fa0 R15: 00007ffc8033e918
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/11 20:48 upstream 192c0159402e 75707236 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in lookup_inline_extent_backref
2026/02/11 20:36 upstream 192c0159402e 75707236 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in lookup_inline_extent_backref
2026/02/11 20:36 upstream 192c0159402e 75707236 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in lookup_inline_extent_backref
2026/02/12 17:47 upstream 37a93dd5c49b 504cb1bf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2026/02/12 17:45 upstream 37a93dd5c49b 504cb1bf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2026/02/12 17:44 upstream 37a93dd5c49b 504cb1bf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2026/02/12 17:43 upstream 37a93dd5c49b 504cb1bf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2026/02/12 04:20 upstream 1e83ccd5921a 76a109e2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/11/26 03:17 upstream 8a2bcda5e139 bf6fe8fe .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/11/02 02:52 upstream 691d401c7e0e 2c50b6a9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/10/29 01:28 upstream 8eefed8f65cc fd2207e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/10/29 01:11 upstream 8eefed8f65cc fd2207e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/10/26 20:51 upstream dbfc6422a34d c0460fcd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/10/25 13:55 upstream 566771afc7a8 c0460fcd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
2025/10/23 09:03 upstream 43e9ad0c55a3 c0460fcd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in lookup_inline_extent_backref
* Struck through repros no longer work on HEAD.