Commit Graph

5538 Commits

Author SHA1 Message Date
Rolf Neugebauer
aefb66b5b0 scripts: Rename ./scripts/signing ./scripts/certs
Also remove the init-signing.sh script. We now use something else.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-19 15:21:02 +00:00
Rolf Neugebauer
113ff13f58 contrib: Move Vagrantfile to contrib
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-19 15:21:02 +00:00
Rolf Neugebauer
478f8163e2 examples: Rename vsudd.yml to vsudd-containerd.yml
This describes more accurately that the example exposes
containerd to the host.

Also adjust platform-hyperkit.md

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-19 15:21:02 +00:00
Rolf Neugebauer
d11fe6ba9a tests: Adjust docker for mac build test to chance of location
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-19 15:21:02 +00:00
Rolf Neugebauer
8028f68e0a examples: Move the Docker for Mac blueprint to examples
- merge base.yml and docker-ce.yml to docker-for-mac.yml
- Adjust the README

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-19 15:21:02 +00:00
Rolf Neugebauer
f43b62a35b contrib: Move scripts for foreign kernels to contrib
Also adjust the kernel docs to point to the new location.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-19 15:21:02 +00:00
Rolf Neugebauer
79a076d90c
Merge pull request #2875 from justincormack/sysctl-kub
Increase size of ARP cache
2018-01-19 12:54:49 +00:00
Rolf Neugebauer
5aabb31d20
Merge pull request #2874 from zx2c4-forks/wireguard-bump
wireguard: update to 0.0.20180118
2018-01-19 12:54:11 +00:00
Justin Cormack
c55dce77f2 update sysctl hashes
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-19 11:43:40 +00:00
Justin Cormack
d4b23a76de Increase size of ARP cache
We already had this increased above the defaults, but even larger values
seem to be recommended.

See https://blog.openai.com/scaling-kubernetes-to-2500-nodes/

"It’s common to tune this setting in HPC clusters, and is particularly
relevant in Kubernetes clusters since every pod has its own IP address
which consumes space in the ARP cache."

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-19 11:02:17 +00:00
Jason A. Donenfeld
290d014959 wireguard: update to 0.0.20180118
* receive: treat packet checking as irrelevant for timers

Small simplification to the state machine, as discussed with Mathias
Hall-Andersen.

* socket: check for null socket before fishing out sport
* wg-quick: ifnames have max len of 15
* tools: plug memleak in config error path

Important bug fixes.

* external-tests: add python implementation

Piotr Lizonczyk has contributed a test vector written in Python.

* poly1305: remove indirect calls

From Samuel Neves, we now are in a better position to mitigate speculative
execution attacks.

* curve25519: modularize implementation
* curve25519: import 32-bit fiat-crypto implementation
* curve25519: import 64-bit hacl-star implementation
* curve25519: resolve symbol clash between fe types
* curve25519: wire up new impls and remove donna
* tools: import new curve25519 implementations
* contrib: keygen-html: update curve25519 implementation

Two of our Curve25519 implementations now use formally verified C. Read this
mailing list post for more information:
https://lists.zx2c4.com/pipermail/wireguard/2018-January/002304.html

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-01-19 11:53:18 +01:00
Justin Cormack
059bdfbdad
Merge pull request #2869 from justincormack/mobyup
Update Moby tool
2018-01-18 14:23:39 +00:00
Justin Cormack
7478a38b8a update init hashes
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-18 12:45:42 +00:00
Justin Cormack
4b9ffadb2e Add support for runtime containerd namespace configuration
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-18 12:40:56 +00:00
Justin Cormack
99fd71dc7f Update moby vendoring
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-01-18 12:40:56 +00:00
Justin Cormack
683df33c9a
Merge pull request #2872 from ijc/containerd-v1.0.1
Bump to Containerd v1.0.1
2018-01-18 12:39:28 +00:00
Ian Campbell
e8f7429811 Bump yml to pickup containerd v1.0.1
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-18 11:21:19 +00:00
Ian Campbell
a811110ad8 Bump packages to new alpine w/ containerd v1.0.1
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-18 10:59:41 +00:00
Ian Campbell
594e098c4c alpine: Bump to containerd v1.0.1
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-18 10:58:28 +00:00
Rolf Neugebauer
c7a38de332
Merge pull request #2870 from rn/kern-up
Update kernel to 4.14.14/4.9.77/4.4.112
2018-01-17 22:29:37 +00:00
Justin Cormack
a804d113d7
Merge pull request #2871 from rn/gcp-nested
Add option to enable nested-virt on GCP
2018-01-17 22:17:31 +00:00
Rolf Neugebauer
7e03dadf2f docs: Add a note on nested virt on GCP
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 18:00:41 +00:00
Rolf Neugebauer
3326a23031 docs: Update security note in toplevel README
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 15:00:36 +00:00
Rolf Neugebauer
bcb9d5ec3f Update YAML files to the latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 14:45:16 +00:00
Rolf Neugebauer
130c6222bb kernel: Adjust kernel config with new options
- Enable RETPOLINE by default. Note, however, this will
  only be used if the compiler supports it.
- Enable sysfs interface for vulnerabilities

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 14:36:30 +00:00
Rolf Neugebauer
bfceb1dfbb kernel: Update to 4.14.14/4.9.77/4.4.112
The 4.4.14 has a number of important fixes/additions:
- New support for retpolines (enabled but requires newer gcc
  to take advantage of). This provides mitigation for Spectre
  style attacks.
