VirtualBox

Ignore:
Timestamp:
Feb 25, 2016 2:48:09 AM (9 years ago)
Author:
vboxsync
Message:

supR3HardenedWinInitVersion: Don't call RtlGetVersion during early init, it may touch NTDLL BSS data and cause VERR_SUP_VP_MEMORY_VS_FILE_MISMATCH when opening our kernel driver. Problem started with windows 10 build 14267.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp

    r58730 r59810  
    54805480     * SUPHardenedVerfiyImage-win.cpp.)
    54815481     */
    5482     supR3HardenedWinInitVersion();
     5482    supR3HardenedWinInitVersion(false /*fEarly*/);
    54835483    g_enmSupR3HardenedMainState = SUPR3HARDENEDMAINSTATE_WIN_VERSION_INITIALIZED;
    54845484
     
    57045704     * Init g_uNtVerCombined as well as we can at this point.
    57055705     */
    5706     supR3HardenedWinInitVersion();
     5706    supR3HardenedWinInitVersion(true /*fEarly*/);
    57075707
    57085708    /*
     
    57195719    char **papszArgs = suplibCommandLineToArgvWStub(CmdLineStr.Buffer, CmdLineStr.Length / sizeof(WCHAR), &cArgs);
    57205720    supR3HardenedOpenLog(&cArgs, papszArgs);
    5721     SUP_DPRINTF(("supR3HardenedVmProcessInit: uNtDllAddr=%p\n", uNtDllAddr));
     5721    SUP_DPRINTF(("supR3HardenedVmProcessInit: uNtDllAddr=%p g_uNtVerCombined=%#x\n", uNtDllAddr, g_uNtVerCombined));
    57225722
    57235723    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette