release_pages+0x317/0x1220 mm/swap.c:980 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline] tlb_flush_mmu_free mm/mmu_gather.c:243 [inline] tlb_flush_mmu mm/mmu_gather.c:250 [inline] tlb_finish_mmu+0x165/0x8c0 mm/mmu_gather.c:341 exit_mmap+0x21b/0x6a0 mm/mmap.c:3180 __mmput+0x122/0x4b0 kernel/fork.c:1114 mmput+0x56/0x60 kernel/fork.c:1135 exit_mm kernel/exit.c:507 [inline] do_exit+0xa3c/0x2a30 kernel/exit.c:793 __do_sys_exit kernel/exit.c:902 [inline] __se_sys_exit kernel/exit.c:900 [inline] __x64_sys_exit+0x3e/0x50 kernel/exit.c:900 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:717! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9346 Comm: syz-executor.1 Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:put_page_testzero include/linux/mm.h:717 [inline] RIP: 0010:folio_put_testzero include/linux/mm.h:723 [inline] RIP: 0010:folio_put include/linux/mm.h:1198 [inline] RIP: 0010:put_page include/linux/mm.h:1237 [inline] RIP: 0010:kvm_release_pfn_clean.part.0+0x1f4/0x230 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2792 Code: 41 5c e9 af b4 70 00 e8 aa b4 70 00 49 8d 6c 24 ff e9 7e fe ff ff e8 9b b4 70 00 48 c7 c6 c0 0c a2 89 48 89 ef e8 0c 61 a4 00 <0f> 0b 48 89 df e8 12 2e b8 00 e9 aa fe ff ff 48 89 ef e8 15 2e b8 RSP: 0018:ffffc900043afb78 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffea00015753b4 RCX: 0000000000000000 RDX: ffff88807def1d00 RSI: ffffffff81080ba4 RDI: 0000000000000003 RBP: ffffea0001575380 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff890a59c8 R11: 00000000ffffffff R12: 0000000000000000 R13: ffff888055d4e000 R14: 0400000000000000 R15: ffff88813fff9140 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60d9b9c028 CR3: 000000004d6f3000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvm_release_pfn_clean arch/x86/kvm/../../../virt/kvm/kvm_main.c:2806 [inline] kvm_release_pfn_dirty arch/x86/kvm/../../../virt/kvm/kvm_main.c:2807 [inline] kvm_release_pfn arch/x86/kvm/../../../virt/kvm/kvm_main.c:2707 [inline] kvm_release_pfn+0x91/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2701 __release_gpc arch/x86/kvm/../../../virt/kvm/pfncache.c:121 [inline] __release_gpc arch/x86/kvm/../../../virt/kvm/pfncache.c:107 [inline] kvm_gfn_to_pfn_cache_unmap+0x2e2/0x3a0 arch/x86/kvm/../../../virt/kvm/pfncache.c:296 kvm_gfn_to_pfn_cache_destroy arch/x86/kvm/../../../virt/kvm/pfncache.c:333 [inline] kvm_gfn_to_pfn_cache_destroy+0x199/0x260 arch/x86/kvm/../../../virt/kvm/pfncache.c:326 kvm_xen_destroy_vm+0x18/0x90 arch/x86/kvm/xen.c:811 kvm_arch_destroy_vm+0x360/0x470 arch/x86/kvm/x86.c:11774 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1217 [inline] kvm_put_kvm+0x4fa/0xb60 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1250 kvm_vm_release+0x3f/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1273 __fput+0x286/0x9f0 fs/file_table.c:317 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xb29/0x2a30 kernel/exit.c:806 __do_sys_exit kernel/exit.c:902 [inline] __se_sys_exit kernel/exit.c:900 [inline] __x64_sys_exit+0x3e/0x50 kernel/exit.c:900 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f60d9a89049 Code: Unable to access opcode bytes at RIP 0x7f60d9a8901f. RSP: 002b:00007f60d83fe118 EFLAGS: 00000246 ORIG_RAX: 000000000000003c RAX: ffffffffffffffda RBX: 00007f60d9b9bf60 RCX: 00007f60d9a89049 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f60d9ae308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f60da0cfb1f R14: 00007f60d83fe300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:put_page_testzero include/linux/mm.h:717 [inline] RIP: 0010:folio_put_testzero include/linux/mm.h:723 [inline] RIP: 0010:folio_put include/linux/mm.h:1198 [inline] RIP: 0010:put_page include/linux/mm.h:1237 [inline] RIP: 0010:kvm_release_pfn_clean.part.0+0x1f4/0x230 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2792 Code: 41 5c e9 af b4 70 00 e8 aa b4 70 00 49 8d 6c 24 ff e9 7e fe ff ff e8 9b b4 70 00 48 c7 c6 c0 0c a2 89 48 89 ef e8 0c 61 a4 00 <0f> 0b 48 89 df e8 12 2e b8 00 e9 aa fe ff ff 48 89 ef e8 15 2e b8 RSP: 0018:ffffc900043afb78 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffea00015753b4 RCX: 0000000000000000 RDX: ffff88807def1d00 RSI: ffffffff81080ba4 RDI: 0000000000000003 RBP: ffffea0001575380 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff890a59c8 R11: 00000000ffffffff R12: 0000000000000000 R13: ffff888055d4e000 R14: 0400000000000000 R15: ffff88813fff9140 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60daad53a5 CR3: 000000002217c000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400