summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/ptrace_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/ptrace_amd64.go')
-rw-r--r--pkg/sentry/kernel/ptrace_amd64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/ptrace_amd64.go b/pkg/sentry/kernel/ptrace_amd64.go
index cef1276ec..609ad3941 100644
--- a/pkg/sentry/kernel/ptrace_amd64.go
+++ b/pkg/sentry/kernel/ptrace_amd64.go
@@ -30,7 +30,7 @@ func (t *Task) ptraceArch(target *Task, req int64, addr, data usermem.Addr) erro
if err != nil {
return err
}
- _, err = t.CopyOut(data, n)
+ _, err = n.CopyOut(t, data)
return err
case linux.PTRACE_POKEUSR: // aka PTRACE_POKEUSER