Patch review Feb 15th
cover Patch review Feb 15th
Here is the next set for review.
Please have reviews back by Wednesday
The following changes since commit de37512b25c1f8c6bb6ab2b3782ac0fe01443483:
gpsd: mark CLEANBROKEN (2021-01-31 09:42:35 -0800)
are available in the Git repository at:
git://git.openembedded.org/meta-openembedded-contrib stable/dunfell-nut
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=stable/dunfell-nut
Andrej Kozemcak (1):
libuv: fix CVE-2020-8252
Haiqing Bai (1):
python-urllib3/python3-urllib3: fix CVE-2020-7212
Khem Raj (1):
python-grpcio-tools: Add missing space for append
Mario Schuknecht (1):
dnsmasq: Fix systemd service
Martin Jansa (1):
wireguard-module: remove PKG assignment
Zang Ruochen (1):
openldap: upgrade 2.4.50 -> 2.4.51
akuster (2):
enca: Fix SRC_URI
meta-oe/README: add Ubuntu prerequisite information
[email protected] (1):
celt051: update SRC_URI
zangrc (1):
openldap: upgrade 2.4.51 -> 2.4.56
zhengruoqin (1):
openldap: upgrade 2.4.56 -> 2.4.57
.../wireguard-module_1.0.20200401.bb | 7 ---
.../recipes-support/celt051/celt051_git.bb | 2 +-
.../dnsmasq/files/dnsmasq-resolvconf.service | 2 +-
meta-oe/README | 3 +
.../libuv/libuv/CVE-2020-8252.patch | 41 ++++++++++++++
.../libuv/libuv_1.36.0.bb | 3 +-
meta-oe/recipes-support/enca/enca_1.9.bb | 7 +--
...{openldap_2.4.50.bb => openldap_2.4.57.bb} | 6 +-
.../python/python-grpcio-tools.inc | 2 +-
.../python3-urllib3/CVE-2020-7212.patch | 55 +++++++++++++++++++
.../python/python3-urllib3_1.25.7.bb | 2 +
11 files changed, 112 insertions(+), 18 deletions(-)
create mode 100644 meta-oe/recipes-connectivity/libuv/libuv/CVE-2020-8252.patch
rename meta-oe/recipes-support/openldap/{openldap_2.4.50.bb => openldap_2.4.57.bb} (97%)
create mode 100644 meta-python/recipes-devtools/python/python3-urllib3/CVE-2020-7212.patchSignature · 1 line
2.17.1
PATCH 1/11 openldap: upgrade 2.4.50 -> 2.4.51
From: Zang Ruochen <[email protected]>
---
.../openldap/{openldap_2.4.50.bb => openldap_2.4.51.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/openldap/{openldap_2.4.50.bb => openldap_2.4.51.bb} (98%)meta-oe/recipes-support/openldap/openldap_2.4.51.bb renamed from meta-oe/recipes-support/openldap/openldap_2.4.50.bb +2 -2
@@ -25,8 +25,8 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$ file://remove-user-host-pwd-from-version.patch \ " -SRC_URI[md5sum] = "f9ed44ef373abed04c9e4c8586260f9e" -SRC_URI[sha256sum] = "5cb57d958bf5c55a678c6a0f06821e0e5504d5a92e6a33240841fbca1db586b8" +SRC_URI[md5sum] = "0d2025896cf1c17af7304ecc57ec9531" +SRC_URI[sha256sum] = "f490775ea4c6506b7210ee55a102c8f4aacfe9d1c8eaa633c7316d33a714be62" DEPENDS = "util-linux groff-native"
Signature · 1 line
2.17.1
PATCH 2/11 openldap: upgrade 2.4.51 -> 2.4.56
In reply to akusterFrom: zangrc <[email protected]>
Source: meta-openembedded
MR: 107249
Type: Security Fix
Disposition: Backport from https://git.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/openldap?id=768345053e83623e286ce3140756036e75c023bc
ChangeID: fbcadc7f563891b4aa489557c8d518ed46de5e9d
Description:
---
.../openldap/{openldap_2.4.51.bb => openldap_2.4.56.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/openldap/{openldap_2.4.51.bb => openldap_2.4.56.bb} (98%)meta-oe/recipes-support/openldap/openldap_2.4.56.bb renamed from meta-oe/recipes-support/openldap/openldap_2.4.51.bb +2 -2
@@ -25,8 +25,8 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$ file://remove-user-host-pwd-from-version.patch \ " -SRC_URI[md5sum] = "0d2025896cf1c17af7304ecc57ec9531" -SRC_URI[sha256sum] = "f490775ea4c6506b7210ee55a102c8f4aacfe9d1c8eaa633c7316d33a714be62" +SRC_URI[md5sum] = "82a7dcf7aeaf95fdad16017c0ed9983a" +SRC_URI[sha256sum] = "25520e0363c93f3bcb89802a4aa3db33046206039436e0c7c9262db5a61115e0" DEPENDS = "util-linux groff-native"
Signature · 1 line
2.17.1
PATCH 3/11 openldap: upgrade 2.4.56 -> 2.4.57
In reply to akusterFrom: zhengruoqin <[email protected]>
Source: meta-openembedded
MR: 108384, 108398, 108412, 108426, 108440, 108454, 108468, 108482, 108496, 108510
Type: Security Fix
Disposition: Backport from https://git.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/openldap?id=0282b8ce6a5a5f082a37cb0863b3e62ad8e56a5a
ChangeID: 0282b8ce6a5a5f082a37cb0863b3e62ad8e56a5a
Description:
-License-Update: Copyright year updated to 2021.
[Fixes CVE:
CVE-2020-36221
CVE-2020-36222
CVE-2020-36223
CVE-2020-36224
CVE-2020-36225
CVE-2020-36226
CVE-2020-36227
CVE-2020-36228
CVE-2020-36229
CVE-2020-36230
---
.../openldap/{openldap_2.4.56.bb => openldap_2.4.57.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-oe/recipes-support/openldap/{openldap_2.4.56.bb => openldap_2.4.57.bb} (97%)meta-oe/recipes-support/openldap/openldap_2.4.57.bb renamed from meta-oe/recipes-support/openldap/openldap_2.4.56.bb +3 -3
@@ -7,7 +7,7 @@ HOMEPAGE = "http://www.OpenLDAP.org/license.html" # basically BSD. opensource.org does not record this license # at present (so it is apparently not OSI certified). LICENSE = "OpenLDAP" -LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=5391b559d23a2237bdb21e7a62dae7c3 \ +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=b6dea6c170362fc46381fe3690c722cb \ file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972 \ " SECTION = "libs"
@@ -25,8 +25,8 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$ file://remove-user-host-pwd-from-version.patch \ " -SRC_URI[md5sum] = "82a7dcf7aeaf95fdad16017c0ed9983a" -SRC_URI[sha256sum] = "25520e0363c93f3bcb89802a4aa3db33046206039436e0c7c9262db5a61115e0" +SRC_URI[md5sum] = "e3349456c3a66e5e6155be7ddc3f042c" +SRC_URI[sha256sum] = "c7ba47e1e6ecb5b436f3d43281df57abeffa99262141aec822628bc220f6b45a" DEPENDS = "util-linux groff-native"
Signature · 1 line
2.17.1
PATCH 4/11 libuv: fix CVE-2020-8252
In reply to akusterFrom: Andrej Kozemcak <[email protected]>
--- .../libuv/libuv/CVE-2020-8252.patch | 41 +++++++++++++++++++ .../libuv/libuv_1.36.0.bb | 3 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-connectivity/libuv/libuv/CVE-2020-8252.patch
meta-oe/recipes-connectivity/libuv/libuv/CVE-2020-8252.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 0e6e8620496dff0eb285589ef1e37a7f407f3ddd Mon Sep 17 00:00:00 2001 +From: Ben Noordhuis <[email protected]> +Date: Mon, 24 Aug 2020 11:42:27 +0200 +Subject: [PATCH] unix: don't use _POSIX_PATH_MAX + +Libuv was using _POSIX_PATH_MAX wrong. Bug introduced in commit b56d279b +("unix: do not require PATH_MAX to be defined") from September 2018. + +_POSIX_PATH_MAX is the minimum max path size guaranteed by POSIX, not +the actual max path size of the system libuv runs on. _POSIX_PATH_MAX +is always 256, the real max is often much bigger. + +This commit fixes buffer overruns when processing very long paths in +uv_fs_readlink() and uv_fs_realpath() because libuv was not allocating +enough memory to store the result. + +Fixes: https://github.com/libuv/libuv/issues/2965 +PR-URL: https://github.com/libuv/libuv/pull/2966 + +Upstream-Status: Backport [https://github.com/libuv/libuv/commit/0e6e8620496dff0eb285589ef1e37a7f407f3ddd] +CVE: CVE-2020-8252 +Signed-off-by: Andrej Kozemcak <[email protected]> +--- + src/unix/internal.h | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/src/unix/internal.h b/src/unix/internal.h +index 30711673e0..9d3c2297f8 100644 +--- a/src/unix/internal.h ++++ b/src/unix/internal.h +@@ -62,9 +62,7 @@ + # include <AvailabilityMacros.h> + #endif + +-#if defined(_POSIX_PATH_MAX) +-# define UV__PATH_MAX _POSIX_PATH_MAX +-#elif defined(PATH_MAX) ++#if defined(PATH_MAX) + # define UV__PATH_MAX PATH_MAX + #else + # define UV__PATH_MAX 8192
meta-oe/recipes-connectivity/libuv/libuv_1.36.0.bb +2 -1
@@ -5,7 +5,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=a68902a430e32200263d182d44924d47" SRCREV = "533b738838ad8407032e14b6772b29ef9af63cfa" -SRC_URI = "git://github.com/libuv/libuv;branch=v1.x" +SRC_URI = "git://github.com/libuv/libuv;branch=v1.x \ + file://CVE-2020-8252.patch" S = "${WORKDIR}/git"
Signature · 1 line
2.17.1
PATCH 5/11 python-urllib3/python3-urllib3: fix CVE-2020-7212
In reply to akusterFrom: Haiqing Bai <[email protected]>
Optimize _encode_invalid_chars for a denial of service (CPU consumption)
CVE: CVE-2020-7212
--- .../python3-urllib3/CVE-2020-7212.patch | 55 +++++++++++++++++++ .../python/python3-urllib3_1.25.7.bb | 2 + 2 files changed, 57 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-urllib3/CVE-2020-7212.patch
meta-python/recipes-devtools/python/python3-urllib3/CVE-2020-7212.patch new file +55 -0
@@ -0,0 +1,55 @@ +From aff951b7a41eb5b958b32c49eaa00da02adc9c2d Mon Sep 17 00:00:00 2001 +From: Quentin Pradet <[email protected]> +Date: Tue, 21 Jan 2020 22:32:56 +0400 +Subject: [PATCH] Optimize _encode_invalid_chars (#1787) + +Co-authored-by: Seth Michael Larson <[email protected]> + +Upstream-Status: Backport +[from git://github.com/urllib3/urllib3.git commit:a2697e7c6b] +CVE: CVE-2020-7212 +Signed-off-by: Haiqing Bai <[email protected]> +--- + src/urllib3/util/url.py | 15 ++++++--------- + 1 file changed, 6 insertions(+), 9 deletions(-) + +diff --git a/src/urllib3/util/url.py b/src/urllib3/util/url.py +index 9675f74..e353937 100644 +--- a/src/urllib3/util/url.py ++++ b/src/urllib3/util/url.py +@@ -216,18 +216,15 @@ def _encode_invalid_chars(component, allowed_chars, encoding="utf-8"): + + component = six.ensure_text(component) + ++ # Normalize existing percent-encoded bytes. + # Try to see if the component we're encoding is already percent-encoded + # so we can skip all '%' characters but still encode all others. +- percent_encodings = PERCENT_RE.findall(component) +- +- # Normalize existing percent-encoded bytes. +- for enc in percent_encodings: +- if not enc.isupper(): +- component = component.replace(enc, enc.upper()) ++ component, percent_encodings = PERCENT_RE.subn( ++ lambda match: match.group(0).upper(), component ++ ) + + uri_bytes = component.encode("utf-8", "surrogatepass") +- is_percent_encoded = len(percent_encodings) == uri_bytes.count(b"%") +- ++ is_percent_encoded = percent_encodings == uri_bytes.count(b"%") + encoded_component = bytearray() + + for i in range(0, len(uri_bytes)): +@@ -237,7 +234,7 @@ def _encode_invalid_chars(component, allowed_chars, encoding="utf-8"): + if (is_percent_encoded and byte == b"%") or ( + byte_ord < 128 and byte.decode() in allowed_chars + ): +- encoded_component.extend(byte) ++ encoded_component += byte + continue + encoded_component.extend(b"%" + (hex(byte_ord)[2:].encode().zfill(2).upper())) + +-- +2.23.0 +
meta-python/recipes-devtools/python/python3-urllib3_1.25.7.bb +2 -0
@@ -8,6 +8,8 @@ SRC_URI[sha256sum] = "f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e4 inherit pypi setuptools3 +SRC_URI += "file://CVE-2020-7212.patch" + RDEPENDS_${PN} += "\ ${PYTHON_PN}-certifi \ ${PYTHON_PN}-cryptography \
Signature · 1 line
2.17.1
PATCH 6/11 wireguard-module: remove PKG assignment
In reply to akusterFrom: Martin Jansa <[email protected]>
* it's not clear why it was added in first place and it's causing issues since:
"package: get_package_mapping: avoid dependency mapping if renamed package provides original name" commit in oe-core as discussed in:
https://lists.openembedded.org/g/openembedded-core/message/143672
https://github.com/openembedded/meta-openembedded/issues/285
--- .../wireguard/wireguard-module_1.0.20200401.bb | 7 ------- 1 file changed, 7 deletions(-)
meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb +0 -7
@@ -22,13 +22,6 @@ MAKE_TARGETS = "module" RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit" MODULE_NAME = "wireguard" -# Kernel module packages MUST begin with 'kernel-module-', otherwise -# multilib image generation can fail. -# -# The following line is only necessary if the recipe name does not begin -# with kernel-module-. -PKG_${PN} = "kernel-module-${MODULE_NAME}" - module_do_install() { install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME} install -m 0644 ${MODULE_NAME}.ko \
Signature · 1 line
2.17.1
PATCH 7/11 enca: Fix SRC_URI
In reply to akusterFrom: akuster <[email protected]>
The project appears to have moved.
Update HOMEPAGE and SRC_URI. bz2 is not available, use gz Update HASH accordingly.
Fixes:
WARNING: enca-1.9-r0 do_fetch: Failed to fetch URL http://www.sourcefiles.org/Networking/Tools/Miscellanenous/enca-1.9.tar.bz2, attempting MIRRORS if available
--- meta-oe/recipes-support/enca/enca_1.9.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
meta-oe/recipes-support/enca/enca_1.9.bb +3 -4
@@ -1,21 +1,20 @@ SUMMARY = "Enca is an Extremely Naive Charset Analyser" SECTION = "libs" -HOMEPAGE = "http://trific.ath.cx/software/enca/" +HOMEPAGE = "https://cihar.com/software/enca/" DEPENDS += "gettext-native" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=24b9569831c46d4818450b55282476b4" -SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/enca-${PV}.tar.bz2 \ +SRC_URI = "https://dl.cihar.com/enca/enca-${PV}.tar.gz \ file://configure-hack.patch \ file://dont-run-tests.patch \ file://configure-remove-dumbness.patch \ file://makefile-remove-tools.patch \ file://libenca-003-iconv.patch " -SRC_URI[md5sum] = "b3581e28d68d452286fb0bfe58bed3b3" -SRC_URI[sha256sum] = "02acfef2b24a9c842612da49338138311f909f1cd33933520c07b8b26c410f4d" +SRC_URI[sha256sum] = "75a38ed23bac37cc12166cc5edc8335c3af862adc202f84823d3aef3e2208e47" inherit autotools
Signature · 1 line
2.17.1
PATCH 8/11 meta-oe/README: add Ubuntu prerequisite information
In reply to akusterFrom: akuster <[email protected]>
When building on Ubuntu 20.04, luajit needs 32bit support so install 'gcc-multilib'
--- meta-oe/README | 3 +++ 1 file changed, 3 insertions(+)
meta-oe/README +3 -0
@@ -14,6 +14,9 @@ e.g. on archlinux based distributions install prerequisites like below pacman -S lib32-gcc-libs lib32-glibc +Ubuntu +sudo apt-get install gcc-multilib + Send pull requests to [email protected] with '[meta-oe][dunfell]' in the subject' When sending single patches, please use something like:
Signature · 1 line
2.17.1
PATCH 9/11 celt051: update SRC_URI
In reply to akusterFrom: "[email protected]" <[email protected]>
original SRC_URI is not valid now, offical CELT repository moved to gitlab
--- meta-networking/recipes-support/celt051/celt051_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/celt051/celt051_git.bb +1 -1
@@ -16,7 +16,7 @@ PV = "0.5.1.3+git${SRCPV}" SRCREV = "5555aae843f57241d005e330b9cb65602d56db0f" -SRC_URI = "git://git.xiph.org/celt.git;branch=compat-v0.5.1;protocol=https \ +SRC_URI = "git://gitlab.xiph.org/xiph/celt.git;branch=compat-v0.5.1;protocol=https \ file://0001-configure.ac-make-tools-support-optional.patch \ file://0001-tests-Include-entcode.c-into-test-sources-to-provide.patch \ "
Signature · 1 line
2.17.1
PATCH 10/11 dnsmasq: Fix systemd service
In reply to akusterFrom: Mario Schuknecht <[email protected]>
Systemd service file option 'ExecStopPre' is warned and ignored by systemd. By replacing 'ExecStopPre' with 'ExecStop', the intended behavior is realized. The 'ExecStop' commands are executed one after the other.
--- .../recipes-support/dnsmasq/files/dnsmasq-resolvconf.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/dnsmasq/files/dnsmasq-resolvconf.service +1 -1
@@ -8,7 +8,7 @@ PIDFile=/run/dnsmasq.pid ExecStartPre=/usr/bin/dnsmasq --test ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid -7 /etc/dnsmasq.d --local-service ExecStartPost=/usr/bin/dnsmasq-resolvconf-helper start -ExecStopPre=/usr/bin/dnsmasq-resolvconf-helper stop +ExecStop=/usr/bin/dnsmasq-resolvconf-helper stop ExecStop=/bin/kill $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Signature · 1 line
2.17.1
PATCH 11/11 python-grpcio-tools: Add missing space for append
In reply to akusterFrom: Khem Raj <[email protected]>
--- meta-python/recipes-devtools/python/python-grpcio-tools.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-grpcio-tools.inc +1 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "Google gRPC tools" HOMEPAGE = "http://www.grpc.io/" SECTION = "devel/python" -DEPENDS_append = "${PYTHON_PN}-grpcio" +DEPENDS_append = " ${PYTHON_PN}-grpcio" RDEPENDS_${PN} = "${PYTHON_PN}-grpcio" LICENSE = "Apache-2.0"
Signature · 1 line
2.17.1
Quoted 11 lines · akuster
Here is the next set for review.
Please have reviews back by WednesdayThe following changes since commit
de37512b25c1f8c6bb6ab2b3782ac0fe01443483:gpsd: mark CLEANBROKEN (2021-01-31 09:42:35 -0800)
are available in the Git repository at:
git://git.openembedded.org/meta-openembedded-contribstable/dunfell-nut
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=stable/dunfell-nut
Please include
https://lists.openembedded.org/g/openembedded-devel/message/89395
as well.
Quoted 8 lines · Martin Jansa
Quoted 7 lines · akuster
Here is the next set for review.
Please have reviews back by WednesdayThe following changes since commit
de37512b25c1f8c6bb6ab2b3782ac0fe01443483:gpsd: mark CLEANBROKEN (2021-01-31 09:42:35 -0800)
Quoted 7 lines
Quoted 4 lines
are available in the Git repository at:
git://git.openembedded.org/meta-openembedded-contribstable/dunfell-nut
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=stable/dunfell-nutPlease include
https://lists.openembedded.org/g/openembedded-devel/message/89395
as well.
got it thanks.
Armin
Martin Jansa
Acked-bylets fix the parsing :)
dunfell-next
Quoted 24 lines · On Tue, Feb 16, 2021 at 4:58 PM akuster808 <[email protected]> wrote:
Quoted 5 lines · Martin Jansa
Quoted 4 lines · akuster
Here is the next set for review.
Please have reviews back by WednesdayThe following changes since commit
de37512b25c1f8c6bb6ab2b3782ac0fe01443483:Quoted 6 lines
Quoted 6 lines
gpsd: mark CLEANBROKEN (2021-01-31 09:42:35 -0800)
are available in the Git repository at:
git://git.openembedded.org/meta-openembedded-contribstable/dunfell-nut
Quoted 1 line
Quoted 1 line
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=stable/dunfell-nut
Quoted 3 lines
Please include
https://lists.openembedded.org/g/openembedded-devel/message/89395
as well.got it thanks.
Armin