Repository navigation
Conversation
Make the SIGILL-based code easier to read, and don't use it on Apple Silicon. Also fix "error: 'HWCAP(2)_*' macro redefined" warnings on FreeBSD. Fixes openssl#20188 Change-Id: I5618bbe9444cc40cb5705c6ccbdc331c16bab794 Reviewed-by: Tomas Mraz <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#20305) (cherry picked from commit openssl@52a3814)
tom-cosgrove-arm
left a comment
There was a problem hiding this comment.
LGTM (but I am the author of the original change!)
|
Not sure if this should be |
|
OTC: should this be back ported to 3.1? Is any of this relevant to 3.0 as well? It's not entirely clear from the discussion. |
@oraluben posted an analysis in the python issue:
|
I don't know the policies that OTC follow to make such decision. From the perspective of a developer, darwin-aarch64 is a noticeable platform that should not be ignored. Debugging is also a rather normal use case. OpenSSL 3.1 will be the default version shipped by brew in most case ( So it's definitely not so hard to run into this. I do think it is worth back-porting. I just found https://www.openssl.org/policies/technical/stable-release-updates.html. Although it's a refactor, I think it should be merged as a bug fix (of a crash)? |
|
The SIGILLs are not detected on Apple platforms with 3.0, because the features tested in that version are supported on Apple HW and thus they do not trigger SIGILLs. |
|
OTC: This is major refactoring of the CPU feature detection code. We are not inclined to merge this to 3.1 unless this is having a major impact. |
Cherry-picked from 52a3814.
Fixes #20188 for version 3.1.
The preliminary probe is not in 3.0 yet, so there's no need to cherry-pick this "fix" yet.
If applying all the changes in 3.0 is another topic.
Also: #20188 (comment)