From 0c479705ba8a8793e3f382af4480fb8db9f46ebc Mon Sep 17 00:00:00 2001 From: Tomer Cabouly Date: Mon, 20 Oct 2025 09:48:30 +0000 Subject: [PATCH] issue: 4670088 add valgrind suppression Add a new Valgrind suppression rule to handle false positive memory leak reports from rdma_create_event_channel() in librdmacm. The suppression matches the specific call stack from socket() through the global constructors and into rdma_create_event_channel(). Signed-off-by: Tomer Cabouly --- contrib/valgrind/valgrind_vma.supp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/contrib/valgrind/valgrind_vma.supp b/contrib/valgrind/valgrind_vma.supp index 1fac86aa16..fe764b84a9 100644 --- a/contrib/valgrind/valgrind_vma.supp +++ b/contrib/valgrind/valgrind_vma.supp @@ -87,6 +87,23 @@ fun:rdma_create_event_channel fun:_ZN15neigh_table_mgrC1Ev } +{ + rdma_create_event_channel_fp_leak + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + obj:/usr/lib/x86_64-linux-gnu/librdmacm.so.1.3.54.0 + obj:/usr/lib/x86_64-linux-gnu/librdmacm.so.1.3.54.0 + obj:/usr/lib/x86_64-linux-gnu/librdmacm.so.1.3.54.0 + fun:rdma_create_event_channel + fun:_ZN15neigh_table_mgrC1Ev + fun:do_global_ctors_helper + fun:_Z15do_global_ctorsv + fun:socket_internal + fun:socket + fun:_Z7bringupPKi + fun:main +} # false positive verbs { libibverbs Param ibv_exp_cmd_create_qp