syzbot


WARNING in btrfs_create_pending_block_groups (2)

Status: upstream: reported C repro on 2024/09/19 23:50
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+b0643a1387dac0572b27@syzkaller.appspotmail.com
First crash: 66d, last: 22h38m
Cause bisection: introduced by (bisect log) :
commit b2f78e88052bc0bee56bbf646d245fcfb431a873
Author: David Sterba <dsterba@suse.com>
Date: Thu Jul 22 18:54:37 2021 +0000

  btrfs: allow degenerate raid0/raid10

Crash: WARNING in btrfs_create_pending_block_groups (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in btrfs_create_pending_block_groups (2) 0 (1) 2024/09/19 23:50
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 13 19h41m 465d 0/3 upstream: reported C repro on 2023/08/13 16:14
upstream WARNING in btrfs_create_pending_block_groups btrfs C error done 64 320d 723d 0/28 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 18 10d 512d 0/3 upstream: reported C repro on 2023/06/28 06:17
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/10/16 11:39 12m retest repro upstream report log
2024/10/02 11:21 16m retest repro upstream report log

Sample crash report:
BTRFS info (device loop0): disabling free space tree
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1)
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
BTRFS info (device loop0): balance: start -susage=12582912,drange=8796093022212..7,limit=10376293541461622786,limit=2..2415919104
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 0 PID: 5833 at fs/btrfs/block-group.c:2752 btrfs_create_pending_block_groups+0x14f9/0x1710 fs/btrfs/block-group.c:2752
Modules linked in:
CPU: 0 UID: 0 PID: 5833 Comm: syz-executor373 Not tainted 6.12.0-syzkaller-00171-g23acd177540d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:btrfs_create_pending_block_groups+0x14f9/0x1710 fs/btrfs/block-group.c:2752
Code: bb fd 4c 89 f7 be 03 00 00 00 e8 d2 1c dc 00 e9 86 f9 ff ff e8 f8 4e bb fd 90 48 c7 c7 00 bb 4e 8c 44 89 f6 e8 68 3e 7c fd 90 <0f> 0b 90 90 e9 7b fe ff ff e8 d9 4e bb fd 90 48 c7 c7 00 bb 4e 8c
RSP: 0018:ffffc90003f076a0 EFLAGS: 00010246
RAX: 9295adfba8ac9800 RBX: ffff88807d2a0001 RCX: ffff888078c81e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003f07960 R08: ffffffff8155e222 R09: fffffbfff1cfa3f8
R10: dffffc0000000000 R11: fffffbfff1cfa3f8 R12: 0000000000000000
R13: dffffc0000000000 R14: 00000000ffffffe4 R15: ffff88807d4521c0
FS:  000055556df7e380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffc9001e10 CR3: 0000000077c3a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_end_transaction+0x150/0x630 fs/btrfs/transaction.c:1065
 btrfs_inc_block_group_ro+0x648/0x700 fs/btrfs/block-group.c:3043
 btrfs_relocate_block_group+0x440/0xd90 fs/btrfs/relocation.c:4035
 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3377
 __btrfs_balance+0x1b0f/0x26b0 fs/btrfs/volumes.c:4161
 btrfs_balance+0xbdc/0x10c0 fs/btrfs/volumes.c:4538
 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:3673
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc217667da9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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:00007ffdd7ce8058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc217667da9
RDX: 0000000020000c40 RSI: 00000000c4009420 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 000055556df7f4c0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (34):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/19 01:12 upstream 23acd177540d 571351cb .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/18 06:34 upstream adc218676eef cfe3a04a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/09/15 23:46 upstream d42f7708e27c 08d8a733 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/03 18:03 upstream 3e5e6c9900c3 f00eed24 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/09/18 11:13 upstream 2f27fce67173 c673ca06 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/20 08:19 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in btrfs_create_pending_block_groups
2024/11/20 08:17 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in btrfs_create_pending_block_groups
2024/11/20 06:02 upstream a5c93bfec0be 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_create_pending_block_groups
2024/11/19 17:40 upstream 158f238aa69d 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/19 17:39 upstream 158f238aa69d 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/18 01:29 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in btrfs_create_pending_block_groups
2024/11/17 23:39 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_create_pending_block_groups
2024/11/17 23:38 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_create_pending_block_groups
2024/11/10 21:25 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/10 21:25 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/08 21:41 upstream f1dce1f09380 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/08 21:41 upstream f1dce1f09380 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_create_pending_block_groups
2024/11/20 04:33 upstream 158f238aa69d 7d02db5a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/19 17:45 upstream 158f238aa69d 7d02db5a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/17 21:08 upstream f66d6acccbc0 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/17 21:08 upstream f66d6acccbc0 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/10 21:29 upstream a9cda7c0ffed 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/09 16:29 upstream da4373fbcf00 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/08 21:36 upstream f1dce1f09380 d40c056e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in btrfs_create_pending_block_groups
2024/11/19 17:40 linux-next 414c97c966b6 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_create_pending_block_groups
2024/11/18 19:41 linux-next ae58226b89ac 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_create_pending_block_groups
2024/11/18 19:40 linux-next ae58226b89ac 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_create_pending_block_groups
2024/11/19 17:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
2024/11/19 17:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
2024/11/17 21:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 887407160d72 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
2024/11/17 21:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 887407160d72 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
2024/11/10 21:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
2024/11/10 21:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
2024/11/09 17:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btrfs_create_pending_block_groups
* Struck through repros no longer work on HEAD.