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

Stack Cookie Cleanup #245

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Stack Cookie Cleanup #245

merged 3 commits into from
Nov 14, 2024

Conversation

os-d
Copy link
Contributor

@os-d os-d commented Nov 12, 2024

edk2 PR tianocore/edk2#6433 cleaned up the null stack cookie implementation, no longer requiring DSCs to manually add the null stack cookie lib to Sec modules. In order to accomplish this, it updated the ResetVector to be USER_DEFINED instead of SEC. The three commits in this PR update edk2-platforms for this breaking change. This requires that edk2 PR 6433 be merged prior to this being merged.

Cleanup Null Stack Cookie Implementation

edk2 PR tianocore/edk2#6433 cleans up the null stack cookie implementation, no longer requiring DSCs to manually add the null stack cookie lib to Sec modules.

This commit changes all DSCs in edk2-platforms to drop the manual adding.

Update VanGoghBoard ResetVector Override

edk2 PR tianocore/edk2#6433 updated UefiCpuPkg's ResetVector to be USER_DEFINED. This updates VanGoghBoard's override to be compliant and not break with null libraries (such as the stack check lib) being linked globally.

Update FDF ResetVector Rules

edk2 PR tianocore/edk2#6433 updated UefiCpuPkg's ResetVector to be USER_DEFINED instead of SEC. This was also updated in VanGoghBoard's ResetVector override.

As such, this commit updates the FDF rules for the ResetVector to be USER_DEFINED instead of SEC.

Oliver Smith-Denny added 3 commits November 12, 2024 12:03
edk2 PR tianocore/edk2#6433 cleans up the
null stack cookie implementation, no longer requiring DSCs to
manually add the null stack cookie lib to Sec modules.

This commit changes all DSCs in edk2-platforms to drop the manual
adding.

Signed-off-by: Oliver Smith-Denny <[email protected]>
edk2 PR tianocore/edk2#6433 updated
UefiCpuPkg's ResetVector to be USER_DEFINED. This updates
VanGoghBoard's override to be compliant and not break with
null libraries (such as the stack check lib) being linked
globally.

Signed-off-by: Oliver Smith-Denny <[email protected]>
edk2 PR tianocore/edk2#6433 updated
UefiCpuPkg's ResetVector to be USER_DEFINED instead of SEC.
This was also updated in VanGoghBoard's ResetVector override.

As such, this commit updates the FDF rules for the ResetVector to
be USER_DEFINED instead of SEC.

Signed-off-by: Oliver Smith-Denny <[email protected]>
@os-d
Copy link
Contributor Author

os-d commented Nov 12, 2024

@mdkinney @ardbiesheuvel here is the PR to fix edk2-platforms after the breaking change

Copy link
Member

@nhivp nhivp left a comment

Choose a reason for hiding this comment

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

It works for Mt. Jade. Thanks for handling the platform change.

Copy link
Contributor

@samimujawar samimujawar left a comment

Choose a reason for hiding this comment

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

For Platform/ARM/*

Copy link
Contributor

@abdattar abdattar left a comment

Choose a reason for hiding this comment

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

Approved for all AMD platform

@os-d
Copy link
Contributor Author

os-d commented Nov 13, 2024

@nhivp @leiflindholm @samimujawar @abdattar , the edk2 PR this was dependent on has merged, please feel free to merge this when you are satisfied.

@nhivp nhivp merged commit 3a6a5f4 into tianocore:master Nov 14, 2024
1 check 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.

5 participants