Repository navigation
Dont trust ia32cap envvar more than cpuid 1.1.1 - #11525
bernd-edlinger wants to merge 3 commits into
Conversation
|
OpenSSL> dgst -sha512 sample3.txt |
paulidale
left a comment
There was a problem hiding this comment.
A style nit and a pair of wording suggestions. I'll need a fresher look to get my head around the detection code.
Who'd have thought CPU feature detection needed to be so (needlessly) complicated?
There was a problem hiding this comment.
Style nit: blank line above.
There was a problem hiding this comment.
Suggestion: s/, and thus cause/ causing/
There was a problem hiding this comment.
If the compile time option is used...
|
#5860 got quite a bit of push-back, to the point that you closed it... do you expect a different outcome here? |
|
can we talk? |
|
I only closed #5860 since a major merge conflict was imminent. |
|
My opinion on this one is clear - I do not think it is needed in this form. |
|
I can see the use case for freezing the settings at compile time. That makes some sense. After reading the discussions, I completely fail to understand why there is any need for masking. An attack via an environment variable to cause a denial of service to yourself isn't justification. This would be a local mis-configuration which we shouldn't be trying to mitigate. An attacker breaking into your system and setting such an environment variable, likewise doesn't justify this. You've got a lot more to worry about than a denial of service. |
|
Yes, possibility to do compile-time freezing would make sense and/or completely disable the CAP envvar support as build-time option for paranoid use-cases. |
|
This is my proof of concept: |
|
Sorry, I am unable to reach you on [email protected], |
|
Shouldn't it be: Without the quotes, you are wgetting something and setting m, q and OPENSSL_ia32cap to values. m and q will be discarded since they are in sub-shells. The OPENSSL_ia32cap is set. If it was your intention to not include the quotes, it is user error. We can't protect against user error. |
|
The urgent label is for fixes to build breaking changes. I don't think it applies here. |
|
@paulidale you must be an NSA agent. This is the proof. |
|
Of course Paul Dale, is not @paulidale |
|
Proof of what? That a user error causes problems for OpenSSL? That's not a surprise. Try it with this command instead: wget https://marc.info/?l=linux-kernel&m=158697302506474&OPENSSL_ia32cap=0xFFFFFFFFFFFFFFFF:0xFFFFFFFFFFFFFFFF&q=mboxI've enabled shell syntax highlighting to indicate the special characters your shell is finding. Each |
|
Ordinary users don't even know what OPENSSL_ia32cap means. That is vodoo for them, they are totally suprised by that nonsensical behavior. |
|
@openssl/omc please help. |
|
The non-sensical behaviour is the shell's fault not OpenSSL's. I also don't think that ordinary users run a Unix like system and they don't run commands from the shell. Caveat emptor. |
|
No, that bug in the shell was also planted by agents, as this openssl bug. |
|
I am pretty sure the real target is the TOR browser, which depends on OpenSSL, |
|
or what do you really want? |
|
So, decipher this, Pauli Dale. This is my last e-mail from 18.4.2020: |
|
Bernd, this is simply a nonsense. If you can trick an user to use wget with a random unquoted URL with a shell, you can trick him to install a root kit for example. Setting OPENSSL_ia32cap is only a single random not-that-much evil thing that you can do via such broken command from unlimited numbers of other many more much more evil examples that one could invent. |
|
Reading the conversation, it seems like after the discussion we changed the target of the PR. It seems like it could be valuable to add a build feature that allows fixing the target capabilities at build time and ship only the code supported by the fixed capabilities with the library. Being a new feature this should be in a PR targeting (I am not excluding that we can have a vote to then backport the feature to 1.1.1, but the process should be to get it approved and merged to master and then approve its backport) |
|
No. |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 386 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 417 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 448 days ago |
|
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 61 days ago |
Fixes test failures with illegal values in OPENSSL_ia32cap, i.e.: OPENSSL_ia32cap=0xFFFFFFFFFFFFFFFF:0xFFFFFFFFFFFFFFFF make test Add a configure option -DOPENSSL_IA32CAP_OVERRIDE=x:y Add some documentation for OPENSSL_IA32CAP_OVERRRIDE
Fixes test failures with illegal values in OPENSSL_armcap, i.e.: OPENSSL_armcap=0xFFFFFFFF make test Add a configure option -DOPENSSL_ARMCAP_OVERRIDE=x
Fixes test failures with illegal values in OPENSSL_ppccap, i.e.: OPENSSL_ppccap=0xFFFFFFFF make test Add a configure option -DOPENSSL_PPCCAP_OVERRIDE=x
34c423d to
acd57d2
Compare
|
This PR is in a state where it requires action by @openssl/committers but the last update was 234 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 265 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 296 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 327 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 358 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 389 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 420 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 451 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 482 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 513 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 544 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 575 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 606 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 637 days ago |
|
Closing as this is a feature - not for merging to 1.1.1. |
This is just there to have extended CI tests in 1.1.1 run with #5860
It is WIP becasue I don't want it approved by you.