** Description changed: [SRU Justification] There is a QAT_SW GCM memory leak in the cleanup function. [Fix] Upstream commit: https://github.com/intel/QAT_Engine/commit/81e75c00de91fa092322b8138729bd0caae39c19 [Test] Install qatengine $ sudo apt install qatengine - Set LD_PRELOAD to libasan + Set LD_PRELOAD to libasan (for Noble, adapt the version to the right value for your release) $ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8.0.0 - Run openssl speed for aes-128-gcm with qatengine + Run openssl speed for aes-128-gcm with qatengine $ openssl speed -engine qatengine -evp aes-128-gcm We will obtain ASAN errors: - ================================================================= ==561328==ERROR: LeakSanitizer: detected memory leaks Direct leak of 96 byte(s) in 6 object(s) allocated from: - #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 - #1 0x7b76e50237c4 in CRYPTO_zalloc (/lib/x86_64-linux-gnu/libcrypto.so.3+0x2237c4) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #2 0x7b76e43adb51 (<unknown module>) - #3 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #4 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #5 0x5d0b9ea18669 (/usr/bin/openssl+0x92669) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #6 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #7 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #8 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 - #9 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 - #10 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 + #1 0x7b76e50237c4 in CRYPTO_zalloc (/lib/x86_64-linux-gnu/libcrypto.so.3+0x2237c4) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #2 0x7b76e43adb51 (<unknown module>) + #3 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #4 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #5 0x5d0b9ea18669 (/usr/bin/openssl+0x92669) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #6 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #7 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #8 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 + #9 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 + #10 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 96 byte(s) in 6 object(s) allocated from: - #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 - #1 0x7b76e50237c4 in CRYPTO_zalloc (/lib/x86_64-linux-gnu/libcrypto.so.3+0x2237c4) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #2 0x7b76e43adb11 (<unknown module>) - #3 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #4 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #5 0x5d0b9ea18669 (/usr/bin/openssl+0x92669) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #6 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #7 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #8 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 - #9 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 - #10 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 + #1 0x7b76e50237c4 in CRYPTO_zalloc (/lib/x86_64-linux-gnu/libcrypto.so.3+0x2237c4) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #2 0x7b76e43adb11 (<unknown module>) + #3 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #4 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #5 0x5d0b9ea18669 (/usr/bin/openssl+0x92669) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #6 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #7 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #8 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 + #9 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 + #10 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 72 byte(s) in 6 object(s) allocated from: - #0 0x7b76e54fc778 in realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 - #1 0x7b76e43ad98c (<unknown module>) - #2 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #3 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #4 0x5d0b9ea186c3 (/usr/bin/openssl+0x926c3) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #5 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #6 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #7 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 - #8 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 - #9 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #0 0x7b76e54fc778 in realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 + #1 0x7b76e43ad98c (<unknown module>) + #2 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #3 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #4 0x5d0b9ea186c3 (/usr/bin/openssl+0x926c3) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #5 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #6 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #7 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 + #8 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 + #9 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 72 byte(s) in 6 object(s) allocated from: - #0 0x7b76e54fc778 in realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 - #1 0x7b76e43ad9ae (<unknown module>) - #2 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #3 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #4 0x5d0b9ea186c3 (/usr/bin/openssl+0x926c3) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #5 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #6 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #7 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 - #8 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 - #9 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #0 0x7b76e54fc778 in realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 + #1 0x7b76e43ad9ae (<unknown module>) + #2 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #3 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #4 0x5d0b9ea186c3 (/usr/bin/openssl+0x926c3) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #5 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #6 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #7 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 + #8 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 + #9 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 40 byte(s) in 1 object(s) allocated from: - #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 - #1 0x7b76e417911c (/usr/lib/debug/.build-id/42/c84c92e6f98126b3e2230ebfdead22c235b667.debug+0x3d611c) - #2 0x7b76e418259a (/usr/lib/debug/.build-id/42/c84c92e6f98126b3e2230ebfdead22c235b667.debug+0x3df59a) - #3 0x7b76e4388059 (<unknown module>) - #4 0x7b76e43897af (<unknown module>) - #5 0x7b76e4fd0b94 (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d0b94) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #6 0x7b76e4fd341a (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d341a) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #7 0x7b76e4fd4062 in ENGINE_set_default_ciphers (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d4062) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #8 0x7b76e4fd092c in ENGINE_set_default (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d092c) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) - #9 0x5d0b9ea2dd85 (/usr/bin/openssl+0xa7d85) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #10 0x5d0b9ea1796f (/usr/bin/openssl+0x9196f) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #11 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #12 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) - #13 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 - #14 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 - #15 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 + #1 0x7b76e417911c (/usr/lib/debug/.build-id/42/c84c92e6f98126b3e2230ebfdead22c235b667.debug+0x3d611c) + #2 0x7b76e418259a (/usr/lib/debug/.build-id/42/c84c92e6f98126b3e2230ebfdead22c235b667.debug+0x3df59a) + #3 0x7b76e4388059 (<unknown module>) + #4 0x7b76e43897af (<unknown module>) + #5 0x7b76e4fd0b94 (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d0b94) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #6 0x7b76e4fd341a (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d341a) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #7 0x7b76e4fd4062 in ENGINE_set_default_ciphers (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d4062) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #8 0x7b76e4fd092c in ENGINE_set_default (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d092c) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) + #9 0x5d0b9ea2dd85 (/usr/bin/openssl+0xa7d85) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #10 0x5d0b9ea1796f (/usr/bin/openssl+0x9196f) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #11 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #12 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) + #13 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 + #14 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 + #15 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) SUMMARY: AddressSanitizer: 376 byte(s) leaked in 25 allocation(s). - [Regression Potential] This change impacts just the cleanup function and there is a very limited impact on the overall functionality of the qatengine. The code is only called on termination, so the core functionality of the code is not altered.
** Description changed: [SRU Justification] There is a QAT_SW GCM memory leak in the cleanup function. [Fix] Upstream commit: https://github.com/intel/QAT_Engine/commit/81e75c00de91fa092322b8138729bd0caae39c19 [Test] - Install qatengine - $ sudo apt install qatengine + Install qatengine abd libasan + $ sudo apt install qatengine libasan8 - Set LD_PRELOAD to libasan (for Noble, adapt the version to the right value for your release) + Set LD_PRELOAD to libasan (for Noble, adapt the version to the right value for your release) $ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8.0.0 Run openssl speed for aes-128-gcm with qatengine $ openssl speed -engine qatengine -evp aes-128-gcm We will obtain ASAN errors: ================================================================= ==561328==ERROR: LeakSanitizer: detected memory leaks Direct leak of 96 byte(s) in 6 object(s) allocated from: #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 #1 0x7b76e50237c4 in CRYPTO_zalloc (/lib/x86_64-linux-gnu/libcrypto.so.3+0x2237c4) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #2 0x7b76e43adb51 (<unknown module>) #3 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #4 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #5 0x5d0b9ea18669 (/usr/bin/openssl+0x92669) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #6 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #7 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #8 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #9 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #10 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 96 byte(s) in 6 object(s) allocated from: #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 #1 0x7b76e50237c4 in CRYPTO_zalloc (/lib/x86_64-linux-gnu/libcrypto.so.3+0x2237c4) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #2 0x7b76e43adb11 (<unknown module>) #3 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #4 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #5 0x5d0b9ea18669 (/usr/bin/openssl+0x92669) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #6 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #7 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #8 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #9 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #10 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 72 byte(s) in 6 object(s) allocated from: #0 0x7b76e54fc778 in realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 #1 0x7b76e43ad98c (<unknown module>) #2 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #3 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #4 0x5d0b9ea186c3 (/usr/bin/openssl+0x926c3) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #5 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #6 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #7 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #8 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #9 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 72 byte(s) in 6 object(s) allocated from: #0 0x7b76e54fc778 in realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 #1 0x7b76e43ad9ae (<unknown module>) #2 0x7b76e4ff8d9d (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f8d9d) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #3 0x7b76e4ff9902 in EVP_CipherInit_ex (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1f9902) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #4 0x5d0b9ea186c3 (/usr/bin/openssl+0x926c3) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #5 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #6 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #7 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #8 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #9 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) Direct leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7b76e54fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69 #1 0x7b76e417911c (/usr/lib/debug/.build-id/42/c84c92e6f98126b3e2230ebfdead22c235b667.debug+0x3d611c) #2 0x7b76e418259a (/usr/lib/debug/.build-id/42/c84c92e6f98126b3e2230ebfdead22c235b667.debug+0x3df59a) #3 0x7b76e4388059 (<unknown module>) #4 0x7b76e43897af (<unknown module>) #5 0x7b76e4fd0b94 (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d0b94) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #6 0x7b76e4fd341a (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d341a) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #7 0x7b76e4fd4062 in ENGINE_set_default_ciphers (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d4062) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #8 0x7b76e4fd092c in ENGINE_set_default (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d092c) (BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1) #9 0x5d0b9ea2dd85 (/usr/bin/openssl+0xa7d85) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #10 0x5d0b9ea1796f (/usr/bin/openssl+0x9196f) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #11 0x5d0b9e9f3d4d (/usr/bin/openssl+0x6dd4d) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #12 0x5d0b9e9ce644 (/usr/bin/openssl+0x48644) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) #13 0x7b76e4a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #14 0x7b76e4a2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #15 0x5d0b9e9ce764 (/usr/bin/openssl+0x48764) (BuildId: caec396e5169ff886cf06edde236a5168a2c3d55) SUMMARY: AddressSanitizer: 376 byte(s) leaked in 25 allocation(s). [Regression Potential] This change impacts just the cleanup function and there is a very limited impact on the overall functionality of the qatengine. The code is only called on termination, so the core functionality of the code is not altered. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2087832 Title: qatengine - fix memory leak To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qatengine/+bug/2087832/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs