Commit Graph

5432 Commits

Author SHA1 Message Date
Rolf Neugebauer
f0e046c30e
Merge pull request #2812 from rn/kern-up
Update kernels to 4.14.6/4.9.69
2017-12-14 16:43:00 +00:00
Rolf Neugebauer
5bf636b9aa Update YAML files to latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-14 12:50:05 +00:00
Rolf Neugebauer
1cf58d95b1 kernel: Update to 4.14.6/4.9.69
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-14 11:21:07 +00:00
Ian Campbell
dd799eb230 Bump moby tool to d9d2a91780
656bd87fd2...d9d2a91780

d9d2a91 Merge pull request #193 from ijc/bugfix-191
307f13b Defer dockerRm until we are finished with the contents
ebd7228 Merge pull request #191 from ijc/reduce-memory-via-tempfiles
3045a80 Stream `docker export` directly to consumer
9f44acf Generate intermediate image into a temp file
9558740 Add cpu and mem profiling options

Reduces the memory usage substantially.

While here make some notes about the need to update src/cmd/linuxkit/build.go
where people might see them.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-12-14 10:34:23 +00:00
Rolf Neugebauer
c2a4b6d08e
Merge pull request #2810 from rn/arm64-test
Fix up tests to work on arm64 plus more alpine 3.7 goodness
2017-12-13 10:07:26 +00:00
David Manouchehri
50ac887fb9
As requested.. Again.
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-12-12 20:13:00 -05:00
Rolf Neugebauer
ad48a174ba tests: Fix packages tests for arm64
- Enable console for arm64 for all tests
- linuxkit.packages.binfmt is x86_64 only for now
- linuxkit.packages.format_mount.by_name seems to hang with no output.
  needs investigating...
- linuxkit.packages.getty-containerd is x86_64 specific
- linuxkit.packages.mkimage is x86_64 specific
- linuxkit.packages.wireguard: Use the non-alpine variant as it is
  available as a multiarch for arm64. Use a specific version/tag (1.13.7)
  as currently 'latest' seem to have issues.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
2396d91cd8 tests: Adjust kernel tests for arm64
- Disable kernel config tests on arm64 as some are x86_64
  specific: https://github.com/linuxkit/linuxkit/issues/2807
