summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-11-08 19:40:31 +0000
committergVisor bot <gvisor-bot@google.com>2021-11-08 19:40:31 +0000
commit99b9b89692af3398230ec5bea3d5f90fc7e429c2 (patch)
tree19879d7ecfacf7e84d00f795f85fcf435f136e54 /pkg/sentry
parent561a12c8513f713502e9eb007cfaa764e9c64106 (diff)
parent49d23beb283d0306c9ccf5300e73517153ddd3c2 (diff)
Merge release-20211101.0-25-g49d23beb2 (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go8
-rw-r--r--pkg/sentry/kernel/kernel_abi_autogen_unsafe.go4
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go b/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go
index e5fe5f599..9ad134451 100644
--- a/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go
+++ b/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go
@@ -96,7 +96,7 @@ func (gid *GID) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)
}
// WriteTo implements io.WriterTo.WriteTo.
-func (gid *GID) WriteTo(w io.Writer) (int64, error) {
+func (gid *GID) WriteTo(writer io.Writer) (int64, error) {
// Construct a slice backed by dst's underlying memory.
var buf []byte
hdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))
@@ -104,7 +104,7 @@ func (gid *GID) WriteTo(w io.Writer) (int64, error) {
hdr.Len = gid.SizeBytes()
hdr.Cap = gid.SizeBytes()
- length, err := w.Write(buf)
+ length, err := writer.Write(buf)
// Since we bypassed the compiler's escape analysis, indicate that gid
// must live until the use above.
runtime.KeepAlive(gid) // escapes: replaced by intrinsic.
@@ -269,7 +269,7 @@ func (uid *UID) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)
}
// WriteTo implements io.WriterTo.WriteTo.
-func (uid *UID) WriteTo(w io.Writer) (int64, error) {
+func (uid *UID) WriteTo(writer io.Writer) (int64, error) {
// Construct a slice backed by dst's underlying memory.
var buf []byte
hdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))
@@ -277,7 +277,7 @@ func (uid *UID) WriteTo(w io.Writer) (int64, error) {
hdr.Len = uid.SizeBytes()
hdr.Cap = uid.SizeBytes()
- length, err := w.Write(buf)
+ length, err := writer.Write(buf)
// Since we bypassed the compiler's escape analysis, indicate that uid
// must live until the use above.
runtime.KeepAlive(uid) // escapes: replaced by intrinsic.
diff --git a/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go b/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go
index fe5ee7463..ac3e21edf 100644
--- a/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go
+++ b/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go
@@ -96,7 +96,7 @@ func (tid *ThreadID) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, er
}
// WriteTo implements io.WriterTo.WriteTo.
-func (tid *ThreadID) WriteTo(w io.Writer) (int64, error) {
+func (tid *ThreadID) WriteTo(writer io.Writer) (int64, error) {
// Construct a slice backed by dst's underlying memory.
var buf []byte
hdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))
@@ -104,7 +104,7 @@ func (tid *ThreadID) WriteTo(w io.Writer) (int64, error) {
hdr.Len = tid.SizeBytes()
hdr.Cap = tid.SizeBytes()
- length, err := w.Write(buf)
+ length, err := writer.Write(buf)
// Since we bypassed the compiler's escape analysis, indicate that tid
// must live until the use above.
runtime.KeepAlive(tid) // escapes: replaced by intrinsic.