WARNING in remove_from_free_space_tree

Status: upstream: reported syz repro on 2026/09/30 12:47
Reported-by: syzbot+74ad9a631085c2c3bc9d@syzkaller.appspotmail.com
First crash: 51d, last: 20h28m
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in remove_from_free_space_tree btrfs -1 1 1442d 1438d 0/29 auto-obsoleted due to no activity on 2023/04/08 08:51

Sample crash report:
RBP: 00007ff4f809b04e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff4f8289038 R14: 00007ff4f8288fa0 R15: 00007ffe38ff0628
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4404 at fs/btrfs/free-space-tree.c:845 remove_from_free_space_tree+0x874/0xa50 fs/btrfs/free-space-tree.c:845
Modules linked in:
CPU: 1 PID: 4404 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:remove_from_free_space_tree+0x874/0xa50 fs/btrfs/free-space-tree.c:845
Code: 48 bb 00 00 00 00 00 fc ff df 0f 1f 44 00 00 e8 12 65 10 fe eb 16 e8 0b 65 10 fe 48 c7 c7 20 18 6d 8a 44 89 f6 e8 3c c1 55 06 <0f> 0b 4c 89 ff 48 c7 c6 a0 18 6d 8a ba 4d 03 00 00 44 89 f1 e8 63
RSP: 0018:ffffc9000358f540 EFLAGS: 00010246
RAX: 51da890dbd008200 RBX: dffffc0000000000 RCX: ffff888073a61dc0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000358f670 R08: ffff8880b8f2795b R09: 1ffff110171e4f2b
R10: dffffc0000000000 R11: ffffed10171e4f2c R12: 1ffff920006b1eb4
R13: ffff8880747a4108 R14: 00000000fffffff4 R15: ffff8880747a40b0
FS:  00007ff4f76616c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005647b592c950 CR3: 0000000024e9b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 alloc_reserved_tree_block fs/btrfs/extent-tree.c:4713 [inline]
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1702 [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+0x1424/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:0x7ff4f800c4d9
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:00007ff4f7661028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff4f8288fa0 RCX: 00007ff4f800c4d9
RDX: 000020000000a180 RSI: 0000000050009417 RDI: 0000000000000004
RBP: 00007ff4f809b04e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff4f8289038 R14: 00007ff4f8288fa0 R15: 00007ffe38ff0628
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/15 06:07 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (clean fs)] [mounted in repro #3] ci2-linux-5-15-kasan WARNING in remove_from_free_space_tree
2026/11/20 05:58 linux-5.15.y 29c6cdaac04a 229865fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in remove_from_free_space_tree
2026/11/15 04:08 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in remove_from_free_space_tree
2026/11/01 12:03 linux-5.15.y 700e62ea909a 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in remove_from_free_space_tree
2026/09/30 12:46 linux-5.15.y 0248c33e835e 7808aef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in remove_from_free_space_tree
* Struck through repros no longer work on HEAD.