This commit is contained in:
Timo Kreuzer 2023-05-09 23:24:22 +03:00
parent 972d275765
commit 91bdeaeb09
3 changed files with 4 additions and 6 deletions

View file

@ -1144,7 +1144,7 @@ MiDecrementShareCount(IN PMMPFN Pfn1,
DPRINT("Decrementing %p from %p\n", Pfn1, _ReturnAddress());
if (Pfn1->Dbg1.IsStackPfn) __debugbreak();
//if (Pfn1->Dbg1.IsStackPfn) __debugbreak();
/* Page must be in-use */
if ((Pfn1->u3.e1.PageLocation != ActiveAndValid) &&

View file

@ -237,7 +237,7 @@ MmDeleteKernelStack(IN PVOID StackBase,
Pfn1 = MiGetPfnEntry(PageFrameNumber);
if (Pfn1->u3.e1.PageLocation != ActiveAndValid) __debugbreak();
PointerPte->u.Long = 0;
//PointerPte->u.Long = 0;
/* Now get the page of the page table mapping it */
PageTableFrameNumber = Pfn1->u4.PteFrame;

View file

@ -189,10 +189,8 @@ MiReleaseKernelStackPtes(
ASSERT(NumberOfPtes <= MI_STACK_PAGES);
ASSERT(IS_ALIGNED(MiPteToAddress(FirstPte), MI_STACK_SIZE));
for (ULONG i = 0; i < MI_STACK_PAGES; i++)
{
if (FirstPte[i].u.Hard.Valid) __debugbreak();
}
/* Zero the PTEs */
RtlZeroMemory(FirstPte, MI_STACK_PAGES * sizeof(MMPTE));
KeAcquireSpinLock(&MiStackPteSpinLock, &OldIrql);