[NTOS:MM] Print debugging information in case CORE-16449 happens.

This commit is contained in:
Thomas Faber 2020-10-08 08:39:21 +02:00
parent 383ea7d92b
commit ef1c726621
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -2409,7 +2409,14 @@ MiSetSystemCodeProtection(
TempPte = *PointerPte;
/* Make sure it's valid */
ASSERT(TempPte.u.Hard.Valid == 1);
if (TempPte.u.Hard.Valid != 1)
{
DPRINT1("CORE-16449: FirstPte=%p, LastPte=%p, Protection=%lx\n", FirstPte, LastPte, Protection);
DPRINT1("CORE-16449: PointerPte=%p, TempPte=%lx\n", PointerPte, TempPte.u.Long);
DPRINT1("CORE-16449: Please issue the 'mod' and 'bt' (KDBG) or 'lm' and 'kp' (WinDbg) commands. Then report this in Jira.\n");
ASSERT(TempPte.u.Hard.Valid == 1);
break;
}
/* Update the protection */
TempPte.u.Hard.Write = BooleanFlagOn(Protection, IMAGE_SCN_MEM_WRITE);