syzbot


WARNING in btrfs_create_pending_block_groups

Status: upstream: reported C repro on 2023/08/13 16:14
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+5d608f4f385ba0eb8e16@syzkaller.appspotmail.com
First crash: 316d, last: 54d
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: WARNING in btrfs_create_pending_block_groups (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/02/10 linux-6.1.y (ToT) f1bb70486c9c C [report] WARNING in btrfs_create_pending_block_groups
2023/08/13 upstream (ToT) 4c75bf7e4a0e C [report] WARNING in btrfs_create_pending_block_groups
2024/02/10 upstream (ToT) 4a7bbe7519b6 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_create_pending_block_groups btrfs C error done 64 171d 574d 0/27 auto-obsoleted due to no activity on 2024/05/26 09:44
linux-5.15 WARNING in btrfs_create_pending_block_groups origin:upstream missing-backport C done 15 52d 362d 0/3 upstream: reported C repro on 2023/06/28 06:17
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/03/28 07:37 1h22m fix candidate upstream job log (0)
2024/03/15 13:35 1h10m bisect fix linux-6.1.y job log (0) log
2024/01/10 14:58 2h19m bisect fix linux-6.1.y job log (0) log
2023/12/11 08:27 2h31m bisect fix linux-6.1.y job log (0) log
2023/11/10 13:07 1h05m bisect fix linux-6.1.y job log (0) log
2023/10/07 07:06 1h07m bisect fix linux-6.1.y job log (0) log

Sample crash report:
BTRFS warning (device loop0): the 'inode_cache' option is deprecated and has no effect since 5.11
BTRFS info (device loop0): doing ref verification
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): enabling ssd optimizations
BTRFS info (device loop0): balance: start -f -susage=6,vrange=0..9223372036854775809
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3507 at fs/btrfs/block-group.c:2455 btrfs_create_pending_block_groups+0x1025/0x12a0 fs/btrfs/block-group.c:2455
Modules linked in:
CPU: 0 PID: 3507 Comm: syz-executor129 Not tainted 6.1.45-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:btrfs_create_pending_block_groups+0x1025/0x12a0 fs/btrfs/block-group.c:2455
Code: ba 9e 09 00 00 44 89 f9 e8 c8 4c d8 06 4c 8b 6c 24 10 e9 5d f5 ff ff e8 d9 64 df fd 48 c7 c7 a0 ae 2f 8b 89 de e8 3b c2 a7 fd <0f> 0b e9 56 ff ff ff e8 bf 64 df fd 48 c7 c7 a0 ae 2f 8b 44 89 e6
RSP: 0018:ffffc900039ef6c0 EFLAGS: 00010246
RAX: a64685b8bfa56700 RBX: 00000000ffffffe4 RCX: ffff888028da0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900039ef950 R08: ffffffff81525dfe R09: fffff5200073de51
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888018aed058
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888079618001
FS:  0000555555d5a380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556019cfc860 CR3: 000000001a3fa000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_end_transaction+0x2be/0x7b0 fs/btrfs/transaction.c:996
 btrfs_inc_block_group_ro+0x644/0x6f0 fs/btrfs/block-group.c:2711
 btrfs_relocate_block_group+0x439/0xd70 fs/btrfs/relocation.c:4011
 btrfs_relocate_chunk+0x128/0x3b0 fs/btrfs/volumes.c:3296
 __btrfs_balance+0x1c16/0x27d0 fs/btrfs/volumes.c:4033
 btrfs_balance+0xbd4/0x10c0 fs/btrfs/volumes.c:4409
 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:4488
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd705355979
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff054058a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fd705355979
RDX: 0000000020001200 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007fd7053cd610 R08: 0000000000000000 R09: 00007fff05405a78
R10: 00000000000050e7 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff05405a68 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/13 16:12 linux-6.1.y 1321ab403b38 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in btrfs_create_pending_block_groups
2024/05/01 06:47 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 06:50 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 05:33 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 05:33 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_create_pending_block_groups
* Struck through repros no longer work on HEAD.