Skip to content

Commit

Permalink
should be MAXPHYADDRMASK
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed Jun 4, 2021
1 parent 8f28373 commit 3ccf1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbvm/vmm/epthandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void ept_hideDBVMPhysicalAddresses_callbackIntel(QWORD VirtualAddress UNUSED, QW
QWORD eptentryAddress=EPTMapPhysicalMemory(currentcpuinfo,PhysicalAddress,1);
PEPT_PTE eptentry=mapPhysicalMemory(eptentryAddress,8);

eptentry->PFN=MAXPHYADDR >> 13; //unallocated memory (using 13 as sometimes accessing the most significant bit of the allowed PA will crash a system)
eptentry->PFN=MAXPHYADDRMASK >> 13; //unallocated memory (using 13 as sometimes accessing the most significant bit of the allowed PA will crash a system)

unmapPhysicalMemory(eptentry,8);

Expand All @@ -145,7 +145,7 @@ void ept_hideDBVMPhysicalAddresses_callbackAMD(QWORD VirtualAddress UNUSED, QWOR
{
QWORD npentryAddress=NPMapPhysicalMemory(currentcpuinfo,PhysicalAddress,1);
PPTE_PAE npentry=mapPhysicalMemory(npentryAddress,8);
npentry->PFN=MAXPHYADDR >> 13;
npentry->PFN=MAXPHYADDRMASK >> 13;

unmapPhysicalMemory((void *)npentry,8);

Expand Down

0 comments on commit 3ccf1f2

Please sign in to comment.