containerd: update to v1.2.4
PATCH 1/2 containerd: update to v1.2.4
From: Stefan Agner <[email protected]>
Update containerd to the latest release of the 1.2.x branch. We have to tweak the go compile patch, but otherwise, the build is unchanged.
--- .../containerd/containerd-opencontainers_git.bb | 4 ++-- .../files/0001-build-use-oe-provided-GO-and-flags.patch | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-)
recipes-containers/containerd/containerd-opencontainers_git.bb +2 -2
@@ -1,4 +1,4 @@ -SRCREV = "0190e5f3900227fc739afbc8f4a03df968dc337b" +SRCREV = "e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e" SRC_URI = "git://github.com/containerd/containerd;nobranch=1 \ file://0001-build-use-oe-provided-GO-and-flags.patch \ "
@@ -7,7 +7,7 @@ include containerd.inc LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=1269f40c0d099c21a871163984590d89" -CONTAINERD_VERSION = "v1.2.0" +CONTAINERD_VERSION = "v1.2.4" PROVIDES += "virtual/containerd" RPROVIDES_${PN} = "virtual/containerd"
recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch +7 -6
@@ -1,6 +1,6 @@ -From 408e8b526d490af817a64b7220e8e2c3789de58f Mon Sep 17 00:00:00 2001 -From: Bruce Ashfield <[email protected]> -Date: Sun, 10 Feb 2019 23:46:06 +0000 +From 6e76a23b831c1c8d39e14afe7ef1368eacaa778a Mon Sep 17 00:00:00 2001 +From: Stefan Agner <[email protected]> +Date: Fri, 15 Feb 2019 13:37:19 +0000 Subject: [PATCH] build: use oe provided GO and flags We want to use the go compiler as defined in the oe-enviroment, not the
@@ -8,6 +8,7 @@ generic call to 'go'. Without changing this, we'll get things like cgo errors and invalid flag combos. Signed-off-by: Bruce Ashfield <[email protected]> +Signed-off-by: Stefan Agner <[email protected]> --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
@@ -20,8 +21,8 @@ index 8e680133..fd7d2813 100644 # Build a binary from a cmd. bin/%: cmd/% FORCE @echo "$(WHALE) $@${BINARY_SUFFIX}" -- @go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< -+ @$(GO) build ${GO_BUILD_FLAGS} ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< +- @go build ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< ++ @$(GO) build ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220 @echo "$(WHALE) bin/containerd-shim"
@@ -41,5 +42,5 @@ index 8e680133..fd7d2813 100644 binaries: $(BINARIES) ## build binaries @echo "$(WHALE) $@" -- -2.19.1 +2.13.6
Signature · 1 line
2.13.6
PATCH 2/2 runc: address CVE-2019-5736
From: Stefan Agner <[email protected]>
Use git hash which addresses CVE-2019-5736. Use the same git hash used in top of 18.09 Docker branch.
--- recipes-containers/runc/runc-docker_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/runc/runc-docker_git.bb +1 -1
@@ -4,7 +4,7 @@ RRECOMMENDS_${PN} = "lxc docker" # Note: this rev is before the required protocol field, update when all components # have been updated to match. -SRCREV_runc-docker = "4a600c04ed480084b2351b3e32c26cb4a2d5d533" +SRCREV_runc-docker = "6635b4f0c6af3810594d2770f662f34ddc15b40d" SRC_URI = "git://github.com/opencontainers/runc;nobranch=1;name=runc-docker \ file://0001-runc-Add-console-socket-dev-null.patch \ file://0001-build-drop-recvtty-and-use-GOBUILDFLAGS.patch \
Signature · 1 line
2.13.6
Re: [PATCH 2/2] runc: address CVE-2019-5736
Thanks for the patch!
I'm touchy about runc updates, due to many hours of fixing subtle breakage when updating. Can
we log all of the shortlogs between the two SRCREVs in the commit message. It'll make tracking
down errors easier when inevitably I end up debugging something.
We need to take care of the opencontainers variant at the same time. Yes, they are virtually the
same right now, but I'm keeping both recipes around since history shows that I'll need them again.
Cheers,
Bruce
Quoted 28 lines · Stefan Agner
From: Stefan Agner <[email protected]>
Use git hash which addresses CVE-2019-5736. Use the same git hash used in top of 18.09 Docker branch.
Fixes CVE-2019-5736Signed-off-by Stefan Agner <[email protected]>--- recipes-containers/runc/runc-docker_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-containers/runc/runc-docker_git.bb +1
-2@@ -4,7 +4,7 @@ RRECOMMENDS_${PN} = "lxc docker" # Note: this rev is before the required protocol field, update when all components # have been updated to match. -SRCREV_runc-docker = "4a600c04ed480084b2351b3e32c26cb4a2d5d533" +SRCREV_runc-docker = "6635b4f0c6af3810594d2770f662f34ddc15b40d" SRC_URI = "git://github.com/opencontainers/runc;nobranch=1;name=runc-docker \ file://0001-runc-Add-console-socket-dev-null.patch \ file://0001-build-drop-recvtty-and-use-GOBUILDFLAGS.patch \ --2.13.6
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
I've already got this one queued, I'm doing some extra testing and expect to push it next week.
Bruce
Quoted 74 lines · Stefan Agner
From: Stefan Agner <[email protected]>
Update containerd to the latest release of the 1.2.x branch. We have to tweak the go compile patch, but otherwise, the build is unchanged.
Signed-off-by Stefan Agner <[email protected]>--- .../containerd/containerd-opencontainers_git.bb | 4 ++-- .../files/0001-build-use-oe-provided-GO-and-flags.patch | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-)recipes-containers/containerd/containerd-opencontainers_git.bb +2
-2@@ -1,4 +1,4 @@ -SRCREV = "0190e5f3900227fc739afbc8f4a03df968dc337b" +SRCREV = "e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e" SRC_URI = "git://github.com/containerd/containerd;nobranch=1 \ file://0001-build-use-oe-provided-GO-and-flags.patch \ "@@ -7,7 +7,7 @@ include containerd.inc LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=1269f40c0d099c21a871163984590d89" -CONTAINERD_VERSION = "v1.2.0" +CONTAINERD_VERSION = "v1.2.4" PROVIDES += "virtual/containerd" RPROVIDES_${PN} = "virtual/containerd"recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch +7
-7@@ -1,6 +1,6 @@ -From 408e8b526d490af817a64b7220e8e2c3789de58f Mon Sep 17 00:00:00 2001 -From: Bruce Ashfield <[email protected]> -Date: Sun, 10 Feb 2019 23:46:06 +0000 +From 6e76a23b831c1c8d39e14afe7ef1368eacaa778a Mon Sep 17 00:00:00 2001 +From: Stefan Agner <[email protected]> +Date: Fri, 15 Feb 2019 13:37:19 +0000 Subject: [PATCH] build: use oe provided GO and flags We want to use the go compiler as defined in the oe-enviroment, not the@@ -8,6 +8,7 @@ generic call to 'go'. Without changing this, we'll get things like cgo errors and invalid flag combos. Signed-off-by: Bruce Ashfield <[email protected]> +Signed-off-by: Stefan Agner <[email protected]> --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)@@ -20,8 +21,8 @@ index 8e680133..fd7d2813 100644 # Build a binary from a cmd. bin/%: cmd/% FORCE @echo "$(WHALE) $@${BINARY_SUFFIX}" -- @go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< -+ @$(GO) build ${GO_BUILD_FLAGS} ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< +- @go build ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< ++ @$(GO) build ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@${BINARY_SUFFIX} ${GO_LDFLAGS} ${GO_TAGS} ./$< bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220 @echo "$(WHALE) bin/containerd-shim"@@ -41,5 +42,5 @@ index 8e680133..fd7d2813 100644 binaries: $(BINARIES) ## build binaries @echo "$(WHALE) $@" -- -2.19.1 +2.13.6 --2.13.6
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II