WARNING in __btrfs_free_extent (2)

Status: upstream: reported on 2026/11/01 16:31
Reported-by: syzbot+5f562029420d0053dd71@syzkaller.appspotmail.com
First crash: 2d20h, last: 2d20h
▶ ▼ Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in __btrfs_free_extent -1 6 522d 631d 0/3 auto-obsoleted due to no activity on 2025/09/08 00:00
upstream WARNING in __btrfs_free_extent (2) btrfs -1 syz, C done 118 812d 863d 27/29 fixed on 2024/08/16 16:03
upstream WARNING in __btrfs_free_extent btrfs -1 syz, C error 300 904d 1462d 25/29 fixed on 2024/05/22 09:57
linux-6.1 WARNING in __btrfs_free_extent (3) -1 2 520d 520d 0/3 auto-obsoleted due to no activity on 2025/09/10 05:21
linux-6.1 WARNING in __btrfs_free_extent (2) -1 2 739d 739d 0/3 auto-obsoleted due to no activity on 2025/02/03 04:58
linux-4.19 WARNING in __btrfs_free_extent btrfs -1 syz, C error 4 1403d 1421d 0/1 upstream: reported C repro on 2022/12/14 03:41
linux-6.1 WARNING in __btrfs_free_extent -1 1 891d 891d 0/3 auto-obsoleted due to no activity on 2024/09/04 10:24
upstream WARNING in __btrfs_free_extent (3) prio:low btrfs -1 syz, C error done 637 2d07h 794d 0/29 upstream: reported C repro on 2024/08/31 17:59

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6210 at fs/btrfs/extent-tree.c:3083 __btrfs_free_extent+0x8b7/0x2190 fs/btrfs/extent-tree.c:3083
Modules linked in:
CPU: 0 PID: 6210 Comm: syz.2.482 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:__btrfs_free_extent+0x8b7/0x2190 fs/btrfs/extent-tree.c:3083
Code: 00 00 fc ff df 48 8b 5c 24 10 e9 a7 16 00 00 e8 9f e6 32 fe eb 16 e8 98 e6 32 fe 48 c7 c7 e0 e6 6a 8a 44 89 ee e8 c9 42 78 06 <0f> 0b 4c 89 f7 48 c7 c6 60 f4 6a 8a ba 0b 0c 00 00 44 89 e9 e8 f0
RSP: 0018:ffffc9000517f500 EFLAGS: 00010246
RAX: 3bf313438119a000 RBX: ffff888054027630 RCX: 0000000000080000
RDX: ffffc9000c1c9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000517f660 R08: ffffc9000517f027 R09: 1ffff92000a2fe04
R10: dffffc0000000000 R11: fffff52000a2fe05 R12: dffffc0000000000
R13: 00000000fffffff4 R14: ffff88805ee95420 R15: ffff888024941500
FS:  00007f2b26ee36c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff68e2d6feb CR3: 0000000056219000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1707 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1731 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1977 [inline]
 __btrfs_run_delayed_refs+0xf4d/0x3920 fs/btrfs/extent-tree.c:2041
 btrfs_run_delayed_refs+0x133/0x480 fs/btrfs/extent-tree.c:2172
 btrfs_commit_transaction+0x23d/0x3580 fs/btrfs/transaction.c:2180
 create_snapshot+0x469/0x800 fs/btrfs/ioctl.c:785
 btrfs_mksubvol+0x64e/0x790 fs/btrfs/ioctl.c:935
 btrfs_mksnapshot+0xb1/0xf0 fs/btrfs/ioctl.c:981
 __btrfs_ioctl_snap_create+0x449/0x570 fs/btrfs/ioctl.c:1871
 btrfs_ioctl_snap_create_v2+0x1b9/0x3e0 fs/btrfs/ioctl.c:1958
 btrfs_ioctl+0x75f/0xb10 fs/btrfs/ioctl.c:-1
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f2b28c8c559
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:00007f2b26ee3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2b28f12fa0 RCX: 00007f2b28c8c559
RDX: 0000200000005a00 RSI: 0000000050009417 RDI: 0000000000000004
RBP: 00007f2b28d23b50 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2b28f13038 R14: 00007f2b28f12fa0 R15: 00007fffce3b64c8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/01 16:31 linux-5.15.y 700e62ea909a 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in __btrfs_free_extent
* Struck through repros no longer work on HEAD.