syzbot
WARNING in add_block_group_free_space
Status:
upstream: reported syz repro on 2026/08/18 10:19
Reported-by: syzbot+73ba4ded5d8d4da6fdf7@syzkaller.appspotmail.com
First crash: 61d, last: 21d
Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5328 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: 5328 Comm: syz.4.157 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:add_block_group_free_space+0x2e6/0x370 fs/btrfs/free-space-tree.c:1399
Code: c0 9e d1 8a ba 77 05 00 00 44 89 e1 e8 4d 85 99 06 e9 56 ff ff ff e8 d9 a4 f2 fd 48 c7 c7 00 9c d1 8a 44 89 e6 e8 aa 2b 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:ffffc900060cf558 EFLAGS: 00010246
RAX: 78c1f9fcd3f92300 RBX: 1ffff1100e4388f1 RCX: ffff888029cb5a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffff8880b8e279db R09: 1ffff110171c4f3b
R10: dffffc0000000000 R11: ffffed10171c4f3c R12: 00000000ffffffe4
R13: ffff88805a795280 R14: ffff888075c9c001 R15: ffff88805a795000
FS: 00007f9b71e9b6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f560b471000 CR3: 0000000056f7b000 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
btrfs_create_common+0x1c8/0x270 fs/btrfs/inode.c:6870
lookup_open fs/namei.c:3533 [inline]
open_last_lookups fs/namei.c:3601 [inline]
path_openat+0x11b9/0x2f10 fs/namei.c:3831
do_filp_open+0x1ee/0x420 fs/namei.c:3861
do_sys_openat2+0x14b/0x4f0 fs/open.c:1320
do_sys_open fs/open.c:1336 [inline]
__do_sys_openat fs/open.c:1352 [inline]
__se_sys_openat fs/open.c:1347 [inline]
__x64_sys_openat+0x135/0x160 fs/open.c:1347
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f9b70f9e159
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:00007f9b71e9b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f9b71226090 RCX: 00007f9b70f9e159
RDX: 000000000000275a RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007f9b7103506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9b71226128 R14: 00007f9b71226090 R15: 00007ffc553a12e8
</TASK>
* Struck through repros no longer work on HEAD.