Skip to content

[6.2][Runtime] Add ptrauth attribute to TargetGlobalActorReference conformance pointer. #81825

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

mikeash
Copy link
Contributor

@mikeash mikeash commented May 29, 2025

Cherry-pick #81824 to release/6.2.

Explanation: Adds a necessary ptrauth attribute to GlobalActorReference's indirect pointer type.
Scope: Affects ARM64e processes that take this runtime path.
Issue: rdar://151945202
Risk: Low. This adds a ptrauth attribute to a pointer, which is needed on ARM64e to not crash, and does nothing on all other targets.
Testing: Verified that an example crashes with a ptrauth failure without this fix, and works with it.
Reviewer: @ktoso

When the TargetGlobalActorReference conformance is an indirect pointer, the indirect pointer is signed when ptrauth is enabled.

rdar://151945202

…nformance pointer.

When the TargetGlobalActorReference conformance is an indirect pointer, the indirect pointer is signed when ptrauth is enabled.

rdar://151945202
(cherry picked from commit ea785c1)
@mikeash mikeash requested a review from a team as a code owner May 29, 2025 01:13
@mikeash
Copy link
Contributor Author

mikeash commented May 29, 2025

@swift-ci please test

@mikeash mikeash merged commit 540f69a into swiftlang:release/6.2 May 29, 2025
5 checks 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.

2 participants