From 28c6290efa3060c7bb62b624324d8fced9ec8faf Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 3 Dec 2024 18:07:02 +0000 Subject: [PATCH 1/3] Remove interruptible tests from TSAN component No effort was made to make the interruptible ECC PSA functions thread safe, as it was presumed that generally if you were using interruptible functionality, then you were unlikely to have mulitple threads. Signed-off-by: Paul Elliott --- tests/scripts/components-sanitizers.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/components-sanitizers.sh b/tests/scripts/components-sanitizers.sh index 2496c3df6e..454d1407f6 100644 --- a/tests/scripts/components-sanitizers.sh +++ b/tests/scripts/components-sanitizers.sh @@ -111,6 +111,8 @@ component_test_tsan () { scripts/config.py set MBEDTLS_THREADING_PTHREAD # Self-tests do not currently use multiple threads. scripts/config.py unset MBEDTLS_SELF_TEST + # Interruptible ECC tests are not thread safe + scripts/config.py unset MBEDTLS_ECP_RESTARTABLE # The deprecated MBEDTLS_PSA_CRYPTO_SE_C interface is not thread safe. scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C From a05b8e2c9a7c989bb1b8fe8b4aad4450b845b843 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 19 Dec 2024 10:58:46 +0000 Subject: [PATCH 2/3] Update framework for negative tests Signed-off-by: Paul Elliott --- framework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework b/framework index 7e6a3d255d..b9065f1717 160000 --- a/framework +++ b/framework @@ -1 +1 @@ -Subproject commit 7e6a3d255dcf1d8756d1535ac26bba8695afac30 +Subproject commit b9065f1717a3e0a24de7a13e298e906aaf44bd52 From b08dc92aaaecf24b2178df412c13960d2803bd9f Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 17 Dec 2024 22:30:20 +0000 Subject: [PATCH 3/3] Update tf-psa-crypto for exercise key tests Signed-off-by: Paul Elliott --- tf-psa-crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf-psa-crypto b/tf-psa-crypto index 26bc88ccd7..9e4ac374e2 160000 --- a/tf-psa-crypto +++ b/tf-psa-crypto @@ -1 +1 @@ -Subproject commit 26bc88ccd708e8f5748b5aa90691980d5bb111c0 +Subproject commit 9e4ac374e2be67892e70b9c653c6872ba8a2031b