WARNING in btrfs_free_block_groups

5 views
Skip to first unread message

syzbot

unread,
Sep 26, 2022, 12:39:39 AM9/26/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4edbf74132a4 Linux 4.14.294
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1057c9ff080000
kernel config: https://syzkaller.appspot.com/x/.config?x=94d4cf9c4e23980f
dashboard link: https://syzkaller.appspot.com/bug?extid=ea569709290ab7ce7bb2
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14b2d470880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10cdfee4880000

Downloadable assets:
disk image: https://storage.googleapis.com/b40da19b4827/disk-4edbf741.raw.xz
vmlinux: https://storage.googleapis.com/a36e39677c18/vmlinux-4edbf741.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ea5697...@syzkaller.appspotmail.com

RDX: 000000000000275a RSI: 0000000020000280 RDI: 00000000ffffff9c
RBP: 00007fff53616f80 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007f0bbcd73818 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7975 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: 7975 Comm: syz-executor146 Not tainted 4.14.294-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/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:964
RIP: 0010:btrfs_free_block_groups+0x713/0xc50 fs/btrfs/extent-tree.c:10028
RSP: 0018:ffff8880958b7b10 EFLAGS: 00010297
RAX: ffff88809834a180 RBX: 0000000000000000 RCX: ffffed10125db613
RDX: 0000000000000000 RSI: ffff888092edb098 RDI: ffff8880b2e72e18
RBP: ffff888092ed9d40 R08: ffffffff8ba5eb0c R09: 0000000000000001
R10: 0000000000000000 R11: ffff88809834a180 R12: ffff8880b2e72ea8
R13: dffffc0000000000 R14: ffff8880b2e72940 R15: 1ffff110125db613
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
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xa44/0x2850 kernel/exit.c:868
do_group_exit+0x100/0x2e0 kernel/exit.c:965
SYSC_exit_group kernel/exit.c:976 [inline]
SyS_exit_group+0x19/0x20 kernel/exit.c:974
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f0bbcd2d299
RSP: 002b:00007fff53616f18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f0bbcda83f0 RCX: 00007f0bbcd2d299
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0bbcda83f0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages