diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/libxml/libxml2/0001-Revert-cmake-Fix-installation-directories-in-libxml2.patch | 14 | ||||
-rw-r--r-- | meta/recipes-core/libxml/libxml2/CVE-2025-6021.patch | 36 | ||||
-rw-r--r-- | meta/recipes-core/libxml/libxml2/install-tests.patch | 4 | ||||
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.14.5.bb (renamed from meta/recipes-core/libxml/libxml2_2.14.3.bb) | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/clang/lldb_git.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-15.1.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc/0027-aarch64-Fix-fma-steering-when-rename-fails-PR120119.patch | 69 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 7 |
8 files changed, 92 insertions, 43 deletions
diff --git a/meta/recipes-core/libxml/libxml2/0001-Revert-cmake-Fix-installation-directories-in-libxml2.patch b/meta/recipes-core/libxml/libxml2/0001-Revert-cmake-Fix-installation-directories-in-libxml2.patch index 6ea5adafa2..627f8472c3 100644 --- a/meta/recipes-core/libxml/libxml2/0001-Revert-cmake-Fix-installation-directories-in-libxml2.patch +++ b/meta/recipes-core/libxml/libxml2/0001-Revert-cmake-Fix-installation-directories-in-libxml2.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 55ed199fdb55a1a600616ba14ad0feedcf828d86 Mon Sep 17 00:00:00 2001 | 1 | From 1a7e177a7315c856a2f0e3c2a17ee0fd9e297bc9 Mon Sep 17 00:00:00 2001 |
2 | From: Peter Marko <peter.marko@siemens.com> | 2 | From: Peter Marko <peter.marko@siemens.com> |
3 | Date: Mon, 26 May 2025 21:11:14 +0200 | 3 | Date: Mon, 26 May 2025 21:11:14 +0200 |
4 | Subject: [PATCH] Revert "cmake: Fix installation directories in | 4 | Subject: [PATCH] Revert "cmake: Fix installation directories in |
@@ -15,10 +15,10 @@ Signed-off-by: Peter Marko <peter.marko@siemens.com> | |||
15 | 3 files changed, 7 insertions(+), 18 deletions(-) | 15 | 3 files changed, 7 insertions(+), 18 deletions(-) |
16 | 16 | ||
17 | diff --git a/configure.ac b/configure.ac | 17 | diff --git a/configure.ac b/configure.ac |
18 | index 40e75151..d21ebfe5 100644 | 18 | index aaa02e3..fb241bb 100644 |
19 | --- a/configure.ac | 19 | --- a/configure.ac |
20 | +++ b/configure.ac | 20 | +++ b/configure.ac |
21 | @@ -1061,17 +1061,6 @@ AC_SUBST(XML_PRIVATE_LIBS) | 21 | @@ -1065,17 +1065,6 @@ AC_SUBST(XML_PRIVATE_LIBS) |
22 | AC_SUBST(XML_PRIVATE_CFLAGS) | 22 | AC_SUBST(XML_PRIVATE_CFLAGS) |
23 | AC_SUBST(XML_INCLUDEDIR) | 23 | AC_SUBST(XML_INCLUDEDIR) |
24 | 24 | ||
@@ -37,7 +37,7 @@ index 40e75151..d21ebfe5 100644 | |||
37 | AC_DEFINE_UNQUOTED([XML_SYSCONFDIR], ["$XML_SYSCONFDIR"], | 37 | AC_DEFINE_UNQUOTED([XML_SYSCONFDIR], ["$XML_SYSCONFDIR"], |
38 | [System configuration directory (/etc)]) | 38 | [System configuration directory (/etc)]) |
39 | diff --git a/libxml2-config.cmake.in b/libxml2-config.cmake.in | 39 | diff --git a/libxml2-config.cmake.in b/libxml2-config.cmake.in |
40 | index 4945dda4..31036805 100644 | 40 | index e040a75..dc0d6b8 100644 |
41 | --- a/libxml2-config.cmake.in | 41 | --- a/libxml2-config.cmake.in |
42 | +++ b/libxml2-config.cmake.in | 42 | +++ b/libxml2-config.cmake.in |
43 | @@ -24,17 +24,20 @@ | 43 | @@ -24,17 +24,20 @@ |
@@ -66,7 +66,7 @@ index 4945dda4..31036805 100644 | |||
66 | set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARY}) | 66 | set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARY}) |
67 | set(LIBXML2_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR}) | 67 | set(LIBXML2_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR}) |
68 | diff --git a/meson.build b/meson.build | 68 | diff --git a/meson.build b/meson.build |
69 | index 4c59211d..3e5f25d3 100644 | 69 | index 98bc6e3..3ef0bd0 100644 |
70 | --- a/meson.build | 70 | --- a/meson.build |
71 | +++ b/meson.build | 71 | +++ b/meson.build |
72 | @@ -599,9 +599,6 @@ config_cmake = configuration_data() | 72 | @@ -599,9 +599,6 @@ config_cmake = configuration_data() |
@@ -77,5 +77,5 @@ index 4c59211d..3e5f25d3 100644 | |||
77 | -config_cmake.set('INSTALL_INCLUDEDIR', dir_include) | 77 | -config_cmake.set('INSTALL_INCLUDEDIR', dir_include) |
78 | -config_cmake.set('INSTALL_LIBDIR', dir_lib) | 78 | -config_cmake.set('INSTALL_LIBDIR', dir_lib) |
79 | config_cmake.set('VERSION', meson.project_version()) | 79 | config_cmake.set('VERSION', meson.project_version()) |
80 | config_cmake.set('WITH_HTTP', want_http.to_int().to_string()) | 80 | config_cmake.set10('BUILD_SHARED_LIBS', |
81 | config_cmake.set('WITH_ICONV', want_iconv.to_int().to_string()) | 81 | get_option('default_library') != 'static') |
diff --git a/meta/recipes-core/libxml/libxml2/CVE-2025-6021.patch b/meta/recipes-core/libxml/libxml2/CVE-2025-6021.patch index 157486848b..0b73bceb24 100644 --- a/meta/recipes-core/libxml/libxml2/CVE-2025-6021.patch +++ b/meta/recipes-core/libxml/libxml2/CVE-2025-6021.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 33d7969baf541326a35e2fbe31943c46af8c71db Mon Sep 17 00:00:00 2001 | 1 | From e546e423d69ec9b3c71167d3c3140fa1b9af93c7 Mon Sep 17 00:00:00 2001 |
2 | From: Nick Wellnhofer <wellnhofer@aevum.de> | 2 | From: Nick Wellnhofer <wellnhofer@aevum.de> |
3 | Date: Tue, 27 May 2025 12:53:17 +0200 | 3 | Date: Tue, 27 May 2025 12:53:17 +0200 |
4 | Subject: [PATCH] tree: Fix integer overflow in xmlBuildQName | 4 | Subject: [PATCH] tree: Fix integer overflow in xmlBuildQName |
@@ -14,11 +14,11 @@ CVE: CVE-2025-6021 | |||
14 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxml2/-/commit/acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0] | 14 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxml2/-/commit/acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0] |
15 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 15 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
16 | --- | 16 | --- |
17 | tree.c | 9 ++++++--- | 17 | tree.c | 1 + |
18 | 1 file changed, 6 insertions(+), 3 deletions(-) | 18 | 1 file changed, 1 insertion(+) |
19 | 19 | ||
20 | diff --git a/tree.c b/tree.c | 20 | diff --git a/tree.c b/tree.c |
21 | index 7454b07..22ec11c 100644 | 21 | index e14bc62..22ec11c 100644 |
22 | --- a/tree.c | 22 | --- a/tree.c |
23 | +++ b/tree.c | 23 | +++ b/tree.c |
24 | @@ -23,6 +23,7 @@ | 24 | @@ -23,6 +23,7 @@ |
@@ -29,31 +29,3 @@ index 7454b07..22ec11c 100644 | |||
29 | 29 | ||
30 | #ifdef LIBXML_ZLIB_ENABLED | 30 | #ifdef LIBXML_ZLIB_ENABLED |
31 | #include <zlib.h> | 31 | #include <zlib.h> |
32 | @@ -168,10 +169,10 @@ xmlGetParameterEntityFromDtd(const xmlDtd *dtd, const xmlChar *name) { | ||
33 | xmlChar * | ||
34 | xmlBuildQName(const xmlChar *ncname, const xmlChar *prefix, | ||
35 | xmlChar *memory, int len) { | ||
36 | - int lenn, lenp; | ||
37 | + size_t lenn, lenp; | ||
38 | xmlChar *ret; | ||
39 | |||
40 | - if (ncname == NULL) return(NULL); | ||
41 | + if ((ncname == NULL) || (len < 0)) return(NULL); | ||
42 | if (prefix == NULL) return((xmlChar *) ncname); | ||
43 | |||
44 | #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION | ||
45 | @@ -182,8 +183,10 @@ xmlBuildQName(const xmlChar *ncname, const xmlChar *prefix, | ||
46 | |||
47 | lenn = strlen((char *) ncname); | ||
48 | lenp = strlen((char *) prefix); | ||
49 | + if (lenn >= SIZE_MAX - lenp - 1) | ||
50 | + return(NULL); | ||
51 | |||
52 | - if ((memory == NULL) || (len < lenn + lenp + 2)) { | ||
53 | + if ((memory == NULL) || ((size_t) len < lenn + lenp + 2)) { | ||
54 | ret = xmlMalloc(lenn + lenp + 2); | ||
55 | if (ret == NULL) | ||
56 | return(NULL); | ||
57 | -- | ||
58 | 2.34.1 | ||
59 | |||
diff --git a/meta/recipes-core/libxml/libxml2/install-tests.patch b/meta/recipes-core/libxml/libxml2/install-tests.patch index 789aeca119..4c1faa83cb 100644 --- a/meta/recipes-core/libxml/libxml2/install-tests.patch +++ b/meta/recipes-core/libxml/libxml2/install-tests.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 8c1054eacb430472068f21e4840749c384e8e866 Mon Sep 17 00:00:00 2001 | 1 | From 7e99fef6eae0642a3f1e511e4d24abf7d6d28f50 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@arm.com> | 2 | From: Ross Burton <ross.burton@arm.com> |
3 | Date: Mon, 5 Dec 2022 17:02:32 +0000 | 3 | Date: Mon, 5 Dec 2022 17:02:32 +0000 |
4 | Subject: [PATCH] add yocto-specific install-ptest target | 4 | Subject: [PATCH] add yocto-specific install-ptest target |
@@ -12,7 +12,7 @@ Signed-off-by: Ross Burton <ross.burton@arm.com> | |||
12 | 1 file changed, 10 insertions(+) | 12 | 1 file changed, 10 insertions(+) |
13 | 13 | ||
14 | diff --git a/Makefile.am b/Makefile.am | 14 | diff --git a/Makefile.am b/Makefile.am |
15 | index 4cb9a5c..8adcd7e 100644 | 15 | index 6f98144..ecb3b54 100644 |
16 | --- a/Makefile.am | 16 | --- a/Makefile.am |
17 | +++ b/Makefile.am | 17 | +++ b/Makefile.am |
18 | @@ -26,6 +26,16 @@ check_PROGRAMS = \ | 18 | @@ -26,6 +26,16 @@ check_PROGRAMS = \ |
diff --git a/meta/recipes-core/libxml/libxml2_2.14.3.bb b/meta/recipes-core/libxml/libxml2_2.14.5.bb index 4baab59186..f60a46e187 100644 --- a/meta/recipes-core/libxml/libxml2_2.14.3.bb +++ b/meta/recipes-core/libxml/libxml2_2.14.5.bb | |||
@@ -21,7 +21,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt | |||
21 | file://CVE-2025-6021.patch \ | 21 | file://CVE-2025-6021.patch \ |
22 | " | 22 | " |
23 | 23 | ||
24 | SRC_URI[archive.sha256sum] = "6de55cacc8c2bc758f2ef6f93c313cb30e4dd5d84ac5d3c7ccbd9344d8cc6833" | 24 | SRC_URI[archive.sha256sum] = "03d006f3537616833c16c53addcdc32a0eb20e55443cba4038307e3fa7d8d44b" |
25 | SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273" | 25 | SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273" |
26 | 26 | ||
27 | # Disputed as a security issue, but fixed in d39f780 | 27 | # Disputed as a security issue, but fixed in d39f780 |
diff --git a/meta/recipes-devtools/clang/lldb_git.bb b/meta/recipes-devtools/clang/lldb_git.bb index 10137090ad..eafc3cb312 100644 --- a/meta/recipes-devtools/clang/lldb_git.bb +++ b/meta/recipes-devtools/clang/lldb_git.bb | |||
@@ -12,7 +12,6 @@ LIC_FILES_CHKSUM = "file://lldb/LICENSE.TXT;md5=2e0d44968471fcde980034dbb826bea9 | |||
12 | 12 | ||
13 | inherit cmake pkgconfig python3native python3targetconfig | 13 | inherit cmake pkgconfig python3native python3targetconfig |
14 | 14 | ||
15 | # This actually just depends on LLVM but right now llvm and clang are built together | ||
16 | DEPENDS = "llvm-tblgen-native clang" | 15 | DEPENDS = "llvm-tblgen-native clang" |
17 | 16 | ||
18 | OECMAKE_SOURCEPATH = "${S}/lldb" | 17 | OECMAKE_SOURCEPATH = "${S}/lldb" |
@@ -25,6 +24,7 @@ EXTRA_OECMAKE = "-DLLDB_INCLUDE_TESTS=OFF \ | |||
25 | -DLLVM_DIR=${STAGING_LIBDIR}/cmake/llvm/ \ | 24 | -DLLVM_DIR=${STAGING_LIBDIR}/cmake/llvm/ \ |
26 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ | 25 | -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ |
27 | -DLLDB_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/lldb-tblgen \ | 26 | -DLLDB_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/lldb-tblgen \ |
27 | -DLLDB_NO_INSTALL_DEFAULT_RPATH=ON \ | ||
28 | " | 28 | " |
29 | 29 | ||
30 | PACKAGECONFIG ??= "libedit libxml2 lzma" | 30 | PACKAGECONFIG ??= "libedit libxml2 lzma" |
diff --git a/meta/recipes-devtools/gcc/gcc-15.1.inc b/meta/recipes-devtools/gcc/gcc-15.1.inc index 28fcf9376c..7d86cda601 100644 --- a/meta/recipes-devtools/gcc/gcc-15.1.inc +++ b/meta/recipes-devtools/gcc/gcc-15.1.inc | |||
@@ -72,6 +72,7 @@ SRC_URI = "${BASEURI} \ | |||
72 | file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ | 72 | file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ |
73 | file://0026-arm-fully-validate-mem_noofs_operand-PR120351.patch \ | 73 | file://0026-arm-fully-validate-mem_noofs_operand-PR120351.patch \ |
74 | file://0026-fix-incorrect-preprocessor-line-numbers.patch \ | 74 | file://0026-fix-incorrect-preprocessor-line-numbers.patch \ |
75 | file://0027-aarch64-Fix-fma-steering-when-rename-fails-PR120119.patch \ | ||
75 | " | 76 | " |
76 | 77 | ||
77 | UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources" | 78 | UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources" |
diff --git a/meta/recipes-devtools/gcc/gcc/0027-aarch64-Fix-fma-steering-when-rename-fails-PR120119.patch b/meta/recipes-devtools/gcc/gcc/0027-aarch64-Fix-fma-steering-when-rename-fails-PR120119.patch new file mode 100644 index 0000000000..a59cb45524 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc/0027-aarch64-Fix-fma-steering-when-rename-fails-PR120119.patch | |||
@@ -0,0 +1,69 @@ | |||
1 | From b28d5f51e1ec75f6878593ef084e9cfb836b9db4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrew Pinski <quic_apinski@quicinc.com> | ||
3 | Date: Tue, 22 Jul 2025 10:32:42 -0700 | ||
4 | Subject: [PATCH] aarch64: Fix fma steering when rename fails [PR120119] | ||
5 | |||
6 | Regrename can fail in some case and `insn_rr[INSN_UID (insn)].op_info` | ||
7 | will be null. The FMA steering code was not expecting the failure to happen. | ||
8 | This started to happen after early RA was added but it has been a latent bug | ||
9 | before that. | ||
10 | |||
11 | Build and tested for aarch64-linux-gnu. | ||
12 | |||
13 | PR target/120119 | ||
14 | |||
15 | gcc/ChangeLog: | ||
16 | |||
17 | * config/aarch64/cortex-a57-fma-steering.cc (func_fma_steering::analyze): | ||
18 | Skip if renaming fails. | ||
19 | |||
20 | gcc/testsuite/ChangeLog: | ||
21 | |||
22 | * g++.dg/torture/pr120119-1.C: New test. | ||
23 | |||
24 | Upstream-Status: Submitted [https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690239.html] | ||
25 | Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com> | ||
26 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
27 | --- | ||
28 | gcc/config/aarch64/cortex-a57-fma-steering.cc | 5 +++++ | ||
29 | gcc/testsuite/g++.dg/torture/pr120119-1.C | 15 +++++++++++++++ | ||
30 | 2 files changed, 20 insertions(+) | ||
31 | create mode 100644 gcc/testsuite/g++.dg/torture/pr120119-1.C | ||
32 | |||
33 | diff --git a/gcc/config/aarch64/cortex-a57-fma-steering.cc b/gcc/config/aarch64/cortex-a57-fma-steering.cc | ||
34 | index fd6da66d855..f7675bed13d 100644 | ||
35 | --- a/gcc/config/aarch64/cortex-a57-fma-steering.cc | ||
36 | +++ b/gcc/config/aarch64/cortex-a57-fma-steering.cc | ||
37 | @@ -948,6 +948,11 @@ func_fma_steering::analyze () | ||
38 | |||
39 | /* Search the chain where this instruction is (one of) the root. */ | ||
40 | dest_op_info = insn_rr[INSN_UID (insn)].op_info; | ||
41 | + | ||
42 | + /* Register rename could fail. */ | ||
43 | + if (!dest_op_info) | ||
44 | + continue; | ||
45 | + | ||
46 | dest_regno = REGNO (SET_DEST (PATTERN (insn))); | ||
47 | for (i = 0; i < dest_op_info->n_chains; i++) | ||
48 | { | ||
49 | diff --git a/gcc/testsuite/g++.dg/torture/pr120119-1.C b/gcc/testsuite/g++.dg/torture/pr120119-1.C | ||
50 | new file mode 100644 | ||
51 | index 00000000000..1206feb310b | ||
52 | --- /dev/null | ||
53 | +++ b/gcc/testsuite/g++.dg/torture/pr120119-1.C | ||
54 | @@ -0,0 +1,15 @@ | ||
55 | +// { dg-do compile } | ||
56 | +// { dg-additional-options "-mcpu=cortex-a57" { target aarch64*-*-* } } | ||
57 | + | ||
58 | +// PR target/120119 | ||
59 | + | ||
60 | +struct a { | ||
61 | + float operator()(int b, int c) { return d[c * 4 + b]; } | ||
62 | + float *d; | ||
63 | +}; | ||
64 | +float e(float *); | ||
65 | +auto f(a b) { | ||
66 | + float g[]{b(1, 1), b(2, 1), b(3, 1), b(1, 2), b(2, 2), b(3, 2), b(1, 3), | ||
67 | + b(2, 3), b(3, 3), b(3, 2), b(1, 3), b(2, 3), b(3, 3)}; | ||
68 | + return b.d[0] * e(g); | ||
69 | +} | ||
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 0dc9772429..04dd683dde 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -208,6 +208,13 @@ do_install() { | |||
208 | fi | 208 | fi |
209 | 209 | ||
210 | if [ "${ARCH}" = "powerpc" ]; then | 210 | if [ "${ARCH}" = "powerpc" ]; then |
211 | # Copy scripts that are needed by powperpc build, but don't error if they aren't present in the source. | ||
212 | # 4.18+ needs gcc-check-mprofile-kernel.sh for MPROFILE_KERNEL, for example. | ||
213 | # See https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=abba759796f9b73eb24df9b734dd063839fc62e0 | ||
214 | for script in gcc-check-mprofile-kernel.sh gcc-check-fpatchable-function-entry.sh head_check.sh relocs_check.sh unrel_branch_check.sh; do | ||
215 | cp -a --parents arch/powerpc/tools/$script $kerneldir/build/ 2>/dev/null || : | ||
216 | done | ||
217 | |||
211 | # 5.0 needs these files, but don't error if they aren't present in the source | 218 | # 5.0 needs these files, but don't error if they aren't present in the source |
212 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscall.tbl $kerneldir/build/ 2>/dev/null || : | 219 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscall.tbl $kerneldir/build/ 2>/dev/null || : |
213 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscalltbl.sh $kerneldir/build/ 2>/dev/null || : | 220 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscalltbl.sh $kerneldir/build/ 2>/dev/null || : |