summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/chmod.cc
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-07-22 13:27:13 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-22 13:28:16 -0700
commitec906e46c0f99ab4d134c1d7bd84b48ea0a78488 (patch)
tree87566b60696581390e2064994c9ef72668d162a0 /test/syscalls/linux/chmod.cc
parenta0a86bbb8250311211161337c0f9530b945450a3 (diff)
kvm: fix race between machine.Put and machine.Get
m.available.Signal() has to be called under m.mu.RLock, otherwise it can race with machine.Get: m.Get | m.Put ------------------------------------- m.mu.Lock() | Seatching available vcpu| | m.available.Signal() m.available.Wait | PiperOrigin-RevId: 259394051
Diffstat (limited to 'test/syscalls/linux/chmod.cc')
0 files changed, 0 insertions, 0 deletions