Actions
Bug #6044
closeddetect: multi-tenancy leaks memory if more than 1 tenant registered
Affected Versions:
Effort:
Difficulty:
Label:
Description
================================================================= ==2442924==ERROR: LeakSanitizer: detected memory leaks Direct leak of 24 byte(s) in 1 object(s) allocated from: #0 0x55cc97c9b098 in __interceptor_calloc (/home/victor/sync/devel/eidps/src/suricata+0x320098) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76) #1 0x55cc97d2a8a9 in SCCallocFunc /home/victor/devel/eidps/src/util-mem.c:60:20 #2 0x55cc982be663 in VarNameStoreInit /home/victor/devel/eidps/src/util-var-name.c:138:23 #3 0x55cc982be041 in VarNameStoreSetupStaging /home/victor/devel/eidps/src/util-var-name.c:262:24 #4 0x55cc97e8a001 in DetectEngineCtxInitReal /home/victor/devel/eidps/src/detect-engine.c:2528:5 #5 0x55cc97e8a16f in DetectEngineCtxInitWithPrefix /home/victor/devel/eidps/src/detect-engine.c:2559:16 #6 0x55cc97e9cf3b in DetectEngineMultiTenantLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3830:14 #7 0x55cc97e9cbbb in DetectLoaderFuncLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3923:9 #8 0x55cc97eb5cb3 in DetectLoader /home/victor/sync/devel/eidps/src/detect-engine-loader.c:602:21 #9 0x55cc97cf8048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9 #10 0x7f160bfcdb42 in start_thread nptl/pthread_create.c:442:8 Indirect leak of 32768 byte(s) in 1 object(s) allocated from: #0 0x55cc97c9aeae in malloc (/home/victor/sync/devel/eidps/src/suricata+0x31feae) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76) #1 0x55cc97d2a561 in SCMallocFunc /home/victor/devel/eidps/src/util-mem.c:31:20 #2 0x55cc9820dbfb in HashListTableInit /home/victor/devel/eidps/src/util-hashlist.c:69:17 #3 0x55cc982be73f in VarNameStoreInit /home/victor/devel/eidps/src/util-var-name.c:148:14 #4 0x55cc982be041 in VarNameStoreSetupStaging /home/victor/devel/eidps/src/util-var-name.c:262:24 #5 0x55cc97e8a001 in DetectEngineCtxInitReal /home/victor/devel/eidps/src/detect-engine.c:2528:5 #6 0x55cc97e8a16f in DetectEngineCtxInitWithPrefix /home/victor/devel/eidps/src/detect-engine.c:2559:16 #7 0x55cc97e9cf3b in DetectEngineMultiTenantLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3830:14 #8 0x55cc97e9cbbb in DetectLoaderFuncLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3923:9 #9 0x55cc97eb5cb3 in DetectLoader /home/victor/sync/devel/eidps/src/detect-engine-loader.c:602:21 #10 0x55cc97cf8048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9 #11 0x7f160bfcdb42 in start_thread nptl/pthread_create.c:442:8 Indirect leak of 32768 byte(s) in 1 object(s) allocated from: #0 0x55cc97c9aeae in malloc (/home/victor/sync/devel/eidps/src/suricata+0x31feae) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76) #1 0x55cc97d2a561 in SCMallocFunc /home/victor/devel/eidps/src/util-mem.c:31:20 #2 0x55cc9820dbfb in HashListTableInit /home/victor/devel/eidps/src/util-hashlist.c:69:17 #3 0x55cc982be6a5 in VarNameStoreInit /home/victor/devel/eidps/src/util-var-name.c:142:16 #4 0x55cc982be041 in VarNameStoreSetupStaging /home/victor/devel/eidps/src/util-var-name.c:262:24 #5 0x55cc97e8a001 in DetectEngineCtxInitReal /home/victor/devel/eidps/src/detect-engine.c:2528:5 #6 0x55cc97e8a16f in DetectEngineCtxInitWithPrefix /home/victor/devel/eidps/src/detect-engine.c:2559:16 #7 0x55cc97e9cf3b in DetectEngineMultiTenantLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3830:14 #8 0x55cc97e9cbbb in DetectLoaderFuncLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3923:9 #9 0x55cc97eb5cb3 in DetectLoader /home/victor/sync/devel/eidps/src/detect-engine-loader.c:602:21 #10 0x55cc97cf8048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9 #11 0x7f160bfcdb42 in start_thread nptl/pthread_create.c:442:8 Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 0x55cc97c9aeae in malloc (/home/victor/sync/devel/eidps/src/suricata+0x31feae) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76) #1 0x55cc97d2a561 in SCMallocFunc /home/victor/devel/eidps/src/util-mem.c:31:20 #2 0x55cc9820d99c in HashListTableInit /home/victor/devel/eidps/src/util-hashlist.c:53:10 #3 0x55cc982be6a5 in VarNameStoreInit /home/victor/devel/eidps/src/util-var-name.c:142:16 #4 0x55cc982be041 in VarNameStoreSetupStaging /home/victor/devel/eidps/src/util-var-name.c:262:24 #5 0x55cc97e8a001 in DetectEngineCtxInitReal /home/victor/devel/eidps/src/detect-engine.c:2528:5 #6 0x55cc97e8a16f in DetectEngineCtxInitWithPrefix /home/victor/devel/eidps/src/detect-engine.c:2559:16 #7 0x55cc97e9cf3b in DetectEngineMultiTenantLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3830:14 #8 0x55cc97e9cbbb in DetectLoaderFuncLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3923:9 #9 0x55cc97eb5cb3 in DetectLoader /home/victor/sync/devel/eidps/src/detect-engine-loader.c:602:21 #10 0x55cc97cf8048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9 #11 0x7f160bfcdb42 in start_thread nptl/pthread_create.c:442:8 Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 0x55cc97c9aeae in malloc (/home/victor/sync/devel/eidps/src/suricata+0x31feae) (BuildId: 3286a1c86e92a05482cae6160adc262c526a4f76) #1 0x55cc97d2a561 in SCMallocFunc /home/victor/devel/eidps/src/util-mem.c:31:20 #2 0x55cc9820d99c in HashListTableInit /home/victor/devel/eidps/src/util-hashlist.c:53:10 #3 0x55cc982be73f in VarNameStoreInit /home/victor/devel/eidps/src/util-var-name.c:148:14 #4 0x55cc982be041 in VarNameStoreSetupStaging /home/victor/devel/eidps/src/util-var-name.c:262:24 #5 0x55cc97e8a001 in DetectEngineCtxInitReal /home/victor/devel/eidps/src/detect-engine.c:2528:5 #6 0x55cc97e8a16f in DetectEngineCtxInitWithPrefix /home/victor/devel/eidps/src/detect-engine.c:2559:16 #7 0x55cc97e9cf3b in DetectEngineMultiTenantLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3830:14 #8 0x55cc97e9cbbb in DetectLoaderFuncLoadTenant /home/victor/devel/eidps/src/detect-engine.c:3923:9 #9 0x55cc97eb5cb3 in DetectLoader /home/victor/sync/devel/eidps/src/detect-engine-loader.c:602:21 #10 0x55cc97cf8048 in TmThreadsManagement /home/victor/devel/eidps/src/tm-threads.c:552:9 #11 0x7f160bfcdb42 in start_thread nptl/pthread_create.c:442:8 SUMMARY: AddressSanitizer: 65672 byte(s) leaked in 5 allocation(s).
Updated by Juliana Fajardini Reichow over 1 year ago
- Target version changed from 7.0.0-rc2 to 7.0.0
Updated by Juliana Fajardini Reichow over 1 year ago
- Assignee changed from OISF Dev to Jeff Lucovsky
- Target version changed from 7.0.0 to 7.0.1
Updated by Jeff Lucovsky over 1 year ago
I wasn't able to reproduce this with
- 3 tenants, each with a different rules file
- Live traffic using af-packet
- vlan selectors
@Victor Julien What MT configuration settings /ruleset were in use when this occurred?
Updated by Victor Julien over 1 year ago
- Status changed from New to In Progress
- Assignee changed from Jeff Lucovsky to Victor Julien
Updated by Victor Julien over 1 year ago
- Related to Bug #6201: multi-tenancy: crash under test mode when tenant signature load fails added
Updated by Victor Julien over 1 year ago
- Status changed from In Progress to In Review
Updated by Victor Julien over 1 year ago
- Status changed from In Review to Resolved
Updated by Victor Julien about 1 year ago
- Status changed from Resolved to Closed
Actions