WARNING in __btrfs_free_extent

Status: upstream: reported on 2026/11/10 23:19
Reported-by: syzbot+cbd71e6d918795e2d5b7@syzkaller.appspotmail.com
First crash: 13d, last: 4h05m
▶ ▼ 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 542d 651d 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 833d 884d 27/29 fixed on 2024/08/16 16:03
upstream WARNING in __btrfs_free_extent btrfs -1 syz, C error 300 924d 1482d 25/29 fixed on 2024/05/22 09:57
linux-6.1 WARNING in __btrfs_free_extent (3) -1 2 540d 541d 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 759d 759d 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 1423d 1441d 0/1 upstream: reported C repro on 2022/12/14 03:41
linux-5.15 WARNING in __btrfs_free_extent (2) -1 syz 5 1d10h 23d 0/3 upstream: reported syz repro on 2026/11/01 16:31
linux-6.1 WARNING in __btrfs_free_extent -1 1 911d 911d 0/3 auto-obsoleted due to no activity on 2024/09/04 10:24
linux-6.1 WARNING in __btrfs_free_extent (4) -1 syz, C 11 1d20h 18d 0/3 upstream: reported C repro on 2026/11/05 22:18
upstream WARNING in __btrfs_free_extent (3) prio:low btrfs -1 syz, C error done 672 13h03m 815d 0/29 upstream: reported C repro on 2024/08/31 17:59

Sample crash report:
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 1 PID: 3483 at fs/btrfs/extent-tree.c:3161 __btrfs_free_extent+0x2320/0x2990 fs/btrfs/extent-tree.c:3161
Modules linked in:
CPU: 1 PID: 3483 Comm: kworker/u4:14 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 c3 3c 11 07 48 83 c4 10 41 bf fe ff ff ff e9 e9 ee ff ff e8 8f bb 07 fe 48 c7 c7 80 26 2c 8b 44 89 fe e8 90 4f d1 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:ffffc9000cdf74e0 EFLAGS: 00010246
RAX: 19858073af679f00 RBX: 0000000000000000 RCX: ffff88802f9f5a00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc9000cdf7640 R08: ffff8880b8d28c13 R09: 1ffff110171a5182
R10: dffffc0000000000 R11: ffffed10171a5183 R12: ffff888030894d10
R13: ffff88805a462370 R14: ffff88805bac8001 R15: 00000000ffffffe4
FS:  0000000000000000(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6cabb39620 CR3: 0000000030a15000 CR4: 00000000003506e0
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 (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/24 16:09 linux-6.6.y e2bb30811e06 50451a16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
2026/11/23 00:14 linux-6.6.y 5139929c698c b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
2026/11/19 22:59 linux-6.6.y 5139929c698c 229865fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
2026/11/19 13:19 linux-6.6.y 5139929c698c f138241c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
2026/11/19 13:15 linux-6.6.y 5139929c698c f138241c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in __btrfs_free_extent
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.