]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
disable rwlocks on nonstop klt model
authorNeil Horman <nhorman@openssl.org>
Mon, 29 Jul 2024 19:17:07 +0000 (15:17 -0400)
committerNeil Horman <nhorman@openssl.org>
Wed, 24 Sep 2025 14:32:59 +0000 (10:32 -0400)
It appears nonstops new threading model defines some level of rwlock
pthread api, but its not working properly.  Disable rwlocks for
_KLT_MODEL_ for now

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28635)

(cherry picked from commit d8ecbb37dcfcee24c4f6c8e46e1e0caefb940187)

crypto/threads_pthread.c

index 349b1c0f1a4b0a50d28b4b44a5b6db938ed537c1..8d85120eced7b67f7205b477a8ace8194481f190 100644 (file)
 
 # include <assert.h>
 
-# ifdef PTHREAD_RWLOCK_INITIALIZER
+/*
+ * The Non-Stop KLT thread model currently seems broken in its rwlock
+ * implementation
+ */
+# if defined(PTHREAD_RWLOCK_INITIALIZER) && !defined(_KLT_MODEL_)
 #  define USE_RWLOCK
 # endif