Repository navigation
Conversation
|
Thanks. This looks good, but you will need to sign a CLA: |
|
I emailed the CLA in yesterday. Will the bot automatically remove the CLA hold label once that gets reviewed and processed? |
|
Really OpenSSL shouldn't be probing for support like this on any platform. It's very unreliable in big.LITTLE situations. See #14838 (comment) Although it doesn't look like the feature OpenSSL wants here even has a |
I don't think it's even exclusive to big.LITTLE platforms. I've seen a crash on a MediaTek T31-based device which appears to be a single cluster of 4 Cortex-A55 cores.
We could just remove the probe entirely and require users to set |
|
I suggest we just never probe for it.
|
Detection of this feature is unreliable so only use it if requested.
Sounds good to me. I removed the probe entirely in my latest push. |
|
Agreed that's the right change, but note that, since |
|
|
|
Ah fair. Unclear to me whether that code is worth carrying given that, but okay. :-) |
|
Unfortunately there is no way to set individual bits with OPENSSL_armcap not overriding also the other bits. That makes the ARMV7_TICK code fairly useless. |
Okay, is the preference then to just nuke If so, should we keep that |
|
Yes, nuke it. It's only uses as a very low quality entropy source. We should be able to live without it. As a fallback, perhaps introduce a configuration option that enables/allows it. My rationale is that some embedded platforms are quite lacking in entropy and this clock might help. |
Could that configuration option just be setting the |
|
I'd prefer a build time option but an environment variable might work. The former is less risky. @openssl/otc ?? |
Is even that necessary? PRNG-wise, looks like this goes into It also goes into |
This path shouldn't need changing. It doesn't require a good RNG or entropy. A completely deterministic PRNG will achieve the desired result. I was attempting to mitigate a theoretical DoS attack where the same cache elements are flushed each time. I doubt it's possible to do anything useful but attackers have proven time and again to be rather resourceful. |
|
If you just remove ARMV7_TICK, your "deterministic" RNG will be |
|
It checks for the zero timer and seeds with a 1 in that case 😄 |
|
Oh, I see. I missed that the value goes into an xorshift thing. |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
ping @openssl/otc for second review |
beldmit
left a comment
There was a problem hiding this comment.
LGTM.
But the test failure looks suspicious
|
This pull request is ready to merge |
|
Merged to master and 3.0. Thank you. |
Detection of this feature is unreliable so only use it if requested. Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Hugo Landau <[email protected]> (Merged from #18852)
Detection of this feature is unreliable so only use it if requested. Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Hugo Landau <[email protected]> (Merged from #18852) (cherry picked from commit f2ec24c)
Detection of this feature is unreliable so only use it if requested. Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Hugo Landau <[email protected]> (Merged from openssl#18852)
Using
_armv7_tick()leads to crashes on a variety of AArch32 Android devices while providing little benefit. Nobody has succeeded in getting a reliable repro to debug it for years, so just disable it by default on these known problematic configurations unless the user opts in by settingOPENSSL_armcap.If this approach is acceptable, this should also be backported to
OpenSSL_1_1_1-stableto resolve the linked issues.Fixes #14838
Fixes #17009
Fixes #17465