summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-12-01 23:09:57 +0100
committerKhem Raj <raj.khem@gmail.com>2025-12-02 09:18:20 -0800
commit183693a84d84ad7d4999ad592a863b1719dde1b7 (patch)
treedca98ffa66959cd0dddb211f96c056da400901c2
parentc435acf247f86fa90c8992bf590169cd4b142ead (diff)
downloadmeta-openembedded-183693a84d84ad7d4999ad592a863b1719dde1b7.tar.gz
yasm: drop recipe
Yasm was introduced as a rewrite of nasm, however its commits have dried up over the years, while its unmitigated CVEs keep piling up. Also, nasm is a healthier project with regular contributions still. There are no known recipes depending on yasm. Let's remove it. Cc: Ross Burton <ross.burton@arm.com> Cc: Yogesh Tyagi <yogesh.tyagi@intel.com> Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/0001-bitvect-fix-build-with-gcc-15.patch38
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch37
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch42
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33456.patch35
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch34
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm/CVE-2023-29579.patch39
-rw-r--r--meta-oe/recipes-devtools/yasm/yasm_git.bb40
7 files changed, 0 insertions, 265 deletions
diff --git a/meta-oe/recipes-devtools/yasm/yasm/0001-bitvect-fix-build-with-gcc-15.patch b/meta-oe/recipes-devtools/yasm/yasm/0001-bitvect-fix-build-with-gcc-15.patch
deleted file mode 100644
index f3f2c431d5..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm/0001-bitvect-fix-build-with-gcc-15.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 64ef740eb262f329e55eebadf2ce276b146d44e9 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Tue, 22 Apr 2025 19:06:24 +0200
4Subject: [PATCH] bitvect: fix build with gcc-15
5
6* fixes:
7libyasm/bitvect.h:86:32: error: cannot use keyword 'false' as enumeration constant
8 86 | typedef enum boolean { false = FALSE, true = TRUE } boolean;
9 | ^~~~~
10../git/libyasm/bitvect.h:86:32: note: 'false' is a keyword with '-std=c23' onwards
11
12as suggested in:
13https://github.com/yasm/yasm/issues/283#issuecomment-2661108816
14
15Upstream-Status: Submitted [https://github.com/yasm/yasm/pull/287]
16
17Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
18---
19 libyasm/bitvect.h | 6 +++++-
20 1 file changed, 5 insertions(+), 1 deletion(-)
21
22diff --git a/libyasm/bitvect.h b/libyasm/bitvect.h
23index 3aee3a53..a13470ad 100644
24--- a/libyasm/bitvect.h
25+++ b/libyasm/bitvect.h
26@@ -83,7 +83,11 @@ typedef Z_longword *Z_longwordptr;
27 #ifdef MACOS_TRADITIONAL
28 #define boolean Boolean
29 #else
30- typedef enum boolean { false = FALSE, true = TRUE } boolean;
31+ #if __STDC_VERSION__ < 202311L
32+ typedef enum boolean { false = FALSE, true = TRUE } boolean;
33+ #else
34+ typedef bool boolean;
35+ #endif
36 #endif
37 #endif
38
diff --git a/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch b/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch
deleted file mode 100644
index 42f5559e3f..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm/0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From eb164bb201c0f792fa8aa78270c47294065183a3 Mon Sep 17 00:00:00 2001
2From: Oleh Matiusha <omatiush@cisco.com>
3Date: Tue, 6 Feb 2024 09:33:11 +0000
4Subject: [PATCH 1/2] yasm: Set build date to SOURCE_DATE_EPOCH
5
6If SOURCE_DATE_EPOCH is set, use it to generate a reproducible
7string for BUILD_DATE.
8
9Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
10
11Upstream-Status: Pending
12---
13 configure.ac | 8 ++++++++
14 1 file changed, 8 insertions(+)
15
16diff --git a/configure.ac b/configure.ac
17index 2823ecd..eeb51ce 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -103,6 +103,14 @@ AM_WITH_DMALLOC
21 #
22 AC_CHECK_HEADERS([strings.h libgen.h unistd.h direct.h sys/stat.h])
23
24+# Use reproducible build date and time
25+if test "$SOURCE_DATE_EPOCH"; then
26+ DATE_FMT="%d %b %Y %H:%M:%S"
27+ BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT")
28+ AC_DEFINE_UNQUOTED([BUILD_DATE], ["$BUILD_DATE"], [Use reproducidle build date])
29+fi
30+
31+
32 #
33 # Checks for typedefs, structures, and compiler characteristics.
34 #
35--
362.33.0
37
diff --git a/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch b/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch
deleted file mode 100644
index 4b9c933d01..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm/0002-yasm-Use-BUILD_DATE-for-reproducibility.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 19fffab74a201dc41c3da7e74d86eafa8f68bbc6 Mon Sep 17 00:00:00 2001
2From: Oleh Matiusha <omatiush@cisco.com>
3Date: Tue, 6 Feb 2024 09:34:26 +0000
4Subject: [PATCH] yasm: Use BUILD_DATE for reproducibility
5
6Use reproducible build date instead of compilation time and date.
7
8Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
9
10
11Upstream-Status: Pending
12---
13 tools/re2c/parser.c | 5 +++++
14 1 file changed, 5 insertions(+)
15
16diff --git a/tools/re2c/parser.c b/tools/re2c/parser.c
17index 02d5c66..1c90aee 100644
18--- a/tools/re2c/parser.c
19+++ b/tools/re2c/parser.c
20@@ -5,6 +5,7 @@
21 #include "tools/re2c/globals.h"
22 #include "tools/re2c/parse.h"
23 #include "tools/re2c/parser.h"
24+#include "config.h"
25
26 int yylex(void);
27 static RegExp *parse_expr(void);
28@@ -233,7 +234,11 @@ void parse(FILE *i, FILE *o){
29 peektok = NONE;
30
31 fputs("/* Generated by re2c 0.9.1-C on ", o);
32+#ifndef BUILD_DATE
33 fprintf(o, "%-24s", ctime(&now));
34+#else
35+ fprintf(o, "%-24s", BUILD_DATE " ");
36+#endif
37 fputs(" */\n", o); oline+=2;
38
39 in = Scanner_new(i);
40--
412.33.0
42
diff --git a/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33456.patch b/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33456.patch
deleted file mode 100644
index 2340d8ed75..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33456.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 1126140b8f5ece18c58640725f0e4c08e5ec97b0 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sat, 15 Nov 2025 13:34:15 +0100
4Subject: [PATCH] A potential null pointer difference is that the return value
5 of the hash may be null. This fixes CVE-2021-33456.
6
7From: lixuebing <lixuebing@cqsoftware.com.cn>
8Date: Mon, 25 Aug 2025 13:51:28 +0800
9Subject: Fix null-pointer-dereference in hash
10Bug: https://github.com/yasm/yasm/issues/175
11Origin: https://github.com/yasm/yasm/pull/290
12
13CVE: CVE-2021-33456
14Upstream-Status: Submitted [https://github.com/yasm/yasm/pull/290]
15
16Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
17---
18 modules/preprocs/nasm/nasm-pp.c | 4 ++++
19 1 file changed, 4 insertions(+)
20
21diff --git a/modules/preprocs/nasm/nasm-pp.c b/modules/preprocs/nasm/nasm-pp.c
22index f9f92dd1..473d98c1 100644
23--- a/modules/preprocs/nasm/nasm-pp.c
24+++ b/modules/preprocs/nasm/nasm-pp.c
25@@ -1102,6 +1102,10 @@ hash(char *s)
26 {
27 unsigned int h = 0;
28 unsigned int i = 0;
29+ /* Check if the input string is NULL to avoid null pointer dereference */
30+ if (s == NULL) {
31+ return 0;
32+ }
33 /*
34 * Powers of three, mod 31.
35 */
diff --git a/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch b/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch
deleted file mode 100644
index ebae250ff9..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm/CVE-2021-33464.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 3c3f968d48d768c1e355199d4067d99cb72abc26 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sat, 15 Nov 2025 13:30:12 +0100
4Subject: [PATCH] Handle file descriptors with nonexisting env names better.
5 Avoid writing past allocated memory.
6
7This fixes CVE-2021-33464.
8Author: Petter Reinholdtsen <pere@debian.org>
9Bug: https://github.com/yasm/yasm/issues/164
10Bug-Debian: https://bugs.debian.org/1016353
11Forwarded: https://github.com/yasm/yasm/issues/164
12Last-Update: 2025-04-30
13
14CVE: CVE-2021-33464
15Upstream-Status: Submitted [https://github.com/yasm/yasm/issues/164]
16
17Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
18---
19 modules/preprocs/nasm/nasm-pp.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/modules/preprocs/nasm/nasm-pp.c b/modules/preprocs/nasm/nasm-pp.c
23index 512f02c3..f9f92dd1 100644
24--- a/modules/preprocs/nasm/nasm-pp.c
25+++ b/modules/preprocs/nasm/nasm-pp.c
26@@ -1815,7 +1815,7 @@ inc_fopen(char *file, char **newname)
27 error(ERR_WARNING, "environment variable `%s' does not exist",
28 p1+1);
29 *p2 = '%';
30- p1 = p2+1;
31+ pb = p1 = p2+1;
32 continue;
33 }
34 /* need to expand */
diff --git a/meta-oe/recipes-devtools/yasm/yasm/CVE-2023-29579.patch b/meta-oe/recipes-devtools/yasm/yasm/CVE-2023-29579.patch
deleted file mode 100644
index 58b4ed1996..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm/CVE-2023-29579.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 81c1b7b0a28f052eaadddcb010944bf67e6ae257 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sat, 15 Nov 2025 13:24:21 +0100
4Subject: [PATCH] Make sure CPU feature parsing use large enough string buffer.
5 Fixes CVE-2023-29579.
6
7Author: Petter Reinholdtsen <pere@debian.org>
8Bug: https://github.com/yasm/yasm/issues/214
9Bug-Debian: https://bugs.debian.org/1035951
10Forwarded: https://github.com/yasm/yasm/issues/214
11Last-Update: 2025-04-30
12
13This patch is taken from Debian:
14https://sources.debian.org/patches/yasm/1.3.0-8/1000-x86-dir-cpu-CVE-2023-29579.patch/
15
16CVE: CVE-2023-29579
17Upstream-Status: Submitted [https://github.com/yasm/yasm/issues/214]
18
19Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
20---
21 modules/arch/x86/x86arch.c | 5 +++--
22 1 file changed, 3 insertions(+), 2 deletions(-)
23
24diff --git a/modules/arch/x86/x86arch.c b/modules/arch/x86/x86arch.c
25index bac11774..58327958 100644
26--- a/modules/arch/x86/x86arch.c
27+++ b/modules/arch/x86/x86arch.c
28@@ -165,8 +165,9 @@ x86_dir_cpu(yasm_object *object, yasm_valparamhead *valparams,
29 yasm_error_set(YASM_ERROR_SYNTAX,
30 N_("invalid argument to [%s]"), "CPU");
31 else {
32- char strcpu[16];
33- sprintf(strcpu, "%lu", yasm_intnum_get_uint(intcpu));
34+ char strcpu[21]; /* 21 = ceil(log10(LONG_MAX)+1) */
35+ assert(8*sizeof(unsigned long) <= 64);
36+ snprintf(strcpu, sizeof(strcpu), "%lu", yasm_intnum_get_uint(intcpu));
37 yasm_x86__parse_cpu(arch_x86, strcpu, strlen(strcpu));
38 }
39 } else
diff --git a/meta-oe/recipes-devtools/yasm/yasm_git.bb b/meta-oe/recipes-devtools/yasm/yasm_git.bb
deleted file mode 100644
index 6ddd94621a..0000000000
--- a/meta-oe/recipes-devtools/yasm/yasm_git.bb
+++ /dev/null
@@ -1,40 +0,0 @@
1SUMMARY = "x86 (SSE) assembler supporting NASM and GAS-syntaxes"
2LICENSE = "MIT"
3HOMEPAGE = "http://www.tortall.net/projects/yasm/"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=a12d8903508fb6bfd49d8d82c6170dd9"
6
7DEPENDS += "flex-native bison-native"
8PACKAGECONFIG[docs] = ",,xmlto-native,"
9
10PV = "1.3.0+git"
11# v1.3.0-87
12SRCREV = "121ab150b3577b666c79a79f4a511798d7ad2432"
13SRC_URI = "git://github.com/yasm/yasm.git;branch=master;protocol=https \
14 file://0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch \
15 file://0002-yasm-Use-BUILD_DATE-for-reproducibility.patch \
16 file://0001-bitvect-fix-build-with-gcc-15.patch \
17 file://CVE-2023-29579.patch \
18 file://CVE-2021-33464.patch \
19 file://CVE-2021-33456.patch \
20 "
21
22
23inherit autotools gettext python3native
24
25CACHED_CONFIGUREVARS = "CCLD_FOR_BUILD='${CC_FOR_BUILD}'"
26
27BBCLASSEXTEND = "native"
28
29PARALLEL_MAKE = ""
30
31do_configure:prepend() {
32 # Don't include $CC (which includes path to sysroot) in generated header.
33 sed -i -e "s/^echo \"\/\* generated \$ac_cv_stdint_message \*\/\" >>\$ac_stdint$"// ${S}/m4/ax_create_stdint_h.m4
34}
35
36CVE_STATUS_GROUPS += "CVE_STATUS_HASH_UPDATE"
37CVE_STATUS_HASH_UPDATE = "CVE-2021-33454 CVE-2023-31975 CVE-2023-37732"
38CVE_STATUS_HASH_UPDATE[status] = "fixed-version: patched in current git hash"
39
40CVE_PRODUCT += "tortall:yasm yasm_project:yasm"