mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
prevent concurrent map access in ebpf fd install event handler
which presumably could cause havoc
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user