]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a memory order issue with weakly ordered systems
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 3 Mar 2025 22:46:12 +0000 (23:46 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Mar 2025 12:01:26 +0000 (08:01 -0400)
commit4a1a7fe5ce088964010779e1f5a90560903ecc76
treef17f5270a2e0a25896f65156b2698b845623aefe
parent5db7b99914c9a13798e9d7783a02e68ae7e411d8
Fix a memory order issue with weakly ordered systems

this adds a dummy atomic release operation to update_qp, which
should make sure that the new value of reader_idx is visible in
get_hold_current_qp, directly after incrementing the users count.

Fixes: #26875
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26964)
crypto/threads_pthread.c