Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an assert to TCG log function if log is full #257

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

cfernald
Copy link
Contributor

Description

Currently, if the TCG log fills up, the firmware will boot only logging some errors and the OS may or may not fail depending on scenario and configuration. This PR adds an assert so that these truncations can be found in testing rather then having to wait for failures in production.

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

How This Was Tested

N/A

Integration Instructions

N/A

@cfernald cfernald requested review from os-d, kuqin12 and apop5 March 20, 2024 18:31
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 0.99%. Comparing base (e28c7a5) to head (f7f4c1f).

Files Patch % Lines
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           release/202311    #257      +/-   ##
=================================================
- Coverage            1.42%   0.99%   -0.44%     
=================================================
  Files                 155     155              
  Lines               36454   36400      -54     
  Branches              265     265              
=================================================
- Hits                  521     361     -160     
+ Misses              35933   35931       -2     
- Partials                0     108     +108     
Flag Coverage Δ
SecurityPkg 0.55% <0.00%> (-0.47%) ⬇️

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.

@cfernald cfernald merged commit 1c115e6 into microsoft:release/202311 Mar 20, 2024
20 checks passed
kuqin12 referenced this pull request in microsoft/mu_tiano_platforms Apr 4, 2024
Bumps Common/MU_TIANO from `2023110000.0.4` to `2023110000.0.5`


Introduces 4 new commits in
[Common/MU_TIANO](https://github.com/microsoft/mu_tiano_plus.git).

<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/mu_tiano_plus/commit/f32fecfb4badf005ccda509aa1d8a7128bed1506">f32fec</a>
pip: bump edk2-pytool-extensions from 0.27.2 to 0.27.3 (<a
href="https://github.com/microsoft/mu_tiano_plus/pull/251">#251</a>)</li>
<li><a
href="https://github.com/microsoft/mu_tiano_plus/commit/e8e47a1b2dd4fc4cd948dd5f430617f5fde21ab6">e8e47a</a>
pip: bump edk2-pytool-library from 0.21.3 to 0.21.4 (<a
href="https://github.com/microsoft/mu_tiano_plus/pull/255">#255</a>)</li>
<li><a
href="https://github.com/microsoft/mu_tiano_plus/commit/e28c7a52ee349d2539bf2dc49208b6b20ac2fead">e28c7a</a>
Repo File Sync: prevent `rustup` from self-updating (<a
href="https://github.com/microsoft/mu_tiano_plus/pull/256">#256</a>)</li>
<li><a
href="https://github.com/microsoft/mu_tiano_plus/commit/1c115e608362accbb38bb091aa006e5392a57ea4">1c115e</a>
Add an assert to TCG log function if log is full (<a
href="https://github.com/microsoft/mu_tiano_plus/pull/257">#257</a>)</li>
</ul>
</details>

Signed-off-by: Project Mu Bot <[email protected]>

Signed-off-by: Project Mu Bot <[email protected]>
Co-authored-by: Aaron <[email protected]>
Co-authored-by: kuqin12 <[email protected]>
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 20, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 22, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 22, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 22, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 22, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 23, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 23, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6
cfernald added a commit to cfernald/mu_tiano_plus that referenced this pull request Jul 23, 2024
…oft#257)

Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6

Signed-off-by:  Chris Fernald <[email protected]>
cfernald added a commit that referenced this pull request Jul 23, 2024
Currently, if the TCG log fills up, the firmware will boot only logging
some errors and the OS may or may not fail depending on scenario and
configuration. This PR adds an assert so that these truncations can be
found in testing rather then having to wait for failures in production.

- [X] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

N/A

N/A

cherry-pick from 1c115e6

Signed-off-by:  Chris Fernald <[email protected]>
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