FIXME: Erase Stack PTEs before releasing them

This commit is contained in:
Timo Kreuzer 2023-05-09 23:23:49 +03:00
parent 544f89e92f
commit 2a14a9bad0

View file

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