Closed pbatard closed 4 years ago
Best I can tell right now is that the crash is triggered by this line from grub_file.c
:
CopyMem(&NewFile->EfiFile, &FileSystem->RootFile->EfiFile, sizeof(EFI_FILE));
And the issue is that FileSystem->RootFile
is not properly allocated when we create the file system. Ouch!
At this stage, I'm actually more surprised that the QEMU firmware is the only one crashing because of this. I may have to produce a new release that includes the fix for this issue, because it's a fairly critical one...
When using
QEMU.efi
from https://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/3852/QEMU-AARCH64/RELEASE_GCC5/ you get the following when trying to load the driver:This does not happen with older versions of Linaro QEMU, such as ones from 2017 which is the one we provide for testing on the website and also doesn't happen on real hardware with up to date UEFI and Shell, such as with the currebt Raspberry Pi 4 UEFI firmware.
This is also not a regression from 1.4, as version 1.3 of the drivers exhibit the same issue...