diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-25 00:52:44 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-25 00:52:44 +0000 |
commit | fa64387eb7da8f6f44e2979b8a98ae8a4403bf15 (patch) | |
tree | d593d5ed31a529eb374a527cec410c050ad4cce8 /pkg/sentry/fs/splice.go | |
parent | d6dd8187a44b3a66c2721255e63f96d0da14be90 (diff) | |
parent | e9ea7230f7dc70d3e1bb5ae32b6927209cafb465 (diff) |
Merge e9ea7230 (automated)
Diffstat (limited to 'pkg/sentry/fs/splice.go')
-rw-r--r-- | pkg/sentry/fs/splice.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/fs/splice.go b/pkg/sentry/fs/splice.go index 978dc679b..eed1c2854 100644 --- a/pkg/sentry/fs/splice.go +++ b/pkg/sentry/fs/splice.go @@ -88,6 +88,8 @@ func Splice(ctx context.Context, dst *File, src *File, opts SpliceOpts) (int64, // Check append-only mode and the limit. if !dstPipe { + unlock := dst.Dirent.Inode.lockAppendMu(dst.Flags().Append) + defer unlock() if dst.Flags().Append { if opts.DstOffset { // We need to acquire the lock. |