------------[ cut here ]------------ WARNING: CPU: 1 PID: 15359 at arch/x86/kvm/mmu/mmu.c:3579 mmu_free_root_page+0x36c/0x3f0 arch/x86/kvm/mmu/mmu.c:3579 Modules linked in: CPU: 1 PID: 15359 Comm: syz-executor.3 Not tainted 6.9.0-rc4-syzkaller-00214-g13a2e429f644 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:mmu_free_root_page+0x36c/0x3f0 arch/x86/kvm/mmu/mmu.c:3579 Code: 00 49 8d 7d 18 be 01 00 00 00 e8 ef 39 bd 09 31 ff 41 89 c6 89 c6 e8 b3 eb 6f 00 45 85 f6 0f 85 5d fe ff ff e8 c5 f0 6f 00 90 <0f> 0b 90 e9 4f fe ff ff e8 b7 f0 6f 00 90 0f 0b 90 e9 79 fe ff ff RSP: 0018:ffffc90003ddf700 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880233017c0 RCX: ffffc90012800000 RDX: 0000000000040000 RSI: ffffffff811dd18b RDI: 0000000000000005 RBP: ffff88805eb12bf0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000004 R12: 1ffff920007bbee1 R13: ffffc90002ed6000 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f4ea8b366c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c001507000 CR3: 000000004b142000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvm_mmu_free_roots+0x621/0x710 arch/x86/kvm/mmu/mmu.c:3631 kvm_mmu_unload+0x42/0x150 arch/x86/kvm/mmu/mmu.c:5638 kvm_mmu_reset_context arch/x86/kvm/mmu/mmu.c:5596 [inline] kvm_mmu_after_set_cpuid+0x14d/0x300 arch/x86/kvm/mmu/mmu.c:5585 kvm_vcpu_after_set_cpuid arch/x86/kvm/cpuid.c:396 [inline] kvm_set_cpuid+0x2097/0x3630 arch/x86/kvm/cpuid.c:470 kvm_vcpu_ioctl_set_cpuid2+0xe7/0x160 arch/x86/kvm/cpuid.c:537 kvm_arch_vcpu_ioctl+0x26b7/0x4310 arch/x86/kvm/x86.c:5946 kvm_vcpu_ioctl+0xa2c/0x1090 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4620 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl fs/ioctl.c:890 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4ea7e7dc0b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f4ea8b34520 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4ea8b34c70 RCX: 00007f4ea7e7dc0b RDX: 00007f4ea8b34c70 RSI: 000000004008ae90 RDI: 0000000000000006 RBP: 0000000020016000 R08: 0000000000000000 R09: 0000000000000007 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000063 R14: 0000000020015000 R15: 0000000020016800