]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
9 months agopython3: upgrade 3.12.6 -> 3.12.7
Guðni Már Gilbert [Sat, 28 Dec 2024 18:19:10 +0000 (18:19 +0000)] 
python3: upgrade 3.12.6 -> 3.12.7

Changelog:
https://docs.python.org/release/3.12.7/whatsnew/changelog.html#python-3-12-7

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agolibarchive: Fix CVE-2024-20696
aszh07 [Thu, 2 Jan 2025 07:53:41 +0000 (13:23 +0530)] 
libarchive: Fix CVE-2024-20696

Add Patch file to fix CVE-2024-20696

CVE: CVE-2024-20696

Signed-off-by: Nitin Wankhade <nitin.wankhade@kpit.com>
Signed-off-by: Nikhil R <nikhilr5@kpit.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0: ignore CVEs fixed in plugins recipes
Peter Marko [Mon, 30 Dec 2024 17:27:23 +0000 (18:27 +0100)] 
gstreamer1.0: ignore CVEs fixed in plugins recipes

These were fixed in previous commits.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47835
Peter Marko [Mon, 30 Dec 2024 17:27:22 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47835

Pick commit from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8039

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch several CVEs
Peter Marko [Mon, 30 Dec 2024 17:27:21 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch several CVEs

Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8042

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch CVE-2024-47774
Peter Marko [Mon, 30 Dec 2024 17:27:20 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch CVE-2024-47774

Pick commit from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8043

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch CVE-2024-47606
Peter Marko [Mon, 30 Dec 2024 17:27:19 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch CVE-2024-47606

Pick commit related to gstreamer from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch CVE-2024-47606
Peter Marko [Mon, 30 Dec 2024 17:27:18 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch CVE-2024-47606

Pick commit related to plugins-good from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47600
Peter Marko [Mon, 30 Dec 2024 17:27:17 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47600

Pick commit from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8034

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch CVE-2024-47599
Peter Marko [Mon, 30 Dec 2024 17:27:16 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch CVE-2024-47599

Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8040

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47542
Peter Marko [Mon, 30 Dec 2024 17:27:15 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47542

Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8033

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47541
Peter Marko [Mon, 30 Dec 2024 17:27:14 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47541

Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8036

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch several CVEs
Peter Marko [Mon, 30 Dec 2024 17:27:13 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch several CVEs

Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057

Signed-off-by: Peter Marko <peter.marko@siemens.com>
fixup! gstreamer1.0-plugins-good: patch CVE-2024-47540 and CVE-2024-47601

Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: patch CVE-2024-47613
Peter Marko [Mon, 30 Dec 2024 17:27:12 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: patch CVE-2024-47613

Pick commit from:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8041

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47615
Peter Marko [Mon, 30 Dec 2024 17:27:11 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47615

Pick commits from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8038

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47607
Peter Marko [Mon, 30 Dec 2024 17:27:10 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47607

Pick commit from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8037

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-base: patch CVE-2024-47538
Peter Marko [Mon, 30 Dec 2024 17:27:09 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-base: patch CVE-2024-47538

Pick commit from:
* https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8035

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
9 months agogstreamer1.0-plugins-good: fix several CVEs
Peter Marko [Mon, 30 Dec 2024 17:27:08 +0000 (18:27 +0100)] 
gstreamer1.0-plugins-good: fix several CVEs

Cherry-pick commits from branch 1.22 per [1].
Also cherry-pick [2] so these apply cleanly.

[1] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8059
[2] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/62de06c7a443a5ac40ab2a4f2589625932bf9632

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agorust: add reproducibility patch to eliminate host leakage
Alexander Kanavin [Tue, 21 May 2024 12:50:38 +0000 (14:50 +0200)] 
rust: add reproducibility patch to eliminate host leakage

[YOCTO #15185]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 924df18b47e9a69fa295bafe37bdb39d8eaea2bb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agopython3: add dependency on -compression to -core
Ross Burton [Sun, 15 Dec 2024 14:32:47 +0000 (14:32 +0000)] 
python3: add dependency on -compression to -core

importlib.metadata is part of -core, but that will import zipfile which
is part of -compression.

Obviously this shows that our packaging of the Python modules is not
optimal.  I plan to follow up with a redesign of the splitting which
focuses on simply pulling out the larger or esoteric modules and
having a more featureful core.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agopython3: Drop empty patch
Khem Raj [Sun, 15 Dec 2024 14:32:46 +0000 (14:32 +0000)] 
python3: Drop empty patch

The fix brought by this patch is already part of python 3.12.3
therefore drop it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agogcc: Fix c++: tweak for Wrange-loop-construct
Sunil Dora [Wed, 11 Dec 2024 18:00:36 +0000 (10:00 -0800)] 
gcc: Fix c++: tweak for Wrange-loop-construct

This commit updates the warning to use a check for "trivially constructible" instead of
"trivially copyable." The original check was incorrect, as "trivially copyable" only applies
to types that can be copied trivially, whereas "trivially constructible" is the correct check
for types that can be trivially default-constructed.

This change ensures the warning is more accurate and aligns with the proper type traits.

LLVM accepted a similar fix:
https://github.com/llvm/llvm-project/issues/47355

PR c++/116731 [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116731]

Signed-off-by: Marek Polacek <polacek@redhat.com>
Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2024-35368
Archana Polampalli [Fri, 13 Dec 2024 10:11:23 +0000 (10:11 +0000)] 
ffmpeg: fix CVE-2024-35368

FFmpeg n7.0 is affected by a Double Free via the rkmpp_retrieve_frame
function within libavcodec/rkmppdec.c.

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2024-35367
Archana Polampalli [Fri, 13 Dec 2024 10:11:22 +0000 (10:11 +0000)] 
ffmpeg: fix CVE-2024-35367

FFmpeg n6.1.1 has an Out-of-bounds Read via libavcodec/ppc/vp8dsp_altivec.c,
static const vec_s8 h_subpel_filters_outer

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2024-35366
Archana Polampalli [Fri, 13 Dec 2024 10:11:21 +0000 (10:11 +0000)] 
ffmpeg: fix CVE-2024-35366

FFmpeg n6.1.1 is Integer Overflow. The vulnerability exists in the parse_options
function of sbgdec.c within the libavformat module. When parsing certain options,
the software does not adequately validate the input. This allows for negative
duration values to be accepted without proper bounds checking.

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agosubversion: fix CVE-2024-46901
Jiaying Song [Fri, 13 Dec 2024 07:20:37 +0000 (15:20 +0800)] 
subversion: fix CVE-2024-46901

Insufficient validation of filenames against control characters in
Apache Subversion repositories served via mod_dav_svn allows
authenticated users with commit access to commit a corrupted revision,
leading to disruption for users of the repository. All versions of
Subversion up to and including Subversion 1.14.4 are affected if serving
repositories via mod_dav_svn. Users are recommended to upgrade to
version 1.14.5, which fixes this issue. Repositories served via other
access methods are not affected.

References:
https://nvd.nist.gov/vuln/detail/CVE-2024-46901

Upstream patches:
https://subversion.apache.org/security/CVE-2024-46901-advisory.txt

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agobinutils: Fix CVE-2024-53589
Yash Shinde [Thu, 12 Dec 2024 14:37:15 +0000 (06:37 -0800)] 
binutils: Fix CVE-2024-53589

A buffer overflow vulnerability exists in GNU Binutils’ objdump utility
when processing tekhex format files. The vulnerability occurs in the
Binary File Descriptor (BFD) library’s tekhex parser during format identification.
Specifically, the issue manifests when attempting to read 8 bytes at an address
that precedes the global variable ‘_bfd_std_section’, resulting in an out-of-bounds read.

Backport a patch from upstream to fix CVE-2024-53589.
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=e0323071916878e0634a6e24d8250e4faff67e88]

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agocve-update-nvd2-native: Tweak to work better with NFS DL_DIR
Richard Purdie [Wed, 18 Dec 2024 11:56:34 +0000 (11:56 +0000)] 
cve-update-nvd2-native: Tweak to work better with NFS DL_DIR

After much debugging, the corruption issues on the autobuilder appear to
be due to the way sqlite accesses database files. It doesn't change the
file timestamp after making changes, which for reasons unknown, confuses
NFS. As soon as the file is touched, NFS becomes fine again accross the
whole cluster, as if by magic.

We could try and debug further but putting a "touch" call into the code
is easy and harmless. Lets hope this removes this annoying source of
errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agobuild-appliance-image: Update to scarthgap head revision
Steve Sakoman [Fri, 13 Dec 2024 13:22:28 +0000 (05:22 -0800)] 
build-appliance-image: Update to scarthgap head revision

Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agosanity: check for working user namespaces
Ross Burton [Thu, 12 Sep 2024 16:57:36 +0000 (17:57 +0100)] 
sanity: check for working user namespaces

If user namespaces are not available (typically because AppArmor is
blocking them), alert the user.

We consider network isolation sufficiently important that this is a fatal
error, and the user will need to configure AppArmor to allow bitbake to
create a user namespace.

[ YOCTO #15592 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b6af956fe6e876957a49d4abf425e8c789bf0459)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agodnf: drop python3-iniparse from DEPENDS and RDEPENDS
Guðni Már Gilbert [Sun, 8 Dec 2024 13:10:34 +0000 (13:10 +0000)] 
dnf: drop python3-iniparse from DEPENDS and RDEPENDS

python3-iniparse dependency was dropped 2019, see the
following commit as reference:
https://github.com/rpm-software-management/dnf/pull/1329/commits/d7d0e0e2f9d8c7d021c794821ad0b56a39ebc01f

When looking at the Git history, this happened around tag 4.2.1

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agopython3-poetry-core: drop python3-six from RDEPENDS
Guðni Már Gilbert [Sun, 8 Dec 2024 13:10:33 +0000 (13:10 +0000)] 
python3-poetry-core: drop python3-six from RDEPENDS

Looking at the history, python3-six was removed as a dependency
in the poetry.lock file in v1.5.2

Even before v1.5.2 and until now (v1.9.1) there is no code in
the package which imports the six module. So it can be safely
dropped from the recipe.

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agosystemd-boot: drop intltool-native from DEPENDS
Guðni Már Gilbert [Sun, 8 Dec 2024 13:10:32 +0000 (13:10 +0000)] 
systemd-boot: drop intltool-native from DEPENDS

intltool was dropped as a dependency in v236
See commit for reference:
https://github.com/systemd/systemd/pull/7313/commits/c81217920effddc93fb780cf8f9eb699d6fe1319

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agosystemd: drop intltool-native from DEPENDS
Guðni Már Gilbert [Sun, 8 Dec 2024 13:10:31 +0000 (13:10 +0000)] 
systemd: drop intltool-native from DEPENDS

intltool was dropped as a dependency in v236
See commit for reference:
https://github.com/systemd/systemd/pull/7313/commits/c81217920effddc93fb780cf8f9eb699d6fe1319

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agolibpam: fix CVE-2024-10041
Divya Chellam [Mon, 9 Dec 2024 13:18:26 +0000 (13:18 +0000)] 
libpam: fix CVE-2024-10041

A vulnerability was found in PAM. The secret information is
stored in memory, where the attacker can trigger the victim
program to execute by sending characters to its standard
input (stdin). As this occurs, the attacker can train the
branch predictor to execute an ROP chain speculatively.
This flaw could result in leaked passwords, such as those
found in /etc/shadow while performing authentications.

References:
https://security-tracker.debian.org/tracker/CVE-2024-10041

Upstream patches:
https://github.com/linux-pam/linux-pam/commit/b3020da7da384d769f27a8713257fbe1001878be

Signed-off-by: Divya Chellam <divya.chellam@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoqemu: set CVE-2024-6505 to fixed
Peter Marko [Sun, 8 Dec 2024 17:34:47 +0000 (18:34 +0100)] 
qemu: set CVE-2024-6505 to fixed

CVE patch was removed on last upgrade as fixing commit was backported to
stable 8.2.x branch.

NVD DB has this CVE as version-less (with "-").
So explicit status set is needed to mark it as fixed.

(From OE-Core rev: 64359ec3b60ae68d39c2e6444f903fd20e397cff)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2024-7055
Archana Polampalli [Fri, 6 Dec 2024 13:11:48 +0000 (13:11 +0000)] 
ffmpeg: fix CVE-2024-7055

A vulnerability was found in FFmpeg up to 7.0.1. It has been classified as critical.
This affects the function pnm_decode_frame in the library /libavcodec/pnmdec.c.
The manipulation leads to heap-based buffer overflow. It is possible to initiate
the attack remotely. The exploit has been disclosed to the public and may be used.
Upgrading to version 7.0.2 is able to address this issue. It is recommended to
upgrade the affected component. The associated identifier of this vulnerability is VDB-273651.

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2023-49528
Archana Polampalli [Fri, 6 Dec 2024 13:11:47 +0000 (13:11 +0000)] 
ffmpeg: fix CVE-2023-49528

Buffer Overflow vulnerability in FFmpeg version n6.1-3-g466799d4f5, allows a
local attacker to execute arbitrary code and cause a denial of service (DoS)
via the af_dialoguenhance.c:261:5 in the de_stereo component.

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2023-50007
Archana Polampalli [Fri, 6 Dec 2024 13:11:46 +0000 (13:11 +0000)] 
ffmpeg: fix CVE-2023-50007

Buffer Overflow vulnerability in Ffmpeg v.n6.1-3-g466799d4f5 allows a local
attacker to execute arbitrary code via theav_samples_set_silence function
in the libavutil/samplefmt.c:260:9 component.

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2024-28661
Archana Polampalli [Fri, 6 Dec 2024 13:11:45 +0000 (13:11 +0000)] 
ffmpeg: fix CVE-2024-28661

Some of the changes are already present in recipe version

Ref:
https://github.com/FFmpeg/FFmpeg/commit/148ada5577262c6c18ae97604df8fe1c18b096e2
https://ffmpeg.org/security.html

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoffmpeg: fix CVE-2023-49501
Archana Polampalli [Fri, 6 Dec 2024 13:11:44 +0000 (13:11 +0000)] 
ffmpeg: fix CVE-2023-49501

Buffer Overflow vulnerability in Ffmpeg v.n6.1-3-g466799d4f5 allows a
local attacker to execute arbitrary code via the config_eq_output function
in the libavfilter/asrc_afirsrc.c:495:30 component.

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Improve repo layout for oeselftest results
Richard Purdie [Fri, 22 Nov 2024 16:18:51 +0000 (16:18 +0000)] 
resulttool: Improve repo layout for oeselftest results

Having all oe-selftest results on top of each other results in a large 640MB
json file which is hard to use. Split the results out per machine and test type.

This also stops the toolchain raw logs from overwriting each other meaning more
than one MACHINE is preserved.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4b890f04bc7d147b4a11b824a84f3d2abd75ac54)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Trim the precision of duration information
Richard Purdie [Fri, 22 Nov 2024 16:17:19 +0000 (16:17 +0000)] 
resulttool: Trim the precision of duration information

The duration values have pointless amounts of precision. Removing some of the
least significant digits reduces result size and makes the results easier to read.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a789a2e6d97bb8efd663226a17db8d1ca6c1e40f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Clean up repoducible build logs
Richard Purdie [Fri, 22 Nov 2024 16:15:46 +0000 (16:15 +0000)] 
resulttool: Clean up repoducible build logs

We've improved the data stored for reproduicible builds. Teach resulttool how
to apply those cleanups when reprocessing data so we can reduce results file
sizes and make the data easier to process.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b799c57ae6d61c1b1c7035c8a2c4ba6ee08d1a81)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Handle ltp rawlogs as well as ptest
Richard Purdie [Fri, 22 Nov 2024 16:14:37 +0000 (16:14 +0000)] 
resulttool: Handle ltp rawlogs as well as ptest

Improve the rawlogs handling to include ltp logs as well as the ptest ones to
reduce the size of the results git repos.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a0a1954d559609c2c1ca16936d0d68eb3c4c6b45)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Add --logfile-archive option to store mode
Richard Purdie [Fri, 22 Nov 2024 16:11:43 +0000 (16:11 +0000)] 
resulttool: Add --logfile-archive option to store mode

Storing the log files inside the testresults git repo isn't scaling and isn't
really appropriate use of a git repository. Allow these to be optionally stored
in a separate filesystem location so the git repo can remain managable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1afc0f3d7e93fa8496be241e9622d3b9a6904bd5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Fix passthrough of --all files in store mode
Richard Purdie [Fri, 22 Nov 2024 16:09:41 +0000 (16:09 +0000)] 
resulttool: Fix passthrough of --all files in store mode

When using store mode, --all was broken as not all files were being preserved.
Fix this by limiting the scope of the git rm command.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9604561d2022b6c76b1cb4186d40800d1affdd2b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agooeqa/utils/gitarchive: Return tag name and improve exclude handling
Richard Purdie [Fri, 22 Nov 2024 16:06:23 +0000 (16:06 +0000)] 
oeqa/utils/gitarchive: Return tag name and improve exclude handling

Tweak the gitarchive exclude handling not to error if excluded files
don't match.

Also return the tagname created so that other code can then use it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1adba3430faffdf6217b6a00533a3b48a9388abc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Use single space indentation in json output
Richard Purdie [Thu, 21 Nov 2024 11:46:08 +0000 (11:46 +0000)] 
resulttool: Use single space indentation in json output

Using 4 space indentation in resulted in hundreds of megabytes of extra file size
in general use. Reduce this to make filesizes more managable and reduce the processing
cost. Some level of indentation and spacing does make the files more readable and allows
use of git diff so we need to retain some of it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a274cdcaf852cca9497f0358f44dda99c06aacbe)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoresulttool: Allow store to filter to specific revisions
Richard Purdie [Wed, 13 Nov 2024 21:36:57 +0000 (21:36 +0000)] 
resulttool: Allow store to filter to specific revisions

We have a challenge on the autobuilder where test results from both OE-Core
and poky are being mixed together during result storage which is confusing the
data. Add a way to filter to specific revisions as the least worst way to fix
the various issues this is causing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3f276a0dc65341668788853be2cf27ab6aa12b13)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoselftest/reproducible: Clean up pathnames
Richard Purdie [Thu, 21 Nov 2024 14:55:59 +0000 (14:55 +0000)] 
selftest/reproducible: Clean up pathnames

There are several problems with these paths. Firstly they contain full
system paths which depend upon where the test was run. These are pretty
pointless and just take up a lot of space making the results files large.

Secondly, they contain the same path twice. The reference and target path
will always be the same thing in two different locations.

Strip off the prefix and remove the duplication. This does change the output
data but that can't really be avoided. It does shrink the results data and makes
it more readable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 81a44de36e864b08687451fd85aeba7c529fd7f7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoselftest/reproducible: Drop rawlogs
Richard Purdie [Thu, 21 Nov 2024 14:55:44 +0000 (14:55 +0000)] 
selftest/reproducible: Drop rawlogs

The "rawlogs" data consists of a long string of results data which is
already in a structured data format. I can't see this is adding much
value in duplciating the data but it does create a huge string with a
lot of long problematic pathnames and inflates the results data size.

I suggest we drop this data as obsolete and not necessary.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b2c70fab2ffa409b861d83f048b65d458d03a90)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agorxvt-unicode.inc: disable the terminfo installation by setting TIC to :
Changqing Li [Thu, 21 Nov 2024 06:02:56 +0000 (14:02 +0800)] 
rxvt-unicode.inc: disable the terminfo installation by setting TIC to :

Without this change, TIC is the native tic in recipe-sysroot-native.
By default, native tic has set its default terminfo path to native path:
${datadir}/terminfo; $HOME/.terminfo

When sstate cache is used, the cached native tic's terminfo path could
be a path not exist on current host, then native tic will try to install
terminfo to HOME dir, cause host contamination.

Disable the terminfo installation by setting TIC to :

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fe35ead2c3135a18c346e7baa31d34b15c3e2d95)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agodo_package/sstate/sstatesig: Change timestamp clamping to hash output only
Richard Purdie [Fri, 25 Oct 2024 13:31:52 +0000 (14:31 +0100)] 
do_package/sstate/sstatesig: Change timestamp clamping to hash output only

The code was changing the timestamps of the files in the do_package output,
particularly the files added for debug sources. This was to do two things:

a) make do_package sstate more reproducible
b) ensure better hash equivalence matching

Unfortuately the debug source files are hardlinks into the source tree for
efficiency so touching these, touches a lot of files in ${B} and ${S}. This
causes unpredictable effects if compile is run again for example, or could
cause compiling in the install task.

The hash equivalence matching is of key importance but we can mimic that
using clamping of the file timestamps in the depsig output used to generate
the hashes.

This patch drops the global timestamp clamping, instead allowing the files
to retain their creation timestamps into sstate. This makes do_package sstate
slightly less reproducibile. We could clamp the sstate timestamps but that
would lead to two different sets of timestamps depending on whether the
data came from sstate or not. I'd prefer to have consistent code behaviour,
rather than differing behavhour depending on whether data came from sstate
or not.

If we wanted to have reproducibiliy and fix the "corruption" of S/B and have
consistent codepaths, the only other option would be two copies of the
sources, which could end up huge and seems the least desireable option.

This patch therefore drops the timestamp clamping in the sstate files
and tweaks the depsig data generation to clamp the timestamps for do_package
instead since this seems the best compromise.

I validated that rpm/deb/ipk files still generate correctly as before.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 475759fdab7200488b2a568b2ba1aa31a456d113)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
10 months agoovmf: fix CVE-2024-1298
Hongxu Jia [Fri, 22 Nov 2024 05:10:28 +0000 (13:10 +0800)] 
ovmf: fix CVE-2024-1298

Backport fix from upstream to resolve CVE-2024-1298

  https://github.com/tianocore/edk2/commit/284dbac43da752ee34825c8b3f6f9e8281cb5a19

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
10 months agoovmf: fix CVE-2024-38796
Hongxu Jia [Fri, 22 Nov 2024 05:08:39 +0000 (13:08 +0800)] 
ovmf: fix CVE-2024-38796

Backport fix from upstream to resolve CVE-2024-38796

  https://github.com/tianocore/edk2/commit/c95233b8525ca6828921affd1496146cff262e65

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 months agorootfs: Ensure run-postinsts is not uninstalled for read-only-rootfs-delayed-postinsts
Gassner, Tobias.ext [Mon, 15 Jul 2024 06:35:11 +0000 (08:35 +0200)] 
rootfs: Ensure run-postinsts is not uninstalled for read-only-rootfs-delayed-postinsts

This patch ensures that pkg_postinst_ontarget task is executed for read only rootfs when
read-only-rootfs-delayed-postinsts is set as IMAGE_FEATURES. The issue was that run-postinsts
could be uninstalled at the end of rootfs construction and that shouldn't happen for
the delayed usecase.

In addition to the fix, a test in meta/lib/oeqa/selftest/cases/overlayfs.py testing
the fix has been implemented.

Signed-off-by: Gassner, Tobias.ext <tobias.gassner.ext@karlstorz.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 60f587475dda99eaa07848880058b69286b8900e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agodropbear: backport fix for concurrent channel open/close
Florian Kreutzer [Tue, 26 Nov 2024 16:45:04 +0000 (17:45 +0100)] 
dropbear: backport fix for concurrent channel open/close

Prevents sporadic crashes of dropbear server when multiple channels are
active at the same time.

Upstream discussion:
https://github.com/mkj/dropbear/pull/326/commits
https://github.com/mkj/dropbear/issues/321

Issue was introduced in dropbear-2022.83 and fixed in v2024.86.

Signed-off-by: Florian Kreutzer <florian.kreutzer.oss@rohde-schwarz.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolibgcrypt: Fix building error with '-O2' in sysroot path
Robert Yang [Tue, 26 Nov 2024 08:37:23 +0000 (00:37 -0800)] 
libgcrypt: Fix building error with '-O2' in sysroot path

* Backport a patch to fix:
$ . oe-init-build-env build-O2
$ bitbake libgcrypt
random/rndjent.c:40:10: fatal error: stdio.h: No such file or directory

* Remove 0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch which
  is fixed by the backported patch.

Note, master branch's libgcrypt_1.11.0.bb has already fixed this problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoninja: fix build with python 3.13
Markus Volk [Sat, 23 Nov 2024 13:08:36 +0000 (14:08 +0100)] 
ninja: fix build with python 3.13

python 3.13 removed the pipes module. Thus build fails for host machines that run python 3.13

This commit adds a backport patch to use subprocess module instead

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agogcc: add a backport patch to fix an issue with tzdata 2024b
Markus Volk [Sat, 23 Nov 2024 11:23:50 +0000 (12:23 +0100)] 
gcc: add a backport patch to fix an issue with tzdata 2024b

There is an issue in the std::chrono::tzdb parser that causes problems
since the tzdata-2024b release started using %z in the main format.

As a real world problem I encounter an issue with the waybar clock module,
which ignores the timezone setting and only shows system time.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoqemu: upgrade 8.2.3 -> 8.2.7
Yogita Urade [Fri, 29 Nov 2024 08:17:08 +0000 (08:17 +0000)] 
qemu: upgrade 8.2.3 -> 8.2.7

This includes fix for: CVE-2024-4693, CVE-2024-6505 and CVE-2024-7730

General changelog for 8.2: https://wiki.qemu.org/ChangeLog/8.2

Droped:
0001-target-riscv-kvm-change-KVM_REG_RISCV_FP_F-to-u32.patch
0002-target-riscv-kvm-change-KVM_REG_RISCV_FP_D-to-u64.patch
0003-target-riscv-kvm-change-timer-regs-size-to-u64.patch
CVE-2024-4467 and CVE-2024-7409 since already contained the fix.

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoglibc: stable 2.39 branch updates
Deepthi Hemraj [Mon, 25 Nov 2024 08:01:35 +0000 (00:01 -0800)] 
glibc: stable 2.39 branch updates

Below commits on glibc-2.39 stable branch are updated.
dcaf51b41e elf: Change ldconfig auxcache magic number (bug 32231)
b3c51635ef Make tst-strtod-underflow type-generic
b74be22f65 Add crt1-2.0.o for glibc 2.0 compatibility tests
fcdf98f38c Add tests of more strtod special cases
3edc0f22a6 Add more tests of strtod end pointer
988de94538 Make tst-strtod2 and tst-strtod5 type-generic
a2f7087237 powerpc64le: Build new strtod tests with long double ABI flags (bug 32145)
6624318c89 Do not set errno for overflowing NaN payload in strtod/nan (bug 32045)
63bcc01744 Improve NaN payload testing
86369c9ee4 Make __strtod_internal tests type-generic
a7be595c67 Fix strtod subnormal rounding (bug 30220)
9cfeccf65a More thoroughly test underflow / errno in tst-strtod-round
293e4e3c90 Test errno setting on strtod overflow in tst-strtod-round
d8b4fc3653 Add tests of fread
373aab3e52 stdio-common: Add new test for fdopen

Testresults:
After update |Before update  |Difference
PASS: 4889 |PASS: 4885  |PASS: +4
FAIL: 229 |FAIL: 229  |FAIL: 0
XPASS: 4 |XPASS: 4  |XPASS: 0
XFAIL: 16 |XFAIL: 16  |XFAIL: 0
UNSUPPORTED: 227|UNSUPPORTED: 227|UNSUPPORTED: 0

Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoscripts/install-buildtools: Update to 5.0.5
Aleksandar Nikolic [Fri, 22 Nov 2024 11:48:04 +0000 (12:48 +0100)] 
scripts/install-buildtools: Update to 5.0.5

Update to the 5.0.5 release of the 5.0 series for buildtools.

Signed-off-by: Aleksandar Nikolic <aleksandar.nikolic@zeiss.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agopython3-requests: upgrade 2.32.1 -> 2.32.2
Soumya Sambu [Fri, 22 Nov 2024 11:43:13 +0000 (11:43 +0000)] 
python3-requests: upgrade 2.32.1 -> 2.32.2

https://requests.readthedocs.io/en/latest/community/updates/#id2

2.32.2 (2024-05-21)
  * Deprecations - To provide a more stable migration for custom HTTPAdapters
    impacted by the CVE changes in 2.32.0, we’ve renamed _get_connection to a
new public API, get_connection_with_tls_context. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
get_connection is considered deprecated in all versions of
Requests>=2.32.0.
  * A minimal (2-line) example has been provided in the linked PR to ease
    migration, but we strongly urge users to evaluate if their custom adapter
is subject to the same issue described in CVE-2024-35195. (#6710)

https://github.com/psf/requests/compare/v2.32.1...v2.32.2

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agopython3-urllib3: upgrade 2.2.1 -> 2.2.2
Trevor Gamblin [Fri, 22 Nov 2024 11:40:54 +0000 (11:40 +0000)] 
python3-urllib3: upgrade 2.2.1 -> 2.2.2

(From OE-Core rev: 32fdd5673c25084af4ba295b271455cd92ca09d5)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agotzdata&tzcode-native: upgrade 2024a -> 2024b
Jinfeng Wang [Mon, 18 Nov 2024 07:07:22 +0000 (15:07 +0800)] 
tzdata&tzcode-native: upgrade 2024a -> 2024b

Signed-off-by: Jinfeng Wang <jinfeng.wang.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit c8d3edb2562ea4d980186e78b4abb5a94b1d7b22)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolibsoup: fix CVE-2024-52530, CVE-2024-52531
Changqing Li [Thu, 28 Nov 2024 04:56:03 +0000 (12:56 +0800)] 
libsoup: fix CVE-2024-52530, CVE-2024-52531

CVE-2024-52531:
GNOME libsoup before 3.6.1 allows a buffer overflow in applications that
perform conversion to UTF-8 in soup_header_parse_param_list_strict.
Input received over the network cannot trigger this.

Refer:
https://nvd.nist.gov/vuln/detail/CVE-2024-52531

CVE-2024-52530:
GNOME libsoup before 3.6.0 allows HTTP request smuggling in some
configurations because '\0' characters at the end of header names are
ignored, i.e., a "Transfer-Encoding\0: chunked" header is treated the
same as a "Transfer-Encoding: chunked" header.

Refer:
https://nvd.nist.gov/vuln/detail/CVE-2024-52530

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolibsndfile: fix CVE-2024-50612
Hitendra Prajapati [Wed, 27 Nov 2024 05:29:21 +0000 (10:59 +0530)] 
libsndfile: fix CVE-2024-50612

Upstream-Status: Backport from https://github.com/libsndfile/libsndfile/commit/4755f5bd7854611d92ad0f1295587b439f9950ba

Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agobuilder: set CVE_PRODUCT
Peter Marko [Sun, 24 Nov 2024 12:38:45 +0000 (13:38 +0100)] 
builder: set CVE_PRODUCT

Builder is a common word and there are many other builder components
which makes us to ignore CVEs for all of them.
There is already 1 ignored and currently 3 new ones.

Instead, set product to yocto to filter them.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoacpica: fix CVE-2024-24856
Changqing Li [Mon, 25 Nov 2024 04:55:45 +0000 (12:55 +0800)] 
acpica: fix CVE-2024-24856

The memory allocation function ACPI_ALLOCATE_ZEROED does not guarantee a
successful allocation, but the subsequent code directly dereferences the
pointer that receives it, which may lead to null pointer dereference. To
fix this issue, a null pointer check should be added. If it is null,
return exception code AE_NO_MEMORY.

Refer: https://nvd.nist.gov/vuln/detail/CVE-2024-24856

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agopython3-zipp: fix CVE-2024-5569
Jiaying Song [Fri, 22 Nov 2024 09:21:49 +0000 (17:21 +0800)] 
python3-zipp: fix CVE-2024-5569

A Denial of Service (DoS) vulnerability exists in the jaraco/zipp
library, affecting all versions prior to 3.19.1. The vulnerability is
triggered when processing a specially crafted zip file that leads to an
infinite loop. This issue also impacts the zipfile module of CPython, as
features from the third-party zipp library are later merged into
CPython, and the affected code is identical in both projects. The
infinite loop can be initiated through the use of functions affecting
the `Path` module in both zipp and zipfile, such as `joinpath`, the
overloaded division operator, and `iterdir`. Although the infinite loop
is not resource exhaustive, it prevents the application from responding.
The vulnerability was addressed in version 3.19.1 of jaraco/zipp.

References:
https://nvd.nist.gov/vuln/detail/CVE-2024-5569

Upstream patches:
https://github.com/jaraco/zipp/pull/120/commits/79a309fe54dc6b7934fb72e9f31bcb58f2e9f547
https://github.com/jaraco/zipp/pull/120/commits/564fcc10cdbfdaecdb33688e149827465931c9e0
https://github.com/jaraco/zipp/pull/120/commits/58115d2be968644ce71ce6bcc9b79826c82a1806
https://github.com/jaraco/zipp/pull/120/commits/c18417ed2953e181728a7dac07bff88a2190abf7

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agollvm: reduce size of -dbg package
Steve Sakoman [Thu, 21 Nov 2024 16:55:14 +0000 (08:55 -0800)] 
llvm: reduce size of -dbg package

Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of
the debug symbols

  Level 1 produces minimal information, enough for making backtraces in
  parts of the program that you don't plan to debug. This includes
  descriptions of functions and external variables, and line number
  tables, but no information about local variables.

This makes the sstate objects a lot more manageable, and packaging
faster.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agowebkitgtk: fix erroneous use of unsuported DEBUG_LEVELFLAG variable
Steve Sakoman [Thu, 21 Nov 2024 16:47:49 +0000 (08:47 -0800)] 
webkitgtk: fix erroneous use of unsuported DEBUG_LEVELFLAG variable

The version bump to 2.44.3 mistakenly changed the recipe to use
DEBUG_LEVELFLAG, which is unsupported in scarthgap.

Restore the original use of DEBUG_FLAGS

Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoudev-extraconf: fix network.sh script did not configure hotplugged interfaces
Regis Dargent [Fri, 18 Oct 2024 13:32:38 +0000 (15:32 +0200)] 
udev-extraconf: fix network.sh script did not configure hotplugged interfaces

Udev script network.sh is called when a new ethernet interface is plugged (eg. USB).
Due to some (old) missing files, this script does nothing, instead of configuring the
interfaces with ifup.
I just commented the corresponding lines to allow the script to reach the part where
it calls ifup.

Signed-off-by: Regis Dargent <regis.dargent@gmail.com>
Fixes [YOCTO 15616]

network.sh relies on (long) missing files (eg. /etc/network/options,
/etc/init.d/network) to decide if it should configure the new network
interface (ifup) or put its name in /etc/udev_network_queue for future
initialization by /etc/init.d/network service.
The actual result was that the new hotplugged interface was never
automatically configured.
Removing the obsolete tests allows the script to do its intended job.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 160f7139172ffdf510a0d7d4e85f7fbaac7fd000)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agotune-cortexa32: set tune feature as armv8a
Jagadeesh Krishnanjanappa [Wed, 16 Oct 2024 12:25:55 +0000 (17:55 +0530)] 
tune-cortexa32: set tune feature as armv8a

Cortexa32 is a 32-bit armv8a architecture processor, so set the tune feature
as armv8a instead of aarch64 which is 64-bit armv8a architecture.

It solves the following build error while compiling libgcc-initial
and libssp-nonshared.
-- snip --
aarch64-poky-linux-musl-gcc: error: unrecognized command-line option '-mfpu=neon'
aarch64-poky-linux-musl-gcc: error: unrecognized command-line option '-mfloat-abi=hard'
-- snip --

Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3b898270aca62559dfa42ed71d296fe8a8b46a41)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agogroff: fix rare build race in hdtbl
Ross Burton [Mon, 14 Oct 2024 12:24:48 +0000 (13:24 +0100)] 
groff: fix rare build race in hdtbl

It's possible to build the hdtbl examples before grn has been build:

groff: error: couldn't exec grn: No such file or directory

Backport a dependency fix from upstream.

[ YOCTO #15610 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d590a32423d05cefc4e7282f971f633b3fa0b941)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agotcl: skip io-13.6 test case
Ross Burton [Mon, 14 Oct 2024 12:24:47 +0000 (13:24 +0100)] 
tcl: skip io-13.6 test case

---- Result was:
{abcdefghj
01234} 0
---- Result should have been (exact matching):
{abcdefghj
} 1 01234 0
==== io-13.6 FAILED

This test is documented as failing on slow machines, so just skip it.

[ YOCTO #15407 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f69183586655294c9aed6687cebe57767c2f3eb8)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoqemurunner: Clean up serial_lock handling
Richard Purdie [Sun, 13 Oct 2024 07:37:07 +0000 (08:37 +0100)] 
qemurunner: Clean up serial_lock handling

Avoid "RuntimeError: release unlocked lock" since the lock shouldn't
be locked even in the error path. Add a try/finally path to ensure
this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b0732ee009ca47580d1d2ad75334f4aa50e6efd5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agopackage_rpm: Check if file exists before open()
Pavel Zhukov [Thu, 10 Oct 2024 17:45:45 +0000 (19:45 +0200)] 
package_rpm: Check if file exists before open()

Exception handler tries to read() /etc/passwd file in sysroot
and if file doesn't exist for any reason then it raises FileNotFoundError
exception which mask the original source of the problem and makes
debugging of the issue more difficult.

Fixes:
Exception: FileNotFoundError: [Errno 2] No such file or directory:
'/codebuild/output/src1899304708/src/build/tmp-container/work/core2-64-oe-linux/emqx-bin/4.3.12/recipe-sysroot/etc/passwd'

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4ad9a0e0b11eb7bc5a3dd45fc8945e094ea949e9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agocml1.bbclass: do_diffconfig: Don't override .config with .config.orig
Robert Yang [Tue, 8 Oct 2024 15:47:27 +0000 (08:47 -0700)] 
cml1.bbclass: do_diffconfig: Don't override .config with .config.orig

Fixed:
1) $ bitbake virtual/kernel -cmenuconfig
Do some changes and save the new config to default .config.
2) $ bitbake virtual/kernel -cdiffconfig
The config fragment is dumped into ${WORKDIR}/fragment.cfg.

But the .config which was saved by step #1 is overridden by .config.orig, so
the changes will be lost if run 'bitbake virtual/kernel'

And the following comment is for subprocess.call(), not for shutil.copy(),
so move subprocess.call() to the correct location.
    # No need to check the exit code as we know it's going to be
    # non-zero, but that's what we expect.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6cccf6b02f92dad514e65fd779ff659b19eb6be7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agooeqa/runtime/ssh: Fix incorrect timeout fix
Richard Purdie [Sun, 13 Oct 2024 22:02:16 +0000 (23:02 +0100)] 
oeqa/runtime/ssh: Fix incorrect timeout fix

I'd meant to change the command timeout in the previous change, fix
the correct one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bb991988cb23be2c8947171726ada321f27e6eed)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agooeqa/runtime/ssh: Rework ssh timeout
Richard Purdie [Thu, 10 Oct 2024 09:32:06 +0000 (10:32 +0100)] 
oeqa/runtime/ssh: Rework ssh timeout

After the changes to improve this test, we keep seeing image testing ssh
failures, particularly on mips.

It looks like part of the problem is that on a loaded system, 5s is too short
for mips to reliably establish an ssh connection. I've seen logs where it keeps
timing out and fails to work, then the debug code successfully uses ssh later after
everything else fails.

Change the timings/retries to give slow platforms enough time to respond.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ba64ccf3ad6e40461219b72d60eb0fe5cb38fddd)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agotoolchain-shar-extract.sh: exit when post-relocate-setup.sh fails
Chen Qi [Wed, 9 Oct 2024 08:56:47 +0000 (01:56 -0700)] 
toolchain-shar-extract.sh: exit when post-relocate-setup.sh fails

When LD_LIBRARY_PATH is set, post-relocate-setup.sh will fail and
exit properly. But such failure is ignored and the SDK installation
will continue and tell user that things succeed. This is misleading.
So exit immediately if post-relocate-setup.sh fails.

Fixes [Yocto #15586]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c8e2dcc1f71aa33cc6e56dfdebebbe7ef010c944)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agostrace: download release tarballs from GitHub
Ross Burton [Thu, 3 Oct 2024 19:50:05 +0000 (20:50 +0100)] 
strace: download release tarballs from GitHub

Switch to downloading the release tarballs from GitHub.  Their CDN is
rock solid, and strace.io is hosted inside Russia which some networks
are blocking.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bbdbd6d943a64e5b0dae4c2ee705d017fb7ef80e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agopackage_rpm: restrict rpm to 4 threads
Alexander Kanavin [Thu, 21 Nov 2024 13:42:42 +0000 (14:42 +0100)] 
package_rpm: restrict rpm to 4 threads

TL;DR version:

with this, and the previous compression level changes
I am seeing drastic speedups in package_write_rpm completion times:

webkitgtk goes from 78 seconds to 37 seconds
glibc-locale goes from 399 seconds to 58 seconds (!)

The long version:

rpm uses multithreading for two purposes:

- spawning compressors (which are nowadays themselves
multi-threaded, so the feature is not as useful as it once
was)
- parallel file classification

While the former behaves well on massively parallel CPUs
(it was written and verified here :), the latter was then added
by upstream and only benchmarked on their very old, slow laptop,
apparently:
https://github.com/rpm-software-management/rpm/commit/41f0e214f2266f02d6185ba11f797716de8125d4

On anything more capable it starts showing pathologic behavior,
presumably from spawning massive amount of very short-lived threads,
and then having to synchronize them. For example classifying glibc-locale
takes
5m20s with 256 threads (default on my machine!)
1m49s with 64 threads
59s with 16 threads
48s with 8 threads

Even a more typical recipe like webkitgtk is affected:
47s with 256 threads
32s with 64 threads
27s with 16 or 8 threads

I have found that the optimal amount is actually four: this also
means that only four compressors are running at a time, but
as they're themselves using threads, and typical recipes are dominated
by just two or three large packages, this does not affect overall
completion time.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agopackage_rpm: use zstd's default compression level
Alexander Kanavin [Thu, 21 Nov 2024 13:42:41 +0000 (14:42 +0100)] 
package_rpm: use zstd's default compression level

zstd uses 3 by default, while 19 is the highest and slowest.
It's not clear why 19 was picked to begin with, possibly
I copy-pasted it from rpm's examples without thinking:
https://git.yoctoproject.org/poky/commit/?h=master-next&id=4a4d5f78a6962dda5f63e9891825c80a8a87bf66

This brings significant speedups in rpm's compression step:
for example compressing webkitgtk takes 11s instead of 36s.

The rpm size increases from 175648k to 234860k. I think it's
a worthy default tradeoff.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agosysvinit: backport patch for fixing one issue of pidof
Changqing Li [Wed, 20 Nov 2024 04:36:58 +0000 (12:36 +0800)] 
sysvinit: backport patch for fixing one issue of pidof

When a program is a link to an executable, and this executable is
handled by update-alternatives, renamed to a different name, cmd
`pidof full_path_of_program` will not work.

Eg:
/usr/sbin/httpd -> /usr/sbin/httpd.apache2
`pidof /usr/sbin/httpd` cannot get pid of the process httpd

Backport the patch to fix above issue.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolibpam: drop cracklib from DEPENDS
Guðni Már Gilbert [Tue, 19 Nov 2024 17:56:26 +0000 (17:56 +0000)] 
libpam: drop cracklib from DEPENDS

cracklib was dropped as a dependency in libpam v1.5.0
See the following commit as reference:
https://github.com/linux-pam/linux-pam/commit/d702ff714c309069111899fd07c09e31c414c166

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoshared-mime-info: drop itstool-native from DEPENDS
Guðni Már Gilbert [Tue, 19 Nov 2024 17:56:25 +0000 (17:56 +0000)] 
shared-mime-info: drop itstool-native from DEPENDS

itstool was dropped as a dependency in shared-mime-info
release v2.2 (2022-03-27)

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolttng-ust: backport patch to fix cmake-multiple-shared-libraries build error
Bin Lan [Sat, 9 Nov 2024 08:09:45 +0000 (16:09 +0800)] 
lttng-ust: backport patch to fix cmake-multiple-shared-libraries build error

There are the following error when building doc/examples/cmake-multiple-shared-libraries:
ld: warning: liblttng-ust-common.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link)
ld: warning: liblttng-ust-tracepoint.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link)
ld: warning: liblttng-ust-common.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link)
ld: warning: liblttng-ust-tracepoint.so.1, needed by lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using -rpath or -rpath-link)
ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_common_alloc_tls'
ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_urcu_after_fork_parent'
ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_urcu_after_fork_child'
ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_urcu_after_fork_parent'
ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_tp_probe_unregister_queue_release'
ld: lttng-ust/2.13.8/build/src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `lttng_ust_cancelstate_disable_pop'
collect2: error: ld returned 1 exit status

This change set removes the old patch file 0001-Makefile.am-update-rpath-link.patch,
adds a new patch file 0001-Fix-Build-examples-when-rpath-is-stripped-from-in-bu.patch.

Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 89394da1cbe98652e1d0bd59c762ff7da2d6a113)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agouboot-sign: fix concat_dtb arguments
Clayton Casciato [Thu, 7 Nov 2024 17:10:47 +0000 (10:10 -0700)] 
uboot-sign: fix concat_dtb arguments

Fixes [YOCTO #15642]

Ensure empty argument passed from do_uboot_assemble_fitimage is passed to
concat_dtb

Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b3c473785e5ceef677ff2b77c5fc17f5704c622f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agowireless-regdb: upgrade 2024.07.04 -> 2024.10.07
Wang Mingyu [Wed, 9 Oct 2024 05:49:12 +0000 (13:49 +0800)] 
wireless-regdb: upgrade 2024.07.04 -> 2024.10.07

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f124bb09a798d94eca5e93387bc361b147ce53f9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agobinutils: stable 2.42 branch update
Deepthi Hemraj [Mon, 18 Nov 2024 07:59:44 +0000 (23:59 -0800)] 
binutils: stable 2.42 branch update

Below commits on binutils-2.42 stable branch are updated.
09ba78f0513 LoongArch: ld:Report an error when seeing an unrecognized relocation
00abcf39930 s390: Add arch15 instructions
caf72067a77 s390: Relax risbg[n]z, risb{h|l}gz, {rns|ros|rxs}bgt operand constraints
543a22c7ee3 s390: Simplify (dis)assembly of insn operands with const bits
7c94c87d463 s390: Align opcodes to lower-case
fffb4fae823 s390: Flag conditional branch relative insns as condjump
2d238ecbe50 s390: Use proper string lengths when parsing opcode table flags
10d0dd2ba2b s390: Whitespace fixes in conditional branch flavor descriptions
10a143e273c LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata
9055fbe5ffb LoongArch: The symbol got type can only be obtained after initialization

Tested on qemux86_64.
There were no additional PASS or FAIL after the update

Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agosystemd: stable update 255.4 -> 255.13
Randy MacLeod [Thu, 14 Nov 2024 00:49:30 +0000 (19:49 -0500)] 
systemd: stable update 255.4 -> 255.13

Full change log:
   https://github.com/systemd/systemd-stable/compare/v255.4...v255.13

Refreshed most of the musl patches using devtool to eliminate patch fuzz.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoghostscript: upgrade 10.03.1 -> 10.04.0
Hitendra Prajapati [Thu, 14 Nov 2024 06:15:22 +0000 (11:45 +0530)] 
ghostscript: upgrade 10.03.1 -> 10.04.0

avoid-host-contamination.patch
refreshed for 10.04.0

Changelog:
===========
- addresses CVEs: CVE-2024-46951, CVE-2024-46952, CVE-2024-46953, CVE-2024-46954, CVE-2024-46955, CVE-2024-46956
- add protection for device selection from PostScript input.
- efforts in code hygiene and maintainability continue.
- The usual round of bug fixes, compatibility changes, and incremental improvements.
- add the capability to build with the Tesseract OCR engine.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoglib-2.0: Backport fix for CVE-2024-52533
Vijay Anusuri [Thu, 14 Nov 2024 06:42:00 +0000 (12:12 +0530)] 
glib-2.0: Backport fix for CVE-2024-52533

Upstream-Status: Backport from https://gitlab.gnome.org/GNOME/glib/-/commit/ec0b708b981af77fef8e4bbb603cde4de4cd2e29

Reference: https://security-tracker.debian.org/tracker/CVE-2024-52533

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolibsoup: fix CVE-2024-52532
Hitendra Prajapati [Tue, 19 Nov 2024 06:43:08 +0000 (12:13 +0530)] 
libsoup: fix CVE-2024-52532

Upstream-Status: Backport from https://gitlab.gnome.org/GNOME/libsoup/-/commit/6adc0e3eb74c257ed4e2a23eb4b2774fdb0d67be && https://gitlab.gnome.org/GNOME/libsoup/-/commit/29b96fab2512666d7241e46c98cc45b60b795c0c

Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agolibxml-parser-perl: fix do_fetch error
Jiaying Song [Mon, 11 Nov 2024 10:28:22 +0000 (18:28 +0800)] 
libxml-parser-perl: fix do_fetch error

Change the SRC_URI to the correct value due to the following error:
WARNING: libxml-parser-perl-native-2.47-r0 do_fetch: Failed to fetch URL https://search.cpan.org/CPAN/modules/by-module/XML/XML-Parser-2.47.tar.gz, attempting MIRRORS if available

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
11 months agoenchant2: fix do_fetch error
Jiaying Song [Mon, 11 Nov 2024 09:55:19 +0000 (17:55 +0800)] 
enchant2: fix do_fetch error

Change the SRC_URI to the correct value due to the following error:
WARNING: enchant2-2.6.7-r0 do_fetch: Failed to fetch URL https://github.com/AbiWord/enchant/releases/download/v2.6.7/enchant-2.6.7.tar.gz, attempting MIRRORS if available

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>