[openssl/openssl] 17098c: Make the DRBG seed propagation thread safe
bernd-edlinger
noreply at reply.github.openssl.org
Sat Jul 9 11:19:12 UTC 2022
Branch: refs/heads/OpenSSL_1_1_1-stable
Home: https://github.openssl.org/openssl/openssl
Commit: 17098c116d68b3a01fcb688487dccdc0c10b8f63
https://github.openssl.org/openssl/openssl/commit/17098c116d68b3a01fcb688487dccdc0c10b8f63
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: 2022-07-09 (Sat, 09 Jul 2022)
Changed paths:
M crypto/rand/drbg_lib.c
M crypto/rand/rand_lib.c
Log Message:
-----------
Make the DRBG seed propagation thread safe
Currently there is a race possible because the reseed_counter
of the master drbg may be incremented after the get_entropy call.
Therefore access the parent's reseed_counter while still holding
the rand_drbg_lock.
This improves commit 958fec77928a28350f6af252ac5e8d0e6e081faa
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16900)
More information about the openssl-commits
mailing list