syzbot


WARNING in btrfs_alloc_chunk

Status: auto-closed as invalid on 2021/01/25 23:33
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+f54bbed7adc7c7729120@syzkaller.appspotmail.com
First crash: 1276d, last: 1268d
Discussions (1)
Title Replies (including bot) Last reply
WARNING in btrfs_alloc_chunk 1 (3) 2020/09/21 17:02

Sample crash report:
WARNING: CPU: 1 PID: 6878 at fs/btrfs/volumes.c:4968 gather_device_info fs/btrfs/volumes.c:4967 [inline]
WARNING: CPU: 1 PID: 6878 at fs/btrfs/volumes.c:4968 btrfs_alloc_chunk+0x139a/0x1ab0 fs/btrfs/volumes.c:5194
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6878 Comm: syz-executor.3 Not tainted 5.9.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1d6/0x29e lib/dump_stack.c:118
 panic+0x2c0/0x800 kernel/panic.c:231
 __warn+0x227/0x250 kernel/panic.c:600
 report_bug+0x1b1/0x2e0 lib/bug.c:198
 handle_bug+0x42/0x80 arch/x86/kernel/traps.c:234
 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:254
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:gather_device_info fs/btrfs/volumes.c:4967 [inline]
RIP: 0010:btrfs_alloc_chunk+0x139a/0x1ab0 fs/btrfs/volumes.c:5194
Code: 08 e8 1a 97 8c fe 48 8b 54 24 08 eb ca e8 be c7 4c fe 48 c7 c7 ea cd 35 89 48 c7 c6 d7 cd 35 89 4c 89 ea 31 c0 e8 d6 66 1e fe <0f> 0b e9 6c f7 ff ff e8 9a c7 4c fe eb 0f e8 93 c7 4c fe e9 34 fd
RSP: 0018:ffffc900054f74a8 EFLAGS: 00010246
RAX: 7c075bcc2d76d700 RBX: ffffc900054f7570 RCX: ffff88805178e300
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff815e27c0 R09: ffffed1015d262c0
R10: ffffed1015d262c0 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000002800000 R15: ffff888088a49010
 btrfs_chunk_alloc+0x723/0x970 fs/btrfs/block-group.c:3136
 find_free_extent_update_loop fs/btrfs/extent-tree.c:3796 [inline]
 find_free_extent+0x2d78/0x3b80 fs/btrfs/extent-tree.c:4127
 btrfs_reserve_extent+0x171/0x460 fs/btrfs/extent-tree.c:4206
 btrfs_alloc_tree_block+0x176/0x1030 fs/btrfs/extent-tree.c:4603
 alloc_tree_block_no_bg_flush fs/btrfs/ctree.c:987 [inline]
 __btrfs_cow_block+0x4b0/0x1050 fs/btrfs/ctree.c:1042
 btrfs_cow_block+0x3b1/0x500 fs/btrfs/ctree.c:1487
 commit_cowonly_roots+0xfd/0x920 fs/btrfs/transaction.c:1184
 btrfs_commit_transaction+0x1a42/0x3320 fs/btrfs/transaction.c:2272
 close_ctree+0x271/0x6a3 fs/btrfs/disk-io.c:4083
 generic_shutdown_super+0x120/0x2a0 fs/super.c:464
 kill_anon_super+0x36/0x60 fs/super.c:1108
 btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2265
 deactivate_locked_super+0xa7/0xf0 fs/super.c:335
 cleanup_mnt+0x432/0x4e0 fs/namespace.c:1118
 task_work_run+0x137/0x1c0 kernel/task_work.c:141
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:165 [inline]
 exit_to_user_mode_prepare+0x11a/0x1e0 kernel/entry/common.c:192
 syscall_exit_to_user_mode+0x82/0x1d0 kernel/entry/common.c:267
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x460ba7
Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 dd 87 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffa2c65cc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460ba7
RDX: 00000000004031b8 RSI: 0000000000000002 RDI: 00007fffa2c65d70
RBP: 0000000000000494 R08: 0000000000000000 R09: 000000000000000b
R10: 0000000000000005 R11: 0000000000000246 R12: 00007fffa2c66e00
R13: 00000000018bca60 R14: 0000000000000000 R15: 00007fffa2c66e00
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/26 18:26 upstream 7c7ec3226f5f 2d5ea0cb .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/26 18:18 upstream 7c7ec3226f5f 2d5ea0cb .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 14:41 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/23 01:27 upstream eff48ddeab78 3e8f6c27 .config console log report info ci-upstream-kasan-gce-root
2020/09/20 07:22 upstream 325d0eab4f31 53ce8104 .config console log report info ci-upstream-kasan-gce-root
2020/09/20 03:24 upstream 325d0eab4f31 53ce8104 .config console log report info ci-qemu-upstream
2020/09/27 23:32 upstream a1b8638ba132 5dd8aee8 .config console log report info ci-qemu-upstream-386
* Struck through repros no longer work on HEAD.