- Timestamp:
- Oct 7, 2014 9:44:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r52969 r52972 3489 3489 * load events or (much better for us) later events like kernel32. 3490 3490 */ 3491 uint32_t cMsFudge = g_fSupAdversaries ? 512 : 256; 3491 uint64_t uMsTsOuterStart = supR3HardenedWinGetMilliTS(); 3492 uint32_t cMsFudge = g_fSupAdversaries ? 512 : 256; 3493 uint32_t cTotalFixes = 0; 3492 3494 uint32_t cFixes; 3493 3495 for (uint32_t iLoop = 0; iLoop < 16; iLoop++) … … 3507 3509 } while ( supR3HardenedWinGetMilliTS() - uMsTsStart <= cMsFudge 3508 3510 || cSleeps < 8); 3509 SUP_DPRINTF(("supR3Hard enedWinInit: Startup delay kludge #2/%u: %u ms, %u sleeps\n",3511 SUP_DPRINTF(("supR3HardNtChildPurify: Startup delay kludge #1/%u: %u ms, %u sleeps\n", 3510 3512 iLoop, supR3HardenedWinGetMilliTS() - uMsTsStart, cSleeps)); 3511 3513 … … 3520 3522 "supHardenedWinVerifyProcess failed with %Rrc: %s", g_ErrInfoStatic.szMsg); 3521 3523 if (cFixes == 0) 3524 { 3525 SUP_DPRINTF(("supR3HardNtChildPurify: Done after %llu ms and %u fixes (loop #%u).\n", 3526 supR3HardenedWinGetMilliTS() - uMsTsOuterStart, cTotalFixes, iLoop)); 3522 3527 return; /* We're probably good. */ 3528 } 3529 cTotalFixes += cFixes; 3523 3530 3524 3531 if (!g_fSupAdversaries) … … 3534 3541 &cPatchCount, sizeof(cPatchCount), NULL); 3535 3542 if (NT_SUCCESS(rcNt)) 3536 SUP_DPRINTF(("supR3Hard enedWinInit: cFixes=%u g_fSupAdversaries=%#x cPatchCount=%#u\n",3543 SUP_DPRINTF(("supR3HardNtChildPurify: cFixes=%u g_fSupAdversaries=%#x cPatchCount=%#u\n", 3537 3544 cFixes, g_fSupAdversaries, cPatchCount)); 3538 3545 else 3539 SUP_DPRINTF(("supR3Hard enedWinInit: cFixes=%u g_fSupAdversaries=%#x\n", cFixes, g_fSupAdversaries));3546 SUP_DPRINTF(("supR3HardNtChildPurify: cFixes=%u g_fSupAdversaries=%#x\n", cFixes, g_fSupAdversaries)); 3540 3547 } 3541 3548 … … 3545 3552 */ 3546 3553 supR3HardenedWinKillChild(pThis, "supR3HardNtChildPurify", VERR_TRY_AGAIN, 3547 "Unable to purify child process! After 16 tries , we still %u fix(es) in the last pass.",3548 cFixes);3554 "Unable to purify child process! After 16 tries over %llu ms, we still %u fix(es) in the last pass.", 3555 supR3HardenedWinGetMilliTS() - uMsTsOuterStart, cFixes); 3549 3556 } 3550 3557
Note:
See TracChangeset
for help on using the changeset viewer.