syzbot


WARNING in btrfs_free_block_groups

Status: upstream: reported C repro on 2022/09/26 04:39
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+ea569709290ab7ce7bb2@syzkaller.appspotmail.com
First crash: 571d, last: 436d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_free_block_groups btrfs 2 262d 375d 0/26 auto-obsoleted due to no activity on 2023/11/09 08:59
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/02/08 00:17 28m bisect fix linux-4.14.y job log (0) log
2022/10/28 19:54 29m bisect fix linux-4.14.y job log (0) log

Sample crash report:
RDX: 0000000020000500 RSI: 00000000200000c0 RDI: 0000000020000040
RBP: 00007ffd2d47a9d0 R08: 0000000000000000 R09: 00007ffd2d47a9e0
R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffd2d47aa10 R14: 00007ffd2d47a9f0 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7986 at fs/btrfs/extent-tree.c:10028 btrfs_free_block_groups+0x713/0xc50 fs/btrfs/extent-tree.c:10028
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7986 Comm: syz-executor265 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:btrfs_free_block_groups+0x713/0xc50 fs/btrfs/extent-tree.c:10028
RSP: 0018:ffff88809623fc20 EFLAGS: 00010297
RAX: ffff8880b4e7c3c0 RBX: 0000000000000000 RCX: ffffed1016698deb
RDX: 0000000000000000 RSI: ffff8880b34c6f58 RDI: ffff888095931718
RBP: ffff8880b34c5c00 R08: ffffffff8ba6182c R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880b4e7c3c0 R12: ffff8880959317a8
R13: dffffc0000000000 R14: ffff888095931240 R15: 1ffff11016698deb
 close_ctree+0x33d/0x840 fs/btrfs/disk-io.c:3821
 generic_shutdown_super+0x144/0x370 fs/super.c:446
 kill_anon_super+0x36/0x90 fs/super.c:1006
 btrfs_kill_super+0x49/0x540 fs/btrfs/super.c:2163
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fe009bb9e27
RSP: 002b:00007ffd2d4798b8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fe009bb9e27
RDX: 00007ffd2d479979 RSI: 000000000000000a RDI: 00007ffd2d479970
RBP: 00007ffd2d479970 R08: 00000000ffffffff R09: 00007ffd2d479750
R10: 0000555556df2683 R11: 0000000000000206 R12: 00007ffd2d47a9f0
R13: 0000555556df25f0 R14: 00007ffd2d4798e0 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/08 21:05 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_free_block_groups
2022/12/31 18:56 linux-4.14.y c4215ee4771b ab32d508 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_free_block_groups
2022/12/23 08:08 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_free_block_groups
2022/12/12 17:58 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in btrfs_free_block_groups
2022/09/26 04:38 linux-4.14.y 4edbf74132a4 0042f2b4 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 WARNING in btrfs_free_block_groups
* Struck through repros no longer work on HEAD.