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

Make dispatch tests use corruptible registers on aarch64. #1118

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

nebeid
Copy link
Contributor

@nebeid nebeid commented Jul 27, 2023

Issues:

Addresses CryptoAlg-1873
Follow-up on PR #1093

Description of changes:

Using registers x6 and x7 is risky because they can be used for input parameters.
Switching the dispatch tests to use x9 and x10 which are corruptible regitsters.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@nebeid nebeid requested a review from a team as a code owner July 27, 2023 19:55
Copy link
Contributor

@samuel40791765 samuel40791765 left a comment

Choose a reason for hiding this comment

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

I don’t understand much of the assembly going on, but it seems like its just interchanging to more usable registers. Verified that this is just interchanging the files in crypto/fipsmodule, the rest is autogenerated.

@nebeid nebeid merged commit 0809c19 into aws:main Jul 28, 2023
@nebeid nebeid deleted the fix-dispatch branch July 28, 2023 02:38
billbo-yang pushed a commit to billbo-yang/aws-lc that referenced this pull request Jul 31, 2023
Using registers x6 and x7 is risky because they can be used for input parameters.
Switching the dispatch tests to use x9 and x10 which are corruptible regitsters.
@skmcgrail skmcgrail mentioned this pull request Aug 1, 2023
billbo-yang added a commit that referenced this pull request Aug 1, 2023
* Add BoringSSL Dispatch Test for aarch64

* Make dispatch tests use corruptible registers on aarch64. (#1118)

* Support changing OPENSSL_armcap with environment variable on Apple 64-bit ARM systems (#1045)

* use handle_cpu_env from cpu_aarch64_linux.c to cpu_aarch64_apple.c

* always use OPENSSL_armcap() when detecting hardware capabilities on arm

* fix device farm CI build with boto3 (#990)

---------

Co-authored-by: Bill Yang <[email protected]>
Co-authored-by: Nevine Ebeid <[email protected]>
Co-authored-by: Samuel Chiang <[email protected]>
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.

3 participants