[NTOS:MM]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 19 Apr 2017 14:40:53 +0000 (14:40 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 19 Apr 2017 14:40:53 +0000 (14:40 +0000)
- Never use special pool for prototype PTEs. Avoids "(PointerPte >= (PMMPTE)MmPagedPoolStart) && (PointerPte <= (PMMPTE)MmPagedPoolEnd)" assertion failure in MiDecrementShareCount.
CORE-11474

svn path=/trunk/; revision=74378

reactos/ntoskrnl/mm/ARM3/special.c

index 744709d..dfc8d57 100644 (file)
@@ -275,6 +275,13 @@ MmAllocateSpecialPool(SIZE_T NumberOfBytes, ULONG Tag, POOL_TYPE PoolType, ULONG
                      0x30);
     }
 
+    /* Some allocations from Mm must never use special pool */
+    if (Tag == 'tSmM')
+    {
+        /* Reject and let normal pool handle it */
+        return NULL;
+    }
+
     /* TODO: Take into account various limitations */
 
     /* Heed the maximum limit of nonpaged pages */