summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/anon/device.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-09-27 15:32:29 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-27 15:39:53 -0700
commitfa995da840f129d6ced03d66f4f7a747ef4df0bf (patch)
tree3bb1892ad5f2844c54e9f795310d06820801f1f0 /pkg/sentry/fs/anon/device.go
parent2a60f9229166effac64653be4f46683ea1a0cd87 (diff)
Fix kernfs race condition.
Do not release dirMu between checking whether to create a child and actually inserting it. Also fixes a bug in fusefs which was causing it to deadlock under the new lock ordering. We do not need to call kernfs.Dentry.InsertChild from newEntry because it will always be called at the kernfs filesystem layer. Updates #1193. PiperOrigin-RevId: 334049264
Diffstat (limited to 'pkg/sentry/fs/anon/device.go')
0 files changed, 0 insertions, 0 deletions