]> 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:22:57 +0000 (08:22 -0400)
commit82f7dbbf381b4b14116e2e20e249b6353176e267
tree540b8705332423b36872d9b08f831aaf09fa19cd
parent7c9829053de1918ab7cee0aa2d5178b95ab0a300
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