summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/task_clone.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-30 20:57:55 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-30 20:57:55 +0000
commitfb1c8c76ad115e2c6ca370b0fc392d7f4c601a31 (patch)
treef35403014d7363bd44c772e9d1202eaba58c2390 /pkg/sentry/kernel/task_clone.go
parent27c7f1c9cba567579fb7e7065d2fb86157d88ba3 (diff)
parent9ad864628dc3f36a24a5eb6a51d7e13471598517 (diff)
Merge release-20201019.0-111-g9ad864628 (automated)
Diffstat (limited to 'pkg/sentry/kernel/task_clone.go')
-rw-r--r--pkg/sentry/kernel/task_clone.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/task_clone.go b/pkg/sentry/kernel/task_clone.go
index 682080c14..527344162 100644
--- a/pkg/sentry/kernel/task_clone.go
+++ b/pkg/sentry/kernel/task_clone.go
@@ -355,7 +355,7 @@ func (t *Task) Clone(opts *CloneOptions) (ThreadID, *SyscallControl, error) {
}
if opts.ChildSetTID {
ctid := nt.ThreadID()
- ctid.CopyOut(nt.AsCopyContext(usermem.IOOpts{AddressSpaceActive: false}), opts.ChildTID)
+ ctid.CopyOut(nt.CopyContext(t, usermem.IOOpts{AddressSpaceActive: false}), opts.ChildTID)
}
ntid := t.tg.pidns.IDOfTask(nt)
if opts.ParentSetTID {