mirror of https://github.com/acidanthera/audk.git
e8c23d1e27
The struct used for GHCB-based page-state change requests uses a 40-bit
bit-field for the GFN, which is shifted by PAGE_SHIFT to generate a
64-bit address. However, anything beyond 40-bits simply gets shifted off
when doing this, which will cause issues when dealing with 1TB+
addresses. Fix this by casting the 40-bit GFN values to 64-bit ones
prior to shifting it by PAGE_SHIFT.
Fixes:
|
||
---|---|---|
.. | ||
DxeSnpSystemRamValidate.c | ||
MemEncryptSevLib.c | ||
PeiDxeVirtualMemory.c | ||
PeiSnpSystemRamValidate.c | ||
SecSnpSystemRamValidate.c | ||
SecVirtualMemory.c | ||
SnpPageStateChange.h | ||
SnpPageStateChangeInternal.c | ||
VirtualMemory.c | ||
VirtualMemory.h |