diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-11-20 15:07:12 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-11-20 15:07:56 -0800 |
commit | 8b314b0bf402da58f90ccaac852a880d375f0885 (patch) | |
tree | ecda63a0e2b2329c4967be7d8af560bd4605a496 /pkg/sentry/kernel/task.go | |
parent | 03c1eb78b583ca3247f299889146675311727325 (diff) |
Fix recursive read lock taken on TaskSet
SyncSyscallFiltersToThreadGroup and Task.TheadID() both acquired TaskSet RWLock
in R mode and could deadlock if a writer comes in between.
PiperOrigin-RevId: 222313551
Change-Id: I4221057d8d46fec544cbfa55765c9a284fe7ebfa
Diffstat (limited to 'pkg/sentry/kernel/task.go')
-rw-r--r-- | pkg/sentry/kernel/task.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go index 73ba8bee9..2982bc5d1 100644 --- a/pkg/sentry/kernel/task.go +++ b/pkg/sentry/kernel/task.go @@ -392,7 +392,7 @@ type Task struct { // syscallFilters is all seccomp-bpf syscall filters applicable to the // task, in the order in which they were installed. The type of the atomic - // is []bpf.Program. Writing needs to be protected by mu. + // is []bpf.Program. Writing needs to be protected by the signal mutex. // // syscallFilters is owned by the task goroutine. syscallFilters atomic.Value `state:".([]bpf.Program)"` |