WARNING: CPU: 1 PID: 6514 at fs/btrfs/volumes.c:4744 __btrfs_alloc_chunk+0x18f6/0x2010 fs/btrfs/volumes.c:4744 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 6514 Comm: syz-executor.2 Not tainted 4.19.148-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+0x22c/0x33e lib/dump_stack.c:118 panic+0x2ac/0x565 kernel/panic.c:186 BTRFS warning (device loop5): duplicate device fsid:devid for ae799b69-81d1-4c28-b557-59da836a744a:1 old:/dev/loop5 new:/dev/loop1 __warn.cold+0x20/0x5a kernel/panic.c:541 report_bug+0x262/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x1e1/0x330 arch/x86/kernel/traps.c:296 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:__btrfs_alloc_chunk+0x18f6/0x2010 fs/btrfs/volumes.c:4744 Code: 8b bc 24 90 00 00 00 4c 89 0c 24 e8 a4 5e 62 fe 4c 8b 0c 24 48 c7 c6 40 08 45 88 48 c7 c7 c0 e3 44 88 4c 89 ca e8 40 0a 33 fe <0f> 0b 8b 9c 24 88 00 00 00 4c 8b 0c 24 f7 db 23 5c 24 10 e9 42 f1 RSP: 0018:ffff88808a807258 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88808f868000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff815b523f RDI: ffffed1011500e3d RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000008000000 R14: 0000000005800000 R15: 0000000000000001 do_chunk_alloc+0x504/0xbc0 fs/btrfs/extent-tree.c:4523 find_free_extent+0x231e/0x3e50 fs/btrfs/extent-tree.c:7658 btrfs_reserve_extent+0x296/0x440 fs/btrfs/extent-tree.c:7816 btrfs_alloc_tree_block+0x3f2/0x1720 fs/btrfs/extent-tree.c:8275 alloc_tree_block_no_bg_flush+0x1b6/0x250 fs/btrfs/ctree.c:1036 __btrfs_cow_block+0x3cb/0x1020 fs/btrfs/ctree.c:1091 btrfs_cow_block+0x276/0x860 fs/btrfs/ctree.c:1526 commit_cowonly_roots+0x128/0xc40 fs/btrfs/transaction.c:1160 btrfs_commit_transaction+0x94a/0x24a0 fs/btrfs/transaction.c:2215 btrfs_commit_super+0xc1/0x100 fs/btrfs/disk-io.c:3932 close_ctree+0x618/0x850 fs/btrfs/disk-io.c:3992 generic_shutdown_super+0x144/0x370 fs/super.c:456 kill_anon_super+0x36/0x60 fs/super.c:1032 btrfs_kill_super+0x49/0x550 fs/btrfs/super.c:2213 deactivate_locked_super+0x8c/0x100 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1da/0x300 fs/namespace.c:1098 task_work_run+0x141/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x269/0x2c0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x57c/0x670 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe 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:00007fff787e5398 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460ba7 RDX: 00000000004031b8 RSI: 0000000000000002 RDI: 00007fff787e5440 RBP: 0000000000000e9e R08: 0000000000000000 R09: 000000000000000c R10: 0000000000000005 R11: 0000000000000246 R12: 00007fff787e64d0 R13: 0000000003599a60 R14: 0000000000000000 R15: 00007fff787e64d0 Kernel Offset: disabled Rebooting in 86400 seconds..