RDX: 00007f34edbbeae0 RSI: 00000000200001c0 RDI: 00007f34edbbeb00 RBP: 000000000075bf20 R08: 00007f34edbbeb40 R09: 00007f34edbbeae0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000ba0 R14: 00000000004cc763 R15: 0000000000000058 ------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:895! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 7939 Comm: syz-executor.1 Not tainted 4.14.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880944764c0 task.stack: ffff888097588000 RIP: 0010:btrfs_prepare_close_one_device fs/btrfs/volumes.c:895 [inline] RIP: 0010:__btrfs_close_devices+0x763/0xd20 fs/btrfs/volumes.c:915 RSP: 0018:ffff88809758f598 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88808aa2a920 RCX: 0000000000000000 RDX: 1ffffffff0fe2ce1 RSI: ffffffff87f84ea0 RDI: 0000000000000282 RBP: ffff88809758f678 R08: ffff888094476d90 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff8880a572ad48 R14: ffff88808aa2a900 R15: ffff88808aa2a900 FS: 00007f34edbbf700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000075c091 CR3: 00000000a000c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_close_devices+0x24/0x120 fs/btrfs/volumes.c:948 btrfs_mount+0x1c2e/0x283d fs/btrfs/super.c:1642 mount_fs+0x7f/0x269 fs/super.c:1237 vfs_kern_mount.part.33+0x58/0x3c0 fs/namespace.c:1046 vfs_kern_mount+0xe/0x20 fs/namespace.c:1032 mount_subvol fs/btrfs/super.c:1392 [inline] btrfs_mount+0x36d/0x283d fs/btrfs/super.c:1563 mount_fs+0x7f/0x269 fs/super.c:1237 vfs_kern_mount.part.33+0x58/0x3c0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0x36b/0x26a0 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xb8/0xd0 fs/namespace.c:3072 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45ddea RSP: 002b:00007f34edbbea68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f34edbbf6d4 RCX: 000000000045ddea RDX: 00007f34edbbeae0 RSI: 00000000200001c0 RDI: 00007f34edbbeb00 RBP: 000000000075bf20 R08: 00007f34edbbeb40 R09: 00007f34edbbeae0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000ba0 R14: 00000000004cc763 R15: 0000000000000058 Code: 85 9d 05 00 00 48 8d 7a 20 4d 89 46 18 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 b9 03 00 00 48 83 6a 20 01 e9 c1 fa ff ff 0f 0b <0f> 0b 48 89 cf e8 e3 c9 ee fe e9 2d f9 ff ff 0f 0b e9 8b fe ff RIP: btrfs_prepare_close_one_device fs/btrfs/volumes.c:895 [inline] RSP: ffff88809758f598 RIP: __btrfs_close_devices+0x763/0xd20 fs/btrfs/volumes.c:915 RSP: ffff88809758f598 ---[ end trace 307c9d4e02bcb985 ]---