syzbot


WARNING in btrfs_create_pending_block_groups

Status: upstream: reported C repro on 2023/06/28 06:17
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+ecef109a157e70c06e25@syzkaller.appspotmail.com
First crash: 470d, last: 7d05h
Fix commit to backport (bisect log) :
tree: upstream
commit a1912f712188291f9d7d434fba155461f1ebef66
Author: Josef Bacik <josef@toxicpanda.com>
Date: Wed Nov 22 17:17:55 2023 +0000

  btrfs: remove code for inode_cache and recovery mount options

  
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/01/11 linux-5.15.y (ToT) 26c690eff0a5 C [report] WARNING in btrfs_create_pending_block_groups
2023/07/12 upstream (ToT) eb26cbb1a754 C [report] WARNING in btrfs_create_pending_block_groups
2024/01/11 upstream (ToT) de927f6c0b07 C Didn't crash
Similar bugs (3)
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 5 162d 423d 0/3 upstream: reported C repro on 2023/08/13 16:14
upstream WARNING in btrfs_create_pending_block_groups (2) btrfs C done 2 8d03h 20d 0/28 upstream: reported C repro on 2024/09/19 23:50
upstream WARNING in btrfs_create_pending_block_groups btrfs C error done 64 278d 682d 0/28 auto-obsoleted due to no activity on 2024/05/26 09:44
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/10/03 08:47 11m retest repro linux-5.15.y report log
2024/10/03 08:47 12m retest repro linux-5.15.y report log
2024/10/03 08:47 40m retest repro linux-5.15.y report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/01/11 17:12 3h57m fix candidate upstream OK (1) job log
2023/12/17 12:24 1h10m bisect fix linux-5.15.y OK (0) job log log
2023/11/17 09:26 1h08m bisect fix linux-5.15.y OK (0) job log log
2023/10/15 16:22 1h50m bisect fix linux-5.15.y OK (0) job log log
2023/09/11 08:10 1h00m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
BTRFS info (device loop0): has skinny extents
BTRFS info (device loop0): enabling ssd optimizations
BTRFS info (device loop0): balance: start -s
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3499 at fs/btrfs/block-group.c:2421 btrfs_create_pending_block_groups+0xe8b/0x1130 fs/btrfs/block-group.c:2421
Modules linked in:
CPU: 0 PID: 3499 Comm: syz-executor324 Not tainted 5.15.157-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:btrfs_create_pending_block_groups+0xe8b/0x1130 fs/btrfs/block-group.c:2421
Code: 3b d5 fc fd eb 26 e8 34 d5 fc fd 0f 1f 44 00 00 e8 2a d5 fc fd eb 48 e8 23 d5 fc fd 48 c7 c7 80 18 cc 8a 89 de e8 45 7d c8 fd <0f> 0b 48 8b 7c 24 10 48 c7 c6 00 19 cc 8a ba 75 09 00 00 89 d9 e8
RSP: 0018:ffffc90002bc7740 EFLAGS: 00010246
RAX: fb28ee52ab76ea00 RBX: 00000000ffffffe4 RCX: ffff88801bc73b80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90002bc7978 R08: ffffffff8166862c R09: ffffed1017344f24
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807a664001
R13: dffffc0000000000 R14: ffff888075f721b0 R15: ffff888075f72050
FS:  0000555556ddb380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c84e737198 CR3: 000000001ac8f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_end_transaction+0x296/0x780 fs/btrfs/transaction.c:1014
 btrfs_inc_block_group_ro+0x583/0x5f0 fs/btrfs/block-group.c:2644
 btrfs_relocate_block_group+0x3ec/0xcb0 fs/btrfs/relocation.c:4041
 btrfs_relocate_chunk+0xac/0x270 fs/btrfs/volumes.c:3289
 __btrfs_balance+0x185e/0x27c0 fs/btrfs/volumes.c:4029
 btrfs_balance+0xd40/0x14a0 fs/btrfs/volumes.c:4419
 btrfs_ioctl_balance+0x643/0x7d0 fs/btrfs/ioctl.c:4152
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd64070f8c9
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:00007ffd935ab918 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffd935abae8 RCX: 00007fd64070f8c9
RDX: 0000000020000900 RSI: 00000000c4009420 RDI: 0000000000000003
RBP: 00007fd640787610 R08: 0000000000005598 R09: 00007ffd935abae8
R10: 00007ffd935ab7d0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd935abad8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/01 08:42 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in btrfs_create_pending_block_groups
2023/06/28 06:17 linux-5.15.y f67653019430 4cd5bb25 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in btrfs_create_pending_block_groups
2024/05/01 07:04 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 06:51 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_create_pending_block_groups
2024/05/01 06:09 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_create_pending_block_groups
2024/05/03 03:01 linux-5.15.y 284087d4f7d5 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/03 01:06 linux-5.15.y 284087d4f7d5 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/02 10:33 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/02 07:00 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/02 05:32 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 18:52 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 16:35 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 16:21 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 06:32 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
2024/05/01 06:32 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_create_pending_block_groups
* Struck through repros no longer work on HEAD.