diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-25 23:54:37 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-25 23:54:37 +0000 |
commit | 8cece45a9d38f4fde3d9d17ca3dfb6464c26dad0 (patch) | |
tree | 875e15e7e231bfcf409f322a082d9c761c86d6c9 /pkg/sentry/kernel | |
parent | 2769d61f3170a59cfadda760eb65dc98a8e29edc (diff) | |
parent | 79bc446facf3d6920853c4cf35e72d25dd4c1011 (diff) |
Merge release-20210315.0-27-g79bc446fa (automated)
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/ptrace.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/kernel/ptrace.go b/pkg/sentry/kernel/ptrace.go index c3980350a..f5a60e749 100644 --- a/pkg/sentry/kernel/ptrace.go +++ b/pkg/sentry/kernel/ptrace.go @@ -770,8 +770,8 @@ func (t *Task) ptraceClone(kind ptraceCloneKind, child *Task, opts *CloneOptions if !t.hasTracer() { return false } - t.tg.pidns.owner.mu.RLock() - defer t.tg.pidns.owner.mu.RUnlock() + t.tg.pidns.owner.mu.Lock() + defer t.tg.pidns.owner.mu.Unlock() event := false if !opts.Untraced { switch kind { |