summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-04 22:49:52 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-04 22:49:52 +0000
commit02dbbe7666661b2d78fd7f13f8131f5fb65c8b8c (patch)
tree9698edaaed21f4815815f9b98430ecd191c17119 /pkg
parentc6739ff2459aacf18caeead7c521a072ddce146b (diff)
parent95ce8bb4c7ecb23e47e68c60b1de0b99ad8a856d (diff)
Merge release-20200127.0-65-g95ce8bb (automated)
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/abi/abi_linux_state_autogen.go6
-rwxr-xr-xpkg/abi/linux/linux_amd64_state_autogen.go4
-rwxr-xr-xpkg/abi/linux/linux_arm64_state_autogen.go4
-rwxr-xr-xpkg/atomicbitops/atomicbitops_state_autogen.go3
-rwxr-xr-xpkg/bits/bits_state_autogen.go3
-rwxr-xr-xpkg/cpuid/cpuid_state_autogen.go2
-rwxr-xr-xpkg/fdchannel/fdchannel_state_autogen.go2
-rwxr-xr-xpkg/fdnotifier/fdnotifier_state_autogen.go3
-rwxr-xr-xpkg/flipcall/flipcall_linux_state_autogen.go6
-rwxr-xr-xpkg/memutil/memutil_state_autogen.go2
-rwxr-xr-xpkg/rand/rand_linux_state_autogen.go4
-rwxr-xr-xpkg/rand/rand_state_autogen.go2
-rwxr-xr-xpkg/seccomp/seccomp_amd64_state_autogen.go6
-rwxr-xr-xpkg/seccomp/seccomp_arm64_state_autogen.go6
-rwxr-xr-xpkg/sentry/arch/arch_aarch64_state_autogen.go7
-rwxr-xr-xpkg/sentry/arch/arch_amd64_state_autogen.go28
-rwxr-xr-xpkg/sentry/arch/arch_arm64_state_autogen.go6
-rwxr-xr-xpkg/sentry/arch/arch_state_autogen.go18
-rwxr-xr-xpkg/sentry/fs/host/host_amd64_unsafe_state_autogen.go6
-rwxr-xr-xpkg/sentry/fs/host/host_arm64_unsafe_state_autogen.go6
-rwxr-xr-xpkg/sentry/kernel/kernel_amd64_state_autogen.go6
-rwxr-xr-xpkg/sentry/kernel/kernel_arm64_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/kvm/kvm_amd64_state_autogen.go8
-rwxr-xr-xpkg/sentry/platform/kvm/kvm_amd64_unsafe_state_autogen.go8
-rwxr-xr-xpkg/sentry/platform/kvm/kvm_arm64_state_autogen.go8
-rwxr-xr-xpkg/sentry/platform/kvm/kvm_arm64_unsafe_state_autogen.go8
-rwxr-xr-xpkg/sentry/platform/kvm/kvm_state_autogen.go5
-rwxr-xr-xpkg/sentry/platform/ptrace/ptrace_amd64_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/ptrace/ptrace_arm64_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/ptrace/ptrace_linux_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/ptrace/ptrace_linux_unsafe_state_autogen.go7
-rwxr-xr-xpkg/sentry/platform/ptrace/ptrace_state_autogen.go3
-rwxr-xr-xpkg/sentry/platform/ring0/pagetables/pagetables_aarch64_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/ring0/pagetables/pagetables_amd64_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/ring0/pagetables/pagetables_arm64_state_autogen.go6
-rwxr-xr-xpkg/sentry/platform/ring0/pagetables/pagetables_state_autogen.go3
-rwxr-xr-xpkg/sentry/platform/ring0/ring0_amd64_state_autogen.go8
-rwxr-xr-xpkg/sentry/platform/ring0/ring0_arm64_state_autogen.go8
-rwxr-xr-xpkg/sentry/strace/strace_amd64_state_autogen.go6
-rwxr-xr-xpkg/sentry/strace/strace_arm64_state_autogen.go6
-rwxr-xr-xpkg/sentry/syscalls/linux/linux_amd64_state_autogen.go7
-rwxr-xr-xpkg/sentry/syscalls/linux/linux_arm64_state_autogen.go7
-rwxr-xr-xpkg/sentry/syscalls/linux/linux_state_autogen.go3
-rwxr-xr-xpkg/sentry/syscalls/linux/vfs2/vfs2_amd64_state_autogen.go4
-rwxr-xr-xpkg/sentry/syscalls/linux/vfs2/vfs2_arm64_state_autogen.go4
-rwxr-xr-xpkg/sentry/time/time_arm64_state_autogen.go4
-rwxr-xr-xpkg/sentry/vfs/vfs_state_autogen.go3
-rwxr-xr-xpkg/sleep/sleep_state_autogen.go6
-rwxr-xr-xpkg/sync/sync_state_autogen.go9
-rwxr-xr-xpkg/syserr/syserr_linux_state_autogen.go6
-rwxr-xr-xpkg/tcpip/link/fdbased/fdbased_state_autogen.go7
-rwxr-xr-xpkg/tcpip/link/rawfile/rawfile_state_autogen.go7
-rwxr-xr-xpkg/tcpip/link/sharedmem/sharedmem_state_autogen.go3
-rwxr-xr-xpkg/tcpip/link/tun/tun_state_autogen.go2
-rwxr-xr-xpkg/tcpip/tcpip_state_autogen.go3
-rwxr-xr-xpkg/usermem/usermem_arm64_state_autogen.go6
-rwxr-xr-xpkg/usermem/usermem_state_autogen.go2
57 files changed, 319 insertions, 14 deletions
diff --git a/pkg/abi/abi_linux_state_autogen.go b/pkg/abi/abi_linux_state_autogen.go
new file mode 100755
index 000000000..568ce4214
--- /dev/null
+++ b/pkg/abi/abi_linux_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build linux
+
+package abi
+
diff --git a/pkg/abi/linux/linux_amd64_state_autogen.go b/pkg/abi/linux/linux_amd64_state_autogen.go
new file mode 100755
index 000000000..5e3c1ae4a
--- /dev/null
+++ b/pkg/abi/linux/linux_amd64_state_autogen.go
@@ -0,0 +1,4 @@
+// automatically generated by stateify.
+
+package linux
+
diff --git a/pkg/abi/linux/linux_arm64_state_autogen.go b/pkg/abi/linux/linux_arm64_state_autogen.go
new file mode 100755
index 000000000..5e3c1ae4a
--- /dev/null
+++ b/pkg/abi/linux/linux_arm64_state_autogen.go
@@ -0,0 +1,4 @@
+// automatically generated by stateify.
+
+package linux
+
diff --git a/pkg/atomicbitops/atomicbitops_state_autogen.go b/pkg/atomicbitops/atomicbitops_state_autogen.go
index a74ea7d50..1164483bd 100755
--- a/pkg/atomicbitops/atomicbitops_state_autogen.go
+++ b/pkg/atomicbitops/atomicbitops_state_autogen.go
@@ -1,4 +1,7 @@
// automatically generated by stateify.
+// +build amd64 arm64
+// +build !amd64,!arm64
+
package atomicbitops
diff --git a/pkg/bits/bits_state_autogen.go b/pkg/bits/bits_state_autogen.go
index 2abb1291b..fe573eeaa 100755
--- a/pkg/bits/bits_state_autogen.go
+++ b/pkg/bits/bits_state_autogen.go
@@ -1,4 +1,7 @@
// automatically generated by stateify.
+// +build amd64 arm64
+// +build !amd64,!arm64
+
package bits
diff --git a/pkg/cpuid/cpuid_state_autogen.go b/pkg/cpuid/cpuid_state_autogen.go
index efedfde0f..a6dcb72ed 100755
--- a/pkg/cpuid/cpuid_state_autogen.go
+++ b/pkg/cpuid/cpuid_state_autogen.go
@@ -1,5 +1,7 @@
// automatically generated by stateify.
+// +build i386 amd64
+
package cpuid
import (
diff --git a/pkg/fdchannel/fdchannel_state_autogen.go b/pkg/fdchannel/fdchannel_state_autogen.go
index 8dbf80cba..07f179f84 100755
--- a/pkg/fdchannel/fdchannel_state_autogen.go
+++ b/pkg/fdchannel/fdchannel_state_autogen.go
@@ -1,4 +1,6 @@
// automatically generated by stateify.
+// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
+
package fdchannel
diff --git a/pkg/fdnotifier/fdnotifier_state_autogen.go b/pkg/fdnotifier/fdnotifier_state_autogen.go
index 6f6076b7b..63db30350 100755
--- a/pkg/fdnotifier/fdnotifier_state_autogen.go
+++ b/pkg/fdnotifier/fdnotifier_state_autogen.go
@@ -1,4 +1,7 @@
// automatically generated by stateify.
+// +build linux
+// +build linux
+
package fdnotifier
diff --git a/pkg/flipcall/flipcall_linux_state_autogen.go b/pkg/flipcall/flipcall_linux_state_autogen.go
new file mode 100755
index 000000000..b22c04f05
--- /dev/null
+++ b/pkg/flipcall/flipcall_linux_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build linux
+
+package flipcall
+
diff --git a/pkg/memutil/memutil_state_autogen.go b/pkg/memutil/memutil_state_autogen.go
index 52f337963..cdb738e7d 100755
--- a/pkg/memutil/memutil_state_autogen.go
+++ b/pkg/memutil/memutil_state_autogen.go
@@ -1,4 +1,6 @@
// automatically generated by stateify.
+// +build linux
+
package memutil
diff --git a/pkg/rand/rand_linux_state_autogen.go b/pkg/rand/rand_linux_state_autogen.go
new file mode 100755
index 000000000..e46e9ec7e
--- /dev/null
+++ b/pkg/rand/rand_linux_state_autogen.go
@@ -0,0 +1,4 @@
+// automatically generated by stateify.
+
+package rand
+
diff --git a/pkg/rand/rand_state_autogen.go b/pkg/rand/rand_state_autogen.go
index e46e9ec7e..d387ce1e1 100755
--- a/pkg/rand/rand_state_autogen.go
+++ b/pkg/rand/rand_state_autogen.go
@@ -1,4 +1,6 @@
// automatically generated by stateify.
+// +build !linux
+
package rand
diff --git a/pkg/seccomp/seccomp_amd64_state_autogen.go b/pkg/seccomp/seccomp_amd64_state_autogen.go
new file mode 100755
index 000000000..9aa3364d2
--- /dev/null
+++ b/pkg/seccomp/seccomp_amd64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build amd64
+
+package seccomp
+
diff --git a/pkg/seccomp/seccomp_arm64_state_autogen.go b/pkg/seccomp/seccomp_arm64_state_autogen.go
new file mode 100755
index 000000000..49e5bbc8f
--- /dev/null
+++ b/pkg/seccomp/seccomp_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package seccomp
+
diff --git a/pkg/sentry/arch/arch_aarch64_state_autogen.go b/pkg/sentry/arch/arch_aarch64_state_autogen.go
new file mode 100755
index 000000000..3e0685928
--- /dev/null
+++ b/pkg/sentry/arch/arch_aarch64_state_autogen.go
@@ -0,0 +1,7 @@
+// automatically generated by stateify.
+
+// +build arm64
+// +build arm64
+
+package arch
+
diff --git a/pkg/sentry/arch/arch_amd64_state_autogen.go b/pkg/sentry/arch/arch_amd64_state_autogen.go
new file mode 100755
index 000000000..c431519e7
--- /dev/null
+++ b/pkg/sentry/arch/arch_amd64_state_autogen.go
@@ -0,0 +1,28 @@
+// automatically generated by stateify.
+
+// +build amd64
+// +build amd64
+// +build amd64
+
+package arch
+
+import (
+ "gvisor.dev/gvisor/pkg/state"
+)
+
+func (x *context64) beforeSave() {}
+func (x *context64) save(m state.Map) {
+ x.beforeSave()
+ m.Save("State", &x.State)
+ m.Save("sigFPState", &x.sigFPState)
+}
+
+func (x *context64) afterLoad() {}
+func (x *context64) load(m state.Map) {
+ m.Load("State", &x.State)
+ m.Load("sigFPState", &x.sigFPState)
+}
+
+func init() {
+ state.Register("arch.context64", (*context64)(nil), state.Fns{Save: (*context64).save, Load: (*context64).load})
+}
diff --git a/pkg/sentry/arch/arch_arm64_state_autogen.go b/pkg/sentry/arch/arch_arm64_state_autogen.go
new file mode 100755
index 000000000..4d56ebcca
--- /dev/null
+++ b/pkg/sentry/arch/arch_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package arch
+
diff --git a/pkg/sentry/arch/arch_state_autogen.go b/pkg/sentry/arch/arch_state_autogen.go
index 9b1205531..3381f26c8 100755
--- a/pkg/sentry/arch/arch_state_autogen.go
+++ b/pkg/sentry/arch/arch_state_autogen.go
@@ -1,5 +1,9 @@
// automatically generated by stateify.
+// +build amd64 i386
+// +build amd64 i386
+// +build i386 amd64 arm64
+
package arch
import (
@@ -27,19 +31,6 @@ func (x *MmapLayout) load(m state.Map) {
m.Load("MaxStackRand", &x.MaxStackRand)
}
-func (x *context64) beforeSave() {}
-func (x *context64) save(m state.Map) {
- x.beforeSave()
- m.Save("State", &x.State)
- m.Save("sigFPState", &x.sigFPState)
-}
-
-func (x *context64) afterLoad() {}
-func (x *context64) load(m state.Map) {
- m.Load("State", &x.State)
- m.Load("sigFPState", &x.sigFPState)
-}
-
func (x *syscallPtraceRegs) beforeSave() {}
func (x *syscallPtraceRegs) save(m state.Map) {
x.beforeSave()
@@ -183,7 +174,6 @@ func (x *SignalInfo) load(m state.Map) {
func init() {
state.Register("arch.MmapLayout", (*MmapLayout)(nil), state.Fns{Save: (*MmapLayout).save, Load: (*MmapLayout).load})
- state.Register("arch.context64", (*context64)(nil), state.Fns{Save: (*context64).save, Load: (*context64).load})
state.Register("arch.syscallPtraceRegs", (*syscallPtraceRegs)(nil), state.Fns{Save: (*syscallPtraceRegs).save, Load: (*syscallPtraceRegs).load})
state.Register("arch.State", (*State)(nil), state.Fns{Save: (*State).save, Load: (*State).load})
state.Register("arch.AuxEntry", (*AuxEntry)(nil), state.Fns{Save: (*AuxEntry).save, Load: (*AuxEntry).load})
diff --git a/pkg/sentry/fs/host/host_amd64_unsafe_state_autogen.go b/pkg/sentry/fs/host/host_amd64_unsafe_state_autogen.go
new file mode 100755
index 000000000..de35761e1
--- /dev/null
+++ b/pkg/sentry/fs/host/host_amd64_unsafe_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build amd64
+
+package host
+
diff --git a/pkg/sentry/fs/host/host_arm64_unsafe_state_autogen.go b/pkg/sentry/fs/host/host_arm64_unsafe_state_autogen.go
new file mode 100755
index 000000000..ecbc3dd77
--- /dev/null
+++ b/pkg/sentry/fs/host/host_arm64_unsafe_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package host
+
diff --git a/pkg/sentry/kernel/kernel_amd64_state_autogen.go b/pkg/sentry/kernel/kernel_amd64_state_autogen.go
new file mode 100755
index 000000000..236e69666
--- /dev/null
+++ b/pkg/sentry/kernel/kernel_amd64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build amd64
+
+package kernel
+
diff --git a/pkg/sentry/kernel/kernel_arm64_state_autogen.go b/pkg/sentry/kernel/kernel_arm64_state_autogen.go
new file mode 100755
index 000000000..2900fe048
--- /dev/null
+++ b/pkg/sentry/kernel/kernel_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package kernel
+
diff --git a/pkg/sentry/platform/kvm/kvm_amd64_state_autogen.go b/pkg/sentry/platform/kvm/kvm_amd64_state_autogen.go
new file mode 100755
index 000000000..0c21ccdb4
--- /dev/null
+++ b/pkg/sentry/platform/kvm/kvm_amd64_state_autogen.go
@@ -0,0 +1,8 @@
+// automatically generated by stateify.
+
+// +build amd64
+// +build amd64
+// +build amd64
+
+package kvm
+
diff --git a/pkg/sentry/platform/kvm/kvm_amd64_unsafe_state_autogen.go b/pkg/sentry/platform/kvm/kvm_amd64_unsafe_state_autogen.go
new file mode 100755
index 000000000..0c21ccdb4
--- /dev/null
+++ b/pkg/sentry/platform/kvm/kvm_amd64_unsafe_state_autogen.go
@@ -0,0 +1,8 @@
+// automatically generated by stateify.
+
+// +build amd64
+// +build amd64
+// +build amd64
+
+package kvm
+
diff --git a/pkg/sentry/platform/kvm/kvm_arm64_state_autogen.go b/pkg/sentry/platform/kvm/kvm_arm64_state_autogen.go
new file mode 100755
index 000000000..94b93bea5
--- /dev/null
+++ b/pkg/sentry/platform/kvm/kvm_arm64_state_autogen.go
@@ -0,0 +1,8 @@
+// automatically generated by stateify.
+
+// +build arm64
+// +build arm64
+// +build arm64
+
+package kvm
+
diff --git a/pkg/sentry/platform/kvm/kvm_arm64_unsafe_state_autogen.go b/pkg/sentry/platform/kvm/kvm_arm64_unsafe_state_autogen.go
new file mode 100755
index 000000000..94b93bea5
--- /dev/null
+++ b/pkg/sentry/platform/kvm/kvm_arm64_unsafe_state_autogen.go
@@ -0,0 +1,8 @@
+// automatically generated by stateify.
+
+// +build arm64
+// +build arm64
+// +build arm64
+
+package kvm
+
diff --git a/pkg/sentry/platform/kvm/kvm_state_autogen.go b/pkg/sentry/platform/kvm/kvm_state_autogen.go
index 5ab0e0735..f34ac0945 100755
--- a/pkg/sentry/platform/kvm/kvm_state_autogen.go
+++ b/pkg/sentry/platform/kvm/kvm_state_autogen.go
@@ -1,4 +1,9 @@
// automatically generated by stateify.
+// +build go1.12
+// +build !go1.15
+// +build go1.12
+// +build !go1.15
+
package kvm
diff --git a/pkg/sentry/platform/ptrace/ptrace_amd64_state_autogen.go b/pkg/sentry/platform/ptrace/ptrace_amd64_state_autogen.go
new file mode 100755
index 000000000..09e133aac
--- /dev/null
+++ b/pkg/sentry/platform/ptrace/ptrace_amd64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build amd64
+
+package ptrace
+
diff --git a/pkg/sentry/platform/ptrace/ptrace_arm64_state_autogen.go b/pkg/sentry/platform/ptrace/ptrace_arm64_state_autogen.go
new file mode 100755
index 000000000..78ce51a66
--- /dev/null
+++ b/pkg/sentry/platform/ptrace/ptrace_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package ptrace
+
diff --git a/pkg/sentry/platform/ptrace/ptrace_linux_state_autogen.go b/pkg/sentry/platform/ptrace/ptrace_linux_state_autogen.go
new file mode 100755
index 000000000..67b04a65b
--- /dev/null
+++ b/pkg/sentry/platform/ptrace/ptrace_linux_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build linux
+
+package ptrace
+
diff --git a/pkg/sentry/platform/ptrace/ptrace_linux_unsafe_state_autogen.go b/pkg/sentry/platform/ptrace/ptrace_linux_unsafe_state_autogen.go
new file mode 100755
index 000000000..bfea2ad67
--- /dev/null
+++ b/pkg/sentry/platform/ptrace/ptrace_linux_unsafe_state_autogen.go
@@ -0,0 +1,7 @@
+// automatically generated by stateify.
+
+// +build linux
+// +build amd64 arm64
+
+package ptrace
+
diff --git a/pkg/sentry/platform/ptrace/ptrace_state_autogen.go b/pkg/sentry/platform/ptrace/ptrace_state_autogen.go
index ac83a71e7..3a0b1ca8d 100755
--- a/pkg/sentry/platform/ptrace/ptrace_state_autogen.go
+++ b/pkg/sentry/platform/ptrace/ptrace_state_autogen.go
@@ -1,4 +1,7 @@
// automatically generated by stateify.
+// +build go1.12
+// +build !go1.15
+
package ptrace
diff --git a/pkg/sentry/platform/ring0/pagetables/pagetables_aarch64_state_autogen.go b/pkg/sentry/platform/ring0/pagetables/pagetables_aarch64_state_autogen.go
new file mode 100755
index 000000000..31ec1653a
--- /dev/null
+++ b/pkg/sentry/platform/ring0/pagetables/pagetables_aarch64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package pagetables
+
diff --git a/pkg/sentry/platform/ring0/pagetables/pagetables_amd64_state_autogen.go b/pkg/sentry/platform/ring0/pagetables/pagetables_amd64_state_autogen.go
new file mode 100755
index 000000000..d1ad040cd
--- /dev/null
+++ b/pkg/sentry/platform/ring0/pagetables/pagetables_amd64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build amd64
+
+package pagetables
+
diff --git a/pkg/sentry/platform/ring0/pagetables/pagetables_arm64_state_autogen.go b/pkg/sentry/platform/ring0/pagetables/pagetables_arm64_state_autogen.go
new file mode 100755
index 000000000..31ec1653a
--- /dev/null
+++ b/pkg/sentry/platform/ring0/pagetables/pagetables_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package pagetables
+
diff --git a/pkg/sentry/platform/ring0/pagetables/pagetables_state_autogen.go b/pkg/sentry/platform/ring0/pagetables/pagetables_state_autogen.go
index ac1ccf3d3..2cebb95e4 100755
--- a/pkg/sentry/platform/ring0/pagetables/pagetables_state_autogen.go
+++ b/pkg/sentry/platform/ring0/pagetables/pagetables_state_autogen.go
@@ -1,4 +1,7 @@
// automatically generated by stateify.
+// +build i386 amd64
+// +build i386 amd64
+
package pagetables
diff --git a/pkg/sentry/platform/ring0/ring0_amd64_state_autogen.go b/pkg/sentry/platform/ring0/ring0_amd64_state_autogen.go
new file mode 100755
index 000000000..6d8150b0e
--- /dev/null
+++ b/pkg/sentry/platform/ring0/ring0_amd64_state_autogen.go
@@ -0,0 +1,8 @@
+// automatically generated by stateify.
+
+// +build amd64
+// +build amd64
+// +build amd64
+
+package ring0
+
diff --git a/pkg/sentry/platform/ring0/ring0_arm64_state_autogen.go b/pkg/sentry/platform/ring0/ring0_arm64_state_autogen.go
new file mode 100755
index 000000000..392e48d4b
--- /dev/null
+++ b/pkg/sentry/platform/ring0/ring0_arm64_state_autogen.go
@@ -0,0 +1,8 @@
+// automatically generated by stateify.
+
+// +build arm64
+// +build arm64
+// +build arm64
+
+package ring0
+
diff --git a/pkg/sentry/strace/strace_amd64_state_autogen.go b/pkg/sentry/strace/strace_amd64_state_autogen.go
new file mode 100755
index 000000000..844e83b55
--- /dev/null
+++ b/pkg/sentry/strace/strace_amd64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build amd64
+
+package strace
+
diff --git a/pkg/sentry/strace/strace_arm64_state_autogen.go b/pkg/sentry/strace/strace_arm64_state_autogen.go
new file mode 100755
index 000000000..6f61e1610
--- /dev/null
+++ b/pkg/sentry/strace/strace_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package strace
+
diff --git a/pkg/sentry/syscalls/linux/linux_amd64_state_autogen.go b/pkg/sentry/syscalls/linux/linux_amd64_state_autogen.go
new file mode 100755
index 000000000..db9570e4e
--- /dev/null
+++ b/pkg/sentry/syscalls/linux/linux_amd64_state_autogen.go
@@ -0,0 +1,7 @@
+// automatically generated by stateify.
+
+// +build amd64
+// +build amd64
+
+package linux
+
diff --git a/pkg/sentry/syscalls/linux/linux_arm64_state_autogen.go b/pkg/sentry/syscalls/linux/linux_arm64_state_autogen.go
new file mode 100755
index 000000000..d3a92b86f
--- /dev/null
+++ b/pkg/sentry/syscalls/linux/linux_arm64_state_autogen.go
@@ -0,0 +1,7 @@
+// automatically generated by stateify.
+
+// +build arm64
+// +build arm64
+
+package linux
+
diff --git a/pkg/sentry/syscalls/linux/linux_state_autogen.go b/pkg/sentry/syscalls/linux/linux_state_autogen.go
index 06d1fb23f..6ccde0795 100755
--- a/pkg/sentry/syscalls/linux/linux_state_autogen.go
+++ b/pkg/sentry/syscalls/linux/linux_state_autogen.go
@@ -1,5 +1,8 @@
// automatically generated by stateify.
+// +build amd64
+// +build amd64 arm64
+
package linux
import (
diff --git a/pkg/sentry/syscalls/linux/vfs2/vfs2_amd64_state_autogen.go b/pkg/sentry/syscalls/linux/vfs2/vfs2_amd64_state_autogen.go
new file mode 100755
index 000000000..b049dbca1
--- /dev/null
+++ b/pkg/sentry/syscalls/linux/vfs2/vfs2_amd64_state_autogen.go
@@ -0,0 +1,4 @@
+// automatically generated by stateify.
+
+package vfs2
+
diff --git a/pkg/sentry/syscalls/linux/vfs2/vfs2_arm64_state_autogen.go b/pkg/sentry/syscalls/linux/vfs2/vfs2_arm64_state_autogen.go
new file mode 100755
index 000000000..b049dbca1
--- /dev/null
+++ b/pkg/sentry/syscalls/linux/vfs2/vfs2_arm64_state_autogen.go
@@ -0,0 +1,4 @@
+// automatically generated by stateify.
+
+package vfs2
+
diff --git a/pkg/sentry/time/time_arm64_state_autogen.go b/pkg/sentry/time/time_arm64_state_autogen.go
new file mode 100755
index 000000000..ea614b056
--- /dev/null
+++ b/pkg/sentry/time/time_arm64_state_autogen.go
@@ -0,0 +1,4 @@
+// automatically generated by stateify.
+
+package time
+
diff --git a/pkg/sentry/vfs/vfs_state_autogen.go b/pkg/sentry/vfs/vfs_state_autogen.go
index 78d4a0305..d2d2ec242 100755
--- a/pkg/sentry/vfs/vfs_state_autogen.go
+++ b/pkg/sentry/vfs/vfs_state_autogen.go
@@ -1,5 +1,8 @@
// automatically generated by stateify.
+// +build go1.12
+// +build !go1.15
+
package vfs
import (
diff --git a/pkg/sleep/sleep_state_autogen.go b/pkg/sleep/sleep_state_autogen.go
index e444aa91a..c3b9dd48e 100755
--- a/pkg/sleep/sleep_state_autogen.go
+++ b/pkg/sleep/sleep_state_autogen.go
@@ -1,4 +1,10 @@
// automatically generated by stateify.
+// +build amd64 arm64
+// +build !race
+// +build !amd64,!arm64
+// +build go1.11
+// +build !go1.15
+
package sleep
diff --git a/pkg/sync/sync_state_autogen.go b/pkg/sync/sync_state_autogen.go
index b2872d33d..9073f4edb 100755
--- a/pkg/sync/sync_state_autogen.go
+++ b/pkg/sync/sync_state_autogen.go
@@ -1,4 +1,13 @@
// automatically generated by stateify.
+// +build go1.13
+// +build !go1.15
+// +build go1.12
+// +build !go1.15
+// +build !race
+// +build race
+// +build go1.13
+// +build !go1.15
+
package sync
diff --git a/pkg/syserr/syserr_linux_state_autogen.go b/pkg/syserr/syserr_linux_state_autogen.go
new file mode 100755
index 000000000..6650dfb44
--- /dev/null
+++ b/pkg/syserr/syserr_linux_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build linux
+
+package syserr
+
diff --git a/pkg/tcpip/link/fdbased/fdbased_state_autogen.go b/pkg/tcpip/link/fdbased/fdbased_state_autogen.go
index 0555db528..ddc29cce5 100755
--- a/pkg/tcpip/link/fdbased/fdbased_state_autogen.go
+++ b/pkg/tcpip/link/fdbased/fdbased_state_autogen.go
@@ -1,4 +1,11 @@
// automatically generated by stateify.
+// +build linux
+// +build linux
+// +build linux,amd64 linux,arm64
+// +build !linux !amd64,!arm64
+// +build linux,amd64 linux,arm64
+// +build linux
+
package fdbased
diff --git a/pkg/tcpip/link/rawfile/rawfile_state_autogen.go b/pkg/tcpip/link/rawfile/rawfile_state_autogen.go
index 662c04444..943c408c1 100755
--- a/pkg/tcpip/link/rawfile/rawfile_state_autogen.go
+++ b/pkg/tcpip/link/rawfile/rawfile_state_autogen.go
@@ -1,4 +1,11 @@
// automatically generated by stateify.
+// +build linux,!amd64,!arm64
+// +build linux,amd64 linux,arm64
+// +build go1.12
+// +build !go1.15
+// +build linux
+// +build linux
+
package rawfile
diff --git a/pkg/tcpip/link/sharedmem/sharedmem_state_autogen.go b/pkg/tcpip/link/sharedmem/sharedmem_state_autogen.go
index e5c542528..f739a1d50 100755
--- a/pkg/tcpip/link/sharedmem/sharedmem_state_autogen.go
+++ b/pkg/tcpip/link/sharedmem/sharedmem_state_autogen.go
@@ -1,4 +1,7 @@
// automatically generated by stateify.
+// +build linux
+// +build linux
+
package sharedmem
diff --git a/pkg/tcpip/link/tun/tun_state_autogen.go b/pkg/tcpip/link/tun/tun_state_autogen.go
index 7ded170f6..277ed1b5f 100755
--- a/pkg/tcpip/link/tun/tun_state_autogen.go
+++ b/pkg/tcpip/link/tun/tun_state_autogen.go
@@ -1,4 +1,6 @@
// automatically generated by stateify.
+// +build linux
+
package tun
diff --git a/pkg/tcpip/tcpip_state_autogen.go b/pkg/tcpip/tcpip_state_autogen.go
index 7083b7964..dbb322693 100755
--- a/pkg/tcpip/tcpip_state_autogen.go
+++ b/pkg/tcpip/tcpip_state_autogen.go
@@ -1,5 +1,8 @@
// automatically generated by stateify.
+// +build go1.9
+// +build !go1.15
+
package tcpip
import (
diff --git a/pkg/usermem/usermem_arm64_state_autogen.go b/pkg/usermem/usermem_arm64_state_autogen.go
new file mode 100755
index 000000000..969e0845e
--- /dev/null
+++ b/pkg/usermem/usermem_arm64_state_autogen.go
@@ -0,0 +1,6 @@
+// automatically generated by stateify.
+
+// +build arm64
+
+package usermem
+
diff --git a/pkg/usermem/usermem_state_autogen.go b/pkg/usermem/usermem_state_autogen.go
index 39b92d108..9b4b56f98 100755
--- a/pkg/usermem/usermem_state_autogen.go
+++ b/pkg/usermem/usermem_state_autogen.go
@@ -1,5 +1,7 @@
// automatically generated by stateify.
+// +build amd64 i386
+
package usermem
import (