VirtualBox

Opened 7 years ago

Last modified 7 years ago

#16259 new defect

Cannot start VMs due to VERR_SUP_VP_REPLACE_VIRTUAL_MEMORY_FAILED

Reported by: Stevel Owned by:
Component: other Version: VirtualBox 5.1.10
Keywords: hardening Cc: sludlum@…, schung@…
Guest type: all Host type: Windows

Description

On some windows hosts VirtualBox will not start VMs with DigitalGuardian installed. An error message box with "VERR_SUP_VP_REPLACE_VIRTUAL_MEMORY_FAILED ... supR3HardNtChildPurify what:5" appears. This has been reproduced on both a Windows 7 and 2K8R2 systems but not all Win7 and 2K8R2 machines. This is system configuration depended. I have a windows 7 machine where I uninstalled DG but left our driver in place and it still failed. I then copied an MS driver, vms3cat.sys, into dgmaster.sys rebooted and it still failed. I believe there is a logic error in the code that replaces suspect virtual memory.

I have a 2K8R2 VM that reproduces the issue.

Attachments (4)

2K8R2MessageBoxFail.jpg (61.5 KB ) - added by Stevel 7 years ago.
VBoxHardening5.1.10.log (7.1 KB ) - added by Stevel 7 years ago.
Hardening log of VirtualBox 5.1.10 and DG 7.3.0.0160
VBox5.1.10.log (89.6 KB ) - added by Stevel 7 years ago.
VBox.log of VirtualBox 5.1.10 and DG 7.3.0.0160
VBoxHardening_V5.1.12.log (13.2 KB ) - added by Stacy Petruzzi 7 years ago.
Retested with 5.1.12, attached.

Download all attachments as: .zip

Change History (18)

by Stevel, 7 years ago

Attachment: 2K8R2MessageBoxFail.jpg added

comment:1 by Frank Mehnert, 7 years ago

Please attach the VBoxHardening.log file for such a VM session.

by Stevel, 7 years ago

Attachment: VBoxHardening5.1.10.log added

Hardening log of VirtualBox 5.1.10 and DG 7.3.0.0160

by Stevel, 7 years ago

Attachment: VBox5.1.10.log added

VBox.log of VirtualBox 5.1.10 and DG 7.3.0.0160

comment:2 by Stacy Petruzzi, 7 years ago

Can you modify this ticket to be submitted by this account, or do we need to open a new ticket?

comment:3 by Frank Mehnert, 7 years ago

I don't think a modiciation is required. You will get noficiation email as you added a comment to the ticket. So you see the same problem with VBox 5.1.12 as well? Could you add another VBoxHardening.log file for a 5.1.12 session?

by Stacy Petruzzi, 7 years ago

Attachment: VBoxHardening_V5.1.12.log added

Retested with 5.1.12, attached.

comment:4 by Stacy Petruzzi, 7 years ago

Hi! Frank,

I have uploaded VBoxHardening.log file for a 5.1.12 session week ago. Can you please update the case with your findings? Please escalate the case or change the priority to highest level? We have multiple customer that has reported this issue.

comment:5 by Stacy Petruzzi, 7 years ago

01/20 Issue is gaining visibility within Management and updates are required at the earliest. Any further information you can provide based upon log review would be greatly appreciated. Kindly ensure that this issue is escalated within Oracle, as we are getting great pressure from our end users and their Mgmt. Very Kindly, Stacy Petruzzi Customer Success Manager

comment:6 by Frank Mehnert, 7 years ago

DGSupport, do you have an Oracle support contract?

comment:7 by Frank Mehnert, 7 years ago

I will contact you by private e-mail.

comment:8 by Frank Mehnert, 7 years ago

I removed the published CSI number. The number you posted is for the product Oracle VM, not Oracle VM VirtualBox. Anyway, see the private e-mail I sent to the address of the DGSupport account.

comment:9 by Stacy Petruzzi, 7 years ago