- Various KPTI fixes including fixes for EFI booting
- More eBPF fixes around out-of-bounds and overflow of
  maps. These were used for variant 1 of CVE-2017-5753.
- Several KVM related to CVE-2017-5753, CVE-2017-5715,
  CVE-2017-17741.
- New sysfs interface listing vulnerabilities:
  /sys/devices/system/cpu/vulnerabilities

The 4.9.77 kernel also has seems to have most/all of the above
back-ported.

See https://lwn.net/SubscriberLink/744287/1fc3c18173f732e7/
for more details on the Spectre mitigation.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 14:31:54 +00:00
Rolf Neugebauer
0470dc89a8 cmd/gcp: Add -nest-virt option to push and run
If the flag is set on push, then the image will have the license
set to enabled the currently experimental netsted virtualisation
feature. The flag currently also needs to be set on run to make
sure the right CPU model (at least Haswell) is selected.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 14:07:27 +00:00
Rolf Neugebauer
358a020b1a cmd: Update vendored google cloud API
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-17 11:30:44 +00:00
Rolf Neugebauer
0b39a733d0
Merge pull request #2867 from rn/fw
Add support for driver (and CPU) firmware
2018-01-16 20:26:24 +00:00
Rolf Neugebauer
9c8d31582a examples/packet: Add new firmware package
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 19:10:14 +00:00
Rolf Neugebauer
aa2791a6dd pkg/firmware-all: Add package containing all Linux Firmware blobs
This package is primarily for users of custom or foreign
kernels which may have drivers enabled for which the
'firmware' package does not contain the firmware blobs.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 19:08:19 +00:00
Rolf Neugebauer
1d9c4361c0 pkg/firmware: Add a package with firmware required by enabled device drivers
This new 'firmware' package contains the firmware blobs required
by the device drivers in a LinuxKit kernel. The list of required
blobs is determined by calling 'modinfo' on each module.

We also unconditionally include the AMD CPU microcode and the
licence files.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 19:08:18 +00:00
Rolf Neugebauer
f09d0227bc doc: Update packet.net doc wrt to Intel CPU microcode update
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 19:08:18 +00:00
Rolf Neugebauer
eb6459f6ed packet: Add inte-ucode.cpio to packet example
and override it for the arm64 add on

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 19:08:18 +00:00
Rolf Neugebauer
170f5ad87e vendor: Update moby tool to latest
This includes support for CPU microcode handling

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 19:08:18 +00:00
Rolf Neugebauer
44dbf76b11
Merge pull request #2865 from rn/ucode
Vendor latest moby and update packet.net examples to include CPU ucode
2018-01-16 12:10:00 +00:00
Avi Deitcher
5870a325b9
Merge pull request #2866 from deitch/update-metadata-hashes
Update hashes to use latest metadata
2018-01-16 13:15:01 +02:00
Rolf Neugebauer
a41ef21f73 doc: Update packet.net doc wrt to Intel CPU microcode update
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 10:44:47 +00:00
Rolf Neugebauer
9f183f7012 packet: Add inte-ucode.cpio to packet example
and override it for the arm64 add on

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 10:27:59 +00:00
Rolf Neugebauer
63ec7f58c0 vendor: Update moby tool to latest
This includes support for CPU microcode handling

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2018-01-16 10:27:58 +00:00
Avi Deitcher
cd409f87c5 Update hashes to use latest metadata
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2018-01-16 11:59:10 +02:00
Avi Deitcher
c0ff9cf6f0
Merge pull request #2864 from deitch/fix-metadata-label
Add /run to binds and use newer yml label format
2018-01-16 11:36:49 +02:00
Ian Campbell
1fcf8b636d
Merge pull request #2863 from ijc/govet-fixes
Fix some issues highlighted by go vet
2018-01-16 09:26:41 +00:00
Avi Deitcher
0d4b2742e2 Add /run to binds and use newer yml label format
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2018-01-15 19:51:35 +02:00
Ian Campbell
c0de474e4f Bump hashes
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-15 17:28:38 +00:00
Ian Campbell
779be8cff1 mount: Add missing argument to Printf
go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit)
reported:

    error: missing argument for Printf("%v"): format reads arg 2, have only 1 args (vet)
    error: wrong number of args for format in Printf call: 2 needed but 3 args (vet)

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-15 17:24:36 +00:00
Ian Campbell
826ee28c8d metadata: print Entry objects with %+v not %s
go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit)
reported:

    error: arg current for printf verb %s of wrong type: main.Entry (vet)

For each of these.

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-15 17:24:36 +00:00
Ian Campbell
a4230b74aa init: print integer with %d not %s
go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit)
reported:

    error: arg resource for printf verb %s of wrong type: int (vet)

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-15 17:24:36 +00:00
Ian Campbell
6483a2e6dc linuxkit: print response status, not the response object when validating a URL
go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit)
reported:

    error: arg resp for printf verb %s of wrong type: *net/http.Response (vet)

Signed-off-by: Ian Campbell <ijc@docker.com>
2018-01-15 17:24:36 +00:00
Avi Deitcher
190a87557f
Merge pull request #2860 from deitch/metadata-to-run
Move metadata to /run instead of /var
2018-01-15 18:11:45 +02:00