I tested the fix on Ubuntu Noble 24.04 by installing the package from
the PPA:

$ apt policy qatengine
qatengine:
  Installed: 1.5.0-0ubuntu3.1~ppa2
  Candidate: 1.5.0-0ubuntu3.1~ppa2
  Version table:
 *** 1.5.0-0ubuntu3.1~ppa2 500
        500 https://ppa.launchpadcontent.net/hectorcao/lp2087832/ubuntu 
noble/main amd64 Packages
        100 /var/lib/dpkg/status
     1.5.0-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages

And run the openssl speed command, I observed that most of the leaks are
disappeared, only 1 remaining leak:

=================================================================
==569189==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x72d3672fd9c7 in malloc 
../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x72d36617911c  (/usr/lib/x86_64-linux-gnu/libcrypto.so.3+0x4411c)
    #2 0x72d36618259a  (/usr/lib/x86_64-linux-gnu/libc.so.6+0x1d59a)
    #3 0x72d366388059  (<unknown module>)
    #4 0x72d3663897af  (<unknown module>)
    #5 0x72d366dd0b94  (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d0b94) 
(BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1)
    #6 0x72d366dd341a  (/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d341a) 
(BuildId: c503df82cf13681b2f81e1097e857e3fc50679b1)
    #7 0x72d366dd4062 in ENGINE_set_default_ciphers 
(/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d4062) (BuildId: 
c503df82cf13681b2f81e1097e857e3fc50679b1)
    #8 0x72d366dd092c in ENGINE_set_default 
(/lib/x86_64-linux-gnu/libcrypto.so.3+0x1d092c) (BuildId: 
c503df82cf13681b2f81e1097e857e3fc50679b1)
    #9 0x5f74af64ed85  (/usr/bin/openssl+0xa7d85) (BuildId: 
caec396e5169ff886cf06edde236a5168a2c3d55)
    #10 0x5f74af63896f  (/usr/bin/openssl+0x9196f) (BuildId: 
caec396e5169ff886cf06edde236a5168a2c3d55)
    #11 0x5f74af614d4d  (/usr/bin/openssl+0x6dd4d) (BuildId: 
caec396e5169ff886cf06edde236a5168a2c3d55)
    #12 0x5f74af5ef644  (/usr/bin/openssl+0x48644) (BuildId: 
caec396e5169ff886cf06edde236a5168a2c3d55)
    #13 0x72d36682a1c9 in __libc_start_call_main 
../sysdeps/nptl/libc_start_call_main.h:58
    #14 0x72d36682a28a in __libc_start_main_impl ../csu/libc-start.c:360
    #15 0x5f74af5ef764  (/usr/bin/openssl+0x48764) (BuildId: 
caec396e5169ff886cf06edde236a5168a2c3d55)

SUMMARY: AddressSanitizer: 40 byte(s) leaked in 1 allocation(s).

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to