syzbot


WARNING in btrfs_create_pending_block_groups

Status: upstream: reported on 2025/06/26 23:16
Reported-by: syzbot+c14787f64c14bb933980@syzkaller.appspotmail.com
First crash: 16h55m, last: 16h55m
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in btrfs_create_pending_block_groups origin:upstream missing-backport C inconclusive 280 4h58m 683d 0/3 upstream: reported C repro on 2023/08/13 16:14
upstream WARNING in btrfs_create_pending_block_groups (2) btrfs C done 768 1h24m 280d 0/29 upstream: reported C repro on 2024/09/19 23:50
upstream WARNING in btrfs_create_pending_block_groups btrfs C error done 64 538d 942d 0/29 auto-obsoleted due to no activity on 2024/05/26 09:44
linux-5.15 WARNING in btrfs_create_pending_block_groups missing-backport origin:upstream C done 234 1d03h 730d 0/3 upstream: reported C repro on 2023/06/28 06:17

Sample crash report:
BTRFS info (device loop6): balance: start -susage=34359738372,drange=7..526332,limit=0..6
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 0 PID: 9155 at fs/btrfs/block-group.c:2753 btrfs_create_pending_block_groups+0xe10/0xf20 fs/btrfs/block-group.c:2753
Modules linked in:
CPU: 0 PID: 9155 Comm: syz.6.591 Not tainted 6.6.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:btrfs_create_pending_block_groups+0xe10/0xf20 fs/btrfs/block-group.c:2753
Code: 51 9a 6a 8c ba c8 0a 00 00 44 89 e1 e8 29 c1 c4 06 e9 19 f6 ff ff e8 5f 4b ed fd 48 c7 c7 c0 fc ee 8a 44 89 e6 e8 50 b0 b7 fd <0f> 0b e9 79 fe ff ff e8 44 4b ed fd 48 c7 c7 c0 fc ee 8a 44 89 ee
RSP: 0018:ffffc900034b7740 EFLAGS: 00010246
RAX: ba61cd671fa0d300 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000c499000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc900034b7988 R08: ffff8880b8e28c13 R09: 1ffff110171c5182
R10: dffffc0000000000 R11: ffffed10171c5183 R12: 00000000ffffffe4
R13: ffff88802fc02850 R14: ffff88802fc02858 R15: ffff88802d7b0001
FS:  00007f5e9e7ee6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000006a785000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_end_transaction+0x140/0x630 fs/btrfs/transaction.c:1023
 btrfs_inc_block_group_ro+0x596/0x630 fs/btrfs/block-group.c:3014
 btrfs_relocate_block_group+0x452/0xd70 fs/btrfs/relocation.c:4013
 btrfs_relocate_chunk+0x12a/0x3b0 fs/btrfs/volumes.c:3315
 __btrfs_balance+0x187b/0x21c0 fs/btrfs/volumes.c:4061
 btrfs_balance+0xcb1/0x11c0 fs/btrfs/volumes.c:4438
 btrfs_ioctl_balance+0x4a2/0x730 fs/btrfs/ioctl.c:3647
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5e9d98e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5e9e7ee038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5e9dbb5fa0 RCX: 00007f5e9d98e929
RDX: 0000200000000440 RSI: 00000000c4009420 RDI: 0000000000000003
RBP: 00007f5e9da10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5e9dbb5fa0 R15: 00007ffea11cf2f8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/26 23:15 linux-6.6.y 6282921b6825 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_create_pending_block_groups
* Struck through repros no longer work on HEAD.