------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:1063! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 25789 Comm: syz-executor.5 Not tainted 4.19.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1063 [inline] RIP: 0010:close_fs_devices.part.0+0x67b/0x860 fs/btrfs/volumes.c:1082 Code: 48 8b 44 24 10 c7 80 10 01 00 00 00 00 00 00 48 83 c4 40 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 6c b6 71 fe 0f 0b e8 65 b6 71 fe <0f> 0b e8 ee 8a a7 fe e9 f8 fb ff ff 4c 89 f7 e8 e1 8a a7 fe e9 12 RSP: 0018:ffff8880496cf840 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880a4bf8900 RCX: ffffc90010695000 RDX: 0000000000040000 RSI: ffffffff82f0dc2b RDI: 0000000000000282 RBP: ffff8880ab1315d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: ffff8880a4bf8920 R15: ffff8880aad19b00 FS: 00007fc74403d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000219d848 CR3: 0000000047272000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: close_fs_devices fs/btrfs/volumes.c:1114 [inline] btrfs_close_devices+0x95/0x1f0 fs/btrfs/volumes.c:1100 btrfs_mount_root+0x10b9/0x1830 fs/btrfs/super.c:1630 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount+0x3c/0x60 fs/namespace.c:951 btrfs_mount+0x23a/0xaa0 fs/btrfs/super.c:1681 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2483 [inline] do_mount+0x113c/0x2f10 fs/namespace.c:2813 ksys_mount+0xcf/0x130 fs/namespace.c:3029 __do_sys_mount fs/namespace.c:3043 [inline] __se_sys_mount fs/namespace.c:3040 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3040 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x467b0a Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc74403cfa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000200009c0 RCX: 0000000000467b0a RDX: 0000000020000040 RSI: 0000000020000100 RDI: 00007fc74403d000 RBP: 00007fc74403d040 R08: 00007fc74403d040 R09: 0000000020000040 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000040 R13: 0000000020000100 R14: 00007fc74403d000 R15: 0000000020000000 Modules linked in: ---[ end trace 06b566acb30baff3 ]--- RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1063 [inline] RIP: 0010:close_fs_devices.part.0+0x67b/0x860 fs/btrfs/volumes.c:1082 Code: 48 8b 44 24 10 c7 80 10 01 00 00 00 00 00 00 48 83 c4 40 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 6c b6 71 fe 0f 0b e8 65 b6 71 fe <0f> 0b e8 ee 8a a7 fe e9 f8 fb ff ff 4c 89 f7 e8 e1 8a a7 fe e9 12 RSP: 0018:ffff8880496cf840 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880a4bf8900 RCX: ffffc90010695000 RDX: 0000000000040000 RSI: ffffffff82f0dc2b RDI: 0000000000000282 RBP: ffff8880ab1315d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: ffff8880a4bf8920 R15: ffff8880aad19b00 FS: 00007fc74403d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000499c40 CR3: 0000000047272000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 8b 44 24 10 mov 0x10(%rsp),%rax 5: c7 80 10 01 00 00 00 movl $0x0,0x110(%rax) c: 00 00 00 f: 48 83 c4 40 add $0x40,%rsp 13: 5b pop %rbx 14: 5d pop %rbp 15: 41 5c pop %r12 17: 41 5d pop %r13 19: 41 5e pop %r14 1b: 41 5f pop %r15 1d: c3 retq 1e: e8 6c b6 71 fe callq 0xfe71b68f 23: 0f 0b ud2 25: e8 65 b6 71 fe callq 0xfe71b68f 2a: 0f 0b ud2 <-- trapping instruction 2c: e8 ee 8a a7 fe callq 0xfea78b1f 31: e9 f8 fb ff ff jmpq 0xfffffc2e 36: 4c 89 f7 mov %r14,%rdi 39: e8 e1 8a a7 fe callq 0xfea78b1f 3e: e9 .byte 0xe9 3f: 12 .byte 0x12