EFI out of bounds running Windows 10 freezes host and guest

Discussions related to using VirtualBox on Linux hosts.
Post Reply
bid
Posts: 1
Joined: 22. Sep 2021, 10:37

EFI out of bounds running Windows 10 freezes host and guest

Post by bid »

Hi all,

I am running a physically installed Windows 10 using VirtualBox 6.0.24 on my Linux version 4.19.0-6-amd64 (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11).

After some time running Win10 my complete system freezes (guest and host!). Sometimes this happens already after 10 minutes, sometimes it is running for some hours. I could not yet figure out which action triggers the system freeze.

I created the physical image using:

Code: Select all

sudo dd if=/dev/nvme0n1 of=Windows10RAW.mbr count=1 bs=512
VBoxManage internalcommands createrawvmdk -filename Windows10RAW.vmdk -rawdisk /dev/nvme0n1 -mbr Windows10RAW.mbr -partitions 1,2,3,4,5,7
Note: I tried different combinations for creating the raw disk image (only windows partitions, whole device, with or without separate MBR, ...), always with the same result.

What I can see from the VBox.log:

Code: Select all

00:00:01.644491 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::'BootCurrent' fAttrib=0x6 cbValue=0x2
00:00:01.645619 EFI: Adding variable 4c19049f-4137-4dd3-9c10-8b97a83ffdfa::'MemoryTypeInformation' fAttrib=0x3 cbValue=0x40
00:00:01.649773 EFI: VBoxDbg> unload '.efi' # 0x0 LB 0x0
00:00:01.653894 EFI: Deleting variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::'BootCurrent'
00:00:01.655305 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::'BootCurrent' fAttrib=0x6 cbValue=0x2
00:00:01.675280 EFI: VBoxDbg> loadimage64 'bootmgfw.efi' 0x10000000 LB 0x1b8000
00:00:01.675823 EFI: Adding variable 77fa9abd-0359-4d32-bd60-28f4e78f784b::'WindowsBootChainSvnCheckStatus' fAttrib=0x2 cbValue=0x4
00:00:01.697014 EFI: Adding variable 77fa9abd-0359-4d32-bd60-28f4e78f784b::'CurrentActivePolicy' fAttrib=0x3 cbValue=0x1
00:00:01.697744 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE_LENGTH write (0x601, max 0x400).
00:00:01.702247 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xdf).
00:00:01.702255 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xa8).
00:00:01.702262 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x8e).
00:00:01.702268 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xec).
00:00:01.702274 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xc5).
00:00:01.702280 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x70).
00:00:01.702286 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xb3).
00:00:01.702292 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x9d).
00:00:01.702299 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x26).
00:00:01.702305 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x62).
00:00:01.702311 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xe6).
00:00:01.702317 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xe0).
00:00:01.702323 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xa7).
00:00:01.702329 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x45).
00:00:01.702336 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xf8).
00:00:01.702342 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x14).
00:00:01.702348 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x9b).
00:00:01.702354 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xca).
00:00:01.702368 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xcf).
00:00:01.702375 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x91).
00:00:01.702381 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x80).
00:00:01.702387 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xfe).
00:00:01.702394 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x3).
00:00:01.702400 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xeb).
00:00:01.702406 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xad).
00:00:01.702412 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xea).
00:00:01.702419 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xb1).
00:00:01.702425 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xa6).
00:00:01.702431 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x91).
00:00:01.702437 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xc).
00:00:01.702444 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xcb).
00:00:01.702450 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xa0).
00:00:01.702456 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xf2).
00:00:01.702462 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x42).
00:00:01.702469 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x7d).
00:00:01.702475 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x9e).
00:00:01.702481 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xba).
00:00:01.702487 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xa4).
00:00:01.702493 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x15).
00:00:01.702499 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xcc).
00:00:01.702506 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x2e).
00:00:01.702512 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x7c).
00:00:01.702518 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xb8).
00:00:01.702524 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x16).
00:00:01.702531 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x34).
00:00:01.702537 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x76).
00:00:01.702543 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x1f).
00:00:01.702549 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x31).
00:00:01.702555 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x82).
00:00:01.702562 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x1).
00:00:01.702568 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xcd).
00:00:01.702574 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x30).
00:00:01.702580 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x82).
00:00:01.702586 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0x1).
00:00:01.702593 EFI: Out of bounds EFI_VM_VARIABLE_OP_VALUE write (0xc9).
After some minutes of freeze the host switches to console mode showing:

Code: Select all

read_error on swap_device
EXT4-fs error device nvme0n1p5 ext4_find_entry
The error is actually not always the same and does not show up in syslog; it is just printed on screen.
Note: swap_device would be partition 7, partition 5 is my root mount point.

It seems that for some reason Windows tries to read/write from "its" partition, but the actual request being mapped to one of my linux partitions.

EFI is enabled in the vbox settings, otherwise windows does not boot.
I have not mounted any of the windows partitions on my host system.
I have not enabled any common sharing folder.

Any ideas of what's going on here?

BR,
bid
Post Reply