[openssl/openssl] 7ab698: fips: use memory ordering rather than locks

Pauli noreply at github.com
Wed Jun 14 06:53:07 UTC 2023

  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 7ab6987d3ca869a5313fcb3160fb4adffec4e82d
  Author: Pauli <pauli at openssl.org>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M providers/fips/self_test.c

  Log Message:
  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 at oracle.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21187)

(cherry picked from commit 8e9ca334528e0a923c4deb0af250a60510974be0)

More information about the openssl-commits mailing list