summaryrefslogtreecommitdiffstats
path: root/contrib/ci/sssd.supp
blob: 5d86049b70592636e4014052479a6c4c027fd098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
#
# Valgrind suppression patterns
#
# See an introduction to suppressions in Valgrind manual:
# http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress
#
# Each suppression name here must start with "sssd-" to differentiate it from
# suppressions maintained elsewhere.
#

# talloc-involved leaks
{
   sssd-leak-talloc
   Memcheck:Leak
   ...
   fun:talloc_*
   ...
}
{
   sssd-leak-_talloc
   Memcheck:Leak
   ...
   fun:_talloc_*
   ...
}

# nss3-involved leaks
{
   sssd-leak-nss3
   Memcheck:Leak
   ...
   obj:*/libnss3.so
   ...
}

# nspr4-involved leaks
{
   sssd-leak-nspr4
   Memcheck:Leak
   ...
   obj:*/libnspr4.so
   ...
}
{
   sssd-leak-nspr4-arena-allocate
   Memcheck:Leak
   fun:malloc
   fun:PL_ArenaAllocate
   ...
}

# dbus-involved leaks
{
   sssd-leak-dbus
   Memcheck:Leak
   ...
   obj:*/libdbus-1.so.*
   ...
}

# False positive - pcre_free is called in sss_names_ctx_destructor
{
   sssd-leak-sss_names_pcre2
   Memcheck:Leak
   fun:malloc
   fun:pcre2_compile_8
   fun:sss_regexp_pcre2_compile
   fun:sss_regexp_new
   fun:sss_names_init_from_args
   ...
}

# Ignore tests exiting and abandoning cmocka state, concerns dyndns test
{
   sssd-leak-cmocka-exit
   Memcheck:Leak
   fun:malloc
   fun:_test_malloc
   fun:_run_tests
   fun:main
}

# Stpncpy false positive on RHEL6:
# https://lists.fedorahosted.org/pipermail/sssd-devel/2014-September/021417.html
# possibly related to:
# https://www.mail-archive.com/valgrind-users@lists.sourceforge.net/msg03832.html
{
   sssd-value8-stpncpy
   Memcheck:Value8
   obj:/lib*/libc-2.12.so
   fun:sha512_crypt_r
   ...
}
{
   sssd-cond-stpncpy
   Memcheck:Cond
   obj:/lib*/libc-2.12.so
   fun:sha512_crypt_r
   ...
}

# False positive leak involving RHEL6 glib memory slices
{
   sssd-leak-glib-slices
   Memcheck:Leak
   fun:memalign
   fun:posix_memalign
   obj:/lib*/libglib-2.0.so*
   fun:g_slice_alloc
   fun:g_string_sized_new
   ...
   fun:g_utf8_casefold
   fun:sss_utf8_case_eq
   ...
}

# uninitialised value in libselinux (fixed in fedora >= 21)
{
   libselinux-jump-or-move-depends-on-uninitialised-value-in-selabel_close
   Memcheck:Cond
   obj:/usr/lib64/libselinux.so.1
   fun:selabel_close
   obj:/usr/lib64/libkrb5support.so.0.1
   fun:_dl_fini
   fun:__run_exit_handlers
   fun:exit
   fun:(below main)
}

# long-standing memory leak in popt
{
   popt-memleak-from-poptGetNextOpt-malloc
   Memcheck:Leak
   fun:malloc
   ...
   fun:poptGetNextOpt
   ...
   fun:main
}

# long-standing memory leak in popt
{
   popt-memleak-from-poptGetNextOpt-realloc
   Memcheck:Leak
   fun:realloc
   ...
   fun:poptGetNextOpt
   fun:main
}

# popt was not good with read access either. Applies for popt <= 1.13
{
    popt-suppress-invalid-read
    Memcheck:Addr4
    ...
    fun:poptGetNextOpt
    fun:main
}

# Some tests initialize c-ares context, then fork a child that just exits
# without a proper teardown, which means the ares destructor is not called.
# Suppress those errors.
{
   c-ares-suppress-leak-from-init
   Memcheck:Leak
   ...
   fun:ares_init_options
   fun:recreate_ares_channel
   fun:resolv_init
   ...
   fun:be_res_init
   fun:be_init_failover
   fun:test_ipa_server_create_trusts_setup
}

# Leaks in bash if p11_child returns and error because due to libtool the
# p11_child binary is not called directly during the unit tests but with the
# help of a libtool wrapper
{
   bash-calling-p11-child-returning-error
   Memcheck:Leak
   ...
   fun:malloc
   fun:xmalloc
   ...
   fun:execute_command_internal
   ...
   fun:execute_command_internal
   ...
}

{
   bash-calling-p11-child-returning-error-debian
   Memcheck:Free
   fun:free
   obj:/usr/bin/bash
   fun:run_unwind_frame
   fun:parse_and_execute
   fun:command_substitute
   obj:/usr/bin/bash
   obj:/usr/bin/bash
   ...
}

# Leak in sqlite3 used by the softhsm2 PKCS#11 module
{
   sqlite3.error
   Memcheck:Leak
   ...
   fun:malloc
   obj:/usr/lib64/libsqlite3.so.0.8.6
   ...
}

# Leak found on debian
{
   set-default-locale-error-debian
   Memcheck:Leak
   ...
   fun:malloc
   fun:xmalloc
   fun:set_default_locale
   fun:main
}

# glibc nsswitch (getpwuid) leak
# Seems to be affecting Fedora < F28
{
   glibc-nss-getpwuid
   Memcheck:Leak
   fun:malloc
   ...
   fun:getpwuid_r@@GLIBC_2.2.5
   fun:getpwuid
   ...
   fun:main
}

# Suppress https://bugzilla.redhat.com/show_bug.cgi?id=2065675
{
   dlopen-tests
   Memcheck:Leak
   match-leak-kinds: definite
   fun:malloc
   fun:UnknownInlinedFun
   fun:_dl_find_object_update
   fun:dl_open_worker_begin
   fun:_dl_catch_exception
   fun:dl_open_worker
   fun:_dl_catch_exception
   fun:_dl_open
   fun:dlopen_doit
   fun:_dl_catch_exception
   fun:_dl_catch_error
   fun:_dlerror_run
   fun:dlopen@@GLIBC_2.34
}

# sssd debug initialization leak
{
   sss_debug_backtrace_init-malloc
   Memcheck:Leak
   fun:malloc
   ...
   fun:sss_debug_backtrace_init
   ...
   fun:test_parse_*_args
   ...
   fun:main
}