Fix closure-inherit-target-feature test for SGX platform by raoulstrackx · Pull Request #117082 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation4 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

raoulstrackx

PR #116078 adds the closure-inherit-target-feature.rs test that checks the generated assembly code for closures. These checks explicitly check the presence of ret instructions. This is incompatible with the SGX target as it explicitly rewrites all ret instructions to mitigate LVI vulnerabilities of certain processors. This PR simply ignores these tests for the SGX platform.

cc: @jethrogb

@raoulstrackx

@rustbot

@Mark-Simulacrum

@bors

📌 Commit c094ba0 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Oct 29, 2023

@workingjubilee

workingjubilee added a commit to workingjubilee/rustc that referenced this pull request

Oct 29, 2023

@workingjubilee

…_target_feature_sgx, r=Mark-Simulacrum

Fix closure-inherit-target-feature test for SGX platform

PR rust-lang#116078 adds the closure-inherit-target-feature.rs test that checks the generated assembly code for closures. These checks explicitly check the presence of ret instructions. This is incompatible with the SGX target as it explicitly rewrites all ret instructions to mitigate LVI vulnerabilities of certain processors. This PR simply ignores these tests for the SGX platform.

cc: @jethrogb

bors added a commit to rust-lang-ci/rust that referenced this pull request

Oct 29, 2023

@bors

…kingjubilee

Rollup of 5 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Oct 29, 2023

@GuillaumeGomez

…_target_feature_sgx, r=Mark-Simulacrum

Fix closure-inherit-target-feature test for SGX platform

PR rust-lang#116078 adds the closure-inherit-target-feature.rs test that checks the generated assembly code for closures. These checks explicitly check the presence of ret instructions. This is incompatible with the SGX target as it explicitly rewrites all ret instructions to mitigate LVI vulnerabilities of certain processors. This PR simply ignores these tests for the SGX platform.

cc: @jethrogb

This was referenced

Oct 29, 2023

bors added a commit to rust-lang-ci/rust that referenced this pull request

Oct 29, 2023

@bors

…llaumeGomez

Rollup of 5 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Oct 29, 2023

@rust-timer

Rollup merge of rust-lang#117082 - fortanix:raoul/fix_closure_inherit_target_feature_sgx, r=Mark-Simulacrum

Fix closure-inherit-target-feature test for SGX platform

PR rust-lang#116078 adds the closure-inherit-target-feature.rs test that checks the generated assembly code for closures. These checks explicitly check the presence of ret instructions. This is incompatible with the SGX target as it explicitly rewrites all ret instructions to mitigate LVI vulnerabilities of certain processors. This PR simply ignores these tests for the SGX platform.

cc: @jethrogb

bors-ferrocene bot added a commit to ferrocene/ferrocene that referenced this pull request

Oct 31, 2023

bors-ferrocene bot added a commit to ferrocene/ferrocene that referenced this pull request

Oct 31, 2023

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.