diff options
| author | Matt DeVillier <matt.devillier@gmail.com> | 2025-11-02 22:03:23 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-29 08:44:07 +0300 |
| commit | 1d8f64df1083bb2b7a29a6cf7ceb5323912cf5e0 (patch) | |
| tree | b439d132b767695ab1f3f6313a7275a3141ce2cb /BaseTools/Source/Python/Workspace/MetaFileTable.py | |
| parent | 6ad176741f41702ee63cfe85d0838c08298d794a (diff) | |
| download | edk2-1d8f64df1083bb2b7a29a6cf7ceb5323912cf5e0.tar.xz | |
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 <matt.devillier@gmail.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileTable.py')
0 files changed, 0 insertions, 0 deletions
