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

[Bug]: SBSA using timer based RngLib #616

Closed
1 task done
kuqin12 opened this issue Jun 28, 2023 · 0 comments · Fixed by #626
Closed
1 task done

[Bug]: SBSA using timer based RngLib #616

kuqin12 opened this issue Jun 28, 2023 · 0 comments · Fixed by #626
Assignees
Labels
state:needs-triage Needs to triaged to determine next steps type:bug Something isn't working urgency:medium Important with a moderate impact

Comments

@kuqin12
Copy link
Contributor

kuqin12 commented Jun 28, 2023

Is there an existing issue for this?

  • I have searched existing issues

Current Behavior

Current SBSA platform from MU_TIANO_PLATFORMS is using timer based RngLib, which should not be used as an example for project MU, let alone used in any production ready projects.

Expected Behavior

We should switch to RNDR instruction based instance and verify the functionality.

In addition, there is also TRNG based TFA solution, could consider this as well.

Steps To Reproduce

  1. Build the SBSA platform firmware
  2. Read the build report for RngLib used

Build Environment

- OS(s): Ubuntu 22.04
- Tool Chain(s): GCC5
- Targets Impacted: DEBUG

Version Information

https://github.com/microsoft/mu_tiano_platforms/blob/cfcc0309a20d82784448dd94d64ed797b22d7bc6/Platforms/QemuSbsaPkg/QemuSbsaPkg.dsc#L213

Urgency

Medium

Are you going to fix this?

I will fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

@kuqin12 kuqin12 added type:bug Something isn't working state:needs-triage Needs to triaged to determine next steps labels Jun 28, 2023
@github-actions github-actions bot added the urgency:medium Important with a moderate impact label Jun 28, 2023
@kuqin12 kuqin12 self-assigned this Jun 28, 2023
@kuqin12 kuqin12 mentioned this issue Jul 5, 2023
5 tasks
kuqin12 added a commit that referenced this issue Jul 6, 2023
# Preface

Please ensure you have read the [contribution
docs](https://github.com/microsoft/mu/blob/master/CONTRIBUTING.md) prior
to submitting the pull request. In particular,
[pull request
guidelines](https://github.com/microsoft/mu/blob/master/CONTRIBUTING.md#pull-request-best-practices).

## Description

Current SBSA is using timer based RngLib, which is not appropriate as an
example. This change updated the library to be instruction based.

Note that this instruction may not be available on all instructions
sets.

The change also updates to the latest TFA release for our own
housekeeping.

Fixes #616.

For each item, place an "x" in between `[` and `]` if true. Example:
`[x]`.
_(you can also check items in the GitHub UI)_

- [ ] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [x] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
    in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
    outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
    on an a separate Web page, ...

## How This Was Tested

Booted SBSA platform firmware to Windows desktop.

## Integration Instructions

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:needs-triage Needs to triaged to determine next steps type:bug Something isn't working urgency:medium Important with a moderate impact
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant