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

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


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: f5690fecb3b0db604e4826323ea5a5e2c403e62f
      https://github.com/openssl/openssl/commit/f5690fecb3b0db604e4826323ea5a5e2c403e62f
  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