Project

General

Profile

Actions

Bug #7891

open

unix-socket: memory leak when client disconnects during rule reload

Added by Victor Julien 5 days ago. Updated about 23 hours ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

If the client loses the connection during a reload, a small amount of memory is leaked.

Sep 10 08:42:18 z230 suricata[1148]: =================================================================
Sep 10 08:42:18 z230 suricata[1148]: ==1148==ERROR: LeakSanitizer: detected memory leaks
Sep 10 08:42:18 z230 suricata[1148]: Indirect leak of 4608 byte(s) in 36 object(s) allocated from:
Sep 10 08:42:18 z230 suricata[1148]:     #0 0x7fdb466b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
Sep 10 08:42:18 z230 suricata[1148]:     #1 0x7fdb4706997d  (/lib/x86_64-linux-gnu/libjansson.so.4+0x297d)
Sep 10 08:42:18 z230 suricata[1148]:     #2 0x7fdb31a6498f  (<unknown module>)
Sep 10 08:42:18 z230 suricata[1148]: Indirect leak of 2592 byte(s) in 36 object(s) allocated from:
Sep 10 08:42:18 z230 suricata[1148]:     #0 0x7fdb466b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
Sep 10 08:42:18 z230 suricata[1148]:     #1 0x7fdb4706bdf0 in json_object (/lib/x86_64-linux-gnu/libjansson.so.4+0x4df0)
Sep 10 08:42:18 z230 suricata[1148]:     #2 0x7fdb31a6498f  (<unknown module>)
Sep 10 08:42:18 z230 suricata[1148]: Indirect leak of 2016 byte(s) in 36 object(s) allocated from:
Sep 10 08:42:18 z230 suricata[1148]:     #0 0x7fdb466b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
Sep 10 08:42:18 z230 suricata[1148]:     #1 0x7fdb4706cdae  (/lib/x86_64-linux-gnu/libjansson.so.4+0x5dae)
Sep 10 08:42:18 z230 suricata[1148]: Indirect leak of 1152 byte(s) in 36 object(s) allocated from:
Sep 10 08:42:18 z230 suricata[1148]:     #0 0x7fdb466b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
Sep 10 08:42:18 z230 suricata[1148]:     #1 0x7fdb4706fa09  (/lib/x86_64-linux-gnu/libjansson.so.4+0x8a09)
Sep 10 08:42:18 z230 suricata[1148]:     #2 0x7fdb31a6498f  (<unknown module>)
Sep 10 08:42:18 z230 suricata[1148]: Indirect leak of 540 byte(s) in 36 object(s) allocated from:
Sep 10 08:42:18 z230 suricata[1148]:     #0 0x7fdb466b4887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
Sep 10 08:42:18 z230 suricata[1148]:     #1 0x7fdb4706b54a  (/lib/x86_64-linux-gnu/libjansson.so.4+0x454a)
Sep 10 08:42:18 z230 suricata[1148]:     #2 0x7fdb31a6498f  (<unknown module>)
Sep 10 08:42:18 z230 suricata[1148]: SUMMARY: AddressSanitizer: 10908 byte(s) leaked in 180 allocation(s).

Subtasks 1 (1 open0 closed)

Bug #7898: unix-socket: memory leak when client disconnects during rule reload (7.0.x backport)AssignedVictor JulienActions
Actions #1

Updated by Victor Julien 1 day ago

  • Label Needs backport to 7.0 added
Actions #2

Updated by OISF Ticketbot 1 day ago

  • Subtask #7898 added
Actions #3

Updated by OISF Ticketbot 1 day ago

  • Label deleted (Needs backport to 7.0)
Actions #4

Updated by Victor Julien about 23 hours ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF