-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Extends AArch64 branch protection support to include GCS #146338
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
Extends AArch64 branch protection support to include GCS #146338
Conversation
r? @davidtwco rustbot has assigned @davidtwco. Use |
Some changes occurred in src/doc/unstable-book/src/compiler-flags/branch-protection.md cc @rust-lang/project-exploit-mitigations, @rcvalle |
I've reviewed this internally so will reroll. GCS is exposed in Clang through their r? compiler |
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.
Seems pretty straightforward, and looks consistent with clang.
tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGS.stderr
Outdated
Show resolved
Hide resolved
r=me with the updated test output and CI green r? Urgau |
✌️ @CrooseGit, you can now approve this pull request! If @Urgau told you to " |
This comment has been minimized.
This comment has been minimized.
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.
Thanks, @Urgau!
b50c4db
to
d949360
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
Does your local |
Checked locally and it's the LLVM version that is causing this, just add a |
d949360
to
7ade636
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…<try> Extends AArch64 branch protection support to include GCS try-job: *aarch64*
This comment has been minimized.
This comment has been minimized.
💔 Test for d260a23 failed: CI. Failed jobs:
|
f043fb8
to
e02bd51
Compare
@bors try jobs=aarch64 |
This comment has been minimized.
This comment has been minimized.
…<try> Extends AArch64 branch protection support to include GCS try-job: *aarch64*
This comment has been minimized.
This comment has been minimized.
💔 Test for c3587c9 failed: CI. Failed jobs:
|
e02bd51
to
bb893df
Compare
GCS support was added to GCC in version 15, thus the rmake test for this patch requires GCC15 Similarly, the ubuntu version is updated so the newer clang version is available, and/or GCC15 is the default.
bb893df
to
08020de
Compare
@bors r=Urgau,davidtwco rollup- @CrooseGit thinks that the CI failures should be resolved now and this will be able to be merged |
…ble-GCS, r=Urgau,davidtwco Extends AArch64 branch protection support to include GCS Extends existing support for AArch64 branch protection to include support for [Guarded Control Stacks](https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/arm-a-profile-architecture-2022#guarded-control-stack-gcs:~:text=Extraction%20or%20tracking.-,Guarded%20Control%20Stack%20(GCS),-With%20the%202022).
@bors rollup=never Failed in rollups a bunch previously |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing e9385f9 (parent) -> 15283f6 (this PR) Test differencesShow 30 test diffsStage 1
Stage 2
Additionally, 2 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 15283f6fe95e5b604273d13a428bab5fc0788f5a --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (15283f6): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -0.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -3.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 471.559s -> 471.213s (-0.07%) |
Extends existing support for AArch64 branch protection to include support for Guarded Control Stacks.