- Add arm64 console to tests

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
5ef41cfc71 tests: Fix platforms.qemu tests for arm64
- Disable tests which use unsupported formats
- Enable serial arm64 console for kernel+initrd test

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
b3c3267627 examples/redis: Explicitly use redis:4.0.5-alpine
Currently there is a Content Trust issue with 4.0-alpine
as well as 4-alpine on arm64. 4.0.5-alpine works, so use
it for the example.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
1b5a10ad3f examples/swap: Remove nginx from YAML
It is not needed and the 'nginx:alpine' variant is not
yet multi-arch so it won't work on arm64.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
851b4b875e tests: Disable tests for x86 specific examples/blueprints
- docker: Disabled because we don't have arm64 dind images
- tpm: The tss package is not compiled for arm64
- wireguard: This uses nginx:alpine which is not yet multi-arch
- docker_for_mac: Is x86 specific

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
bf77f64e3c tests: Rename build.outputs to build.formats
The 'linuxkit build' command line option was renamed from
'-output' to '-format' a while back. Rename the test group
to reflect the change.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
a0676106a2 tests: Disable x86 specific build.output tests for arm64
*-bios and various cloud output image types are not
supported on arm64. Use the automatic 'amd64' label
to disable them for arm64.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
00d778cdba Switch remaining YAML files to alpine:3.7
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
8434058dcf tests: Switch test to alpine:3.7
Some testis explicitly use alpine:3.6 and alpine:3.5 to run
some shell scripts. Switch them to alpine:3.7 like the
rest of the packages and tools.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-12 23:34:57 +00:00
Rolf Neugebauer
b46c983069
Merge pull request #2806 from rn/kern-up
Mechanic kernel update to 4.14.5/4.9.58/4.4.105
2017-12-11 15:05:25 +00:00
Rolf Neugebauer
7cd155aa6f Update YAML file to use the latest kernels
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-11 12:20:01 +00:00
Rolf Neugebauer
4df1c0ea56 kernel: Fix 4.14.x kernel config
Commit 340d45d70850 ("locking/refcounts, x86/asm: Enable
CONFIG_ARCH_HAS_REFCOUNT") re-enabled the ARCH_HAS_REFCOUNT
again as default. Pick it up in our kernel config.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-11 11:41:29 +00:00
Rolf Neugebauer
6a15459665 kernel: Update to 4.14.5/4.9.68/4.4.105
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-11 11:24:38 +00:00
Rolf Neugebauer
66ad02a1fc
Merge pull request #2804 from zx2c4/wireguard-bump
wireguard: update to 0.0.20171211
2017-12-11 08:47:48 +00:00
Jason A. Donenfeld
584e3ac7b3 wireguard: update to 0.0.20171211
* curve25519: explictly depend on AS_AVX
* curve25519: modularize dispatch

It's now much cleaner to see which implementation we're calling, and it will
be simpler to add more implementations in the future.

* compat: support RAP in assembly

This should fix PaX/Grsecurity support.

* device: do not clear keys during sleep on Android

While we want to clear keys when going to sleep on ordinary Linux, this
doesn't make sense in the Android world, where phones often sleep but are
woken up every few milliseconds by the radios to process packets.

* compat: fix 3.10 backport

Important compat fixes for non-x86.

* device: clear last handshake timer on ifdown

When bringing up an interface, we don't want the rate limiting to handshakes
to apply.

* netlink: rename symbol to avoid clashes

Allows coexistance with horrible Android drivers.

* kernel-tree: jury rig is the more common spelling
* tools: no need to put this on the stack
* blake2s-x86_64: fix spacing

Small fixes.

* contrib: keygen-html for generating keys in the browser

This was covered here:
https://lists.zx2c4.com/pipermail/wireguard/2017-December/002127.html

* tools: remove undocumented unused syntax

Not only did nobody know about this or use it, but the implementation actually
exposed compiler bugs in Qualcomm's "Snapdragon Clang".

* poly1305: update x86-64 kernel to AVX512F only

From Samuel Neves, this pulls in Andy Polyakov's changes to only require F and
not VL for the Poly implementation.

* chacha20-arm: fix with clang -fno-integrated-as.

This pulls in David Benjamin's clang fix.

* global: add SPDX tags to all files

From Greg KH, we now have SPDX annotations on all files, matching upstream
kernel's new approach to file licenses.

* chacha20poly1305: cleaner generic code

This entirely removes the last remains of Martin Willi's ChaCha
implementation, and now the generic C implementation is extremely small and
clearly written, while delivering a small performance boost too.

* poly1305: fix avx512f alignment bug

Unlucky people may have had their linkers misalign a constant. This fixes that
potential.

* chacha20: avx512vl implementation

From Samuel Neves, this imports Andy Polyakov's AVX512VL implementation of
ChaCha which should have a ~50% performance improvement over AVX2, though it
is still much slower than our AVX512F implementation.

* chacha20poly1305: wire up avx512vl for skylake-x

Some Skylake machines do not have two FMA units (though others do), so we
prefer the AVX512VL implementation over the should-be-faster AVX512F
implementation on those machines. What's needed now is to read the PIROM in
order to determine at runtime whether the particular Skylake-X machine
actually has the second FMA unit or not, but until that happens, we just fall
back to the VL implementation for all Skylake-X.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-12-11 05:11:56 +01:00
Rolf Neugebauer
dd7979e4aa
Merge pull request #2803 from rn/alpine-3.7
Update to Alpine 3.7
2017-12-08 19:13:28 +00:00
Rolf Neugebauer
0e1133281b Update all YAML files with new packages
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
a759caab48 tests: Update test package to use the alpine:3.7 base image
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
4254c91c9f kernel: Update build to use the alpine:3.7 base image
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
fa51c915ba pkg: Update all package to the alpine:3.7 base
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
a41dd90a64 pkg/qemu-ga: Fix build issue with alpine:3.7
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
84b8bce809 pkg/audit: Fix build issue with alpine:3.7
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
9f175e1e6c Update the use of linuxkit/qemu to the alpine:3.7 base
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
affa1c6b7d Update the uses of linuxkit/go-compile to the alpine:3.7 base
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
5fd1fa3663 tools: Update to the alpine:3.7 derived base image
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
f657ac9095 tools/alpine: Switch to alpine:3.7
alpine:3.7 also comes with go-1.9 so the special case
is not longer needed.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-08 16:25:13 +00:00
Rolf Neugebauer
86f12e15f0
Merge pull request #2796 from pcfdev-forks/master
Ensure VPNKit process is properly killed when errors occur
2017-12-08 11:26:49 +00:00
Rolf Neugebauer
62697e7e5e
Merge pull request #2802 from estesp/shiftfs-update-yaml
Remove containerd config from shiftfs.yaml
2017-12-08 09:00:23 +00:00
Phil Estes
9212c5d589
Remove containerd config from shiftfs.yaml
No need to have a special containerd daemon config file; might have been
a vestige of earlier variants of LinuxKit? It is also out of date and
incorrect for current containerd version.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-12-07 23:15:35 -06:00
Rolf Neugebauer
9aa8a4362f
Merge pull request #2801 from rn/kern-up
Update kernels to 4.14.4/4.9.67.4.4.104
2017-12-06 15:46:53 +00:00
Rolf Neugebauer
e7c1824a97 Update YAML files to new kernel versions
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-06 14:10:11 +00:00
Rolf Neugebauer
ea78cf64a4 docs: Don't mention full versions of 'linuxkit/kernel'
These get out of sync when doing a mechanic update of
kernel tags.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-06 14:07:30 +00:00
Rolf Neugebauer
4a5e06a033
Merge pull request #2797 from pcfdev-forks/vpnkit-path
Allow vpnkit executable path to be specified
2017-12-06 13:23:45 +00:00
Rolf Neugebauer
53127d7209 kernel: Update to 4.14.4/4.9.67/4.4.104
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-12-06 10:11:50 +00:00
Rolf Neugebauer
3622f1a67a
Merge pull request #2799 from justincormack/cableconnected
Connect cable on virtualbox networking
2017-12-06 10:07:14 +00:00
Rolf Neugebauer
a2cfeceda2
Merge pull request #2794 from ijc/containerd-v1.0.0
Update to containerd v1.0.0
2017-12-06 10:06:32 +00:00
David Manouchehri
c693e50f82
As requested by @ijc (https://github.com/linuxkit/linuxkit/pull/2784#discussion_r154895971).
Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
2017-12-05 19:08:43 -05:00
Justin Cormack
241e3a1bdb Connect cable on virtualbox networking
fix #2798

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-12-05 16:03:47 -06:00
Ian Campbell
3590c786bd Bump yml to pickup containerd v1.0.0
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-12-05 16:39:05 +00:00
Dave Protasowski
2d6f4c5484 Allow vpnkit executable path to be specified
Signed-off-by: Steve Hiehn <shiehn@pivotal.io>
Signed-off-by: Dave Protasowski <dprotaso@gmail.com>
2017-12-05 10:06:58 -05:00
Steve Hiehn
ec45349638 Register vpnkit publish port clean up function as a logrus.ExitHandler
Signed-off-by: Dave Protasowski <dprotaso@gmail.com>
2017-12-05 10:05:23 -05:00
Dave Protasowski
c9b4f8306a Ensure VPNKit process is properly killed when errors occur
The log.Fatal* calls will leak the vpnkit process since
defer functions are not invoked when os.Exit(int) is invoked

We register an ExitHandler with logrus - that'll be invoke when
log.Fatal* is called

Signed-off-by: Steve Hiehn <shiehn@pivotal.io>
Signed-off-by: Dave Protasowski <dprotaso@gmail.com>
2017-12-05 09:48:09 -05:00
Rolf Neugebauer
c7d9418500
Merge pull request #2795 from rn/patch
kernel: Add NVDIMM size patch to 4.14.x
2017-12-05 13:42:10 +00:00