Skip to contentSkip to conversation

linux-firmware: Bump revision to 44d4fca

PATCH In review Otavio Salvador 4 participants 7 messages Sep 16, 2018 – Sep 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 linux-firmware: Bump revision to 44d4fca

44d4fca Merge https://github.com/pmachata/linux-firmware
253a573 brcm: update firmware for bcm43362 sdio
3cee728 Mellanox: Add new mlxsw_spectrum firmware 13.1703.4
ccab6c7 rtl_bt: Add firmware and configuration files for the Bluetooth part of RTL8822CU 75d2b12 Mellanox: Add new mlxsw_spectrum firmware 13.1703.4
85c5d90 nvidia: switch GP10[2467] to newer scrubber/ACR firmware (from GP108)

License-Update: new firmware files additions

---

 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +2 -2
index 1b6be054a2..7829c24579 100644
@@ -122,7 +122,7 @@ LIC_FILES_CHKSUM = "\
     file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \
     file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \
     file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \
-    file://WHENCE;md5=feb25f3efdbe10fcc121005d02d407d6 \
+    file://WHENCE;md5=36ef3e9887bb8b38ff265c602de6740e \
 "
 
 # These are not common licenses, set NO_GENERIC_LICENSE for them
@@ -188,7 +188,7 @@ NO_GENERIC_LICENSE[Firmware-xc5000] = "LICENCE.xc5000"
 NO_GENERIC_LICENSE[Firmware-xc5000c] = "LICENCE.xc5000c"
 NO_GENERIC_LICENSE[WHENCE] = "WHENCE"
 
-SRCREV = "fea76a04f25fd0a217c0d566ff5ff8f23ad3e648"
+SRCREV = "44d4fca9922a252a0bd81f6307bcc072a78da54a"
 PE = "1"
 PV = "0.0+git${SRCPV}"
 
Signature · 1 line
2.19.0
#1 lore raw

PATCH 2/4 libarchive: Update 3.3.2 -> 3.3.3

This upgrades to 3.3.3 release and drop the backported patches when doing the recipe update.

---

 .../libarchive/CVE-2017-14166.patch           | 37 ---------
 .../libarchive/CVE-2017-14501.patch           | 79 -------------------
 .../libarchive/CVE-2017-14502.patch           | 37 ---------
 .../libarchive/CVE-2017-14503.patch           | 33 --------
 .../libarchive/libarchive/bug929.patch        | 38 ---------
 ...ibarchive_3.3.2.bb => libarchive_3.3.3.bb} | 11 +--
 6 files changed, 3 insertions(+), 232 deletions(-)
 delete mode 100644 meta/recipes-extended/libarchive/libarchive/CVE-2017-14166.patch
 delete mode 100644 meta/recipes-extended/libarchive/libarchive/CVE-2017-14501.patch
 delete mode 100644 meta/recipes-extended/libarchive/libarchive/CVE-2017-14502.patch
 delete mode 100644 meta/recipes-extended/libarchive/libarchive/CVE-2017-14503.patch
 delete mode 100644 meta/recipes-extended/libarchive/libarchive/bug929.patch
 rename meta/recipes-extended/libarchive/{libarchive_3.3.2.bb => libarchive_3.3.3.bb} (86%)
