Commit c6f264b8c4 for openssl.org
commit c6f264b8c4b174a5cb90e194dd653941b903b22e
Author: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Date: Tue Jul 28 11:30:08 2026 +0900
test: add precise Valgrind provider init suppression
The internal provider test can retain provider-init allocations
when the Valgrind suppression workflow intentionally skips OPENSSL_cleanup().
Its stack calls OSSL_provider_init directly from provider_activate, without
the provider_init frame covered by the existing suppression.
Add a second exact suppression for that stack shape instead of broadening the
existing block with an ellipsis.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Wed Jul 29 16:58:17 2026
(Merged from https://github.com/openssl/openssl/pull/32094)
diff --git a/util/valgrind.suppression b/util/valgrind.suppression
index e4f14372d4..619a92844b 100644
--- a/util/valgrind.suppression
+++ b/util/valgrind.suppression
@@ -125,6 +125,16 @@
fun:provider_activate
...
}
+{
+ provider_activate_strdup_without_provider_init
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:malloc
+ ...
+ fun:OSSL_provider_init
+ fun:provider_activate
+ ...
+}
{
false_positive_conditional_check
Memcheck:Cond