WARNING in add_to_free_space_tree

Status: upstream: reported on 2026/11/20 06:07
Reported-by: syzbot+ff9e1461d8e3e9a056ee@syzkaller.appspotmail.com
First crash: 6h32m, last: 6h32m
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in add_to_free_space_tree -1 1 1d14h 1d14h 0/3 upstream: reported on 2026/11/18 22:13
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:
RBP: 00007f0e57581136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0e5776f038 R14: 00007f0e5776efa0 R15: 00007fff37d74298
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4535 at fs/btrfs/free-space-tree.c:1037 add_to_free_space_tree+0x242/0x300 fs/btrfs/free-space-tree.c:1037
Modules linked in:
CPU: 1 PID: 4535 Comm: syz.1.35 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+0x242/0x300 fs/btrfs/free-space-tree.c:1037
Code: 04 61 10 fe eb 05 e8 fd 60 10 fe e9 9b 00 00 00 e8 f3 60 10 fe eb 15 e8 ec 60 10 fe 48 c7 c7 20 18 6d 8a 89 ee e8 1e bd 55 06 <0f> 0b 4c 89 f7 48 c7 c6 80 19 6d 8a ba 0d 04 00 00 89 e9 e8 46 e8
RSP: 0018:ffffc9000414f4b8 EFLAGS: 00010246

RAX: 8621d94927d71600 RBX: ffff88805979c001 RCX: 0000000000080000
RDX: ffffc90005c01000 RSI: 00000000000634a0 RDI: 00000000000634a1
RBP: 00000000fffffff4 R08: ffff8880b8e2795b R09: 1ffff110171c4f2b
R10: dffffc0000000000 R11: ffffed10171c4f2c R12: 0000000000503000
R13: 1ffff1100e7bb637 R14: ffff888073ddb160 R15: ffff8880279ae0b4
FS:  00007f0e5573f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7f074212f8 CR3: 000000005953b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_free_extent+0x1053/0x2190 fs/btrfs/extent-tree.c:3207
 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:0x7f0e574f2559
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:00007f0e5573f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0e5776efa0 RCX: 00007f0e574f2559
RDX: 000020000000ab00 RSI: 0000000050009417 RDI: 0000000000000006
RBP: 00007f0e57581136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0e5776f038 R14: 00007f0e5776efa0 R15: 00007fff37d74298
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/20 06:06 linux-5.15.y 29c6cdaac04a 229865fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in add_to_free_space_tree
* Struck through repros no longer work on HEAD.