Deprecated: this package is locked down. Callers should use the corresponding package in the golang.org/x/sys repository instead. That is also where updates required by new systems or versions should be applied. See https://golang.org/s/go1.4-syscall for more information.
So I think we should probably just switch the package out.
syscall.Dup2 is not available on arm64, this breaks building containerd on arm64 after https://github.com/containerd/containerd/pull/4657
It looks like https://github.com/golang/sys/commit/9d4e42a20653790449273b3c85e67d6d8bae6e2e has a wrapper in golang.org/x/sys/unix.Dup2
https://golang.org/pkg/syscall/ says:
So I think we should probably just switch the package out.