Bug 1758473
Summary: | AddressSanitizer: heap-use-after-free in log_get_loglist | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Viktor Ashirov <vashirov> |
Component: | 389-ds-base | Assignee: | mreynolds |
Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.2 | CC: | lkrispen, nkinder, pasik, spichugi, tbordaz, vashirov |
Target Milestone: | rc | ||
Target Release: | 8.2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-1.4-8020020200120164339.bf00efc9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-28 16:01:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Viktor Ashirov
2019-10-04 09:08:27 UTC
Upstream ticket https://pagure.io/389-ds-base/issue/50829 Build tested: 389-ds-base-1.4.2.4-6.2asan.el8.x86_64 (additionally contains https://pagure.io/389-ds-base/c/cf849cc to unblock tests) Memory leaks are reported by the disk monitoring test suite: ================================================================= ==9128==ERROR: LeakSanitizer: detected memory leaks Direct leak of 24 byte(s) in 1 object(s) allocated from: #0 0x7fd43c0b2fb8 in __interceptor_realloc (/lib64/libasan.so.5+0xeffb8) #1 0x7fd43bb2d6ff in slapi_ch_realloc (/usr/lib64/dirsrv/libslapd.so.0+0xdb6ff) #2 0x7fd43bb2b6cf in slapi_ch_array_add_ext (/usr/lib64/dirsrv/libslapd.so.0+0xd96cf) #3 0x55e9f5e75420 in disk_mon_add_dir ldap/servers/slapd/daemon.c:258 #4 0x55e9f5e7563d in disk_mon_get_dirs ldap/servers/slapd/daemon.c:285 #5 0x55e9f5e760c9 in disk_monitoring_thread ldap/servers/slapd/daemon.c:453 #6 0x7fd43941a567 (/lib64/libnspr4.so+0x2b567) Indirect leak of 34 byte(s) in 1 object(s) allocated from: #0 0x7fd43bffed70 in strdup (/lib64/libasan.so.5+0x3bd70) #1 0x7fd43bb2d8fd in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdb8fd) #2 0x55e9f5e75229 in disk_mon_get_mount_point ldap/servers/slapd/daemon.c:224 #3 0x55e9f5e753a6 in disk_mon_add_dir ldap/servers/slapd/daemon.c:251 #4 0x55e9f5e7563d in disk_mon_get_dirs ldap/servers/slapd/daemon.c:285 #5 0x55e9f5e760c9 in disk_monitoring_thread ldap/servers/slapd/daemon.c:453 #6 0x7fd43941a567 (/lib64/libnspr4.so+0x2b567) Indirect leak of 2 byte(s) in 1 object(s) allocated from: #0 0x7fd43bffed70 in strdup (/lib64/libasan.so.5+0x3bd70) #1 0x7fd43bb2d8fd in slapi_ch_strdup (/usr/lib64/dirsrv/libslapd.so.0+0xdb8fd) #2 0x55e9f5e75229 in disk_mon_get_mount_point ldap/servers/slapd/daemon.c:224 #3 0x55e9f5e753a6 in disk_mon_add_dir ldap/servers/slapd/daemon.c:251 #4 0x55e9f5e755d0 in disk_mon_get_dirs ldap/servers/slapd/daemon.c:277 #5 0x55e9f5e760c9 in disk_monitoring_thread ldap/servers/slapd/daemon.c:453 #6 0x7fd43941a567 (/lib64/libnspr4.so+0x2b567) SUMMARY: AddressSanitizer: 60 byte(s) leaked in 3 allocation(s). Moving to ASSIGNED. The leaks you found are a different issue. This bug addressed the heap-use-after-free issue. I filed a separate bug for memory leaks: https://bugzilla.redhat.com/show_bug.cgi?id=1800529 Moving this one to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1703 |