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

Most Recent Error Must Always Be Accessible #1782

Open
nquarton opened this issue Nov 11, 2024 · 1 comment
Open

Most Recent Error Must Always Be Accessible #1782

nquarton opened this issue Nov 11, 2024 · 1 comment
Labels
Caliptra v2.0 Items to be considered for v2.0 Release FIPS Level 3 FIPS Related to FIPS requirements

Comments

@nquarton
Copy link
Contributor

FIPS 140-3 level 3 AS10.12 requires an error log where, at minimum, the most recent error be readable.

Currently, our non-fatal errors are cleared when Caliptra receives a new command. We may consider simply not clearing these non-fatal errors and relying on the SoC to do so to meet this requirement. This is not an issue for fatal errors since they are not cleared by the module.

Alternatively, if there is some reason we would still need to clear the non-fatal errors, FW may need to store the most recent non-fatal error and make it available via a new API. This isn't ideal though since this is inconsistent with how the SoC normally retrieves errors and likely would not be available in ROM or when the module encounters a fatal error.

@nquarton nquarton added FIPS Related to FIPS requirements Caliptra v2.0 Items to be considered for v2.0 Release FIPS Level 3 labels Nov 11, 2024
@jhand2
Copy link
Collaborator

jhand2 commented Nov 11, 2024

We may consider simply not clearing these non-fatal errors and relying on the SoC to do so to meet this requirement

I think I would prefer not to do this because it can cause confusion with the caller thinking the last command has failed even if it hasn't.

FW may need to store the most recent non-fatal error and make it available via a new API

I think I would prefer this. We can use the fw_info command or a FIPS status command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Caliptra v2.0 Items to be considered for v2.0 Release FIPS Level 3 FIPS Related to FIPS requirements
Projects
None yet
Development

No branches or pull requests

2 participants