syzbot


WARNING in btrfs_create_pending_block_groups

Status: upstream: reported C repro on 2022/11/28 10:01
Reported-by: syzbot+5fd11a1f057a67a03a1b@syzkaller.appspotmail.com
First crash: 71d, last: 4h15m

Cause bisection: failed (bisect log)

Sample crash report:
BTRFS info (device loop0): force zlib compression, level 3
BTRFS info (device loop0): allowing degraded mounts
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): auto enabling async discard
BTRFS info (device loop0): balance: start -susage=7,stripes=0..23665
------------[ cut here ]------------
BTRFS: Transaction aborted (error -28)
WARNING: CPU: 0 PID: 5065 at fs/btrfs/block-group.c:2481 btrfs_create_pending_block_groups+0x115b/0x12e0 fs/btrfs/block-group.c:2481
Modules linked in:
CPU: 0 PID: 5065 Comm: syz-executor207 Not tainted 6.1.0-syzkaller-13822-g6feb57c2fd7c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:btrfs_create_pending_block_groups+0x115b/0x12e0 fs/btrfs/block-group.c:2481
Code: 09 00 00 44 89 f1 e8 b4 82 fd 06 4c 8b 74 24 30 e9 59 f4 ff ff e8 45 69 da fd 48 c7 c7 c0 f4 3b 8b 89 de 31 c0 e8 75 59 a1 fd <0f> 0b e9 25 fe ff ff e8 29 69 da fd 48 c7 c7 c0 f4 3b 8b 44 89 fe
RSP: 0018:ffffc90003bdf6c0 EFLAGS: 00010246
RAX: ef6a712a0c881500 RBX: 00000000ffffffe4 RCX: ffff8880296457c0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003bdf970 R08: ffffffff816f2c9d R09: ffffed1017304f5b
R10: ffffed1017304f5b R11: 1ffff11017304f5a R12: ffff88802085d058
R13: ffff888072d660f8 R14: ffff8880219b4001 R15: dffffc0000000000
FS:  0000555556947300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd886eafe8 CR3: 000000007aed6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btrfs_end_transaction+0x146/0x610 fs/btrfs/transaction.c:1003
 btrfs_inc_block_group_ro+0x540/0x5b0 fs/btrfs/block-group.c:2724
 btrfs_relocate_block_group+0x420/0xd90 fs/btrfs/relocation.c:4039
 btrfs_relocate_chunk+0x125/0x350 fs/btrfs/volumes.c:3240
 __btrfs_balance+0x1d5f/0x2930 fs/btrfs/volumes.c:3968
 btrfs_balance+0xc00/0x1150 fs/btrfs/volumes.c:4352
 btrfs_ioctl_balance+0x478/0x740 fs/btrfs/ioctl.c:3591
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xfb/0x170 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:0x7f4b84715ba9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffda89b2dd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4b84715ba9
RDX: 0000000020002280 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007f4b846d5440 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000050e9 R11: 0000000000000246 R12: 00007f4b846d54d0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (33):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2022/12/21 10:45 upstream 6feb57c2fd7c d3e76707 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in btrfs_create_pending_block_groups
ci-upstream-kasan-gce-root 2022/12/12 16:23 upstream 830b3c68c1fb 67be1ae7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/11/27 02:22 upstream 644e9524388a f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/02/06 06:35 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/02/03 08:05 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/02/03 07:12 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/02/02 17:34 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/02/02 12:33 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/02/02 00:44 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/31 11:59 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/26 00:23 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/25 18:04 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/22 17:22 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/22 01:06 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/17 02:24 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci-upstream-kasan-gce-root 2023/01/15 18:00 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/15 17:50 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/11 05:13 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/11 01:48 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/09 08:50 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/07 07:20 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/06 09:39 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2023/01/01 22:31 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/12/31 05:47 upstream bff687b3dad6 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/12/21 23:35 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/12/21 15:11 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/12/20 11:46 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/12/17 09:36 upstream 84e57d292203 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/12/16 20:23 upstream 84e57d292203 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci2-upstream-fs 2022/11/27 20:28 upstream faf68e3523c2 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci-upstream-linux-next-kasan-gce-root 2023/01/31 18:56 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci-upstream-linux-next-kasan-gce-root 2022/12/17 09:51 linux-next ca39c4daa6f7 05494336 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
ci-upstream-gce-arm64 2023/01/19 02:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9598c377d828 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in btrfs_create_pending_block_groups
* Struck through repros no longer work on HEAD.