Always ensure we hold ctx->lock when calling CRYPTO_get_ex_data()
authorMatt Caswell <matt@openssl.org>
Tue, 26 Jan 2021 17:00:25 +0000 (17:00 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 2 Feb 2021 12:21:21 +0000 (12:21 +0000)
commit04b9435a991585d0f9a775a203cc3986d4872a6e
tree745fdbd73fab4b9c3bfb27af89e276ea46710f63
parentb233ea82765e80038e4884564153f9c8543d9396
Always ensure we hold ctx->lock when calling CRYPTO_get_ex_data()

Otherwise we can get data races.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13987)
crypto/context.c
crypto/ex_data.c
include/crypto/cryptlib.h