Skip to content

[CHERRY-PICK][REBASE & FF] Pick up EDK2 version of decoupling core private structure - #2004

Merged
kuqin12 merged 2 commits into
microsoft:release/202608from
kuqin12:cp_core_pri
Oct 30, 2026
Merged

kuqin12 merged 2 commits into
microsoft:release/202608from
kuqin12:cp_core_pri

Conversation

@kuqin12

@kuqin12 kuqin12 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Description

This change picks up the upstreamed version of decoupling SMM core private structure commit.

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

This was tested on OVMF with traditional MM configuration.

Integration Instructions

N/A

…ore mailbox data"

This reverts commit f498d0f.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
@mu-automation

mu-automation Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ QEMU Validation Passed

Source Dependencies

Repository Commit
mu_basecore 5434ba8
mu_tiano_platforms f09c46b

Results

Platform Target Build Boot Overall Boot Time Build Logs Boot Logs
Q35 DEBUG ✅ success ✅ success 0m 19s Build Logs Boot Logs
ArmVirt DEBUG ✅ success ✅ success 0m 19s Build Logs Boot Logs

Workflow run: https://github.com/microsoft/mu_basecore/actions/runs/40950088502

This comment was automatically generated by the Mu QEMU PR Validation workflow.

Current `gSmmCorePrivate` data used in PiSmmCore is a shared data
structure initialized and used by PiSmmIpl. Thus the content is exposed
to normal DXE environment.

Specifically, `SmmDispatcher` actively uses `gSmmCorePrivate` to
determine dispatch behavior. As a result, the potential attack surface is
exposed from SMM initialization through the SMM Ready-to-Lock event.

This change decouple Core private data from and IPL mailbox at the
entrypoint of each MMI handle routine. It is a preventative fix to
eliminate hot access to gSmmCorePrivate within the SMM core.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
(cherry picked from commit 3b54a25765919289f1bc38261b6b2bddb7b20a21)
@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202608@42d6d88). Learn more about missing BASE report.

Files with missing lines Patch % Lines
MdeModulePkg/Core/PiSmmCore/PiSmmCore.c 0.00% 8 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             release/202608    #2004   +/-   ##
=================================================
  Coverage                  ?    1.00%           
=================================================
  Files                     ?      633           
  Lines                     ?   228294           
  Branches                  ?      648           
=================================================
  Hits                      ?     2290           
  Misses                    ?   225972           
  Partials                  ?       32           
Flag Coverage Δ
MdeModulePkg 1.00% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apop5

Copy link
Copy Markdown
Collaborator

kuqin12 after this merges, you plan on updating the mm_supv override hashes? that is the q35 failure...

@kuqin12

kuqin12 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

kuqin12 after this merges, you plan on updating the mm_supv override hashes? that is the q35 failure...

No, the override hashes are gone. My plan is to update the supv from platform side and make a release. Then this one will resolve automatically.

@kuqin12

kuqin12 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

No, the override hashes are gone. My plan is to update the supv from platform side and make a release. Then this one will resolve automatically.

This is done and PR validation is functional now.

@kuqin12
kuqin12 merged commit b44155b into microsoft:release/202608 Oct 30, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants