diff --git a/probe/endpoint/ebpf.go b/probe/endpoint/ebpf.go index 7b1708952..f69d48df1 100644 --- a/probe/endpoint/ebpf.go +++ b/probe/endpoint/ebpf.go @@ -180,6 +180,10 @@ func (t *EbpfTracker) handleFdInstall(ev tracer.EventType, pid int, fd int) { if !ok { return } + + t.Lock() + defer t.Unlock() + t.openConnections[tuple] = ebpfConnection{ incoming: true, tuple: tuple,