On 11/16/23 10:01, Gerd Hoffmann wrote: > On Wed, Nov 15, 2023 at 11:51:53AM -0600, Michael Roth wrote: >> 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: ade62c18f474 ("OvmfPkg/MemEncryptSevLib: add support to validate >> system RAM") >> Signed-off-by: Michael Roth <michael.r...@amd.com> > > Reviewed-by: Gerd Hoffmann <kra...@redhat.com>
Merged as commit e8c23d1e27f70dcb2e59010ded6df32374eaa84a, via <https://github.com/tianocore/edk2/pull/5125>. Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112230): https://edk2.groups.io/g/devel/message/112230 Mute This Topic: https://groups.io/mt/102610323/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-