Skip to content

Bail PhysicalPresenceCallback if the mTcgNvs is not ready#1718

Draft
kuqin12 wants to merge 2 commits intomicrosoft:release/202511from
kuqin12:tcg2_stmm_order
Draft

Bail PhysicalPresenceCallback if the mTcgNvs is not ready#1718
kuqin12 wants to merge 2 commits intomicrosoft:release/202511from
kuqin12:tcg2_stmm_order

Conversation

@kuqin12
Copy link
Copy Markdown
Contributor

@kuqin12 kuqin12 commented Mar 25, 2026

Description

The current PhysicalPresenceCallback will directly access the mTcgNvs even if the other handler was not invoked.

This would cause the system to page fault due to the null pointer protection.

This change would bail the handler if the handler is invoked out of order.

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 is being tested.

Integration Instructions

N/A

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/202511@10eba60). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511   #1718   +/-   ##
================================================
  Coverage                  ?   1.61%           
================================================
  Files                     ?     159           
  Lines                     ?   37189           
  Branches                  ?     172           
================================================
  Hits                      ?     601           
  Misses                    ?   36588           
  Partials                  ?       0           
Flag Coverage Δ
SecurityPkg 1.61% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 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.

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.

2 participants