From 12732fe5d71feab44633839bfc711677d9ce1cfe Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Wed, 20 Dec 2023 14:50:33 +0000 Subject: [PATCH] fix(userspace/libsinsp): do not suppress zero ptids Signed-off-by: Jason Dellaluce --- userspace/libsinsp/sinsp_suppress.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/userspace/libsinsp/sinsp_suppress.cpp b/userspace/libsinsp/sinsp_suppress.cpp index e21d9c78bf..a242bfb15a 100644 --- a/userspace/libsinsp/sinsp_suppress.cpp +++ b/userspace/libsinsp/sinsp_suppress.cpp @@ -145,6 +145,10 @@ int32_t libsinsp::sinsp_suppress::process_event(scap_evt *e, uint16_t devid) bool libsinsp::sinsp_suppress::is_suppressed_tid(uint64_t tid, uint16_t devid) const { + if (tid == 0) + { + return false; + } if(devid != UINT16_MAX && cache_slot(devid) == tid) { return true;