Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 1d8f64df1083bb2b7a29a6cf7ceb5323912cf5e0
https://github.com/tianocore/edk2/commit/1d8f64df1083bb2b7a29a6cf7ceb5323912cf5e0
Author: Matt DeVillier <[email protected]>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
Log Message:
-----------
MdeModulePkg/UfsPassThruDxe: Fix v2 protocol backward compatibility
Commit b58ce4c226 broke backward compatibility with v2 platform
protocols by incorrectly skipping HCE re-enable for v2 implementations.
When used with a UfsPlatform.efi binary that was compiled against
an older stable tag, (where EDKII_UFS_HC_PLATFORM_PROTOCOL_VERSION
is defined as 2), the code attempted to read the v3-only
SkipHceReenable/SkipLinkStartup fields beyond the v2 struct boundary,
reading garbage memory and potentially skipping initialization.
Add explicit version check to ensure v2 protocols follow normal
initialization path, preventing out-of-bounds struct access.
TEST=build/boot google/yaviks with UFS storage
Signed-off-by: Matt DeVillier <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits