WARNING in add_to_free_space_tree

Status: upstream: reported on 2026/11/18 22:13
Reported-by: syzbot+da9ba600528f310a4852@syzkaller.appspotmail.com
First crash: 1d14h, last: 1d14h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in add_to_free_space_tree -1 1 6h32m 6h31m 0/3 upstream: reported on 2026/11/20 06:07
upstream WARNING in add_to_free_space_tree (2) btrfs -1 1 613d 609d 0/29 auto-obsoleted due to no activity on 2025/06/25 01:34
upstream WARNING in add_to_free_space_tree btrfs -1 2 1388d 1432d 0/29 auto-obsoleted due to no activity on 2023/06/01 05:26

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5219 at fs/btrfs/free-space-tree.c:1051 add_to_free_space_tree+0x256/0x300 fs/btrfs/free-space-tree.c:1051
Modules linked in:
CPU: 1 PID: 5219 Comm: syz.4.187 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:add_to_free_space_tree+0x256/0x300 fs/btrfs/free-space-tree.c:1051
Code: e0 9f f0 8a ba 1b 04 00 00 44 89 f9 e8 dd 6d a4 06 e9 36 ff ff ff e8 b9 00 f9 fd 48 c7 c7 80 9e f0 8a 44 89 fe e8 6a 62 c4 fd <0f> 0b eb c4 44 89 f9 80 e1 07 38 c1 0f 8c 37 fe ff ff be 08 00 00
RSP: 0018:ffffc900058df4b8 EFLAGS: 00010246
RAX: 1ac66a74a7213100 RBX: ffff8880788d8001 RCX: 0000000000080000
RDX: ffffc9000fdf5000 RSI: 0000000000056b4f RDI: 0000000000056b50
RBP: 0000000000000000 R08: ffff8880b8d279db R09: 1ffff110171a4f3b
R10: dffffc0000000000 R11: ffffed10171a4f3c R12: 00000000ffffffe4
R13: 1ffff1100aac2688 R14: ffff8880556133f0 R15: 00000000ffffffe4
FS:  00007f53734566c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f045aba4000 CR3: 000000002425f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_free_extent_accounting fs/btrfs/extent-tree.c:2880 [inline]
 __btrfs_free_extent+0xfb8/0x2410 fs/btrfs/extent-tree.c:3218
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1696 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1721 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1973 [inline]
 __btrfs_run_delayed_refs+0xfb3/0x3b50 fs/btrfs/extent-tree.c:2037
 btrfs_run_delayed_refs+0x12d/0x460 fs/btrfs/extent-tree.c:2168
 btrfs_commit_transaction+0x268/0x3830 fs/btrfs/transaction.c:2213
 btrfs_quota_enable+0xda8/0x1c60 fs/btrfs/qgroup.c:1175
 btrfs_ioctl_quota_ctl+0x13a/0x170 fs/btrfs/ioctl.c:4646
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f53725a9559
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:00007f5373456028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5372826090 RCX: 00007f53725a9559
RDX: 000020000000d680 RSI: 00000000c0109428 RDI: 0000000000000003
RBP: 00007f5372638136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5372826128 R14: 00007f5372826090 R15: 00007ffce6c51988
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/18 22:13 linux-6.1.y c75b0cf0982c 2006bdcc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in add_to_free_space_tree
* Struck through repros no longer work on HEAD.