Skip to content

Commit 8a4f098

Browse files
committed
Suppressing memory leaks procuded by LeakSanitizer
These memory leaks are a known issue in libp11: From Timo Teras: The relevant code is: https://github.com/OpenSC/libp11/blob/master/src/eng_front.c#L114-L123 The authors of libp11 did not get the locking right and decided that having intentional memory leaks is better than risking a deadlock. The leak logs indicate that it is the cached structures that should have been freed. These are not a run-time leaks, so suppressing these leaks is probably okay.
1 parent eba6666 commit 8a4f098

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ gcc:asan:
937937
system:gcc:asan:
938938
variables:
939939
SOFTHSM2_MODULE: "/lib64/libsofthsm2.so"
940+
LSAN_OPTIONS: "suppressions=/builds/isc-projects/bind9/suppr-lsan.txt"
940941
<<: *fedora_35_amd64_image
941942
<<: *system_test_job
942943
needs:

suppr-lsan.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
# These are known leaks in libp11.
13+
leak:BN_MONT_CTX_new
14+
leak:C_LoadModule
15+
leak:ctx_new
16+
leak:ctx_try_load_object
17+
leak:dlfcn_name_converter
18+
leak:EC_GROUP_set_seed
19+
leak:CRYPTO_strdup
20+
leak:CRYPTO_zalloc
21+
leak:pkcs11_check_token
22+
leak:pkcs11_CTX_new
23+
leak:pkcs11_enumerate_slots
24+
leak:pkcs11_getattr_alloc
25+
leak:pkcs11_init_key
26+
leak:pkcs11_strdup

0 commit comments

Comments
 (0)