]> 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:37:30 +0000 (10:37 -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 303f481bef1256f61ca578ad65ade9c4f7d44b88..b0278eacd692c58c19f72f5073c201fa87e7baef 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