meta/recipes-extended/libarchive/libarchive/CVE-2017-14166.patch deleted +0 -37
deleted file mode 100644
index e85fec40aa..0000000000
@@ -1,37 +0,0 @@
-libarchive-3.3.2: Fix CVE-2017-14166
-
-[No upstream tracking] -- https://github.com/libarchive/libarchive/pull/935
-
-archive_read_support_format_xar: heap-based buffer overflow in xml_data
-
-Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/fa7438a0ff4033e4741c807394a9af6207940d71]
-CVE: CVE-2017-14166
-Bug: 935
-Signed-off-by: Andrej Valek <[email protected]>
-
-diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c
-index 7a22beb..93eeacc 100644
---- a/libarchive/archive_read_support_format_xar.c
-+++ b/libarchive/archive_read_support_format_xar.c
-@@ -1040,6 +1040,9 @@ atol10(const char *p, size_t char_cnt)
- 	uint64_t l;
- 	int digit;
- 
-+	if (char_cnt == 0)
-+		return (0);
-+
- 	l = 0;
- 	digit = *p - '0';
- 	while (digit >= 0 && digit < 10  && char_cnt-- > 0) {
-@@ -1054,7 +1057,10 @@ atol8(const char *p, size_t char_cnt)
- {
- 	int64_t l;
- 	int digit;
--        
-+
-+	if (char_cnt == 0)
-+		return (0);
-+
- 	l = 0;
- 	while (char_cnt-- > 0) {
- 		if (*p >= '0' && *p <= '7')
meta/recipes-extended/libarchive/libarchive/CVE-2017-14501.patch deleted +0 -79

79 lines not on this page · raw message

meta/recipes-extended/libarchive/libarchive/CVE-2017-14502.patch deleted +0 -37
deleted file mode 100644
index 72e1546435..0000000000
@@ -1,37 +0,0 @@
-From 5562545b5562f6d12a4ef991fae158bf4ccf92b6 Mon Sep 17 00:00:00 2001
-From: Joerg Sonnenberger <[email protected]>
-Date: Sat, 9 Sep 2017 17:47:32 +0200
-Subject: [PATCH] Avoid a read off-by-one error for UTF16 names in RAR
- archives.
-
-Reported-By: OSS-Fuzz issue 573
-
-CVE: CVE-2017-14502
-
-Upstream-Status: Backport
-
-Signed-off-by: Zhixiong Chi <[email protected]>
----
- libarchive/archive_read_support_format_rar.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c
-index cbb14c3..751de69 100644
---- a/libarchive/archive_read_support_format_rar.c
-+++ b/libarchive/archive_read_support_format_rar.c
-@@ -1496,7 +1496,11 @@ read_header(struct archive_read *a, struct archive_entry *entry,
-         return (ARCHIVE_FATAL);
-       }
-       filename[filename_size++] = '\0';
--      filename[filename_size++] = '\0';
-+      /*
-+       * Do not increment filename_size here as the computations below
-+       * add the space for the terminating NUL explicitly.
-+       */
-+      filename[filename_size] = '\0';
- 
-       /* Decoded unicode form is UTF-16BE, so we have to update a string
-        * conversion object for it. */
--- 
-1.9.1
-
meta/recipes-extended/libarchive/libarchive/CVE-2017-14503.patch deleted +0 -33
deleted file mode 100644
index 779ca854eb..0000000000
@@ -1,33 +0,0 @@
-From 2c8c83b9731ff822fad6cc8c670ea5519c366a14 Mon Sep 17 00:00:00 2001
-From: Joerg Sonnenberger <[email protected]>
-Date: Thu, 19 Jul 2018 21:14:53 +0200
-Subject: [PATCH] Reject LHA archive entries with negative size.
-
-CVE: CVE-2017-14503
-Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/2c8c83b9731ff822fad6cc8c670ea5519c366a14]
-
-Signed-off-by: Jagadeesh Krishnanjanappa <[email protected]> 
----
- libarchive/archive_read_support_format_lha.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/libarchive/archive_read_support_format_lha.c b/libarchive/archive_read_support_format_lha.c
-index b8ef4ae1..95c99bb1 100644
---- a/libarchive/archive_read_support_format_lha.c
-+++ b/libarchive/archive_read_support_format_lha.c
-@@ -701,6 +701,12 @@ archive_read_format_lha_read_header(struct archive_read *a,
- 	 * Prepare variables used to read a file content.
- 	 */
- 	lha->entry_bytes_remaining = lha->compsize;
-+	if (lha->entry_bytes_remaining < 0) {
-+		archive_set_error(&a->archive,
-+		    ARCHIVE_ERRNO_FILE_FORMAT,
-+		    "Invalid LHa entry size");
-+		return (ARCHIVE_FATAL);
-+	}
- 	lha->entry_offset = 0;
- 	lha->entry_crc_calculated = 0;
- 
--- 
-2.13.3
-
meta/recipes-extended/libarchive/libarchive/bug929.patch deleted +0 -38
deleted file mode 100644
index 2f3254c8dc..0000000000
@@ -1,38 +0,0 @@
-libarchive-3.3.2: Fix bug929
-
-[No upstream tracking] -- https://github.com/libarchive/libarchive/pull/929
-
-archive_read_support_format_cpio: header_newc(): Avoid overflow when reading corrupt
-cpio archive
-
-A cpio "newc" archive with a namelength of "FFFFFFFF", if read on a
-system with a 32-bit size_t, would result in namelength + name_pad
-overflowing 32 bits and libarchive attempting to copy 2^32-1 bytes
-from a 2-byte buffer, with appropriately hilarious results.
-
-Check for this overflow and fail; there's no legitimate reason for a
-cpio archive to contain a file with a name over 4 billion characters
-in length.
-
-Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/bac4659e0b970990e7e3f3a3d239294e96311630]
-Bug: 929
-Signed-off-by: Andrej Valek <[email protected]>
-
-diff --git a/libarchive/archive_read_support_format_cpio.c b/libarchive/archive_read_support_format_cpio.c
-index ad9f782..1faa64d 100644
---- a/libarchive/archive_read_support_format_cpio.c
-+++ b/libarchive/archive_read_support_format_cpio.c
-@@ -633,6 +633,13 @@ header_newc(struct archive_read *a, struct cpio *cpio,
- 	/* Pad name to 2 more than a multiple of 4. */
- 	*name_pad = (2 - *namelength) & 3;
- 
-+	/* Make sure that the padded name length fits into size_t. */
-+	if ((size_t)(*namelength + *name_pad) < *namelength) {
-+		archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
-+		    "cpio archive has invalid namelength");
-+		return (ARCHIVE_FATAL);
-+	}
-+
- 	/*
- 	 * Note: entry_bytes_remaining is at least 64 bits and
- 	 * therefore guaranteed to be big enough for a 33-bit file
meta/recipes-extended/libarchive/libarchive_3.3.3.bb renamed from meta/recipes-extended/libarchive/libarchive_3.3.2.bb +3 -8
similarity index 86%
rename from meta/recipes-extended/libarchive/libarchive_3.3.2.bb
rename to meta/recipes-extended/libarchive/libarchive_3.3.3.bb
index e3d90b276a..eabab16770 100644
@@ -32,16 +32,11 @@ PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
 EXTRA_OECONF += "--enable-largefile"
 
 SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \
-           file://bug929.patch \
-           file://CVE-2017-14166.patch \
-           file://CVE-2017-14502.patch \
            file://non-recursive-extract-and-list.patch \
-           file://CVE-2017-14503.patch \
-           file://CVE-2017-14501.patch \
-          "
+"
 
-SRC_URI[md5sum] = "4583bd6b2ebf7e0e8963d90879eb1b27"
-SRC_URI[sha256sum] = "ed2dbd6954792b2c054ccf8ec4b330a54b85904a80cef477a1c74643ddafa0ce"
+SRC_URI[md5sum] = "4038e366ca5b659dae3efcc744e72120"
+SRC_URI[sha256sum] = "ba7eb1781c9fbbae178c4c6bad1c6eb08edab9a1496c64833d1715d022b30e2e"
 
 inherit autotools update-alternatives pkgconfig
 
Signature · 1 line
2.19.0
#2 lore raw

PATCH 3/4 cmake: Upgrade 3.12.1 -> 3.12.2

In reply to Otavio Salvador

---

 .../cmake/{cmake-native_3.12.1.bb => cmake-native_3.12.2.bb}  | 0
 meta/recipes-devtools/cmake/cmake.inc                         | 4 ++--
 .../cmake/{cmake_3.12.1.bb => cmake_3.12.2.bb}                | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/cmake/{cmake-native_3.12.1.bb => cmake-native_3.12.2.bb} (100%)
 rename meta/recipes-devtools/cmake/{cmake_3.12.1.bb => cmake_3.12.2.bb} (100%)
meta/recipes-devtools/cmake/cmake-native_3.12.2.bb renamed from meta/recipes-devtools/cmake/cmake-native_3.12.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/cmake/cmake-native_3.12.1.bb
rename to meta/recipes-devtools/cmake/cmake-native_3.12.2.bb
meta/recipes-devtools/cmake/cmake.inc +2 -2
index 4c30162c19..09e28b73dd 100644
@@ -18,7 +18,7 @@ SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
            file://0004-Fail-silently-if-system-Qt-installation-is-broken.patch \
 "
 
-SRC_URI[md5sum] = "10109246a51102bfda45ff3935275fbf"
-SRC_URI[sha256sum] = "c53d5c2ce81d7a957ee83e3e635c8cda5dfe20c9d501a4828ee28e1615e57ab2"
+SRC_URI[md5sum] = "6e7c550cfa1c2e216b35903dc70d80af"
+SRC_URI[sha256sum] = "0f97485799e51a7070cc11494f3e02349b0fc3a24cc12b082e737bf67a0581a4"
 
 UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
meta/recipes-devtools/cmake/cmake_3.12.2.bb renamed from meta/recipes-devtools/cmake/cmake_3.12.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/cmake/cmake_3.12.1.bb
rename to meta/recipes-devtools/cmake/cmake_3.12.2.bb
Signature · 1 line
2.19.0
#3 lore raw

PATCH 4/4 u-boot: Upgrade 2018.07 -> 2018.09

In reply to Otavio Salvador

This upgrades U-Boot to 2018.09 release and drop the backported security fixes which are now included upstream.

---

 .../u-boot/files/CVE-2018-1000205-1.patch     |  59 --------
 .../u-boot/files/CVE-2018-1000205-2.patch     | 143 ------------------
 ..._2018.07.inc => u-boot-common_2018.09.inc} |   7 +-
 ..._2018.07.bb => u-boot-fw-utils_2018.09.bb} |   0
 ...e_2018.07.bb => u-boot-mkimage_2018.09.bb} |   0
 .../{u-boot_2018.07.bb => u-boot_2018.09.bb}  |   0
 6 files changed, 2 insertions(+), 207 deletions(-)
 delete mode 100644 meta/recipes-bsp/u-boot/files/CVE-2018-1000205-1.patch
 delete mode 100644 meta/recipes-bsp/u-boot/files/CVE-2018-1000205-2.patch
 rename meta/recipes-bsp/u-boot/{u-boot-common_2018.07.inc => u-boot-common_2018.09.inc} (64%)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.07.bb => u-boot-fw-utils_2018.09.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.07.bb => u-boot-mkimage_2018.09.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2018.07.bb => u-boot_2018.09.bb} (100%)
meta/recipes-bsp/u-boot/files/CVE-2018-1000205-1.patch deleted +0 -59
deleted file mode 100644
index fed3c3dcb9..0000000000
@@ -1,59 +0,0 @@
-From 7346c1e192d63cd35f99c7e845e53c5d4d0bdc24 Mon Sep 17 00:00:00 2001
-From: Teddy Reed <[email protected]>
-Date: Sat, 9 Jun 2018 11:45:20 -0400
-Subject: [PATCH] vboot: Do not use hashed-strings offset
-
-The hashed-strings signature property includes two uint32_t values.
-The first is unneeded as there should never be a start offset into the
-strings region. The second, the size, is needed because the added
-signature node appends to this region.
-
-See tools/image-host.c, where a static 0 value is used for the offset.
-
-Signed-off-by: Teddy Reed <[email protected]>
-Reviewed-by: Simon Glass <[email protected]>
-
-Upstream-Status: Backport[http://git.denx.de/?p=u-boot.git;a=commit;
-                 h=7346c1e192d63cd35f99c7e845e53c5d4d0bdc24]
-
-CVE: CVE-2018-1000205
-
-Signed-off-by: Changqing Li <[email protected]>
----
- common/image-sig.c | 7 +++++--
- tools/image-host.c | 1 +
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/common/image-sig.c b/common/image-sig.c
-index 8d2fd10..5a269d3 100644
---- a/common/image-sig.c
-+++ b/common/image-sig.c
-@@ -377,8 +377,11 @@ int fit_config_check_sig(const void *fit, int noffset, int required_keynode,
- 	/* Add the strings */
- 	strings = fdt_getprop(fit, noffset, "hashed-strings", NULL);
- 	if (strings) {
--		fdt_regions[count].offset = fdt_off_dt_strings(fit) +
--				fdt32_to_cpu(strings[0]);
-+		/*
-+		 * The strings region offset must be a static 0x0.
-+		 * This is set in tool/image-host.c
-+		 */
-+		fdt_regions[count].offset = fdt_off_dt_strings(fit);
- 		fdt_regions[count].size = fdt32_to_cpu(strings[1]);
- 		count++;
- 	}
-diff --git a/tools/image-host.c b/tools/image-host.c
-index 8e43671..be2d59b 100644
---- a/tools/image-host.c
-+++ b/tools/image-host.c
-@@ -135,6 +135,7 @@ static int fit_image_write_sig(void *fit, int noffset, uint8_t *value,
- 
- 		ret = fdt_setprop(fit, noffset, "hashed-nodes",
- 				   region_prop, region_proplen);
-+		/* This is a legacy offset, it is unused, and must remain 0. */
- 		strdata[0] = 0;
- 		strdata[1] = cpu_to_fdt32(string_size);
- 		if (!ret) {
--- 
-2.7.4
-
meta/recipes-bsp/u-boot/files/CVE-2018-1000205-2.patch deleted +0 -143

143 lines not on this page · raw message

meta/recipes-bsp/u-boot/u-boot-common_2018.09.inc renamed from meta/recipes-bsp/u-boot/u-boot-common_2018.07.inc +2 -5
similarity index 64%
rename from meta/recipes-bsp/u-boot/u-boot-common_2018.07.inc
rename to meta/recipes-bsp/u-boot/u-boot-common_2018.09.inc
index 22b44dccc6..3a991ae8fc 100644
@@ -8,11 +8,8 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "8c5d4fd0ec222701598a27b26ab7265d4cee45a3"
+SRCREV = "f88b6facb87dc4a52f1630eb9d858c0f54c6628e"
 
-SRC_URI = "git://git.denx.de/u-boot.git \
-           file://CVE-2018-1000205-1.patch \
-           file://CVE-2018-1000205-2.patch \
-"
+SRC_URI = "git://git.denx.de/u-boot.git"
 
 S = "${WORKDIR}/git"
meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.09.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.07.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.07.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.09.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2018.09.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.07.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.07.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.09.bb
meta/recipes-bsp/u-boot/u-boot_2018.09.bb renamed from meta/recipes-bsp/u-boot/u-boot_2018.07.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2018.07.bb
rename to meta/recipes-bsp/u-boot/u-boot_2018.09.bb
Signature · 1 line
2.19.0
#4 lore raw

Re: [PATCH 4/4] u-boot: Upgrade 2018.07 -> 2018.09

Quoted 5 lines · Otavio Salvador

This upgrades U-Boot to 2018.09 release and drop the backported security fixes which are now included upstream.

When I mentioned, on IRC, about this bump to Marek, he mentioned that there is a regression on x86 being worked on upstream so this patch should wait for this to be sorted out before we update it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
#5 lore raw

Re: [PATCH 4/4] u-boot: Upgrade 2018.07 -> 2018.09

Quoted 8 lines · Otavio Salvador
Quoted 4 lines · Otavio Salvador

This upgrades U-Boot to 2018.09 release and drop the backported security fixes which are now included upstream.

When I mentioned, on IRC, about this bump to Marek, he mentioned that there is a regression on x86 being worked on upstream so this patch should wait for this to be sorted out before we update it.

What is the difference in regression when there is a kernel issue identified after they release or any other package update?

Granted this most likely wont make 2.6 so is a moot point in 6 months. Is there a benefit to the many over the few with this?

- armin

Quoted 1 line
#6 lore raw

Re: [PATCH 4/4] u-boot: Upgrade 2018.07 -> 2018.09

Quoted 12 lines · On 09/17/2018 03:57 AM, akuster808 wrote:
Quoted 8 lines · Otavio Salvador
Quoted 4 lines · Otavio Salvador

This upgrades U-Boot to 2018.09 release and drop the backported security fixes which are now included upstream.

When I mentioned, on IRC, about this bump to Marek, he mentioned that there is a regression on x86 being worked on upstream so this patch should wait for this to be sorted out before we update it.

Quoted 5 lines

What is the difference in regression when there is a kernel issue identified after they release or any other package update?

Granted this most likely wont make 2.6 so is a moot point in 6 months. Is there a benefit to the many over the few with this?

Nah, 2018.07 is fine.

Signature · 2 lines
Best regards,
Marek Vasut