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

[10.4 stable] Do not fail SealDiskKey if PCRs/eventlog can not be saved #3486

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

rouming
Copy link
Contributor

@rouming rouming commented Oct 10, 2023

Forgotten commit to the stable branch:

For some reasons /hostfs/sys/kernel/security/tpm* might not exist on boot but that shouldn't cause tpmmgr to think that the seal failed.

Signed-off-by: eriknordmark <erik@zededa.com>
(cherry picked from commit 23da4f2843af91d389653ccb6c7c0e152e0116d8)

Might fix a ztests xen regression. Commit pointed by @shjala . Let's wait how it goes.

For some reasons /hostfs/sys/kernel/security/tpm* might not exist on
boot but that shouldn't cause tpmmgr to think that the seal failed.

Signed-off-by: eriknordmark <erik@zededa.com>
(cherry picked from commit 23da4f2)
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark
Copy link
Contributor

@shjala could users trip on this issue in 10.4.3 (which doesn't have this PR) for a kvm kernel? Or is this mostly to handle odd cases where the BIOS does not publish the event log?

@eriknordmark
Copy link
Contributor

FWIW the logs from the failing devices have getMappedTpmsPath failed: found no TPM in sysfs when running with Xen.

@rouming
Copy link
Contributor Author

rouming commented Oct 10, 2023

@eriknordmark will jenkins pick this up?

@rouming
Copy link
Contributor Author

rouming commented Oct 10, 2023

Will merge this, I see xen tests pass in jenkins. Thanks @eriknordmark @shjala

@rouming rouming merged commit a7348df into lf-edge:10.4 Oct 10, 2023
12 of 15 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.

2 participants