Skip to content
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

Add workaround for CPUID bug in std #800

Merged
merged 3 commits into from
Sep 4, 2022
Merged

Add workaround for CPUID bug in std #800

merged 3 commits into from
Sep 4, 2022

Conversation

newpavlov
Copy link
Member

Relevant issues: rust-lang/rust#101346, RustCrypto/stream-ciphers#304

Forbidding inlining of the CPUID intrinsics should force compiler to generate correct assembly since it can not perform incorrect optimization with register reuse.

@newpavlov newpavlov merged commit 1cc82d5 into master Sep 4, 2022
@newpavlov newpavlov deleted the cpuid_workaround branch September 4, 2022 20:46
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 5, 2022
deps: update cpufeatures, swap difference to dissimilar

Updating cpufeatures v0.2.1 -> v0.2.5: https://github.com/RustCrypto/utils/blob/master/cpufeatures/CHANGELOG.md#025-2022-09-04, was yanked bc of miscompile (RustCrypto/utils#800, rust-lang#101346)

Removing difference v2.0.0
     Adding dissimilar v1.0.4
   Updating expect-test v1.0.1 -> v1.4.0

difference unmaintened https://rustsec.org/advisories/RUSTSEC-2020-0095.html, so replaced with https://github.com/dtolnay/dissimilar (as dependency of `expect-test`)
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Dec 5, 2022
deps: update cpufeatures, swap difference to dissimilar

Updating cpufeatures v0.2.1 -> v0.2.5: https://github.com/RustCrypto/utils/blob/master/cpufeatures/CHANGELOG.md#025-2022-09-04, was yanked bc of miscompile (RustCrypto/utils#800, rust-lang/rust#101346)

Removing difference v2.0.0
     Adding dissimilar v1.0.4
   Updating expect-test v1.0.1 -> v1.4.0

difference unmaintened https://rustsec.org/advisories/RUSTSEC-2020-0095.html, so replaced with https://github.com/dtolnay/dissimilar (as dependency of `expect-test`)
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.

None yet

2 participants