Ticket #15664 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Hang on Virtual Machine startup

Reported by: a.nosov Owned by:
Component: host support Version: VirtualBox 5.1.2
Keywords: Cc:
Guest type: Windows Host type: Windows


When VirtualBox is starting Virtual Machine, infinite loop occur when hardened module unhook child process. We test with our Dr.Web Antivirus test build. Name of function is supHardNtVpFreeOrReplacePrivateExecMemory. To fix this problem we make patch file.


vbox-patch-for-hardened.diff Download (701 bytes) - added by a.nosov 4 years ago.
patch file

Change History

Changed 4 years ago by a.nosov

patch file

comment:1 Changed 4 years ago by a.nosov

Infinite loop is here

for (;;)


SIZE_T cbActual = 0; MEMORY_BASIC_INFORMATION MemInfo2 = { 0, 0, 0, 0, 0, 0, 0 }; uintptr_t uPtrNext = (uintptr_t)pvFree + cbFree; rcNt = g_pfnNtQueryVirtualMemory(hProcess,

(void const *)uPtrNext, MemoryBasicInformation, &MemInfo2, sizeof(MemInfo2), &cbActual);

if (!NT_SUCCESS(rcNt))


if (pMemInfo->AllocationBase != MemInfo2.AllocationBase)



comment:2 Changed 4 years ago by klaus

  • Status changed from new to closed
  • Resolution set to fixed

Thanks! Applied to all relevant branches and will be part of the next releases (and test builds with r109013 and later).

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use