]> 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:23:10 +0000 (08:23 -0400)
commit9cb6508f29157a5e33179a963e81c7b2fa803f42
treec087a905693fed500f963198bf1ae04faf02973d
parentebd747a4316360c299562dd82a46511972229a34
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)

(cherry picked from commit 4a1a7fe5ce088964010779e1f5a90560903ecc76)
crypto/threads_pthread.c