WARNING in __btrfs_free_extent

Status: upstream: reported on 2026/11/10 23:19
Reported-by: syzbot+cbd71e6d918795e2d5b7@syzkaller.appspotmail.com
First crash: 8d02h, last: 5h41m
▶ ▼ Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in __btrfs_free_extent -1 6 537d 645d 0/3 auto-obsoleted due to no activity on 2025/09/08 00:00
upstream WARNING in __btrfs_free_extent (2) btrfs -1 syz, C done 118 827d 878d 27/29 fixed on 2024/08/16 16:03
upstream WARNING in __btrfs_free_extent btrfs -1 syz, C error 300 918d 1477d 25/29 fixed on 2024/05/22 09:57
linux-6.1 WARNING in __btrfs_free_extent (3) -1 2 534d 535d 0/3 auto-obsoleted due to no activity on 2025/09/10 05:21
linux-6.1 WARNING in __btrfs_free_extent (2) -1 2 753d 753d 0/3 auto-obsoleted due to no activity on 2025/02/03 04:58
linux-4.19 WARNING in __btrfs_free_extent btrfs -1 syz, C error 4 1417d 1435d 0/1 upstream: reported C repro on 2022/12/14 03:41
linux-5.15 WARNING in __btrfs_free_extent (2) -1 syz 3 12d 17d 0/3 upstream: reported syz repro on 2026/11/01 16:31
linux-6.1 WARNING in __btrfs_free_extent -1 1 905d 905d 0/3 auto-obsoleted due to no activity on 2024/09/04 10:24
linux-6.1 WARNING in __btrfs_free_extent (4) -1 5 21h30m 13d 0/3 upstream: reported on 2026/11/05 22:18
upstream WARNING in __btrfs_free_extent (3) prio:low btrfs -1 syz, C error done 656 8h10m 809d 0/29 upstream: reported C repro on 2024/08/31 17:59

Sample crash report:
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 0 PID: 3520 at fs/btrfs/extent-tree.c:3161 __btrfs_free_extent+0x2320/0x2990 fs/btrfs/extent-tree.c:3161
Modules linked in:
CPU: 0 PID: 3520 Comm: kworker/u4:11 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events_unbound btrfs_async_reclaim_metadata_space
RIP: 0010:__btrfs_free_extent+0x2320/0x2990 fs/btrfs/extent-tree.c:3161
Code: 24 68 e8 03 b5 0f 07 48 83 c4 10 41 bf fe ff ff ff e9 e9 ee ff ff e8 4f ea 08 fe 48 c7 c7 40 0b 2c 8b 44 89 fe e8 f0 8e d2 fd <0f> 0b 49 be 00 00 00 00 00 fc ff df e9 c5 e2 ff ff bf 8b ff ff ff
RSP: 0018:ffffc9000cd574e0 EFLAGS: 00010246
RAX: e292f368efdf8300 RBX: 0000000000000000 RCX: ffff88803015bc00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc9000cd57640 R08: ffff8880b8c28c53 R09: 1ffff1101718518a
R10: dffffc0000000000 R11: ffffed101718518b R12: ffff88807901d000
R13: ffff88805c6ff210 R14: ffff88805b830001 R15: 00000000ffffffe4
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c3bd860 CR3: 00000000267b6000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 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
 flush_space+0x2e7/0xcd0 fs/btrfs/space-info.c:-1
 btrfs_async_reclaim_metadata_space+0x26b/0x330 fs/btrfs/space-info.c:1100
 process_one_work kernel/workqueue.c:2657 [inline]
 process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/18 20:24 linux-6.6.y 5139929c698c 2006bdcc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
2026/11/10 23:19 linux-6.6.y 5139929c698c d3056657 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
* Struck through repros no longer work on HEAD.