Hello!
For context, I’m using MbedTLS 3.6.5 with PSA crypto (I have MBEDTLS_USE_PSA_CRYPTO defined). I was having a problem with mbedtls_mutex_free being called on an already freed mutex. When I looked into it I found that psa_hash_abort is the one doing the second free that shouldn’t happen (the first free is also done by the same function). Based on the definition I expect the free to happen only once even for successive calls to psa_hash_abort.
My question is am I having a race condition due to id here not being thread safe or is there something I’m missing?
Clarification: mbedtls_mutex_free is called by psa_driver_wrapper_hash_abort.
