Fix hang on Windows in x509 policy code#19652
Fix hang on Windows in x509 policy code#19652paulidale wants to merge 4 commits intoopenssl:masterfrom
Conversation
|
A test will probably work only in tsan or on Windows. But yeah, it would be useful. |
|
Testcase added. I suspect getting the |
t8m
left a comment
There was a problem hiding this comment.
Please amend the first commit message because the commit is no longer just revert but it completely drops the unnecessary ex_flags setting.
|
Are there licence and/or CLA issues with just including the PKITS test data in our codebase? |
|
They come from NIST which generally mean fair game to use. We've a lot of other NIST test cases already. |
We should check this with OMC. |
|
OMC: Inclusion of this test data is ok to proceed. |
|
FYI https://csrc.nist.gov/projects/pki-testing is the web page from which the test data is located. |
Proposing moving the test to test_cms recipe
|
@paulidale could you please move the testcase to test_cms recipe? It does not look to me it should be in test_threads as it does not really spawn any threads. |
This reverts commit 9aa4be6 and removed the redundant flag setting. Fixes openssl#19643 Fixes LOW CVE-2022-3996
|
Relocated. |
|
ping for second review |
| ret = 1; | ||
| bad_mapping: | ||
| if (ret == -1 && CRYPTO_THREAD_write_lock(x->lock)) { | ||
| x->ex_flags |= EXFLAG_INVALID_POLICY; |
There was a problem hiding this comment.
This line of code was presented in original code version, no ?
The version before the reverted commit ?
There was a problem hiding this comment.
Yes, but it is useless. The caller will set the flag instead.
|
This pull request is ready to merge |
This reverts commit 9aa4be6 and removed the redundant flag setting. Fixes #19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19652)
Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19652)
This reverts commit 9aa4be6 and removed the redundant flag setting. Fixes #19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19652) (cherry picked from commit 4d0340a)
Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19652) (cherry picked from commit 61203c2)
|
Merged to master, 3.1, and 3.0 branches. Thank you. |
This reverts commit 9aa4be6 and removed the redundant flag setting. Fixes #19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19652) (cherry picked from commit 4d0340a)
Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19652) (cherry picked from commit 61203c2)
This reverts commit 9aa4be6 and removed the redundant flag setting. Fixes openssl#19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#19652)
Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#19652)
This reverts commit 9aa4be691f5c73eb3c68606d824c104550c053f7 and removed the redundant flag setting. Fixes #19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl/openssl#19652) (cherry picked from commit 4d0340a6d2f327700a059f0b8f954d6160f8eef5) Gbp-Pq: Name x509-fix-double-locking-problem.patch
This reverts commit 9aa4be691f5c73eb3c68606d824c104550c053f7 and removed the redundant flag setting. Fixes #19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl/openssl#19652) (cherry picked from commit 4d0340a6d2f327700a059f0b8f954d6160f8eef5) Signed-off-by: code4lala <[email protected]> Change-Id: I1013e00e8fe7c7975cf8e6dd4db380f37179660d
This reverts commit 9aa4be6.
Fixes #19643