-
Notifications
You must be signed in to change notification settings - Fork 493
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
Stack Cookie Cleanup #245
Conversation
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]>
@mdkinney @ardbiesheuvel here is the PR to fix edk2-platforms after the breaking change |
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.
It works for Mt. Jade. Thanks for handling the platform change.
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.
For Platform/ARM/*
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.
Approved for all AMD platform
@nhivp @leiflindholm @samimujawar @abdattar , the edk2 PR this was dependent on has merged, please feel free to merge this when you are satisfied. |
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.