From c6853581c5203a52cd8825428e56f2cfcfe4c9f5 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 26 Feb 2025 10:33:32 +0200 Subject: [PATCH] [NTOS:MM] Fix broken ASSERT There is no guarantee that all pages in the requested range actually exist. --- ntoskrnl/mm/freelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/mm/freelist.c b/ntoskrnl/mm/freelist.c index 6f2f99bfc3c..0147fb09a90 100644 --- a/ntoskrnl/mm/freelist.c +++ b/ntoskrnl/mm/freelist.c @@ -318,7 +318,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress, // Get the PFN entry for this page // Pfn1 = MiGetPfnEntry(Page); - ASSERT(Pfn1); + if (!Pfn1) continue; // // Make sure it's free and if this is our first pass, zeroed