Page MenuHomeFreeBSD

security/openssl-devel: Fix detection of ARM CPU features
ClosedPublic

Authored by allanjude on Nov 19 2021, 6:38 PM.
Tags
None
Referenced Files
F125469166: D33062.id98774.diff
Fri, Aug 8, 3:19 AM
Unknown Object (File)
Mon, Aug 4, 2:56 AM
Unknown Object (File)
Sat, Aug 2, 9:27 PM
Unknown Object (File)
Tue, Jul 29, 3:16 AM
Unknown Object (File)
Tue, Jul 22, 4:31 PM
Unknown Object (File)
Jul 8 2025, 4:45 PM
Unknown Object (File)
Jul 4 2025, 9:59 PM
Unknown Object (File)
Jul 4 2025, 4:09 AM
Subscribers

Details

Summary

OpenSSL assumes the same value for AT_HWCAP at Linux
So it ends up calling elf_auxv_info() with AT_CANARY which
returns ENOENT, and all acceleration features are disabled.

With this, my ARM64 test machine, the benchmark
openssl speed -evp aes-256-gcm is nearly 20x faster
going from 100 MB/sec to 2000 MB/sec

Also update the configure scripts to detect arm64-*-freebsd
rather than using BSD-generic32

PR: 259937
Sponsored by: Klara Inc.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 42892
Build 39780: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 20 2021, 2:10 PM
This revision was automatically updated to reflect the committed changes.

Thanks! Committing to -devel as this is not considered for production.
Waiting for upstream to provide feedback on the changes before committing security/openssl.