Skip to content

[AArch64] Make +pauth enabled in Armv8.3-a by default (#78027) #74

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
merged 1 commit into from
Feb 12, 2024

Conversation

atrosinenko
Copy link
Contributor

NB: This is just a cherry-pick of the
a52eea6 mainline commit.
Due to the structure of the involved files, cherry-picking required
fixing lots of trivial merge conflicts here and there.
If you are rebasing elf-pauth branch on top of the mainline main
branch after the original commit, most probably you can just skip
this cherry-picked one.

Add AEK_PAUTH to ARMV8_3A in TargetParser and let it propagate to ARMV8R, as it aligns with GCC defaults.

After adding AEK_PAUTH, several tests from TargetParserTest.cpp crashed when trying to format an error message, thus update a format string in AssertSameExtensionFlags to account for bitmask being pre-formatted as std::string.

The CHECK-PAUTH* lines in aarch64-target-features.c are updated to account for the fact that FEAT_PAUTH support and pac-ret can be enabled independently and all four combinations are possible.

NB: This is just a cherry-pick of the
    a52eea6 mainline commit.
    Due to the structure of the involved files, cherry-picking required
    fixing lots of trivial merge conflicts here and there.
    If you are rebasing elf-pauth branch on top of the mainline `main`
    branch after the original commit, most probably you can just skip
    this cherry-picked one.

Add AEK_PAUTH to ARMV8_3A in TargetParser and let it propagate to
ARMV8R, as it aligns with GCC defaults.

After adding AEK_PAUTH, several tests from TargetParserTest.cpp crashed
when trying to format an error message, thus update a format string in
AssertSameExtensionFlags to account for bitmask being pre-formatted as
std::string.

The CHECK-PAUTH* lines in aarch64-target-features.c are updated to
account for the fact that FEAT_PAUTH support and pac-ret can be enabled
independently and all four combinations are possible.
@atrosinenko atrosinenko requested review from asl and kovdan01 February 5, 2024 13:53
Copy link
Contributor

@kovdan01 kovdan01 left a comment

Choose a reason for hiding this comment

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

I've not dove deeply into ARM documentation since it was already done by reviewers in original mainline PR and I assume that enough (please let me know if you want me to perform the review "from scratch" just like guys in mainline did).

In terms of cherry-picking and fixing merge conflicts and any stuff which differs from the mainline - LGTM.

@atrosinenko
Copy link
Contributor Author

@kovdan01

I've not dove deeply into ARM documentation since it was already done by reviewers in original mainline PR and I assume that enough

This is exactly as intended, thank you.

@atrosinenko atrosinenko merged commit 1c0b04f into elf-pauth Feb 12, 2024
@atrosinenko atrosinenko deleted the atrosinenko/cherry-pick-pauth-in-v83a branch February 12, 2024 10:01
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