]> git.ipfire.org Git - thirdparty/openssl.git/commit
fips: use memory ordering rather than locks
authorPauli <pauli@openssl.org>
Tue, 13 Jun 2023 01:39:23 +0000 (11:39 +1000)
committerPauli <pauli@openssl.org>
Wed, 14 Jun 2023 06:44:53 +0000 (16:44 +1000)
commit8e9ca334528e0a923c4deb0af250a60510974be0
tree65a50a0006ae8997ceb0d7a2bad86c3777012121
parentedd5b9d708d03ce1bdc1cbfc026ccc9183d586ad
fips: use memory ordering rather than locks

The FIPS provider accesses it's current state under lock.
This is overkill, little or no synchronisation is actually required in
practice (because it's essentially a read only setting).  Switch to using
TSAN operations in preference.

Fixes #21179

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21187)
providers/fips/self_test.c