Skip to content

[5.9] LoadableByAddress: convert types of functions which are contained in structs inside global static initializers #65504

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

Merged

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Apr 28, 2023

• Description: We missed converting such types inside static initializers of global variables. This results in ptrauth crashes when ptrauth is enabled.
• Risk: low. It only affects functions (closures) which are stored in global/static variables
• Original PR: #65492
• Reviewed By: @aschwaighofer
• Testing: done with a lit test
• Resolves: rdar://108165425

…structs inside global static initializers

We missed converting such types inside static initializers of global variables.
This results in ptrauth crashes when ptrauth is enabled.

rdar://108165425
@eeckstein eeckstein requested a review from a team as a code owner April 28, 2023 18:11
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci test windows

@eeckstein eeckstein merged commit 8597eca into swiftlang:release/5.9 May 1, 2023
@eeckstein eeckstein deleted the fix-loadablebyaddress-5.9 branch May 1, 2023 12:12
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants