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
F82953919: D33062.diff
Sat, May 4, 10:32 AM
Unknown Object (File)
Sun, Apr 28, 12:17 AM
Unknown Object (File)
Sat, Apr 27, 6:54 PM
Unknown Object (File)
Sat, Apr 20, 8:12 PM
Unknown Object (File)
Sat, Apr 20, 8:12 PM
Unknown Object (File)
Sat, Apr 20, 8:12 PM
Unknown Object (File)
Fri, Apr 19, 8:25 AM
Unknown Object (File)
Fri, Apr 5, 6:26 PM
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
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.