diff options
author | Dean Deng <deandeng@google.com> | 2020-09-27 15:32:29 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-27 15:39:53 -0700 |
commit | fa995da840f129d6ced03d66f4f7a747ef4df0bf (patch) | |
tree | 3bb1892ad5f2844c54e9f795310d06820801f1f0 /pkg/sentry/fs/anon/device.go | |
parent | 2a60f9229166effac64653be4f46683ea1a0cd87 (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