syzbot
WARNING in add_block_group_free_space
Status:
upstream: reported on 2026/08/18 10:19
Reported-by: syzbot+73ba4ded5d8d4da6fdf7@syzkaller.appspotmail.com
First crash: 11d, last: 11d
Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 47 at fs/btrfs/free-space-tree.c:1399 add_block_group_free_space+0x2e6/0x370 fs/btrfs/free-space-tree.c:1399
Modules linked in:
CPU: 0 PID: 47 Comm: kworker/u4:3 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: events_unbound btrfs_async_reclaim_data_space
RIP: 0010:add_block_group_free_space+0x2e6/0x370 fs/btrfs/free-space-tree.c:1399
Code: 00 95 d1 8a ba 77 05 00 00 44 89 e1 e8 3d 9b 97 06 e9 56 ff ff ff e8 09 26 f3 fd 48 c7 c7 40 92 d1 8a 44 89 e6 e8 4a b0 be fd <0f> 0b eb c3 44 89 e1 80 e1 07 38 c1 0f 8c a3 fd ff ff be 08 00 00
RSP: 0018:ffffc90000b87718 EFLAGS: 00010246
RAX: 14d7df0c8f939b00 RBX: 1ffff1100ab26adc RCX: ffff88801da93c00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffff8880b8e279db R09: 1ffff110171c4f3b
R10: dffffc0000000000 R11: ffffed10171c4f3c R12: 00000000ffffffe4
R13: ffff888054d1f280 R14: ffff8880549e8001 R15: ffff888054d1f000
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f734cc0d000 CR3: 00000000782c6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
btrfs_create_pending_block_groups+0xa73/0x1000 fs/btrfs/block-group.c:2575
__btrfs_end_transaction+0x154/0x680 fs/btrfs/transaction.c:1013
flush_space+0x9a4/0xda0 fs/btrfs/space-info.c:816
btrfs_async_reclaim_data_space+0x167/0x570 fs/btrfs/space-info.c:1342
process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292
worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
* Struck through repros no longer work on HEAD.