perl-cross: add patches for perl-5.42.3
PATCH 1/2 perl-cross: add patches for perl-5.42.3
perl-cross 1.6.4 has no patchset for the 5.42.3 point release and aborts configure on unknown versions. Reuse the 5.42.0 patchset, as its cnf/diffs/README advises ("Copy the closest available version").
--- ...rl-cross-add-patches-for-perl-5.42.3.patch | 226 ++++++++++++++++++ .../perl-cross/perlcross_1.6.4.bb | 1 + 2 files changed, 227 insertions(+) create mode 100644 meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch
meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch new file +226 -0
@@ -0,0 +1,226 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jaipaul Cheernam <[email protected]> +Date: Thu, 5 Nov 2026 14:00:00 +0000 +Subject: [PATCH] perl-cross: add patches for perl-5.42.3 + +Reuse the perl 5.42.0 patchset for the 5.42.3 point release. + +Upstream-Status: Inappropriate [oe-specific; perl-cross goes 5.42.0 -> 5.44.0] +Signed-off-by: Jaipaul Cheernam <[email protected]> +--- + cnf/diffs/perl5-5.42.3/constant.patch | 1 + + cnf/diffs/perl5-5.42.3/dynaloader.patch | 1 + + cnf/diffs/perl5-5.42.3/findext.patch | 1 + + cnf/diffs/perl5-5.42.3/installscripts.patch | 1 + + cnf/diffs/perl5-5.42.3/liblist.patch | 70 +++++++++++++++++++++ + cnf/diffs/perl5-5.42.3/makemaker.patch | 1 + + cnf/diffs/perl5-5.42.3/posix-makefile.patch | 1 + + cnf/diffs/perl5-5.42.3/test-checkcase.patch | 1 + + cnf/diffs/perl5-5.42.3/test-makemaker.patch | 1 + + cnf/diffs/perl5-5.42.3/xconfig.patch | 48 ++++++++++++++ + 10 files changed, 126 insertions(+) + create mode 120000 cnf/diffs/perl5-5.42.3/constant.patch + create mode 120000 cnf/diffs/perl5-5.42.3/dynaloader.patch + create mode 120000 cnf/diffs/perl5-5.42.3/findext.patch + create mode 120000 cnf/diffs/perl5-5.42.3/installscripts.patch + create mode 100644 cnf/diffs/perl5-5.42.3/liblist.patch + create mode 120000 cnf/diffs/perl5-5.42.3/makemaker.patch + create mode 120000 cnf/diffs/perl5-5.42.3/posix-makefile.patch + create mode 120000 cnf/diffs/perl5-5.42.3/test-checkcase.patch + create mode 120000 cnf/diffs/perl5-5.42.3/test-makemaker.patch + create mode 100644 cnf/diffs/perl5-5.42.3/xconfig.patch + +diff --git a/cnf/diffs/perl5-5.42.3/constant.patch b/cnf/diffs/perl5-5.42.3/constant.patch +new file mode 120000 +index 0000000..065e198 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/constant.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/constant.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/dynaloader.patch b/cnf/diffs/perl5-5.42.3/dynaloader.patch +new file mode 120000 +index 0000000..ffb73eb +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/dynaloader.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/dynaloader.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/findext.patch b/cnf/diffs/perl5-5.42.3/findext.patch +new file mode 120000 +index 0000000..9efbe5b +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/findext.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/findext.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/installscripts.patch b/cnf/diffs/perl5-5.42.3/installscripts.patch +new file mode 120000 +index 0000000..1c05e0f +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/installscripts.patch +@@ -0,0 +1 @@ ++../perl5-5.36.0/installscripts.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/liblist.patch b/cnf/diffs/perl5-5.42.3/liblist.patch +new file mode 100644 +index 0000000..1dae0bb +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/liblist.patch +@@ -0,0 +1,70 @@ ++diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm ++index fbdc79aea2..976fd268aa 100644 ++--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm +++++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm ++@@ -20,9 +20,10 @@ use File::Basename; ++ use File::Spec; ++ ++ sub ext { ++- if ( $^O eq 'VMS' ) { goto &_vms_ext; } ++- elsif ( $^O eq 'MSWin32' ) { goto &_win32_ext; } ++- else { goto &_unix_os2_ext; } +++ if ( $Config{usemmldlt} ){ goto &_ld_ext; } +++ elsif ( $^O eq 'VMS' ) { goto &_vms_ext; } +++ elsif ( $^O eq 'MSWin32' ) { goto &_win32_ext; } +++ else { goto &_unix_os2_ext; } ++ } ++ ++ sub _space_dirs_split { ++@@ -643,4 +644,51 @@ sub _vms_ext { ++ wantarray ? ( $lib, '', $ldlib, '', ( $give_libs ? \@flibs : () ) ) : $lib; ++ } ++ +++# A direct test for -l validity. +++# Because guessing real file names for -llib options when dealing +++# with a cross compiler is generally a BAD IDEA^tm. +++sub _ld_ext { +++ my($self,$potential_libs, $verbose, $give_libs) = @_; +++ $verbose ||= 0; +++ +++ if ($^O =~ 'os2' and $Config{perllibs}) { +++ # Dynamic libraries are not transitive, so we may need including +++ # the libraries linked against perl.dll again. +++ +++ $potential_libs .= " " if $potential_libs; +++ $potential_libs .= $Config{perllibs}; +++ } +++ return ("", "", "", "", ($give_libs ? [] : ())) unless $potential_libs; +++ warn "Potential libraries are '$potential_libs':\n" if $verbose; +++ +++ my($ld) = $Config{ld}; +++ my($ldflags) = $Config{ldflags}; +++ my($libs) = defined $Config{perllibs} ? $Config{perllibs} : $Config{libs}; +++ +++ my $try = 'try_mm.c'; +++ my $tryx = 'try_mm.x'; +++ open(TRY, '>', $try) || die "Can't create MakeMaker test file $try: $!\n"; +++ print TRY "int main(void) { return 0; }\n"; +++ close(TRY); +++ +++ my $testlibs = ''; +++ my @testlibs = (); +++ foreach my $thislib (split ' ', $potential_libs) { +++ $testlibs = join(' ', @testlibs); +++ if($thislib =~ /^-L/) { +++ push(@testlibs, $thislib); +++ next +++ }; +++ my $cmd = "$ld $ldflags -o $tryx $try $testlibs $thislib >/dev/null 2>&1"; +++ my $ret = system($cmd); +++ warn "Warning (mostly harmless): " . "No library found for $thislib\n" if $ret; +++ next if $ret; +++ push @testlibs, $thislib; +++ } +++ unlink($try); +++ unlink($tryx); +++ +++ return (join(' ', @testlibs), '', join(' ', @testlibs), ''); +++} +++ ++ 1; +diff --git a/cnf/diffs/perl5-5.42.3/makemaker.patch b/cnf/diffs/perl5-5.42.3/makemaker.patch +new file mode 120000 +index 0000000..d7bd609 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/makemaker.patch +@@ -0,0 +1 @@ ++../perl5-5.38.0/makemaker.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/posix-makefile.patch b/cnf/diffs/perl5-5.42.3/posix-makefile.patch +new file mode 120000 +index 0000000..29463b7 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/posix-makefile.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/posix-makefile.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/test-checkcase.patch b/cnf/diffs/perl5-5.42.3/test-checkcase.patch +new file mode 120000 +index 0000000..36c5186 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/test-checkcase.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/test-checkcase.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/test-makemaker.patch b/cnf/diffs/perl5-5.42.3/test-makemaker.patch +new file mode 120000 +index 0000000..4e970ff +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/test-makemaker.patch +@@ -0,0 +1 @@ ++../perl5-5.34.0/test-makemaker.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/xconfig.patch b/cnf/diffs/perl5-5.42.3/xconfig.patch +new file mode 100644 +index 0000000..a65609b +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/xconfig.patch +@@ -0,0 +1,48 @@ ++perl-cross assumes the sources use xconfig.h with -DUSE_CROSS_COMPILE ++With perl 5.20.0, it's no longer true. Regardless of what mainline perl ++uses, let's stick with the old xconfig.h way for now. ++ ++--- a/perl.h +++++ b/perl.h ++@@ -43,7 +43,11 @@ ++ */ ++ /* #define PERL_RC_STACK */ ++ ++-#include "config.h" +++#ifndef USE_CROSS_COMPILE +++# include "config.h" +++#else +++# include "xconfig.h" +++#endif ++ ++ /* This fakes up using Mingw for locale handling. In order to not define WIN32 ++ * in this file (and hence throughout the code that isn't expecting it), this ++--- a/perl_langinfo.h +++++ b/perl_langinfo.h ++@@ -4,7 +4,11 @@ ++ #ifndef PERL_LANGINFO_H ++ #define PERL_LANGINFO_H 1 ++ +++#ifdef USE_CROSS_COMPILE +++#include "xconfig.h" +++#else ++ #include "config.h" +++#endif ++ ++ #if defined(I_LANGINFO) ++ # include <langinfo.h> ++--- a/locale.c +++++ b/locale.c ++@@ -327,7 +327,11 @@ ++ * initialization. This is done before option parsing, and before any thread ++ * creation, so can be a file-level static. (Must come before #including ++ * perl.h) */ ++-#include "config.h" +++#ifndef USE_CROSS_COMPILE +++# include "config.h" +++#else +++# include "xconfig.h" +++#endif ++ ++ /* Returns the Unix errno portion; ignoring any others. This is a macro here ++ * instead of putting it into perl.h, because unclear to khw what should be
meta/recipes-devtools/perl-cross/perlcross_1.6.4.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-c file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \ file://determinism.patch \ file://0001-Makefile-check-the-file-if-patched-or-not.patch \ + file://0001-perl-cross-add-patches-for-perl-5.42.3.patch \ " GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/"
PATCH 2/2 perl: upgrade 5.42.0 -> 5.42.3
ReleaseInfo: https://perldoc.perl.org/5.42.3/perl5423delta
- CVE-2026-8376: buffer overflow in Perl_study_chunk (regcomp_study.c) from checking substring buffer size in characters instead of bytes
- CVE-2026-57432: buffer overflow in S_measure_struct via pack/unpack on an oversized structure
- CVE-2026-13221: regex trie 16-bit field overflow with >~65k alternation branches
- CVE-2026-57433: Storable.xs signed int overflow unpacking hook data
- Archive::Tar bumped 3.04 -> 3.12, including symlink/hardlink path traversal fix (CVE-2026-42496)
All of the above are fixed upstream in 5.42.3, so the local CVE backport patches are dropped.
---
.../perl/files/CVE-2026-13221.patch | 75 --------------
.../perl/files/CVE-2026-42496.patch | 99 -------------------
.../perl/files/CVE-2026-57432-01.patch | 52 ----------
.../perl/files/CVE-2026-57432-02.patch | 34 -------
.../perl/files/CVE-2026-57433.patch | 32 ------
.../perl/files/CVE-2026-8376-01.patch | 62 ------------
.../perl/files/CVE-2026-8376-02.patch | 49 ---------
.../perl/{perl_5.42.0.bb => perl_5.42.3.bb} | 9 +-
8 files changed, 1 insertion(+), 411 deletions(-)
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-13221.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-42496.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57432-01.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57432-02.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57433.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-8376-01.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-8376-02.patch
rename meta/recipes-devtools/perl/{perl_5.42.0.bb => perl_5.42.3.bb} (98%)meta/recipes-devtools/perl/files/CVE-2026-13221.patch deleted +0 -75
@@ -1,75 +0,0 @@ -From 03f74bbbd3a68350d926ee93d56ee4808c28c4c7 Mon Sep 17 00:00:00 2001 -From: Karl Williamson <[email protected]> -Date: Thu, 26 Mar 2026 10:13:49 -0600 -Subject: [PATCH] regcomp_study: Don't create a trie that would overflow - -This addresses GH #23388 - -The design of the trie compiling code is to batch extra long tries into -smaller chunks that fit into whatever limitations there are. However, -this ticket shows that that isn't always being done. - -In this case, a bunch of branches that have TAIL operands can be -combined together, and the final TAIL is used. And the code requires -that the delta between the first branch and this final TAIL fit into a -16-bit field. That is the root cause of this bug. - -I'm not familiar enough with the trie construction code to easily -understand why the final tail needs to be used here. So this patch -simply doesn't optimize a sequence of branches into a trie that would -overflow. - -This could be revisited by someone who knows more about this than I, or -earlier in the development cycle. - -CVE: CVE-2026-13221 -Upstream-Status: Backport [https://github.com/Perl/perl5/commit/03f74bbbd3a68350d926ee93d56ee4808c28c4c7] -Signed-off-by: Jaipaul Cheernam <[email protected]> ---- - regcomp_study.c | 10 ++++++++++ - t/re/pat_advanced.t | 9 +++++++++ - 2 files changed, 19 insertions(+) - -diff --git a/regcomp_study.c b/regcomp_study.c -index db7ab3a409..a1b2c3d4e5 100644 ---- a/regcomp_study.c -+++ b/regcomp_study.c -@@ -1933,6 +1933,16 @@ Perl_study_chunk(pTHX_ - tail = regnext( tail ); - } - -+ /* The code below currently saves the difference from -+ * start to finish in a 16-bit field, causing -+ * GH #23388. This defeats the design of batching -+ * tries into chunks that each fit. khw thinks it is -+ * too late in the 5.44 cycle to relook at the design, -+ * so for now anyway, don't make a trie that would -+ * overflow */ -+ if (tail - startbranch >= U16_MAX) { -+ continue; -+ } - - DEBUG_TRIE_COMPILE_r({ - regprop(RExC_rx, RExC_mysv, tail, NULL, pRExC_state); -diff --git a/t/re/pat_advanced.t b/t/re/pat_advanced.t -index 398680838d..c9e389ecb3 100644 ---- a/t/re/pat_advanced.t -+++ b/t/re/pat_advanced.t -@@ -4898,6 +4898,15 @@ EOF_DEBUG_OUT - $x =~ s/^[\x{0301}\x{030C}]+//; - } - -+ { # GH #23388 -+ fresh_perl_is(<<~'PROG', , "", {}, "Avoid trie overflow"); -+ my $x = join "|", "aaa".."mzz"; -+ my $y = join "|", "naa".."zzz"; -+ use re 'Debug'; -+ "fnord" =~ m/(?:$x)|(?:$y)/; -+ PROG -+ } -+ - - # !!! NOTE that tests that aren't at all likely to crash perl should go - # a ways above, above these last ones. There's a comment there that, like --- -2.43.0
meta/recipes-devtools/perl/files/CVE-2026-42496.patch deleted +0 -99
99 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2026-57432-01.patch deleted +0 -52
52 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2026-57432-02.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 40754edc72dd3e513d758153c0e2f0215897740e Mon Sep 17 00:00:00 2001 -From: "Paul \"LeoNerd\" Evans" <[email protected]> -Date: Mon, 11 May 2026 12:25:33 +0100 -Subject: [PATCH] pp_pack.c: Avoid some other potential overflows when - calculating sizes - -CVE: CVE-2026-57432 -Upstream-Status: Backport [https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e] -Signed-off-by: Jaipaul Cheernam <[email protected]> ---- - pp_pack.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/pp_pack.c b/pp_pack.c -index 6075e83aac..b2019902203a 100644 ---- a/pp_pack.c -+++ b/pp_pack.c -@@ -515,12 +515,12 @@ S_measure_struct(pTHX_ tempsym_t* symptr) - break; - case 'B': - case 'b': -- len = (len + 7)/8; -+ len = (len / 8) + !!(len % 8); - size = 1; - break; - case 'H': - case 'h': -- len = (len + 1)/2; -+ len = (len / 2) + !!(len % 2); - size = 1; - break; - --- -2.43.0
meta/recipes-devtools/perl/files/CVE-2026-57433.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From e4f681784bcdeaa91ff02a2fa4cdcae5c46779d7 Mon Sep 17 00:00:00 2001 -From: "Paul \"LeoNerd\" Evans" <[email protected]> -Date: Sat, 9 May 2026 16:47:14 +0100 -Subject: [PATCH] Storable.xs: Avoid signed int overflow when unpacking a list - of hook data items - -Upstream-Status: Backport [https://github.com/Perl/perl5/commit/e4f681784bcdeaa91ff02a2fa4cdcae5c46779d7] -CVE: CVE-2026-57433 -Signed-off-by: Vijay Anusuri <[email protected]> ---- - dist/Storable/Storable.xs | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/dist/Storable/Storable.xs b/dist/Storable/Storable.xs -index 3930db6..62a1a6d 100644 ---- a/dist/Storable/Storable.xs -+++ b/dist/Storable/Storable.xs -@@ -5035,7 +5035,10 @@ static SV *retrieve_hook_common(pTHX_ stcxt_t *cxt, const char *cname, int large - } - else - GETMARK(len3); -- if (len3) { -+ if (len3 == I32_MAX) -+ /* If len3 is exactly I32_MAX it will upset av_extend below */ -+ CROAK(("Invalid count of hook data items")); -+ else if (len3) { - av = newAV(); - av_extend(av, len3 + 1); /* Leave room for [0] */ - AvFILLp(av) = len3; /* About to be filled anyway */ --- -2.43.0 -
meta/recipes-devtools/perl/files/CVE-2026-8376-01.patch deleted +0 -62
62 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2026-8376-02.patch deleted +0 -49
49 lines not on this page · raw message
meta/recipes-devtools/perl/perl_5.42.3.bb renamed from meta/recipes-devtools/perl/perl_5.42.0.bb +1 -8
@@ -16,13 +16,6 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ file://0002-Constant-Fix-up-shebang.patch \ file://determinism.patch \ file://0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch \ - file://CVE-2026-8376-01.patch \ - file://CVE-2026-8376-02.patch \ - file://CVE-2026-13221.patch \ - file://CVE-2026-57432-01.patch \ - file://CVE-2026-57432-02.patch \ - file://CVE-2026-42496.patch \ - file://CVE-2026-57433.patch \ " SRC_URI:append:class-native = " \ file://perl-configpm-switch.patch \
@@ -31,7 +24,7 @@ SRC_URI:append:class-target = " \ file://encodefix.patch \ " -SRC_URI[perl.sha256sum] = "e093ef184d7f9a1b9797e2465296f55510adb6dab8842b0c3ed53329663096dc" +SRC_URI[perl.sha256sum] = "1137740985837b5cdf15f0cfab932279dcb4352f912fed6fc144e8b4f0823627" B = "${WORKDIR}/perl-${PV}-build"
Quoted 38 lines · Jaipaul Cheernam via openembedded-core
perl-cross 1.6.4 has no patchset for the 5.42.3 point release and aborts configure on unknown versions. Reuse the 5.42.0 patchset, as its cnf/diffs/README advises ("Copy the closest available version").
Signed-off-by Jaipaul Cheernam <[email protected]>--- ...rl-cross-add-patches-for-perl-5.42.3.patch | 226 ++++++++++++++++++ .../perl-cross/perlcross_1.6.4.bb | 1 + 2 files changed, 227 insertions(+) create mode 100644 meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patchmeta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch new file +21
-0@@ -0,0 +1,226 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jaipaul Cheernam <[email protected]> +Date: Thu, 5 Nov 2026 14:00:00 +0000 +Subject: [PATCH] perl-cross: add patches for perl-5.42.3 + +Reuse the perl 5.42.0 patchset for the 5.42.3 point release. + +Upstream-Status: Inappropriate [oe-specific; perl-cross goes 5.42.0 -> 5.44.0] +Signed-off-by: Jaipaul Cheernam <[email protected]> +--- + cnf/diffs/perl5-5.42.3/constant.patch | 1 + + cnf/diffs/perl5-5.42.3/dynaloader.patch | 1 + + cnf/diffs/perl5-5.42.3/findext.patch | 1 + + cnf/diffs/perl5-5.42.3/installscripts.patch | 1 + + cnf/diffs/perl5-5.42.3/liblist.patch | 70 +++++++++++++++++++++ + cnf/diffs/perl5-5.42.3/makemaker.patch | 1 + + cnf/diffs/perl5-5.42.3/posix-makefile.patch | 1 + + cnf/diffs/perl5-5.42.3/test-checkcase.patch | 1 + + cnf/diffs/perl5-5.42.3/test-makemaker.patch | 1 + + cnf/diffs/perl5-5.42.3/xconfig.patch | 48 ++++++++++++++ + 10 files changed, 126 insertions(+)
meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch line 31
Quoted 10 lines
meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch new file +10
-0+ create mode 120000 cnf/diffs/perl5-5.42.3/constant.patch + create mode 120000 cnf/diffs/perl5-5.42.3/dynaloader.patch + create mode 120000 cnf/diffs/perl5-5.42.3/findext.patch + create mode 120000 cnf/diffs/perl5-5.42.3/installscripts.patch + create mode 100644 cnf/diffs/perl5-5.42.3/liblist.patch + create mode 120000 cnf/diffs/perl5-5.42.3/makemaker.patch + create mode 120000 cnf/diffs/perl5-5.42.3/posix-makefile.patch + create mode 120000 cnf/diffs/perl5-5.42.3/test-checkcase.patch + create mode 120000 cnf/diffs/perl5-5.42.3/test-makemaker.patch + create mode 100644 cnf/diffs/perl5-5.42.3/xconfig.patch
Hello,
Shouldn't liblist.patch and xconfig.patch be symlinks to cnf/diffs/perl5-5.42.0/... ?
I don't know perl-cross very well but it looks to me that the convention of this directory is "in each version, symlink to an existing file if present".
Also, it has the nice side effect of making extra clear that you don't add original code.
If you agree, can you send a v2 with the change?
Thanks!
Signature · 2 lines
Yoann Congal Smile ECS
PATCH v2 1/2 perl-cross: add patches for perl-5.42.3
In reply to Jaipaul Cheernamperl-cross 1.6.4 has no patchset for the 5.42.3 point release and aborts configure on unknown versions. Reuse the 5.42.0 patchset, as its cnf/diffs/README advises ("Copy the closest available version").
---
Changes Since v1:
- Add symlinks to missing liblist.patch and xconfig.patch
...rl-cross-add-patches-for-perl-5.42.3.patch | 114 ++++++++++++++++++ .../perl-cross/perlcross_1.6.4.bb | 1 + 2 files changed, 115 insertions(+) create mode 100644 meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch
meta/recipes-devtools/perl-cross/files/0001-perl-cross-add-patches-for-perl-5.42.3.patch new file +114 -0
@@ -0,0 +1,114 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jaipaul Cheernam <[email protected]> +Date: Thu, 5 Nov 2026 14:00:00 +0000 +Subject: [PATCH] perl-cross: add patches for perl-5.42.3 + +Reuse the perl 5.42.0 patchset for the 5.42.3 point release. Following the +cnf/diffs convention, every entry is a symlink to an existing patchset so +no original code is added. + +Upstream-Status: Inappropriate [oe-specific; perl-cross goes 5.42.0 -> 5.44.0] +Signed-off-by: Jaipaul Cheernam <[email protected]> +--- + cnf/diffs/perl5-5.42.3/constant.patch | 1 + + cnf/diffs/perl5-5.42.3/dynaloader.patch | 1 + + cnf/diffs/perl5-5.42.3/findext.patch | 1 + + cnf/diffs/perl5-5.42.3/installscripts.patch | 1 + + cnf/diffs/perl5-5.42.3/liblist.patch | 1 + + cnf/diffs/perl5-5.42.3/makemaker.patch | 1 + + cnf/diffs/perl5-5.42.3/posix-makefile.patch | 1 + + cnf/diffs/perl5-5.42.3/test-checkcase.patch | 1 + + cnf/diffs/perl5-5.42.3/test-makemaker.patch | 1 + + cnf/diffs/perl5-5.42.3/xconfig.patch | 1 + + 10 files changed, 10 insertions(+) + create mode 120000 cnf/diffs/perl5-5.42.3/constant.patch + create mode 120000 cnf/diffs/perl5-5.42.3/dynaloader.patch + create mode 120000 cnf/diffs/perl5-5.42.3/findext.patch + create mode 120000 cnf/diffs/perl5-5.42.3/installscripts.patch + create mode 120000 cnf/diffs/perl5-5.42.3/liblist.patch + create mode 120000 cnf/diffs/perl5-5.42.3/makemaker.patch + create mode 120000 cnf/diffs/perl5-5.42.3/posix-makefile.patch + create mode 120000 cnf/diffs/perl5-5.42.3/test-checkcase.patch + create mode 120000 cnf/diffs/perl5-5.42.3/test-makemaker.patch + create mode 120000 cnf/diffs/perl5-5.42.3/xconfig.patch + +diff --git a/cnf/diffs/perl5-5.42.3/constant.patch b/cnf/diffs/perl5-5.42.3/constant.patch +new file mode 120000 +index 0000000..065e198 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/constant.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/constant.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/dynaloader.patch b/cnf/diffs/perl5-5.42.3/dynaloader.patch +new file mode 120000 +index 0000000..ffb73eb +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/dynaloader.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/dynaloader.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/findext.patch b/cnf/diffs/perl5-5.42.3/findext.patch +new file mode 120000 +index 0000000..9efbe5b +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/findext.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/findext.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/installscripts.patch b/cnf/diffs/perl5-5.42.3/installscripts.patch +new file mode 120000 +index 0000000..1c05e0f +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/installscripts.patch +@@ -0,0 +1 @@ ++../perl5-5.36.0/installscripts.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/liblist.patch b/cnf/diffs/perl5-5.42.3/liblist.patch +new file mode 120000 +index 0000000..5037380 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/liblist.patch +@@ -0,0 +1 @@ ++../perl5-5.42.0/liblist.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/makemaker.patch b/cnf/diffs/perl5-5.42.3/makemaker.patch +new file mode 120000 +index 0000000..d7bd609 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/makemaker.patch +@@ -0,0 +1 @@ ++../perl5-5.38.0/makemaker.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/posix-makefile.patch b/cnf/diffs/perl5-5.42.3/posix-makefile.patch +new file mode 120000 +index 0000000..29463b7 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/posix-makefile.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/posix-makefile.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/test-checkcase.patch b/cnf/diffs/perl5-5.42.3/test-checkcase.patch +new file mode 120000 +index 0000000..36c5186 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/test-checkcase.patch +@@ -0,0 +1 @@ ++../perl5-5.22.3/test-checkcase.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/test-makemaker.patch b/cnf/diffs/perl5-5.42.3/test-makemaker.patch +new file mode 120000 +index 0000000..4e970ff +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/test-makemaker.patch +@@ -0,0 +1 @@ ++../perl5-5.34.0/test-makemaker.patch +\ No newline at end of file +diff --git a/cnf/diffs/perl5-5.42.3/xconfig.patch b/cnf/diffs/perl5-5.42.3/xconfig.patch +new file mode 120000 +index 0000000..87ac501 +--- /dev/null ++++ b/cnf/diffs/perl5-5.42.3/xconfig.patch +@@ -0,0 +1 @@ ++../perl5-5.42.0/xconfig.patch +\ No newline at end of file
meta/recipes-devtools/perl-cross/perlcross_1.6.4.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-c file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \ file://determinism.patch \ file://0001-Makefile-check-the-file-if-patched-or-not.patch \ + file://0001-perl-cross-add-patches-for-perl-5.42.3.patch \ " GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/"
PATCH v2 2/2 perl: upgrade 5.42.0 -> 5.42.3
ReleaseInfo: https://perldoc.perl.org/5.42.3/perl5423delta
- CVE-2026-8376: buffer overflow in Perl_study_chunk (regcomp_study.c) from checking substring buffer size in characters instead of bytes
- CVE-2026-57432: buffer overflow in S_measure_struct via pack/unpack on an oversized structure
- CVE-2026-13221: regex trie 16-bit field overflow with >~65k alternation branches
- CVE-2026-57433: Storable.xs signed int overflow unpacking hook data
- Archive::Tar bumped 3.04 -> 3.12, including symlink/hardlink path traversal fix (CVE-2026-42496)
All of the above are fixed upstream in 5.42.3, so the local CVE backport patches are dropped.
---
.../perl/files/CVE-2026-13221.patch | 75 --------------
.../perl/files/CVE-2026-42496.patch | 99 -------------------
.../perl/files/CVE-2026-57432-01.patch | 52 ----------
.../perl/files/CVE-2026-57432-02.patch | 34 -------
.../perl/files/CVE-2026-57433.patch | 32 ------
.../perl/files/CVE-2026-8376-01.patch | 62 ------------
.../perl/files/CVE-2026-8376-02.patch | 49 ---------
.../perl/{perl_5.42.0.bb => perl_5.42.3.bb} | 9 +-
8 files changed, 1 insertion(+), 411 deletions(-)
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-13221.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-42496.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57432-01.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57432-02.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57433.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-8376-01.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2026-8376-02.patch
rename meta/recipes-devtools/perl/{perl_5.42.0.bb => perl_5.42.3.bb} (98%)meta/recipes-devtools/perl/files/CVE-2026-13221.patch deleted +0 -75
@@ -1,75 +0,0 @@ -From 03f74bbbd3a68350d926ee93d56ee4808c28c4c7 Mon Sep 17 00:00:00 2001 -From: Karl Williamson <[email protected]> -Date: Thu, 26 Mar 2026 10:13:49 -0600 -Subject: [PATCH] regcomp_study: Don't create a trie that would overflow - -This addresses GH #23388 - -The design of the trie compiling code is to batch extra long tries into -smaller chunks that fit into whatever limitations there are. However, -this ticket shows that that isn't always being done. - -In this case, a bunch of branches that have TAIL operands can be -combined together, and the final TAIL is used. And the code requires -that the delta between the first branch and this final TAIL fit into a -16-bit field. That is the root cause of this bug. - -I'm not familiar enough with the trie construction code to easily -understand why the final tail needs to be used here. So this patch -simply doesn't optimize a sequence of branches into a trie that would -overflow. - -This could be revisited by someone who knows more about this than I, or -earlier in the development cycle. - -CVE: CVE-2026-13221 -Upstream-Status: Backport [https://github.com/Perl/perl5/commit/03f74bbbd3a68350d926ee93d56ee4808c28c4c7] -Signed-off-by: Jaipaul Cheernam <[email protected]> ---- - regcomp_study.c | 10 ++++++++++ - t/re/pat_advanced.t | 9 +++++++++ - 2 files changed, 19 insertions(+) - -diff --git a/regcomp_study.c b/regcomp_study.c -index db7ab3a409..a1b2c3d4e5 100644 ---- a/regcomp_study.c -+++ b/regcomp_study.c -@@ -1933,6 +1933,16 @@ Perl_study_chunk(pTHX_ - tail = regnext( tail ); - } - -+ /* The code below currently saves the difference from -+ * start to finish in a 16-bit field, causing -+ * GH #23388. This defeats the design of batching -+ * tries into chunks that each fit. khw thinks it is -+ * too late in the 5.44 cycle to relook at the design, -+ * so for now anyway, don't make a trie that would -+ * overflow */ -+ if (tail - startbranch >= U16_MAX) { -+ continue; -+ } - - DEBUG_TRIE_COMPILE_r({ - regprop(RExC_rx, RExC_mysv, tail, NULL, pRExC_state); -diff --git a/t/re/pat_advanced.t b/t/re/pat_advanced.t -index 398680838d..c9e389ecb3 100644 ---- a/t/re/pat_advanced.t -+++ b/t/re/pat_advanced.t -@@ -4898,6 +4898,15 @@ EOF_DEBUG_OUT - $x =~ s/^[\x{0301}\x{030C}]+//; - } - -+ { # GH #23388 -+ fresh_perl_is(<<~'PROG', , "", {}, "Avoid trie overflow"); -+ my $x = join "|", "aaa".."mzz"; -+ my $y = join "|", "naa".."zzz"; -+ use re 'Debug'; -+ "fnord" =~ m/(?:$x)|(?:$y)/; -+ PROG -+ } -+ - - # !!! NOTE that tests that aren't at all likely to crash perl should go - # a ways above, above these last ones. There's a comment there that, like --- -2.43.0
meta/recipes-devtools/perl/files/CVE-2026-42496.patch deleted +0 -99
99 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2026-57432-01.patch deleted +0 -52
52 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2026-57432-02.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 40754edc72dd3e513d758153c0e2f0215897740e Mon Sep 17 00:00:00 2001 -From: "Paul \"LeoNerd\" Evans" <[email protected]> -Date: Mon, 11 May 2026 12:25:33 +0100 -Subject: [PATCH] pp_pack.c: Avoid some other potential overflows when - calculating sizes - -CVE: CVE-2026-57432 -Upstream-Status: Backport [https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e] -Signed-off-by: Jaipaul Cheernam <[email protected]> ---- - pp_pack.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/pp_pack.c b/pp_pack.c -index 6075e83aac..b2019902203a 100644 ---- a/pp_pack.c -+++ b/pp_pack.c -@@ -515,12 +515,12 @@ S_measure_struct(pTHX_ tempsym_t* symptr) - break; - case 'B': - case 'b': -- len = (len + 7)/8; -+ len = (len / 8) + !!(len % 8); - size = 1; - break; - case 'H': - case 'h': -- len = (len + 1)/2; -+ len = (len / 2) + !!(len % 2); - size = 1; - break; - --- -2.43.0
meta/recipes-devtools/perl/files/CVE-2026-57433.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From e4f681784bcdeaa91ff02a2fa4cdcae5c46779d7 Mon Sep 17 00:00:00 2001 -From: "Paul \"LeoNerd\" Evans" <[email protected]> -Date: Sat, 9 May 2026 16:47:14 +0100 -Subject: [PATCH] Storable.xs: Avoid signed int overflow when unpacking a list - of hook data items - -Upstream-Status: Backport [https://github.com/Perl/perl5/commit/e4f681784bcdeaa91ff02a2fa4cdcae5c46779d7] -CVE: CVE-2026-57433 -Signed-off-by: Vijay Anusuri <[email protected]> ---- - dist/Storable/Storable.xs | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/dist/Storable/Storable.xs b/dist/Storable/Storable.xs -index 3930db6..62a1a6d 100644 ---- a/dist/Storable/Storable.xs -+++ b/dist/Storable/Storable.xs -@@ -5035,7 +5035,10 @@ static SV *retrieve_hook_common(pTHX_ stcxt_t *cxt, const char *cname, int large - } - else - GETMARK(len3); -- if (len3) { -+ if (len3 == I32_MAX) -+ /* If len3 is exactly I32_MAX it will upset av_extend below */ -+ CROAK(("Invalid count of hook data items")); -+ else if (len3) { - av = newAV(); - av_extend(av, len3 + 1); /* Leave room for [0] */ - AvFILLp(av) = len3; /* About to be filled anyway */ --- -2.43.0 -
meta/recipes-devtools/perl/files/CVE-2026-8376-01.patch deleted +0 -62
62 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2026-8376-02.patch deleted +0 -49
49 lines not on this page · raw message
meta/recipes-devtools/perl/perl_5.42.3.bb renamed from meta/recipes-devtools/perl/perl_5.42.0.bb +1 -8
@@ -16,13 +16,6 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ file://0002-Constant-Fix-up-shebang.patch \ file://determinism.patch \ file://0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch \ - file://CVE-2026-8376-01.patch \ - file://CVE-2026-8376-02.patch \ - file://CVE-2026-13221.patch \ - file://CVE-2026-57432-01.patch \ - file://CVE-2026-57432-02.patch \ - file://CVE-2026-42496.patch \ - file://CVE-2026-57433.patch \ " SRC_URI:append:class-native = " \ file://perl-configpm-switch.patch \
@@ -31,7 +24,7 @@ SRC_URI:append:class-target = " \ file://encodefix.patch \ " -SRC_URI[perl.sha256sum] = "e093ef184d7f9a1b9797e2465296f55510adb6dab8842b0c3ed53329663096dc" +SRC_URI[perl.sha256sum] = "1137740985837b5cdf15f0cfab932279dcb4352f912fed6fc144e8b4f0823627" B = "${WORKDIR}/perl-${PV}-build"