WARNING in add_to_free_space_tree

Status: upstream: reported on 2026/11/25 03:44
Reported-by: syzbot+5dcd207e3ddf93563a9c@syzkaller.appspotmail.com
First crash: 9d12h, last: 9d12h
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in add_to_free_space_tree -1 2 13d 14d 0/3 upstream: reported on 2026/11/20 06:07
linux-6.1 WARNING in add_to_free_space_tree -1 syz, C 6 7d01h 15d 0/3 upstream: reported C repro on 2026/11/18 22:13
upstream WARNING in add_to_free_space_tree (2) btrfs -1 1 627d 623d 0/30 auto-obsoleted due to no activity on 2025/06/25 01:34
upstream WARNING in add_to_free_space_tree btrfs -1 2 1402d 1446d 0/30 auto-obsoleted due to no activity on 2023/06/01 05:26

Sample crash report:
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 0 PID: 13084 at fs/btrfs/free-space-tree.c:1057 add_to_free_space_tree+0x284/0x300 fs/btrfs/free-space-tree.c:1057
Modules linked in:
CPU: 0 PID: 13084 Comm: syz.2.2155 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+0x284/0x300 fs/btrfs/free-space-tree.c:1057
Code: 8c ba 21 04 00 00 44 89 f9 e8 88 46 ee 06 e9 0f ff ff ff e8 1e 11 e5 fd 48 c7 c7 e0 69 2e 8b 4d 89 e7 44 89 fe e8 1c a5 ae fd <0f> 0b eb c1 44 89 f9 80 e1 07 38 c1 0f 8c 0d fe ff ff be 08 00 00
RSP: 0018:ffffc900038e7498 EFLAGS: 00010246
RAX: dabb569ca2926b00 RBX: ffff88804ea64001 RCX: 0000000000080000
RDX: ffffc9000e951000 RSI: 000000000004a00f RDI: 000000000004a010
RBP: 0000000000000000 R08: ffffc900038e70a7 R09: 1ffff9200071ce14
R10: dffffc0000000000 R11: fffff5200071ce15 R12: 00000000ffffffe4
R13: 1ffff1100ece13d9 R14: ffff888076709e70 R15: 00000000ffffffe4
FS:  00007f08c94d96c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555d59b9f8 CR3: 0000000027e0b000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 do_free_extent_accounting fs/btrfs/extent-tree.c:2930 [inline]
 __btrfs_free_extent+0xfe4/0x2990 fs/btrfs/extent-tree.c:3279
 run_delayed_tree_ref fs/btrfs/extent-tree.c:1755 [inline]
 run_one_delayed_ref fs/btrfs/extent-tree.c:1780 [inline]
 btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2035 [inline]
 __btrfs_run_delayed_refs+0xfbc/0x3ab0 fs/btrfs/extent-tree.c:2105
 btrfs_run_delayed_refs+0xf3/0x430 fs/btrfs/extent-tree.c:2219
 btrfs_commit_transaction+0x28c/0x33a0 fs/btrfs/transaction.c:2225
 btrfs_quota_enable+0xce8/0x1b70 fs/btrfs/qgroup.c:1181
 btrfs_ioctl_quota_ctl+0x13d/0x180 fs/btrfs/ioctl.c:3760
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f08c85a9a19
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:00007f08c94d9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f08c8836090 RCX: 00007f08c85a9a19
RDX: 000020000000d680 RSI: 00000000c0109428 RDI: 0000000000000003
RBP: 00007f08c8639156 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f08c8836128 R14: 00007f08c8836090 R15: 00007ffffdac9228
 </TASK>

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