kernel BUG in btrfs_free_tree_block (2)

Status: upstream: reported syz repro on 2026/07/29 07:23
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+1e47e820a43a89a9e5e4@syzkaller.appspotmail.com
First crash: 118d, last: 2d12h
▶ ▼ Bug presence (2)
Date Name Commit Repro Result
2026/11/06 linux-5.15.y (ToT) 700e62ea909a syz [report] WARNING in __btrfs_free_extent
2026/11/06 upstream (ToT) a91337fb5e8e syz Didn't crash
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in btrfs_free_tree_block btrfs -1 syz, C error 150 833d 1520d 27/29 fixed on 2024/08/14 03:44
linux-6.1 kernel BUG in btrfs_free_tree_block origin:upstream missing-backport -1 syz, C inconclusive 47 25d 1199d 0/3 upstream: reported C repro on 2023/08/12 21:44
linux-5.15 kernel BUG in btrfs_free_tree_block origin:upstream -1 syz, C error 3 641d 1240d 0/3 auto-obsoleted due to no activity on 2025/09/21 10:08
▶ ▼ Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/10/08 13:04 20m retest repro linux-5.15.y report job log log

Sample crash report:
RBP: 00007fdcb2c26136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdcb2e13fac R14: 00007fdcb2e13fa0 R15: 00007fdcb2e13fa0
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-tree.c:3311!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4643 Comm: syz.0.19 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:btrfs_free_tree_block+0xb71/0xb80 fs/btrfs/extent-tree.c:3311
Code: e9 02 f9 ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 07 f9 ff ff be 08 00 00 00 4c 89 e7 e8 69 fb 78 fe e9 f5 f8 ff ff e8 6f b2 33 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 41 57 41 56 41 55
RSP: 0018:ffffc9000363f240 EFLAGS: 00010293
RAX: ffffffff83457b21 RBX: 1ffff1100ec73652 RCX: ffff88802c795940
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffffc9000363f390 R08: 00000000000000a8 R09: 1ffffffff1a3e6ea
R10: dffffc0000000000 R11: fffffbfff1a3e6eb R12: ffff8880736b9064
R13: ffff88807639b290 R14: 00000000fffffff4 R15: 0000000000000005
FS:  000055557dd02500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005622276eca78 CR3: 000000001f94f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_force_cow_block+0xc4d/0x1760 fs/btrfs/ctree.c:480
 btrfs_cow_block+0x33e/0x7d0 fs/btrfs/ctree.c:598
 btrfs_search_slot+0x9d4/0x2090 fs/btrfs/ctree.c:-1
 btrfs_insert_empty_items+0x32c/0x3e0 fs/btrfs/ctree.c:4012
 btrfs_insert_empty_item fs/btrfs/ctree.h:2957 [inline]
 insert_with_overflow+0xb2/0x250 fs/btrfs/dir-item.c:33
 btrfs_insert_xattr_item+0x198/0x370 fs/btrfs/dir-item.c:77
 btrfs_setxattr+0x49a/0x970 fs/btrfs/xattr.c:132
 btrfs_setxattr_trans+0x107/0x370 fs/btrfs/xattr.c:260
 __vfs_setxattr+0x3d8/0x410 fs/xattr.c:182
 __vfs_setxattr_noperm+0x126/0x5e0 fs/xattr.c:216
 vfs_setxattr+0x167/0x2e0 fs/xattr.c:303
 do_setxattr fs/xattr.c:588 [inline]
 setxattr+0x2cb/0x360 fs/xattr.c:611
 path_setxattr+0x147/0x290 fs/xattr.c:630
 __do_sys_setxattr fs/xattr.c:646 [inline]
 __se_sys_setxattr fs/xattr.c:642 [inline]
 __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:642
 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:0x7fdcb2b97559
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:00007ffeaba35f98 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007fdcb2e13fa0 RCX: 00007fdcb2b97559
RDX: 0000000000000000 RSI: 0000200000006800 RDI: 00002000000067c0
RBP: 00007fdcb2c26136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdcb2e13fac R14: 00007fdcb2e13fa0 R15: 00007fdcb2e13fa0
 </TASK>
Modules linked in:
---[ end trace 90a4e06398e03c64 ]---
RIP: 0010:btrfs_free_tree_block+0xb71/0xb80 fs/btrfs/extent-tree.c:3311
Code: e9 02 f9 ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 07 f9 ff ff be 08 00 00 00 4c 89 e7 e8 69 fb 78 fe e9 f5 f8 ff ff e8 6f b2 33 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 41 57 41 56 41 55
RSP: 0018:ffffc9000363f240 EFLAGS: 00010293
RAX: ffffffff83457b21 RBX: 1ffff1100ec73652 RCX: ffff88802c795940
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffffc9000363f390 R08: 00000000000000a8 R09: 1ffffffff1a3e6ea
R10: dffffc0000000000 R11: fffffbfff1a3e6eb R12: ffff8880736b9064
R13: ffff88807639b290 R14: 00000000fffffff4 R15: 0000000000000005
FS:  000055557dd02500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7ecb5abe9c CR3: 000000001f94f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/21 19:39 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/16 07:20 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/15 16:14 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/14 22:26 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)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/09 06:42 linux-5.15.y 29c6cdaac04a 5cecaf1f .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 (clean fs)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/08 15:01 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (clean fs)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/09/20 00:31 linux-5.15.y 0248c33e835e 853b104b .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/22 08:07 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/21 17:46 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/20 06:07 linux-5.15.y 29c6cdaac04a 229865fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/11 21:51 linux-5.15.y 29c6cdaac04a e56a968c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/09 02:13 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/09 02:00 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/08 13:49 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/08 13:41 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/08 13:38 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/08 13:35 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/08 13:10 linux-5.15.y 29c6cdaac04a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/06 15:16 linux-5.15.y 700e62ea909a 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/02 18:42 linux-5.15.y 700e62ea909a 6969b601 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/02 18:41 linux-5.15.y 700e62ea909a 6969b601 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/02 00:54 linux-5.15.y 700e62ea909a 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/11/01 11:22 linux-5.15.y 700e62ea909a 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/09/19 23:29 linux-5.15.y 0248c33e835e 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
2026/07/29 07:23 linux-5.15.y 674f684f7c61 19622d9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in btrfs_free_tree_block
* Struck through repros no longer work on HEAD.