-
Notifications
You must be signed in to change notification settings - Fork 705
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
AES test (and AES-GCM) fails on ARMv7 (RPi3) #628
Comments
Another data point: using the non-v7 ARM target (arm-unknown-linux-gnueabihf) leads to all tests passing. |
Thanks for reporting this. From @PAStheLoD's comment in the Rustls issue:
It would be awesome to get a stacktrace with line numbers of where the misaligned access happens. |
See #629 about finding some way to ensure that alignment stuff is consistent between the C compiler and Rust compiler and the assembly code. I am not sure that this is an alignment-related issue yet, but that seems like a promising avenue to pursue because you mentioned the results are different for the ARMv6 target than for the ARMv7 target, and rustc just recently attemped to resolve some alignment-related issues on ARMv6 in rust-lang/rust#45094. That said, there's numerous differences between ARMv6 and ARMv7 in the code. |
#702 found a type mismatch in the FFI declaration for |
Based on rwf2/Rocket#650, this isn't a test-only issue. |
commit 225f6b0, first released in ring 0.14.2, probably fixes the AES-GCM case. Perhaps the @PAStheLoD Could you please test ring 0.14.2 on your Raspberry Pi 3 and report back? Thanks! |
Closing this since I think it was fixed based on the previous comment. Please re-open if you still have a problem. |
Running
cargo test
on a Raspberry Pi 3, with Linux 4.9 and Rust 1.23.0 the following assertion error occurs:Just for the record, this bug originally surfaced here.
The text was updated successfully, but these errors were encountered: