R13: 0000000000000ba0 R14: 00000000004cc763 R15: 0000000000000058 ------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:890! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 24021 Comm: syz-executor.3 Not tainted 4.14.170-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888053f3e0c0 task.stack: ffff8880595c8000 RIP: 0010:btrfs_prepare_close_one_device fs/btrfs/volumes.c:890 [inline] RIP: 0010:__btrfs_close_devices+0x7d8/0xa90 fs/btrfs/volumes.c:915 RSP: 0018:ffff8880595cf700 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88809fadcd80 RCX: ffffc9000ca6e000 RDX: 0000000000040000 RSI: ffffffff829a33a8 RDI: 0000000000000286 RBP: ffff8880595cf7c8 R08: ffff888053f3e0c0 R09: ffff888053f3e988 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880959dba80 R13: ffff88809fadce48 R14: fffffffffffffff4 R15: dffffc0000000000 FS: 00007fc1a18e7700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000044 CR3: 00000000960cf000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_close_devices+0x29/0x140 fs/btrfs/volumes.c:948 btrfs_mount+0x1fd9/0x2b28 fs/btrfs/super.c:1642 mount_fs+0x97/0x2a1 fs/super.c:1237 vfs_kern_mount.part.0+0x5e/0x3d0 fs/namespace.c:1046 vfs_kern_mount+0x40/0x60 fs/namespace.c:1036 mount_subvol fs/btrfs/super.c:1392 [inline] btrfs_mount+0x3ce/0x2b28 fs/btrfs/super.c:1563 mount_fs+0x97/0x2a1 fs/super.c:1237 vfs_kern_mount.part.0+0x5e/0x3d0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0x417/0x27d0 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xab/0x120 fs/namespace.c:3072 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45ddea RSP: 002b:00007fc1a18e6a68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc1a18e76d4 RCX: 000000000045ddea RDX: 00007fc1a18e6ae0 RSI: 00000000200001c0 RDI: 00007fc1a18e6b00 RBP: 000000000075bf20 R08: 00007fc1a18e6b40 R09: 00007fc1a18e6ae0 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003 R13: 0000000000000ba0 R14: 00000000004cc763 R15: 0000000000000058 Code: c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 59 02 00 00 48 8b 45 80 c7 80 10 01 00 00 00 00 00 00 e9 e2 f8 ff ff e8 08 e1 c2 fe <0f> 0b e8 01 e1 c2 fe 0f 0b 48 89 f7 e8 d7 70 ed fe e9 ad f8 ff RIP: btrfs_prepare_close_one_device fs/btrfs/volumes.c:890 [inline] RSP: ffff8880595cf700 RIP: __btrfs_close_devices+0x7d8/0xa90 fs/btrfs/volumes.c:915 RSP: ffff8880595cf700 ---[ end trace badf2562e827e7c2 ]---