diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-09-18 17:12:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-18 17:12:05 +0000 |
commit | 7d824eb860280a47646b73f71af2811f7e2c0d55 (patch) | |
tree | b1b8b679688fbb51361646bb6f8a11793bcc455e /pkg/sentry/syscalls/linux | |
parent | 246dfda4b850640fedc68d9038423348bab305c1 (diff) | |
parent | ef7d9a6fcdaaa77808c6607141e1a55c0ff92a7f (diff) |
Merge release-20200907.0-140-gef7d9a6fc (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux')
-rw-r--r-- | pkg/sentry/syscalls/linux/linux_abi_autogen_unsafe.go | 10 | ||||
-rw-r--r-- | pkg/sentry/syscalls/linux/sys_sched.go | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/sentry/syscalls/linux/linux_abi_autogen_unsafe.go b/pkg/sentry/syscalls/linux/linux_abi_autogen_unsafe.go index 55b5bc248..956643160 100644 --- a/pkg/sentry/syscalls/linux/linux_abi_autogen_unsafe.go +++ b/pkg/sentry/syscalls/linux/linux_abi_autogen_unsafe.go @@ -272,19 +272,19 @@ func (r *rlimit64) WriteTo(writer io.Writer) (int64, error) { // SizeBytes implements marshal.Marshallable.SizeBytes. func (s *SchedParam) SizeBytes() int { - return 8 + return 4 } // MarshalBytes implements marshal.Marshallable.MarshalBytes. func (s *SchedParam) MarshalBytes(dst []byte) { - usermem.ByteOrder.PutUint64(dst[:8], uint64(s.schedPriority)) - dst = dst[8:] + usermem.ByteOrder.PutUint32(dst[:4], uint32(s.schedPriority)) + dst = dst[4:] } // UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes. func (s *SchedParam) UnmarshalBytes(src []byte) { - s.schedPriority = int64(usermem.ByteOrder.Uint64(src[:8])) - src = src[8:] + s.schedPriority = int32(usermem.ByteOrder.Uint32(src[:4])) + src = src[4:] } // Packed implements marshal.Marshallable.Packed. diff --git a/pkg/sentry/syscalls/linux/sys_sched.go b/pkg/sentry/syscalls/linux/sys_sched.go index cd6f4dd94..bfcf44b6f 100644 --- a/pkg/sentry/syscalls/linux/sys_sched.go +++ b/pkg/sentry/syscalls/linux/sys_sched.go @@ -30,7 +30,7 @@ const ( // // +marshal type SchedParam struct { - schedPriority int64 + schedPriority int32 } // SchedGetparam implements linux syscall sched_getparam(2). |