Hi Frank, We are at an impasse, as none that monitor this issue are included in the "private email" that you sent regarding this issue. We now have 3 customers with issues related to Virtual Box with no movement since we have thus far been unable to work this issue collectively due to communication issues such as this. Why was the CSI number we were given when we purchased Oracle support removed? Do we need to have a new CSI number created to include Oracle VM VirtualBox vs Oracle VM? Please, please advise as we have three customers facing issues that we have been unable to resolve without your assistance, guidance, etc. Both myself Stacy Petruzzi (CSM- Digital Guardian) Spetruzzi@… and Mike Foresto (Director of Support - Digital Guardian) Mforesto@… are trying to work this issue as we have customers without resolve since our contract was created. Anything you can do to expedite, guide accordingly would be greatly appreciated. To clarify, the only info we have thus far to point to is as follows: VBox Case 16259 CSI - CSI Number for software and services products: 20918592 Thanks, Stacy Petruzzi

in reply to:  8 comment:10 by Stacy Petruzzi, 7 years ago

Replying to frank:

I removed the published CSI number. The number you posted is for the product Oracle VM, not Oracle VM VirtualBox. Anyway, see the private e-mail I sent to the address of the DGSupport account.

Hi Frank, We are at an impasse, as none that monitor this issue are included in the "private email" that you sent regarding this issue. We now have 3 customers with issues related to Virtual Box with no movement since we have thus far been unable to work this issue collectively due to communication issues such as this. Why was the CSI number we were given when we purchased Oracle support removed? Do we need to have a new CSI number created to include Oracle VM VirtualBox vs Oracle VM? Please, please advise as we have three customers facing issues that we have been unable to resolve without your assistance, guidance, etc. Both myself Stacy Petruzzi (CSM- Digital Guardian) Spetruzzi@… and Mike Foresto (Director of Support - Digital Guardian) Mforesto@… are trying to work this issue as we have customers without resolve since our contract was created. Anything you can do to expedite, guide accordingly would be greatly appreciated. To clarify, the only info we have thus far to point to is as follows: VBox Case 16259 CSI - CSI Number for software and services products: <censored> Thanks, Stacy Petruzzi

Last edited 7 years ago by Klaus Espenlaub (previous) (diff)

comment:11 by Stevel, 7 years ago

I have been double checking results yesterday and today. Debugging has been concentrated on Win2k8, where most failures occurred. If a Vbox launch is attempted right after booting it almost always fails and almost always continues to fail. If a delay of a minute is introduced before the first launch of the virtual box GUI and hence the VM, it almost always works and continues to work. In the failure case the image name (ImageFileName) in the kernel EProcess structure is not set. This is used to determine if the process should be injected. After implementing an alternate method of determining the image name being created to use when the primary method does not work the virtual machine launches every time. I have not done any further testing on other versions as this was the version with the most failures. Failures were also seen on Win7, which is very similar code to 2k8. The public source for VirtualBox shows the driver hooking the CreateProcess call and also being in the ProcessNotify callbacks. Is it possible that the name is not getting set because of these hooks or could this be a Win7/2K8 system problem?

comment:12 by Klaus Espenlaub, 7 years ago

Could it be that you're expecting something to be set which isn't guaranteed? The first executable loaded into the process is an extremely minimal executable (containing a custom stub which also is much smaller than usual). You can see the code in the VirtualBox sources or by looking at an executable on disk. It's designed to have only the absolutely vital executable header entries.

It has happened before that AV software wasn't prepared to deal with such an executable, even though it's clearly valid as all versions of Windows have no trouble loading it.

The job of hardening is to keep untrusted parties from influencing the behavior of the VM processes - and that needs quite drastic measures on Windows as generally the OS is way too generous.

comment:13 by bird, 7 years ago

FYI. I've just uploaded a test build (r114478+) with the start of a fix (our side). However, the fix requires a DgMaster.sys file with a FileVersion value (properties -> details) of 7.3.0.0171 or higher.

comment:14 by Frank Mehnert, 7 years ago

The test build can be found here.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use