summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-05-07 00:24:24 +0000
committergVisor bot <gvisor-bot@google.com>2020-05-07 00:24:24 +0000
commit2205546919553f7f66caa0ee32f8088296dd25be (patch)
tree9673a1a09ef1828264a7377215b12263ade22a36
parentfec72f460c86236f4b84fbbd550da1c76dbe9bf1 (diff)
parentfeece24bf559506f1fdb8cd91ca939b82afdc583 (diff)
Merge release-20200422.0-41-gfeece24 (automated)
-rwxr-xr-xpkg/sentry/arch/arch_aarch64.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/arch/arch_aarch64.go b/pkg/sentry/arch/arch_aarch64.go
index 529980267..343f81f59 100755
--- a/pkg/sentry/arch/arch_aarch64.go
+++ b/pkg/sentry/arch/arch_aarch64.go
@@ -274,7 +274,7 @@ const (
func (s *State) PtraceGetRegSet(regset uintptr, dst io.Writer, maxlen int) (int, error) {
switch regset {
case _NT_PRSTATUS:
- if maxlen < ptraceRegsSize {
+ if maxlen < registersSize {
return 0, syserror.EFAULT
}
return s.PtraceGetRegs(dst)
@@ -287,7 +287,7 @@ func (s *State) PtraceGetRegSet(regset uintptr, dst io.Writer, maxlen int) (int,
func (s *State) PtraceSetRegSet(regset uintptr, src io.Reader, maxlen int) (int, error) {
switch regset {
case _NT_PRSTATUS:
- if maxlen < ptraceRegsSize {
+ if maxlen < registersSize {
return 0, syserror.EFAULT
}
return s.PtraceSetRegs(src)