From 2394f1b5cac238c7d3f6c4adc4d5b795604d8b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bi=C8=99oc=20George?= Date: Tue, 25 Feb 2020 13:24:04 +0100 Subject: [PATCH] [NTOS:MM] Do not trigger an assert when we got 32 usable PTEs. The assertion checks if the predicate is true as in we should not exceed the number of PTEs as per the internal documentation. However ReactOS used before 31 usable PTEs and after the 754e175 commit, we now use 32 PTEs and the "greater or equal to" condition triggers the predicate as false hence an assertion. CORE-16712 --- ntoskrnl/mm/ARM3/pagfault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/mm/ARM3/pagfault.c b/ntoskrnl/mm/ARM3/pagfault.c index 1ab109e9f6..a83e8e9cc4 100644 --- a/ntoskrnl/mm/ARM3/pagfault.c +++ b/ntoskrnl/mm/ARM3/pagfault.c @@ -653,7 +653,7 @@ MiResolveDemandZeroFault(IN PVOID Address, ASSERT(PointerPte->u.Hard.Valid == 0); /* Assert we have enough pages */ - ASSERT(MmAvailablePages >= 32); + ASSERT(MmAvailablePages > 32); #if MI_TRACE_PFNS if (UserPdeFault) MI_SET_USAGE(MI_USAGE_PAGE_TABLE); -- 2.25.1.windows.1