------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:1266! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 16540 Comm: syz-executor.4 Not tainted 5.4.0-rc2+ #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:1266 [inline] RIP: 0010:close_fs_devices+0x8c1/0x8d0 fs/btrfs/volumes.c:1291 Code: 6c fa fe 48 8b 5d c0 e9 73 ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 7c 87 48 89 df e8 a9 6c fa fe e9 7a ff ff ff e8 9f 2e c1 fe <0f> 0b e8 98 2e c1 fe 0f 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 RSP: 0018:ffff8880156bf9a0 EFLAGS: 00010246 RAX: ffffffff82b20281 RBX: ffff88801cca10e8 RCX: 0000000000040000 RDX: ffffc9000e7b1000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff8880156bfa30 R08: ffff888016112c18 R09: fffffbfff12bb6b5 R10: fffffbfff12bb6b5 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88801cca10f0 R14: ffff88801cca1000 R15: ffff888028b32800 FS: 00007fd89d2b4700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30123000 CR3: 000000009577a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_close_devices+0x33/0x130 fs/btrfs/volumes.c:1309 btrfs_mount_root+0xa9d/0x1040 fs/btrfs/super.c:1574 legacy_get_tree+0xf9/0x1a0 fs/fs_context.c:647 vfs_get_tree+0x8b/0x2a0 fs/super.c:1545 fc_mount fs/namespace.c:962 [inline] vfs_kern_mount+0xc2/0x160 fs/namespace.c:992 btrfs_mount+0x34f/0x18e0 fs/btrfs/super.c:1621 legacy_get_tree+0xf9/0x1a0 fs/fs_context.c:647 vfs_get_tree+0x8b/0x2a0 fs/super.c:1545 do_new_mount fs/namespace.c:2823 [inline] do_mount+0x16c0/0x2510 fs/namespace.c:3143 ksys_mount+0xcc/0x100 fs/namespace.c:3352 __do_sys_mount fs/namespace.c:3366 [inline] __se_sys_mount fs/namespace.c:3363 [inline] __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3363 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4aa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 9d 8d fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 7a 8d fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007fd89d2b3a88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd89d2b3b40 RCX: 000000000045c4aa RDX: 00007fd89d2b3ae0 RSI: 0000000020000100 RDI: 00007fd89d2b3b00 RBP: 0000000000000001 R08: 00007fd89d2b3b40 R09: 00007fd89d2b3ae0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000004 R13: 00000000004c8da6 R14: 00000000004e0200 R15: 0000000000000003 Modules linked in: ---[ end trace 767834a3be8df50c ]--- RIP: 0010:btrfs_close_one_device fs/btrfs/volumes.c:1266 [inline] RIP: 0010:close_fs_devices+0x8c1/0x8d0 fs/btrfs/volumes.c:1291 Code: 6c fa fe 48 8b 5d c0 e9 73 ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 7c 87 48 89 df e8 a9 6c fa fe e9 7a ff ff ff e8 9f 2e c1 fe <0f> 0b e8 98 2e c1 fe 0f 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 RSP: 0018:ffff8880156bf9a0 EFLAGS: 00010246 RAX: ffffffff82b20281 RBX: ffff88801cca10e8 RCX: 0000000000040000 RDX: ffffc9000e7b1000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff8880156bfa30 R08: ffff888016112c18 R09: fffffbfff12bb6b5 R10: fffffbfff12bb6b5 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88801cca10f0 R14: ffff88801cca1000 R15: ffff888028b32800 FS: 00007fd89d2b4700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000075c000 CR3: 000000009577a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400