Modify ossl_provider_forall_loaded() to avoid locking for the callbacks #14489
Conversation
…allbacks To avoid recursive lock issues, a copy is taken of the provider list and the callbacks are made without holding the store lock. Fixes #14251
|
update the second commit to not say 'atatement'.. |
|
Commit should also say Fixes #?? |
|
The first commit includes a Fixes line. |
Added to the PR comment above also |
|
@levitte, any reason this function is |
|
The suggestion is to rename this |
|
... and renamed. |
Also correct an incorrect statement about non-activated providers.
|
Feedback addressed again. |
|
LGTM.. The concerning thing here is the test failure in what seems like the rsa keygen.. |
|
It's a heisen-bug :( |
I cant be certain :) I have been running that line in a loop for an hour with no issues. |
|
My guess would be that it was related to the random seed being used. RSA keygen can fail if it takes too long. It looked like long output. |
|
Merged to master, thanks for the feedbacks. |
Also correct an incorrect statement about non-activated providers. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from #14489)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from #14489)
This avoids recursive lock issues by taking a copy of the provider list and he callbacks are made without holding the store lock.
Fixes #14251