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

debug : fix collecting tpm event log #3323

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

shjala
Copy link
Member

@shjala shjala commented Jul 6, 2023

TPM event log is a kernel memory region mapped to a pseudo-filesystem, as a result when sized always returns 0. This is problematic for tar because it won't read the file (symlink or not) and we end up with an empty tpm event log in the final tar file.

This change fixes the issue by creating a copy of it as a real file, the file size is limited 1mb.

TPM event log is a kernel memory mapped to a pseudo-filesystem,
as a result when sized always returns 0. This is problematic for
tar because it won't read the file (symlink or not) and we end up
with an empty tpm event log in the final tar file.

This change fixes the issue by creating a copy of it as a real file,
the file size is limited 1mb.

Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
@shjala shjala requested review from eriknordmark and rvs as code owners July 6, 2023 14:58
@shjala shjala requested a review from rouming July 6, 2023 14:58
Copy link
Contributor

@rouming rouming left a comment

Choose a reason for hiding this comment

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

Ack

@rouming rouming merged commit 60dffd1 into lf-edge:master Jul 6, 2023
@shjala shjala deleted the debug_fix_tpm_info branch August 21, 2023 11:50
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