Fix TPM Issues in Kernel 6.12.49 LTS#5303
Merged
eriknordmark merged 2 commits intoOct 14, 2025
Merged
Conversation
TpmSign is called early, before all the TPM keys are created, so if we call ValidateKernelNullPrimary here, it always fails to certify the null primary key because the certifying key is not created yet. Signed-off-by: Shahriyar Jalayeri <[email protected]>
Allow vtpm to read null_name (for TPM reset protection), ceiling value for listen(2) and transparent hugepage size (go memory allocator). Signed-off-by: Shahriyar Jalayeri <[email protected]>
Member
Author
|
@rene my original commit ended up in 15.12.0-rc1 and 15.11.0, should I backport this fix to 15 then? |
Contributor
@shjala , 15.11.0 is just a bi-weekly build and current master will become 15.12.0-rc2, later on we will need to push a 15.12-stable branch, so I think we are good, no need to backport.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes two issues :
1- Update apparmor profile and allow vtpm to read null_name (for TPM reset protection)
2- Do not call ValidateKernelNullPrimary in TpmSign because TpmSign is called before the key needed to certify null key is created.
PR dependencies
This should go before #5287
How to test and validate this PR
Will be tested as part of #5287
Changelog notes
Fix TPM reset protection and vTPM access: skip null primary check in TpmSign and allow vTPM to read null_name.
Checklist
And the last but not least:
check them.
Please, check the boxes above after submitting the PR in interactive mode.