-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix psa_key_management_operations #12392
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
Conversation
At these locations, psa_key_attribute variables are used without initialisation. The function getting it (psa_get_key_attributes), is freeing attributes->domain_parameters, which can contain random address from the stack. Signed-off-by: Gabor Abonyi <[email protected]>
@GaborAbonyi, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Patater please review
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
I restarted tests to confirm the failures. @GaborAbonyi please review artifacts above (Build artifacts url reference) to find test failures. |
Thanks @0xc0170 . I checked the artifacts but not sure what causes the issue, as it is only present for one target, with one specific compiler. It is possible that there is another uninitialized variable case that is now surfaced. |
Second run all good. |
Summary of changes
Fix psa_key_management_operations for PSA_GET_KEY_ATTRIBUTES and PSA_IMPORT_KEY.
At these locations, psa_key_attribute variables are used without initialisation.
The function getting it (psa_get_key_attributes), is freeing attributes->domain_parameters, which can contain random address from the stack.
Impact of changes
Fix of intermittent errors.
Migration actions required
Documentation
N/A
Pull request type
Test results
Reviewers