]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
17 months agodevtool: refactor deploy to use exec_fakeroot_no_d
Adrian Freihofer [Mon, 22 Jan 2024 13:58:24 +0000 (14:58 +0100)] 
devtool: refactor deploy to use exec_fakeroot_no_d

This is a step towards a deploy function which can be called without
passing the d variable.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 months agodevtool: refactor exec_fakeroot
Adrian Freihofer [Mon, 22 Jan 2024 13:58:23 +0000 (14:58 +0100)] 
devtool: refactor exec_fakeroot

Provide a function exec_fakeroot_no_d which does the same like
exec_fakeroot does, but is usable independenlty from bitbake. This
allows to use the fanction from scripts where the d variable is not
available.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 months agodevtool: support plugins with plugins
Adrian Freihofer [Mon, 22 Jan 2024 13:58:20 +0000 (14:58 +0100)] 
devtool: support plugins with plugins

Pass the plugins search path to plugins via context. This allows plugins
to search for their own plugins at the same paths.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 months agocmake.bbclass: use --install
Adrian Freihofer [Mon, 22 Jan 2024 13:58:19 +0000 (14:58 +0100)] 
cmake.bbclass: use --install

Since version 3.15 CMake provides a command-line signature to install an
already-generated project binary tree. This may be used after building a
project to run installation without using the generated build system or
the native build tool.

This is a small improvement, for regular bitbake calls. CMake does not
check the dependencies again which is expected to be faster.

The main motivation for this change is using CMake from an SDK context.
With this change it is possible to initiate the compile step from an
IDE and later on initiating the install step via bitbake which runs the
install step on pseudo.

This is also what the meson.bbclass already does with the --no-rebuild
option.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agognutls: Upgrade 3.8.2 -> 3.8.3
Simone Weiß [Sun, 28 Jan 2024 18:47:41 +0000 (18:47 +0000)] 
gnutls: Upgrade 3.8.2 -> 3.8.3

Upgrade version to adress recent CVE findings.

Changelog
=========
** libgnutls: Fix more timing side-channel inside RSA-PSK key exchange
   [GNUTLS-SA-2024-01-14, CVSS: medium] [CVE-2024-0553]

** libgnutls: Fix assertion failure when verifying a certificate chain with a
   cycle of cross signatures
   [GNUTLS-SA-2024-01-09, CVSS: medium] [CVE-2024-0567]

** libgnutls: Fix regression in handling Ed25519 keys stored in PKCS#11 token
   certtool was unable to handle Ed25519 keys generated on PKCS#11
   with pkcs11-tool (OpenSC). This is a regression introduced in 3.8.2.

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoxwayland: Upgrade 23.2.3 -> 23.2.4
Khem Raj [Sun, 28 Jan 2024 17:05:59 +0000 (09:05 -0800)] 
xwayland: Upgrade 23.2.3 -> 23.2.4

Cumulative Fixes for CVE-2023-6816, CVE-2024-0229, CVE-2024-21885, CVE-2024-21886,
CVE-2024-0408, CVE-2024-0409

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopython3-yamllint: add missing dependency
Konrad Weihmann [Sun, 28 Jan 2024 08:34:12 +0000 (09:34 +0100)] 
python3-yamllint: add missing dependency

yamllint requires pathspec module to be available

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoqemu: fix target build with ccache enabled
Martin Jansa [Tue, 30 Jan 2024 14:47:48 +0000 (15:47 +0100)] 
qemu: fix target build with ccache enabled

* with ccache inheritted, the BUILD_CC is 'ccache gcc', but because of missing
  quote it ends passing just ccache to host-cc which gets stripped and then
  it calls compiler[0] on empty compiler variable and breaks meson as shown in:
  http://errors.yoctoproject.org/Errors/Details/751436/

python version: Python 3.12.1
Traceback (most recent call last):
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 194, in run
    return options.run_func(options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/msetup.py", line 358, in run
    app.generate()
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/msetup.py", line 181, in generate
    return self._generate(env, capture, vslite_ctx)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/msetup.py", line 203, in _generate
    intr = interpreter.Interpreter(b, user_defined_options=user_defined_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreter/interpreter.py", line 331, in __init__
    self.parse_project()
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 132, in parse_project
    self.evaluate_codeblock(self.ast, end=1)
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 198, in evaluate_codeblock
    raise e
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 190, in evaluate_codeblock
    self.evaluate_statement(cur)
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 204, in evaluate_statement
    return self.function_call(cur)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 530, in function_call
    res = func(node, func_args, kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/decorators.py", line 260, in wrapper
    return f(*nargs, **wrapped_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/decorators.py", line 579, in wrapper
    return f(*wrapped_args, **wrapped_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreter/interpreter.py", line 1309, in func_project
    self.add_languages(proj_langs, False, MachineChoice.BUILD)
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreter/interpreter.py", line 1476, in add_languages
    success = self.add_languages_for(args, required, for_machine)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/interpreter/interpreter.py", line 1519, in add_languages_for
    comp = compilers.detect_compiler_for(self.environment, lang, for_machine, skip_sanity_check)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/compilers/detect.py", line 115, in detect_compiler_for
    comp = compiler_from_language(env, lang, for_machine)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/compilers/detect.py", line 112, in compiler_from_language
    return lang_map[lang](env, for_machine) if lang in lang_map else None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/compilers/detect.py", line 614, in detect_c_compiler
    return _detect_c_or_cpp_compiler(env, 'c', for_machine)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot-native/usr/lib/python3.12/site-packages/mesonbuild/compilers/detect.py", line 286, in _detect_c_or_cpp_compiler
    compiler_name = os.path.basename(compiler[0])
                                     ~~~~~~~~^^^
IndexError: list index out of range

...

Project name: qemu
Project version: 8.2.0
C compiler for the host machine: ccache x86_64-oe-linux-clang -target x86_64-oe-linux -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mlittle-endian --dyld-prefix=/usr -Qunused-arguments --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot -m64 -mcx16 (clang 17.0.6 "clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)")
C linker for the host machine: x86_64-oe-linux-clang -target x86_64-oe-linux -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mlittle-endian --dyld-prefix=/usr -Qunused-arguments --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/qemu/8.2.0/recipe-sysroot -m64 -mcx16 ld.lld 17.0.6

../qemu-8.2.0/meson.build:1:0: ERROR: Unhandled python exception

    This is a Meson bug and should be reported!

ERROR: meson setup failed

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agooeqa/qemurunner: Handle rare shutdown race
Richard Purdie [Fri, 26 Jan 2024 22:52:26 +0000 (22:52 +0000)] 
oeqa/qemurunner: Handle rare shutdown race

The pid file can disappear when qemu is shutting down leading to a
file not found race before it is read.

Tweak the code to handle this and fix a rare but annoying race error
case.

[YOCTO #15036]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoqemu: Replace the basename patch with backport
Khem Raj [Thu, 25 Jan 2024 00:32:50 +0000 (16:32 -0800)] 
qemu: Replace the basename patch with backport

Backport the patch that got applied to fix this issue upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopiglit: Update to latest revision
Fabio Estevam [Thu, 25 Jan 2024 14:57:48 +0000 (11:57 -0300)] 
piglit: Update to latest revision

Update to the latest piglit revision.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopython3: Initialize struct termios before calling tcgetattr()
Khem Raj [Thu, 25 Jan 2024 00:05:24 +0000 (16:05 -0800)] 
python3: Initialize struct termios before calling tcgetattr()

Fixes ptest failures on python 3.12

    Failed ptests:
    {'python3': ['test_tcgetattr',
                 'test_cfmakeraw',
                 'test_setcbreak',
                 'test_setraw',
                 'python3']}

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolttng-modules: upgrade 2.13.10 -> 2.13.11
Denys Dmytriyenko [Fri, 26 Jan 2024 04:15:59 +0000 (23:15 -0500)] 
lttng-modules: upgrade 2.13.10 -> 2.13.11

Changelog:
https://lwn.net/Articles/957396/

Drop 2 backported patches and 1 implemented differently upstream.

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoelfutils: Fix build with gcc trunk
Khem Raj [Fri, 26 Jan 2024 07:21:05 +0000 (23:21 -0800)] 
elfutils: Fix build with gcc trunk

Fixes a build issue seen with latest gcc trunk.

Fixes
| ../../elfutils-0.189/tests/elfstrmerge.c: In function 'main':
| ../../elfutils-0.189/tests/elfstrmerge.c:450:32: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
|   450 |   newscnbufs = calloc (sizeof (void *), newshnums);
|       |                                ^~~~
| ../../elfutils-0.189/tests/elfstrmerge.c:450:32: note: earlier argument should specify number of elements, later size of each element
| cc1: all warnings being treated as errors

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoxz: Add ptest support
Chi Xu [Fri, 26 Jan 2024 05:48:20 +0000 (13:48 +0800)] 
xz: Add ptest support

There are two types of cases: executables and POSIX shell scripts.
All test cases PASS.
Add xz-ptest to PTESTS_FAST because test duration less than 30s
on qemux86-64.

root@qemux86-64:~# ptest-runner xz
START: ptest-runner
2024-01-26T03:32
BEGIN: /usr/lib/xz/ptest
=== test_bcj_exact_size.c ===
PASS: test_exact_size
PASS: test_empty_block

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agogtk4: update 4.12.4 -> 4.12.5
Markus Volk [Fri, 26 Jan 2024 00:42:51 +0000 (01:42 +0100)] 
gtk4: update 4.12.4 -> 4.12.5

Overview of Changes in 4.12.5, 17-01-2024
=========================================

* GtkColumnView:
 - Fix a crash on dispose

* GtkEmojiChooser:
 - Update to CLDR v44
 - Add more translations

* GtkFileDialog:
 - Return an error if no file is selected
 - Make closing the portal file chooser work

* GtkDropDown:
 - Fix display of the initial checkmark

* GtkShortcutsWindow:
 - Reduce the minimum width

* GDK:
 - Make the png loader safer against overflow

* Windows:
 - Use new clipboard api

* Wayland:
 - Fix cursor handling with graphics tablets

* macOS:
 - Silence secure-restore message
 - Fix build on macOS < 10.13

* Translation updates
 Basque
 British English
 Catalan
 Chinese (China)
 Czech
 Georgian
 German
 Hebrew
 Indonesian
 Lithuanian
 Persian
 Polish
 Romanian
 Russian
 Slovenian
 Swedish
 Turkish
 Ukrainian
 Vietnamese

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorpm: update 4.18.1 -> 4.19.1
Alexander Kanavin [Fri, 26 Jan 2024 13:34:55 +0000 (14:34 +0100)] 
rpm: update 4.18.1 -> 4.19.1

Upstream has replaced autoconf with cmake, which necessitates a rewrite of the
recipe and available options, and a rebase to cmake of
0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch

Correct a mistake in 0001-Do-not-read-config-files-from-HOME.patch :
the patch was removing the NULL marker at the end of function arguments,
and 0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch
was restoring it (in addition to the actual change the patch was making).
Now both patches preserve the NULL terminator.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agooeqa/runtime/rpm: fail tests if test rpm file cannot be found
Alexander Kanavin [Fri, 26 Jan 2024 13:34:54 +0000 (14:34 +0100)] 
oeqa/runtime/rpm: fail tests if test rpm file cannot be found

Discovery of the test file was happening in a class initializer.
That block of code cannot fail (it's not a test), and so it
falls through to completion even if the needed file could not be found.

Then the tests themselves fail later due to class variables not
being set, but all information as to why is already lost at that point.

This converts the discovery to a helper function called from
the tests, so that the function can fail the tests precisely when the
problems occur.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoclasses/package_rpm: set bogus locations for passwd/group files
Alexander Kanavin [Fri, 26 Jan 2024 13:34:53 +0000 (14:34 +0100)] 
classes/package_rpm: set bogus locations for passwd/group files

Since https://github.com/rpm-software-management/rpm/commit/f3eaeeb7341085e1850e914350cf1f33d538320d
rpm does its own parsing of /etc/passwd and /etc/group instead of relying on getpwnam() and friends.

This has an unfortunate effect of leaking build host uid/gid values for users and groups
into the cpio header inside rpm file (where previously those were always zero).

Installation of rpm packages relies on rpm header to set files ownership, and that
is a different structure that is build from .spec information, so we can avoid host
contamination by setting the paths to something bogus.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoclasses/package_rpm: use weak user/group dependencies
Alexander Kanavin [Fri, 26 Jan 2024 13:34:52 +0000 (14:34 +0100)] 
classes/package_rpm: use weak user/group dependencies

rpm 4.19 automatically generates provides and depends for user and
groups:
https://github.com/rpm-software-management/rpm/blob/rpm-4.19.x/docs/manual/users_and_groups.md#dependencies

This mechanism relies on sysusers.d for the 'provides'
part, and thus is systemd-only at best. So we need to disable it for now,
otherwise image generation fails with unresolved dependencies.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoclasses/package_rpm: write file permissions and ownership explicitly into .spec
Alexander Kanavin [Fri, 26 Jan 2024 13:34:51 +0000 (14:34 +0100)] 
classes/package_rpm: write file permissions and ownership explicitly into .spec

Per https://github.com/rpm-software-management/rpm/commit/77d3529c31ca090a40b8d3959a0bcdd721a556d6
rpm 4.19.1+ will not consider actual filesystem permissions and ownership, and will quietly default
to root if not expictly set otherwise in .spec file.

There's also additional diagnostics (printing what is in passwd/group)
when user/group name lookup against the sysroot fails.
That is never supposed to happen, and yet there was one report that it did:
https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/8493/steps/23/logs/stdio

Investigating that issue led to the first three commits in this patchset:

sysroot user management postinsts: run with /bin/sh -e to report errors when they happen
classes/multilib: expand PACKAGE_WRITE_DEPS in addition to DEPENDS
classes/staging: capture output of sysroot postinsts into logs

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoclasses/staging: capture output of sysroot postinsts into logs
Alexander Kanavin [Fri, 26 Jan 2024 13:34:50 +0000 (14:34 +0100)] 
classes/staging: capture output of sysroot postinsts into logs

This particularly helps with user management postinsts as otherwise
there's no trace left of what was run, in which order, and what was the output.

Here's an example from the logs:

NOTE: Running postinst /srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/lib64-recipe-sysroot/usr/bin/postinst-lib64-base-passwd, output:
b'/srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/recipe-sysroot-native/usr/sbin/useradd\nRunning useradd commands...\nNOTE: lib64-ptest-runner: Performing useradd with [--root /srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/lib64-recipe-sysroot --system --no-create-home --home / --user-group ptest]\n'
NOTE: Running postinst /srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/lib64-recipe-sysroot/usr/bin/postinst-useradd-lib64-ptest-runner, output:
b'/srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/recipe-sysroot-native/usr/sbin/useradd\nRunning useradd commands...\nNOTE: lib64-ptest-runner: Performing useradd with [--root /srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/lib64-recipe-sysroot --system --no-create-home --home / --user-group ptest]\nNOTE: lib64-ptest-runner: user ptest already exists, not re-creating it\n'

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoclasses/multilib: expand PACKAGE_WRITE_DEPS in addition to DEPENDS
Alexander Kanavin [Fri, 26 Jan 2024 13:34:49 +0000 (14:34 +0100)] 
classes/multilib: expand PACKAGE_WRITE_DEPS in addition to DEPENDS

Otherwise, PACKAGE_WRITE_DEPS would contain non-multilib variants
of dependencies even when building multilib items, resulting in
sysroots being populated with entirely wrong versions of them.

This hasn't been noticed until now through sheer (bad) luck, I think,
except in the cpio recipe, but the previous commit shows that the issues
did occur, quietly. Every other recipe in oe-core and meta-oe does not
prepend the multilib prefix.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agosysroot user management postinsts: run with /bin/sh -e to report errors when they...
Alexander Kanavin [Fri, 26 Jan 2024 13:34:48 +0000 (14:34 +0100)] 
sysroot user management postinsts: run with /bin/sh -e to report errors when they happen

This exposes the following failure in a multilib setup, when everything
up to do_package_write_rpm is in sstate, but do_package_write_rpm is not
(there's a similar fail for lib64-man-db, and the failures themselves will be fixed separately
in the next commit):

Exception: subprocess.CalledProcessError: Command '/srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/recipe-sysroot/usr/bin/postinst-base-passwd' returned non-zero exit status 1.

Subprocess output:
install: cannot stat '/srv/storage/alex/yocto/build-multilib/tmp/work/x86_64-pokymllib64-linux/lib64-quilt/0.67/lib64-recipe-sysroot/usr/share/base-passwd/passwd.master': No such file or directory

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopython3-numpy: Use Large File Support version of fallocate
Ola x Nilsson [Fri, 26 Jan 2024 13:57:46 +0000 (14:57 +0100)] 
python3-numpy: Use Large File Support version of fallocate

This was supposed to always be the case from upstream but was exposed
by the 64-bit-time QA checker when file function scanning was enabled.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agonative.bbclass: base_libdir unique from libdir
William Hauser [Wed, 17 Jan 2024 16:30:03 +0000 (16:30 +0000)] 
native.bbclass: base_libdir unique from libdir

Use STAGING_BASE_LIBDIR_NATIVE for the value of base_libdir instead of
STAGING_LIBDIR_NATIVE. This will avoid conflicts between the two
directories.

Signed-off-by: William Hauser <william.hauser@meraki.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agosanity: require bitbake 2.7.2 for the inherit_defer statement
Ross Burton [Fri, 26 Jan 2024 16:19:35 +0000 (16:19 +0000)] 
sanity: require bitbake 2.7.2 for the inherit_defer statement

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorootfs-postcommands.bbclass: ignore comment mismatch in systemd_user_check
Chen Qi [Wed, 27 Dec 2023 04:20:36 +0000 (12:20 +0800)] 
rootfs-postcommands.bbclass: ignore comment mismatch in systemd_user_check

The check was forcing every field to be identical, this is too
strict. For example, if the comment differs, there's really no
impact. For example, root user's comment is 'root' in passwd,
and it's 'Super User' in sysusers.d/basic.conf. Such difference is
not worth a warning. In fact, previous codes use 'lower()' to
avoid warning between 'nobody' and 'Nobody', and what's more, another
patch puts its own basic.conf.in in systemd's SRC_URI, but it changes
'Super User' to 'root'. Such changes are all unnecessary. We should
just ignore comment mismatch.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agosystemd-boot: upgrade to 255.1
Chen Qi [Wed, 27 Dec 2023 04:20:35 +0000 (12:20 +0800)] 
systemd-boot: upgrade to 255.1

0030-meson-Pass-all-static-pie-args-to-linker.patch is dropped as
it's a backported patch and is now in the new 255.1 version.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agosystemd: upgrade to 255.1
Chen Qi [Wed, 27 Dec 2023 04:20:34 +0000 (12:20 +0800)] 
systemd: upgrade to 255.1

1. Patch changes:

0004-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch
is removed because it has no real effect now. The /lib is now
/usr/lib because 'usrmerge' is a required distro feature for systemd.

0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch is
refreshed for the new version to avoid patch-fuzz issue.

2. root user's home directory now defaults to "/root":

The sysuers.d/basic.conf is still modified to respect the ROOT_HOME
value, so if users set ROOT_HOME to "/home/root", the behavior is the
same as before. However, this is only for backward compatibility. With
this patch, The ROOT_HOME value is set to "/root" in init-manager-systemd.inc.
This is because systemd's source codes are hardcoding "/root", and other
values are not officially supported. See the list below.
$ grep -rl '"/root"' src/ | grep -v 'src/test'
src/core/namespace.c
src/basic/user-util.c
src/nss-systemd/nss-systemd.c
src/nspawn/nspawn.c
src/firstboot/firstboot.c
src/shared/userdb.c
src/shared/user-record.c
$ grep -rl /root network/ factory/ sysctl.d/ sysusers.d/ rules.d/ tmpfiles.d/ units/ xorg/ tools/
sysusers.d/basic.conf.in
tmpfiles.d/provision.conf
units/emergency.service.in
units/rescue.service.in
tools/list-discoverable-partitions.py
Previously, the recipe was just substituting sysusers.d/basic.conf.in,
which is not enough to be treated as 'fully support'. I deliberately put
a warning message in do_install to warn users about non "/root" ROOT_HOME
value. Don't remove it until all above places are handled.

3. cgroupv2 is now the default.
cgroupv2 is the default for systemd for many years and it's the default
for distros such as ubuntu and fedora. Let's also use it as the default.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agosystemd: refresh musl patches for v255.1
Chen Qi [Tue, 2 Jan 2024 03:31:19 +0000 (11:31 +0800)] 
systemd: refresh musl patches for v255.1

The current patches are refreshed. A new patch is added:
0022-avoid-missing-LOCK_EX-declaration.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agooeqa/selftest: add test case to cover 'devtool modify -n' for a git recipe
Chen Qi [Mon, 22 Jan 2024 05:29:26 +0000 (13:29 +0800)] 
oeqa/selftest: add test case to cover 'devtool modify -n' for a git recipe

Add a test case to ensure the following error does not happen again for
'devtool modify -n'.

Traceback (most recent call last):
  File "/buildarea2/chenqi/poky/scripts/devtool", line 349, in <module>
    ret = main()
  File "/buildarea2/chenqi/poky/scripts/devtool", line 336, in main
    ret = args.func(args, config, basepath, workspace)
  File "/buildarea2/chenqi/poky/scripts/lib/devtool/standard.py", line 924, in modify
    if not initial_revs["."]:
KeyError: '.'

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Re-write RPATHs in the copies llvm-config
Khem Raj [Mon, 15 Jan 2024 20:55:17 +0000 (12:55 -0800)] 
rust: Re-write RPATHs in the copies llvm-config

Ensure that it can still access the native-sysroot for dependencies,
use ORIGIN to indicate this relative its install location, this also
helps in this not getting into the output of llvm-config which could
otherwise provide incorrect library paths

target rust recipe builds ( cross compile ) calls llvm-config from
target sysroot which works ok as long as C++ runtime it needs is
available on build host e.g. libstdc++ etc. which is commonly the
case, however when using clang and llvm runtime this falters since
it should be using libc++ from native sysroot and if this does not
exist on build machine this fails to find libc++ shared object and
llvm-config fails to run. This ensures that llvm-config version in
use is correctly relocated and can use shared libraries from native
sysroot correctly. Adding ORIGIN to sysroot will look for the .so in
same dir as the binary and there is the libc++.so.1 copied in place

Fixes rust build with clang compiler.

| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/rust/1.74.1/recipe-sysroot/usr/lib/llvm-rust/bin/llvm-config: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or director
y
| thread 'main' panicked at llvm.rs:551:19:
| command did not execute successfully: "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/rust/1.74.1/recipe-sysroot/usr/lib/llvm-rust/bin/llvm-config" "--version"
| expected success, got: exit status: 127

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopulseaudio: Update to 17.0
Fabio Estevam [Wed, 24 Jan 2024 13:55:15 +0000 (10:55 -0300)] 
pulseaudio: Update to 17.0

Update to pulseaudio 17.0 version.

Since pulseaudio commit e96d278bfc51 ("daemon/meson.build: Install
dbus policy in /usr, not /etc"), pulseaudio-system.conf needs to be passed
in FILES, otherwise the following QA error is seen:

ERROR: pulseaudio-17.0-r0 do_package: QA Issue: pulseaudio: Files/directories were installed but not shipped in any package:
  /usr/share/dbus-1
  /usr/share/dbus-1/system.d
  /usr/share/dbus-1/system.d/pulseaudio-system.conf

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoperl: Fix perl-module-* being ignored via COMPLEMENTARY_GLOB
William Lyu [Wed, 24 Jan 2024 16:32:34 +0000 (08:32 -0800)] 
perl: Fix perl-module-* being ignored via COMPLEMENTARY_GLOB

When perl-modules is added via COMPLEMENTARY_GLOB, all perl-module-*
packages recommended by perl-modules are ignored due to the defined
behavior of COMPLEMENTARY_GLOB.

This patch changes the relationship between perl-modules and all of its
perl-module-* from RRECOMMENDS to RDEPENDS. This makes sense as
perl-modules should represent the collection of all optional
perl-module-* packages. After this patch, perl-modules itself is being
RRECOMMENDED instead of the individual perl-module-* packages
perl-modules represents.

Signed-off-by: William Lyu <William.Lyu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoudev-extraconf: fix unmount directories containing octal-escaped chars
Jonathan GUILLOT [Wed, 24 Jan 2024 13:29:19 +0000 (13:29 +0000)] 
udev-extraconf: fix unmount directories containing octal-escaped chars

USB devices are auto-mounted in a directory named like theirs labels.
Special characters like whitespace are octal-escaped in /proc/mounts
output. Using directly this output file as an argument for umount failed
and the mount directory can't be removed as still busy.
Using printf allows these special characters to be unescaped.

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agogcc: Update status of CVE-2023-4039
Simone Weiß [Mon, 22 Jan 2024 16:41:32 +0000 (16:41 +0000)] 
gcc: Update status of CVE-2023-4039

This is fixed via a patch added in gcc-13.2.inc already, but still
reported e.g. for libgcc as it is not defining an own source but use the
shared gcc-source.

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopython3-yamllint: Add recipe
Ryan Eatmon [Tue, 23 Jan 2024 16:39:57 +0000 (10:39 -0600)] 
python3-yamllint: Add recipe

Add recipe for yamllint.  There is an upcoming change in u-boot where
the binman tool is now configured to call yamllint to verify the configs
during compile time.

There was a previous patch a year ago from Trevor Woerner that never
made it into oe-core.  This patch is a reworking of his patch but
pointing to a newer version.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agop11-kit: fix parallel build failures
Kai Kang [Mon, 22 Jan 2024 04:24:00 +0000 (12:24 +0800)] 
p11-kit: fix parallel build failures

It fails occasionally with missing generated header files:

| ../git/common/asn1.c:42:10: fatal error: openssl.asn.h: No such file or directory
|    42 | #include "openssl.asn.h"
|       |          ^~~~~~~~~~~~~~~
| compilation terminated.

According to meson manual page:

https://mesonbuild.com/Wrap-best-practices-and-tips.html#declare-generated-headers-explicitly

'asn_h_dep' should be a dependency of static_library target 'libp11_asn1'
to make sure that required header files generated before compile
common/asn1.c.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agonativesdk-cairo: fix build error
Kai Kang [Mon, 22 Jan 2024 09:56:11 +0000 (17:56 +0800)] 
nativesdk-cairo: fix build error

It fails to build nativesdk-cairo:

| ../cairo-1.18.0/meson.build:381:13: ERROR: Can not run test
    applications in this cross environment.

Set meson property ipc_rmid_deferred_release in cross-file to fix the
issue which is as same as for target cairo

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoqemu: Fix segfaults in webkitgtk:do_compile on debian11
Richard Purdie [Thu, 25 Jan 2024 23:31:37 +0000 (23:31 +0000)] 
qemu: Fix segfaults in webkitgtk:do_compile on debian11

Add a work around for segfaults we're seeing with qemu 8.2.0 when
compiling webkitgtk on debian 11 autobuilder workers.

The issue has been reported upstream to work out an official fix.

[YOCTO #15367]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Enable rust oe-selftest.
Yash Shinde [Thu, 25 Jan 2024 13:16:03 +0000 (05:16 -0800)] 
rust: Enable rust oe-selftest.

* Enable rust oe-selftest.

* Include the dependent patches for rust oe-selftest in
  meta/recipes-devtools/rust/rust-source.inc

* Disable rust oe-selftest for mips32 target (Rust upstream has classified it into tier 3 target,
  for which the Rust project does not build or test automatically) as it is unstable with rust tests.
  https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-3

* The testing is done on arm32, arm64, mips64, x86 and  x86_64 targets on Ubuntu 22.04.

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Remove the test cases whose parent dir is also present in the exclude list
Yash Shinde [Thu, 25 Jan 2024 13:16:02 +0000 (05:16 -0800)] 
rust: Remove the test cases whose parent dir is also present in the exclude list

To avoid overlap and redundancy of rust tests, remove the test cases whose
parent dir is already excluded.

Tests which are failing from below dirs are removed as these dirs are
already present in exclude list
            tests/run-make
            tests/rustdoc
            tests/mir-opt
            tests/ui-fulldeps

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Add new tests in the exclude list for rust oe-selftest
Yash Shinde [Thu, 25 Jan 2024 13:16:01 +0000 (05:16 -0800)] 
rust: Add new tests in the exclude list for rust oe-selftest

Add newly failing tests cases in the exclude list for
rust oe-selftest.

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Fix assertion failure error on oe-selftest
Yash Shinde [Thu, 25 Jan 2024 13:16:00 +0000 (05:16 -0800)] 
rust: Fix assertion failure error on oe-selftest

Fixes: thread 'main' panicked at 'assertion failed: `(left == right)`
       left: `x86_64-unknown-linux-gnu`,
       right: `x86_64-poky-linux-gnu`: Cannot obtain compiler for non-native build triple at stage 0', compile.rs:1474:13

Add correct target value for cross-compiled targets on stage1 during rust oe-selfest.

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Enable RUSTC_BOOTSTRAP to use nightly features during rust oe-selftest.
Yash Shinde [Thu, 25 Jan 2024 13:15:59 +0000 (05:15 -0800)] 
rust: Enable RUSTC_BOOTSTRAP to use nightly features during rust oe-selftest.

Fixes: error: the option `Z` is only accepted on the nightly compiler
When rust.channel is set to either beta or stable, we can't use
nightly features on bootstrap without RUSTC_BOOTSTRAP.
Set RUSTC_BOOTSTRAP=1 to use nightly features on stable or beta.

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: detect user-specified custom targets in compiletest
Yash Shinde [Thu, 25 Jan 2024 13:15:58 +0000 (05:15 -0800)] 
rust: detect user-specified custom targets in compiletest

Fixes: thread 'main' panicked at 'failed to gather the target spec
       for '<arch>-unknown-linux-gnu', synthetic_targets.rs:66:9

Detect and fetch custom target configurations when rustc is
bootstrapped in rust oe-selftest.

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agorust: Fetch cargo from rust-snapshot dir.
Yash Shinde [Thu, 25 Jan 2024 13:15:57 +0000 (05:15 -0800)] 
rust: Fetch cargo from rust-snapshot dir.

Fixes: Exception: no cargo executable found at
       `${B}/rustc-1.74.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo`

Fix the cargo binary path error on oe-selftest and path set to rust-snapshot dir.

Patch sent to upstream- https://github.com/rust-lang/rust/pull/120125

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoqemu: Upgrade 8.1.2 -> 8.2.0
Richard Purdie [Tue, 23 Jan 2024 21:27:08 +0000 (21:27 +0000)] 
qemu: Upgrade 8.1.2 -> 8.2.0

We can drop the mips workaround patch since there were fixes in 8.2.0.

The build system changed and we should drop cross.patch and replace it with
explicit settings for cross-prefix, and host-cc. To make that work we need
to indicate we don't use a cross pkg-config.

PIE isn't availale for mingw so tweak PACKAGECONFIG accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopython3-subunit: Add missing module dependency
Richard Purdie [Tue, 23 Jan 2024 20:25:28 +0000 (20:25 +0000)] 
python3-subunit: Add missing module dependency

In version 1.4.3:
* Subunit now has a dependency on an external iso8601
  module rather than shipping its own.

so add the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agooeqa/selftest/devtool: add test for recipes with multiple sources in SRC_URI
Julien Stephan [Tue, 23 Jan 2024 14:06:51 +0000 (15:06 +0100)] 
oeqa/selftest/devtool: add test for recipes with multiple sources in SRC_URI

add a non regression test for devtool modify/build on recipe having
several sources in SRC_URI

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agodevtool: modify: add support for multiple source in SRC_URI
Julien Stephan [Tue, 23 Jan 2024 14:06:50 +0000 (15:06 +0100)] 
devtool: modify: add support for multiple source in SRC_URI

[YOCTO #15162]

when doing devtool modify, sources are extracted into a devtool
temporary workdir. The main source is moved inside
build/workspace/sources/${BPN}/ and local files are moved inside
build/workspace/sources/${BPN}/oe-local-files. Secondary sources are
currently not handled and are lost.

Here is the output of devtool modify/build on bzip2 recipe:

NOTE: bzip2: compiling from external source tree <...>/build/workspace/sources/bzip2
ERROR: bzip2-1.0.8-r0 do_install_ptest_base: ExecutionError('<...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368', 1, None, None)
ERROR: Logfile of failure stored in: <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/log.do_install_ptest_base.3368
Log data follows:
| DEBUG: Executing shell function do_install_ptest_base
| NOTE: make -j 16 DESTDIR=<...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest install-ptest
| sed  -n '/^runtest:/,/^install-ptest:/{/^install-ptest:/!p}' \
|            ../../../../../../workspace/sources/bzip2/Makefile.am      > <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/Makefile
| cp ../../../../../../workspace/sources/bzip2/sample1.ref      <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/
| cp ../../../../../../workspace/sources/bzip2/sample2.ref      <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/
| cp ../../../../../../workspace/sources/bzip2/sample3.ref      <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/
| cp ../../../../../../workspace/sources/bzip2/sample1.bz2      <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/
| cp ../../../../../../workspace/sources/bzip2/sample2.bz2      <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/
| cp ../../../../../../workspace/sources/bzip2/sample3.bz2      <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/
| ln -s /usr/bin/bzip2          <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/bzip2
| cp: cannot stat '<...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/git/commons-compress': No such file or directory
| WARNING: <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368:189 exit 1 from 'cp -r <...>/build/tmp/work/core2-64-poky-linux/bzip2/
1.0.8/git/commons-compress <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/bzip2-tests/commons-compress'
| WARNING: Backtrace (BB generated script):
|       #1: do_install_ptest, <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368, line 189
|       #2: do_install_ptest_base, <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368, line 158
|       #3: main, <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368, line 226
ERROR: Task (<...>/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb:do_install_ptest_base) failed with exit code '1'
NOTE: Tasks Summary: Attempted 776 tasks of which 765 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  <...>/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb:do_install_ptest_base

externalsrc class modify SRC_URI to keep only:
* 'file', 'npmsw' and 'crate' sources
* url with type parameter matching 'kmeta' or 'git-dependency'

So by forcing to add type='git-dependency' on secondary sources, we
ensure that when building the recipe, the secondary sources can be
unpacked into WORKDIR.

This allows recipes containing several sources to be built under a
devtool context, but it has some limitations:
* user would not be able to generate patches for the secondary sources
* type="git-dependency" is added for secondary sources even on non git
  sources, so we may want to rename this parameter

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoexternalsrc: fix task dependency for do_populate_lic
Julien Stephan [Tue, 23 Jan 2024 14:06:49 +0000 (15:06 +0100)] 
externalsrc: fix task dependency for do_populate_lic

do_populate_lic dependencies are defined inside license.bbclass such as:

  addtask populate_lic after do_patch before do_build

but externalsrc deletes the do_patch task, so the only dependency left for
do_populate_lic is "before do_build"

On a devtool context, when doing devtool modify, sources are extracted inside
build/workspace/sources/${BPN}/ and local files inside
build/workspace/sources/${BPN}/oe-local-files

When building the recipe after a devtool modify, do_unpack is called again to
unpack (possibly modified) local files from
build/workspace/sources/${BPN}/oe-local-files into ${WORKDIR}.

Since the only left dependency for do_populate_lic is do_build, the
do_populate_lic can be called BEFORE do_unpack. Most of the time this is not a
problem, because license files are generally located inside ${S}, which
corresponds to build/workspace/sources/${BPN} (and is already unpacked),
but this can lead to an issue if recipe sets LIC_FILES_CHKSUM to look for
files in ${WORKDIR} (example from init-ifupdown_1.0.bb):

  LIC_FILES_CHKSUM = "file://${WORKDIR}/copyright;md5=3dd6192d306f582dee7687da3d8748ab"

So devtool modify init-ifupdown && bitbake init-ifupdown gives the following
error:

  WARNING: init-ifupdown-1.0-r0 do_populate_lic: Could not copy license file <...>/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0/copyright to <...>/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0/license-destdir/qemux86_64/init-ifupdown/copyright: [Errno 2] No such file or directory: '<...>/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0/copyright'
  ERROR: init-ifupdown-1.0-r0 do_populate_lic: QA Issue: init-ifupdown: LIC_FILES_CHKSUM points to an invalid file: <...>/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0/copyright [license-checksum]
  ERROR: init-ifupdown-1.0-r0 do_populate_lic: Fatal QA errors were found, failing task.
  ERROR: Logfile of failure stored in: <...>/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0/temp/log.do_populate_lic.838584
  ERROR: Task (<...>/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb:do_populate_lic) failed with exit code '1'

Fix this by forcing the do_populate_lic task to run after do_unpack

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoglibc: Do not enable CET on 32bit x86
Khem Raj [Mon, 22 Jan 2024 19:26:25 +0000 (11:26 -0800)] 
glibc: Do not enable CET on 32bit x86

Support has been removed from 2.39+ see [1]

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=25f1e16ef03a6a8fb1701c4647d46c564480d88c

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibssh2: backport fix for CVE-2023-48795
Ross Burton [Mon, 22 Jan 2024 17:20:31 +0000 (17:20 +0000)] 
libssh2: backport fix for CVE-2023-48795

Backport the upstream fix for CVE-2023-48795.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agogrub2: upgrade 2.06 -> 2.12
Anuj Mittal [Tue, 23 Jan 2024 08:47:34 +0000 (16:47 +0800)] 
grub2: upgrade 2.06 -> 2.12

Drop patches that have been upstreamed. Refresh others.

This version dropped extra_deps.lst from the tarball [1] and that leads
to build failures. Restore it in do_configure for now.

[1] https://git.savannah.gnu.org/cgit/grub.git/commit/?id=b835601c7639ed1890f2d3db91900a8506011a8e

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibpsl: upgrade 0.21.2 -> 0.21.5
Anuj Mittal [Tue, 23 Jan 2024 08:47:33 +0000 (16:47 +0800)] 
libpsl: upgrade 0.21.2 -> 0.21.5

License-Update: Copyright dates changed

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agocronie: upgrade 1.7.0 -> 1.7.1
Anuj Mittal [Tue, 23 Jan 2024 08:47:32 +0000 (16:47 +0800)] 
cronie: upgrade 1.7.0 -> 1.7.1

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agobluez5: upgrade 5.71 -> 5.72
Anuj Mittal [Tue, 23 Jan 2024 08:47:31 +0000 (16:47 +0800)] 
bluez5: upgrade 5.71 -> 5.72

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agomdadm: Disable ptests
Pavel Zhukov [Tue, 23 Jan 2024 10:27:11 +0000 (11:27 +0100)] 
mdadm: Disable ptests

As agreed upon in the bug triage meeting, disable mdadm ptest for the time being

Related: [Yocto #15181] [Yocto #15159] [Yocto #15308] [Yocto #15309]

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.1: drop recipes
Bruce Ashfield [Mon, 22 Jan 2024 14:08:29 +0000 (09:08 -0500)] 
linux-yocto/6.1: drop recipes

6.8-lts + linux-yocto-dev will the active reference kernels in
the upcoming release. We've moved all of the preferred versions
to 6.8, so we can now drop the recipes for 6.1

6.1 will continue to be maintained and updated for released
and supported branches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibxcomposite: Drop obsolete patch
Richard Purdie [Mon, 22 Jan 2024 14:25:49 +0000 (14:25 +0000)] 
libxcomposite: Drop obsolete patch

The patch looks obsolete now we have recipe specific sysroots, drop it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoxserver-xorg: disable xvfb by default
Ross Burton [Mon, 22 Jan 2024 14:04:06 +0000 (14:04 +0000)] 
xserver-xorg: disable xvfb by default

xvfb has limited use, so to mitigate CVE-2023-5574 out of the box we can
disable the xvfb PACKAGECONFIG.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoxserver-xorg: add PACKAGECONFIG for xvfb
Ross Burton [Mon, 22 Jan 2024 14:04:05 +0000 (14:04 +0000)] 
xserver-xorg: add PACKAGECONFIG for xvfb

Xvfb is pretty niche and has outstanding unsolved security issues, so
let people disable it and add a conditional CVE_STATUS to reflect this.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agocve_check: cleanup logging
Ross Burton [Mon, 22 Jan 2024 14:04:03 +0000 (14:04 +0000)] 
cve_check: cleanup logging

Primarily list the number of patches found, useful when debugging.

Also clean up some bad escaping that caused warnings and use
re.IGNORECASE instead of manually doing case-insenstive rang matches.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agocve_check: handle CVE_STATUS being set to the empty string
Ross Burton [Mon, 22 Jan 2024 14:04:02 +0000 (14:04 +0000)] 
cve_check: handle CVE_STATUS being set to the empty string

Handle CVE_STATUS[...] being set to an empty string just as if it was
not set at all.

This is needed for evaluated CVE_STATUS values to work, i.e. when
setting not-applicable-config if a PACKAGECONFIG is disabled.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agozlib: ignore CVE-2023-6992
Peter Marko [Sat, 13 Jan 2024 18:04:04 +0000 (19:04 +0100)] 
zlib: ignore CVE-2023-6992

This CVE is for iCPE cloudflare:zlib.

Alternative to ignoring would be to limit CVE_PRODUCT, but
historic CVEs already have two - gnu:zlib and zlib:zlib.
So limiting it could miss future CVEs.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoxev: Drop diet libx11 related patch
Richard Purdie [Mon, 22 Jan 2024 13:52:15 +0000 (13:52 +0000)] 
xev: Drop diet libx11 related patch

We dropped diet-libx11 back in 2019 in 1a502765db2093e573c9e3ecd6c1bc7621476963.
Drop the patch we don't need from xev to match.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoshaderc: update commit hash to v2023.7
Vincent Davis Jr [Sun, 21 Jan 2024 02:49:29 +0000 (21:49 -0500)] 
shaderc: update commit hash to v2023.7

v2023.7 of google shaderc hash was updated to

https://github.com/google/shaderc/commit/3882b16417077aa8eaa7b5775920e7ba4b8a224d
https://github.com/google/shaderc/releases/tag/v2023.7

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoopensbi: bump to 1.4
Thomas Perrot [Sun, 21 Jan 2024 02:10:07 +0000 (18:10 -0800)] 
opensbi: bump to 1.4

This release has:
- Synopsys DesignWare APB GPIO driver
- Zicntr and Zihpm support
- Console print improvements
- Smepmp support
- Simple FDT based syscon regmap driver
- Syscon based reboot and poweroff driver
- Non-contiguous hpm counters
- Smcntrpmf support
- Full sparse hartid support
- IPI improvements
- RFENCE improvements
- Zkr support
- Andes custom PMU support
Overall, this release mainly adds more ISA extensions, drivers and other improvements.

https://github.com/riscv-software-src/opensbi/compare/v1.3.1...v1.4

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.1: update CVE exclusions
Bruce Ashfield [Fri, 19 Jan 2024 21:14:19 +0000 (16:14 -0500)] 
linux-yocto/6.1: update CVE exclusions

Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 15Jan24
        Date: Mon, 15 Jan 2024 12:48:45 -0500

    ]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.1: update to v6.1.73
Bruce Ashfield [Fri, 19 Jan 2024 21:14:18 +0000 (16:14 -0500)] 
linux-yocto/6.1: update to v6.1.73

Updating linux-yocto/6.1 to the latest korg -stable release that comprises
the following commits:

    fec3b1451d5f Linux 6.1.73
    f9ee31dc7fcd cifs: fix flushing folio regression for 6.1 backport
    0f22c8a6efe6 ipv6: remove max_size check inline with ipv4
    b2c545c39877 Revert "nfsd: separate nfsd_last_thread() from nfsd_put()"
    db5f2f4db8b7 Revert "nfsd: call nfsd_last_thread() before final nfsd_put()"

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.6: update CVE exclusions
Bruce Ashfield [Fri, 19 Jan 2024 21:14:17 +0000 (16:14 -0500)] 
linux-yocto/6.6: update CVE exclusions

Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 15Jan24
        Date: Mon, 15 Jan 2024 12:48:45 -0500

    ]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.6: update to v6.6.12
Bruce Ashfield [Fri, 19 Jan 2024 21:14:16 +0000 (16:14 -0500)] 
linux-yocto/6.6: update to v6.6.12

Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    47345b4264bc Linux 6.6.12
    edbc56139579 nfsd: drop the nfsd_put helper

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.1: security/cfg: add configs to harden protection
Bruce Ashfield [Fri, 19 Jan 2024 21:14:15 +0000 (16:14 -0500)] 
linux-yocto/6.1: security/cfg: add configs to harden protection

Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Xiangyu Chen
    Email: xiangyu.chen@windriver.com
    Subject: feature/security: add configs to harden protection
    Date: Tue, 16 Jan 2024 18:22:31 +0800

    Add some configs to harden protection:
      CONFIG_HW_RANDOM_TPM=y Exposing the TPM's Random Number Generator as a hwrng device.
      CONFIG_DEBUG_WX=y Warn on W+X mappings at boot.
      CONFIG_SECURITY_DMESG_RESTRICT=y Restrict unprivileged access to the kernel syslog.
      CONFIG_LDISC_AUTOLOAD=n Disable automatically load TTY Line Disciplines.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.6: security/cfg: add configs to harden protection
Bruce Ashfield [Fri, 19 Jan 2024 21:14:14 +0000 (16:14 -0500)] 
linux-yocto/6.6: security/cfg: add configs to harden protection

Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Xiangyu Chen
    Email: xiangyu.chen@windriver.com
    Subject: feature/security: add configs to harden protection
    Date: Tue, 16 Jan 2024 18:22:31 +0800

    Add some configs to harden protection:
      CONFIG_HW_RANDOM_TPM=y Exposing the TPM's Random Number Generator as a hwrng device.
      CONFIG_DEBUG_WX=y Warn on W+X mappings at boot.
      CONFIG_SECURITY_DMESG_RESTRICT=y Restrict unprivileged access to the kernel syslog.
      CONFIG_LDISC_AUTOLOAD=n Disable automatically load TTY Line Disciplines.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.6: cfg: arm: introduce page size fragments
Bruce Ashfield [Fri, 19 Jan 2024 21:14:13 +0000 (16:14 -0500)] 
linux-yocto/6.6: cfg: arm: introduce page size fragments

Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: arch/arm: add fragments to explicitly select 4/16/64 KB pages on arm64
    Date: Tue, 9 Jan 2024 13:33:06 +0000

    Linux on aarch64 supports various page sizes. The default is 4KB but
    there can be performance improvements in many workloads with larger
    pages.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.1: update CVE exclusions
Bruce Ashfield [Fri, 19 Jan 2024 21:14:12 +0000 (16:14 -0500)] 
linux-yocto/6.1: update CVE exclusions

Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 27Dec23
        Date: Wed, 27 Dec 2023 19:47:13 -0500

    ]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.1: update to v6.1.72
Bruce Ashfield [Fri, 19 Jan 2024 21:14:11 +0000 (16:14 -0500)] 
linux-yocto/6.1: update to v6.1.72

Updating linux-yocto/6.1 to the latest korg -stable release that comprises
the following commits:

    7c58bfa711cb Linux 6.1.72
    2dbe25ae06e6 Revert "interconnect: qcom: sm8250: Enable sync_state"
    f73a374c1969 smb3: Replace smb2pdu 1-element arrays with flex-arrays
    ec162546a733 media: qcom: camss: Comment CSID dt_id field
    a5c3f2b4cee7 bpf: syzkaller found null ptr deref in unix_bpf proto add
    15db682980fc bpf: Fix a verifier bug due to incorrect branch offset comparison with cpu=v4
    7cbdf36eabf3 net/sched: act_ct: Always fill offloading tuple iifidx
    2be4e8ac2d16 net/sched: act_ct: additional checks for outdated flows
    87318b7e374c f2fs: compress: fix to assign compress_level for lz4 correctly
    397f719037c2 genirq/affinity: Only build SMP-only helper functions on SMP kernels
    28c9222e29e5 mmc: sdhci-sprd: Fix eMMC init failure after hw reset
    2813a434d461 mmc: core: Cancel delayed work before releasing host
    575e127041f2 mmc: rpmb: fixes pause retune on all RPMB partitions.
    9c5efaa09b31 mmc: meson-mx-sdhc: Fix initialization frozen issue
    48e1d426f452 drm/amd/display: add nv12 bounding box
    11c3510d1d4d drm/amdgpu: skip gpu_info fw loading on navi12
    dafdeb7b91f1 mm: fix unmap_mapping_range high bits shift bug
    08038069c237 i2c: core: Fix atomic xfer check for non-preempt config
    53b42cb33fb1 x86/kprobes: fix incorrect return address calculation in kprobe_emulate_call_indirect
    d1db1ef5e633 firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards
    09a44d994bfe ring-buffer: Fix 32-bit rb_time_read() race with rb_time_cmpxchg()
    820a7802f25a btrfs: mark the len field in struct btrfs_ordered_sum as unsigned
    ab220f4f5c70 btrfs: fix qgroup_free_reserved_data int overflow
    0f74dde5be2c octeontx2-af: Support variable number of lmacs
    7d3912613d5b octeontx2-af: Fix pause frame configuration
    a29b15cc68a6 net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table
    2bb4ecb3349c netfilter: flowtable: GC pushes back packets to classic path
    df01de08b411 net/sched: act_ct: Fix promotion of offloaded unreplied tuple
    87466a374571 net/sched: act_ct: offload UDP NEW connections
    8b160f2fba77 netfilter: flowtable: cache info of last offload
    c29a7656f8a2 netfilter: flowtable: allow unidirectional rules
    e681f711e9e8 net: sched: call tcf_ct_params_free to free params in tcf_ct_init
    d49bf9c1ceb3 mm/memory_hotplug: fix error handling in add_memory_resource()
    4666f003afff mm/memory_hotplug: add missing mem_hotplug_lock
    a576780a2a66 lib/group_cpus.c: avoid acquiring cpu hotplug lock in group_cpus_evenly
    f33b27f5c3de genirq/affinity: Move group_cpus_evenly() into lib/
    617ba3735d3b genirq/affinity: Rename irq_build_affinity_masks as group_cpus_evenly
    aeeb4e4e49f8 genirq/affinity: Don't pass irq_affinity_desc array to irq_build_affinity_masks
    9e84d7bb1505 genirq/affinity: Pass affinity managed mask array to irq_build_affinity_masks
    a1dcd1794730 genirq/affinity: Remove the 'firstvec' parameter from irq_build_affinity_masks
    f4fe76467e7b ALSA: hda/realtek: Add quirk for Lenovo Yoga Pro 7
    aee609302d65 firmware: arm_scmi: Fix frequency truncation by promoting multiplier type
    90d1f74c3cf6 bpf, sockmap: af_unix stream sockets need to hold ref for pair sock
    5ff1682fec18 ethtool: don't propagate EOPNOTSUPP from dumps
    e570b1508753 dpaa2-eth: recycle the RX buffer only after all processing done
    5b8938fc7d00 net: dpaa2-eth: rearrange variable in dpaa2_eth_get_ethtool_stats
    e88275ce7e7b smb: client: fix missing mode bits for SMB symlinks
    bf223fd4d914 block: update the stable_writes flag in bdev_add
    a8e4300ae58d filemap: add a per-mapping stable writes flag
    d0eafc763135 mm, netfs, fscache: stop read optimisation when folio removed from pagecache
    bceff380f361 mm: merge folio_has_private()/filemap_release_folio() call pairs
    8b6b3ecf0c13 memory-failure: convert truncate_error_page() to use folio
    a6f440f3b956 khugepage: replace try_to_release_page() with filemap_release_folio()
    4c78612e5fbc ext4: convert move_extent_per_page() to use folios
    b92a8f591ca8 media: qcom: camss: Fix set CSI2_RX_CFG1_VC_MODE when VC is greater than 3
    710f70555d5b media: camss: sm8250: Virtual channels for CSID
    c96a4f936008 selftests: mptcp: set FAILING_LINKS in run_tests
    4b85e920afc8 selftests: mptcp: fix fastclose with csum failure
    336d1ee07efb f2fs: set the default compress_level on ioctl
    1ff3f5ef284b f2fs: assign default compression level
    55d3f41e5583 f2fs: convert to use bitmap API
    84a8d913fb53 f2fs: clean up i_compress_flag and i_compress_level usage
    2c14f4991610 s390/cpumf: support user space events for counting
    a1a1e5ce88a7 s390/mm: add missing arch_set_page_dat() call to vmem_crst_alloc()
    31051f722db2 net/mlx5: Increase size of irq name buffer
    b5c8e0ff76d1 blk-mq: make sure active queue usage is held for bio_integrity_prep()
    803fb6109fcf bpf: fix precision backtracking instruction iteration
    b08acd5c4602 bpf: handle ldimm64 properly in check_cfg()
    2c795ce09042 bpf: Support new 32bit offset jmp instruction
    b1c780ed3c22 bpf: clean up visit_insn()'s instruction processing
    97bb6dab0172 bpf: Remove unused insn_cnt argument from visit_[func_call_]insn()
    8266c47d04b2 bpf: remove unnecessary prune and jump points
    743f3548d301 bpf: decouple prune and jump points
    eb4f2e17886a fbdev: imsttfb: fix double free in probe()
    f2a79f3651a5 fbdev: imsttfb: Release framebuffer and dealloc cmap on error path
    51a1b943022f arm64: dts: qcom: sdm845: Fix PSCI power domain names
    5db8b93cbe2d arm64: dts: qcom: sdm845: align RPMh regulator nodes with bindings
    343bb27e3152 wifi: iwlwifi: yoyo: swap cdb and jacket bits values
    158b71f3a9fa udp: annotate data-races around udp->encap_type
    8d929b6c1114 udp: lockless UDP_ENCAP_L2TPINUDP / UDP_GRO
    b680a907d17c udp: move udp->accept_udp_{l4|fraglist} to udp->udp_flags
    753886c0b994 udp: move udp->gro_enabled to udp->udp_flags
    a01cff15ccdc udp: move udp->no_check6_rx to udp->udp_flags
    50e41aa9ea0d udp: move udp->no_check6_tx to udp->udp_flags
    e2a4392b61f6 udp: introduce udp->udp_flags
    2489502fb1f5 ipv4, ipv6: Use splice_eof() to flush
    4713b7c7568b splice, net: Add a splice_eof op to file-ops and socket-ops
    ac8c69e448f7 udp: Convert udp_sendpage() to use MSG_SPLICE_PAGES
    6bcc79a4e760 net: Declare MSG_SPLICE_PAGES internal sendmsg() flag
    89b51e70e5e3 bpf, x86: save/restore regs with BPF_DW size
    4ee461c5dc99 bpf, x86: Simplify the parsing logic of structure parameters
    605c8d8f9966 bpf, x64: Fix tailcall infinite loop
    5573fdbc3423 srcu: Fix callbacks acceleration mishandling
    abc3e3fb71a5 cpu/SMT: Make SMT control more robust against enumeration failures
    482fa21635c8 cpu/SMT: Create topology_smt_thread_allowed()
    a364c18553d0 selftests: secretmem: floor the memory size to the multiple of page_size
    c38c5cfd3ed7 net: Implement missing SO_TIMESTAMPING_NEW cmsg support
    14937f47a48f bnxt_en: Remove mis-applied code from bnxt_cfg_ntp_filters()
    55fbcd83aaca net: ravb: Wait for operating mode to be applied
    8a09b0f01c40 asix: Add check for usbnet_get_endpoints
    db9c4a1f37ee octeontx2-af: Re-enable MAC TX in otx2_stop processing
    b67e7d78e48a octeontx2-af: Always configure NIX TX link credits based on max frame size
    84c3833a93bb net/smc: fix invalid link access in dumping SMC-R connections
    0af75845ff5e net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues
    9b0504292237 igc: Fix hicredit calculation
    7663226274af i40e: Restore VF MSI-X state during PCI reset
    5735f529e318 ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux
    8719838c126a ASoC: meson: g12a-toacodec: Fix event generation
    5de3c8496e77 ASoC: meson: g12a-tohdmitx: Validate written enum values
    95b4d4093ac0 ASoC: meson: g12a-toacodec: Validate written enum values
    2f3b6e8600c9 i40e: fix use-after-free in i40e_aqc_add_filters()
    72fa66177859 net: Save and restore msg_namelen in sock_sendmsg
    81f8a995ebc8 netfilter: nft_immediate: drop chain reference counter on error
    bb1bf97fa187 net: bcmgenet: Fix FCS generation for fragmented skbuffs
    e75715e1c2e5 sfc: fix a double-free bug in efx_probe_filters
    725d44e49fb5 ARM: sun9i: smp: Fix array-index-out-of-bounds read in sunxi_mc_smp_init
    85f6fae44bba selftests: bonding: do not set port down when adding to bond
    3edd66bd4e42 net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)
    ac5fde92b510 net: annotate data-races around sk->sk_bind_phc
    c48fcb4f4906 net: annotate data-races around sk->sk_tsflags
    5d586f7ca0fc net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
    b2130366a952 can: raw: add support for SO_MARK
    633a49e34b32 r8169: Fix PCI error on system resume
    565460e180d9 net: sched: em_text: fix possible memory leak in em_text_destroy()
    ac5cbe931c43 mlxbf_gige: fix receive packet race condition
    6d7f45492706 ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset
    811604fb02c4 ASoC: fsl_rpmsg: Fix error handler with pm_runtime_enable
    c3a37dc15685 igc: Check VLAN EtherType mask
    6edff0b8381c igc: Check VLAN TCI mask
    d27b98f4aeae igc: Report VLAN EtherType matching back to user
    e76d1913f6a8 i40e: Fix filter input checks to prevent config with invalid values
    188c9970d05e ice: Shut down VSI with "link-down-on-close" enabled
    83b80170b7fa ice: Fix link_down_on_close message
    f3f6a23e054c drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern
    6cf7235bc1fb octeontx2-af: Fix marking couple of structure as __packed
    a4b0a9b80a96 nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local
    282e3fb61285 netfilter: nf_tables: set transport offset from mac header for netdev/egress
    9487cc4c90fb netfilter: use skb_ip_totlen and iph_totlen
    5f523f1beb46 drm/bridge: ti-sn65dsi86: Never store more than msg->size bytes in AUX xfer
    3da4868907da wifi: iwlwifi: pcie: don't synchronize IRQs from IRQ
    493d556278a3 KVM: x86/pmu: fix masking logic for MSR_CORE_PERF_GLOBAL_CTRL
    3152a7d361c6 cifs: do not depend on release_iface for maintaining iface_list
    5982a625fc0d cifs: cifs_chan_is_iface_active should be called with chan_lock held
    4afcb82518b9 drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE
    b9c370b61d73 Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()"
    af9a5307656d mptcp: prevent tcp diag from closing listener subflows
    105063f7f441 ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP ProBook 440 G6
    0fa3cf2d151e ALSA: hda/realtek: fix mute/micmute LEDs for a HP ZBook
    beda900d3aaf ALSA: hda/realtek: enable SND_PCI_QUIRK for hp pavilion 14-ec1xxx series
    9539e3b56e0d block: Don't invalidate pagecache for invalid falloc modes
    079eefaecfd7 keys, dns: Fix missing size check of V1 server-list header
    38fb82ecd144 Linux 6.1.71
    74c4c7d57cf2 Revert "platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe"
    7709b16bdbd5 tracing/kprobes: Fix symbol counting logic by looking at modules as well
    9dd295341dc1 kallsyms: Make module_kallsyms_on_each_symbol generally available
    29cb16577189 device property: Allow const parameter to dev_fwnode()
    e7b04372179e spi: Constify spi parameters of chip select APIs
    f9a01938e079 NFSD: fix possible oops when nfsd/pool_stats is closed.
    899ac41804d8 ring-buffer: Fix slowpath of interrupted event
    0105571f80ed netfilter: nf_tables: skip set commit for deleted/destroyed sets
    4768430d5a69 ring-buffer: Remove useless update to write_stamp in rb_try_to_discard()
    f33c4e4cabce tracing: Fix blocked reader of snapshot buffer
    09640899e6b7 ring-buffer: Fix wake ups when buffer_percent is set to 100
    4ee9d9291b95 mm/memory-failure: check the mapcount of the precise page
    fb21c9780a31 mm/memory-failure: cast index to loff_t before shifting it
    be72d197b228 mm: migrate high-order folios in swap cache correctly
    a8df791470fb mm/filemap: avoid buffered read/write race to read inconsistent data
    b954b92ef08f platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe
    7a3bbbadac4b ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
    b9c5f0fd5cd5 block: renumber QUEUE_FLAG_HW_WC
    e21b5fc5b887 spi: atmel: Fix clock issue when using devices with different polarities
    025cf65f68d4 spi: Add APIs in spi core to set/get spi->chip_select and spi->cs_gpiod
    64a4eb2982db spi: Reintroduce spi_set_cs_timing()
    95e21657ffe9 linux/export: Ensure natural alignment of kcrctab array
    bb4f791cb2de nfsd: call nfsd_last_thread() before final nfsd_put()
    03d68ffc48b9 nfsd: separate nfsd_last_thread() from nfsd_put()
    481561a431ff iio: imu: adis16475: add spi_device_id table
    027eaeaf3294 spi: Introduce spi_get_device_match_data() helper
    457a219c8453 usb: fotg210-hcd: delete an incorrect bounds test
    119127273b5d ARM: dts: Fix occasional boot hang for am3 usb
    98235bc13aa8 ksmbd: fix wrong allocation size update in smb2_open()
    04b8e04f8f89 ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()
    34f7d5b5c972 ksmbd: lazy v2 lease break on smb2_write()
    500c7a5e9af8 ksmbd: send v2 lease break notification for directory
    1993959460c0 ksmbd: downgrade RWH lease caching state to RH for directory
    2fcb46df3460 ksmbd: set v2 lease capability
    3eddc811a7c8 ksmbd: set epoch in create context v2 lease
    52a32eafd0a5 ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error
    0bc46c2370ee ksmbd: move setting SMB2_FLAGS_ASYNC_COMMAND and AsyncId
    d9aa5c19084e ksmbd: release interim response after sending status pending response
    013bf453af0d ksmbd: move oplock handling after unlock parent dir
    20dd92c23756 ksmbd: separately allocate ci per dentry
    d5651972e5c5 ksmbd: fix possible deadlock in smb2_open
    aabc944ebf08 ksmbd: prevent memory leak on error return
    b4a269bb89dd ksmbd: fix kernel-doc comment of ksmbd_vfs_kern_path_locked()
    699ad8d03cc5 ksmbd: no need to wait for binded connection termination at logoff
    3cf44550814c ksmbd: add support for surrogate pair conversion
    d26e024a5ead ksmbd: fix missing RDMA-capable flag for IPoIB device in ksmbd_rdma_capable_netdev()
    5113f7222554 ksmbd: fix recursive locking in vfs helpers
    42e56982bed1 ksmbd: fix kernel-doc comment of ksmbd_vfs_setxattr()
    533e6dc4469f ksmbd: reorganize ksmbd_iov_pin_rsp()
    1d95c5a54184 ksmbd: Remove unused field in ksmbd_user struct
    5929e98f3bb7 ksmbd: fix potential double free on smb2_read_pipe() error path
    a7aae713eaf2 ksmbd: fix Null pointer dereferences in ksmbd_update_fstate()
    943cebf9ea34 ksmbd: fix wrong error response status by using set_smb2_rsp_status()
    7b58ee8d0b91 ksmbd: fix race condition between tree conn lookup and disconnect
    0090f0bfc225 ksmbd: fix race condition from parallel smb2 lock requests
    6584ca894f30 ksmbd: fix race condition from parallel smb2 logoff requests
    b3a843caed29 ksmbd: fix race condition with fp
    7345f5dbf66d ksmbd: check iov vector index in ksmbd_conn_write()
    8beae8a0a065 ksmbd: return invalid parameter error response if smb2 request is invalid
    e523a26c0567 ksmbd: fix passing freed memory 'aux_payload_buf'
    b4b3fd1a95b4 ksmbd: remove unneeded mark_inode_dirty in set_info_sec()
    1ee419e08fa1 ksmbd: remove experimental warning
    83b01f7330d7 ksmbd: add missing calling smb2_set_err_rsp() on error
    422c0cd01693 ksmbd: Fix one kernel-doc comment
    c20105a8975c ksmbd: fix `force create mode' and `force directory mode'
    f8cf1ebb7de6 ksmbd: fix wrong interim response on compound
    9f297df20d93 ksmbd: add support for read compound
    673e60c69124 ksmbd: switch to use kmemdup_nul() helper
    0a9b91f45e88 ksmbd: check if a mount point is crossed during path lookup
    d782f42eed93 ksmbd: Fix unsigned expression compared with zero
    48cc49384048 ksmbd: Replace one-element array with flexible-array member
    63fbfd212c82 ksmbd: Use struct_size() helper in ksmbd_negotiate_smb_dialect()
    e7ab53bd81b0 ksmbd: Replace the ternary conditional operator with min()
    143da652cee8 ksmbd: use kvzalloc instead of kvmalloc
    de43cdaa88c2 ksmbd: Change the return value of ksmbd_vfs_query_maximal_access to void
    deb79f20be21 ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
    fe7977b872a6 ksmbd: use kzalloc() instead of __GFP_ZERO
    294a275f374b ksmbd: remove unused ksmbd_tree_conn_share function
    b069977b2b47 ksmbd: add mnt_want_write to ksmbd vfs functions
    13a5045011ec ksmbd: fix posix_acls and acls dereferencing possible ERR_PTR()
    1524884c3efb ksmbd: call putname after using the last component
    30a1344198aa ksmbd: fix uninitialized pointer read in smb2_create_link()
    6d4e21e369f3 ksmbd: fix uninitialized pointer read in ksmbd_vfs_rename()
    6927ffe7479c ksmbd: fix racy issue from using ->d_parent and ->d_name
    6e99fbb4296a fs: introduce lock_rename_child() helper
    965eb8650737 ksmbd: remove unused compression negotiate ctx packing
    49d9f6ad1ee0 ksmbd: avoid duplicate negotiate ctx offset increments
    2182d96ec0b7 ksmbd: set NegotiateContextCount once instead of every inc
    8d271ef5e5ca ksmbd: delete asynchronous work from list
    4ef3fd2f85bb ksmbd: remove unused is_char_allowed function
    226aaaa59365 ksmbd: Fix parameter name and comment mismatch
    e8c49f9364c5 ksmbd: Fix spelling mistake "excceed" -> "exceeded"
    ada8bcc48acd ksmbd: update Kconfig to note Kerberos support and fix indentation
    5c0306b0abcd ksmbd: Remove duplicated codes
    b6502c34cf30 ksmbd: fix typo, syncronous->synchronous
    052b41ef2abe ksmbd: Implements sess->rpc_handle_list as xarray
    264547e13f80 ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs
    87ffbb9e24ba ksmbd: Fix resource leak in smb2_lock()
    d847b7588341 ksmbd: use F_SETLK when unlocking a file
    343d667deee1 ksmbd: set SMB2_SESSION_FLAG_ENCRYPT_DATA when enforcing data encryption for this share
    ab69d3e8f7a0 ksmbd: replace one-element arrays with flexible-array members

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.6: update CVE exclusions
Bruce Ashfield [Fri, 19 Jan 2024 21:14:10 +0000 (16:14 -0500)] 
linux-yocto/6.6: update CVE exclusions

Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 27Dec23
        Date: Wed, 27 Dec 2023 19:47:13 -0500

    ]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-yocto/6.6: update to v6.6.11
Bruce Ashfield [Fri, 19 Jan 2024 21:14:09 +0000 (16:14 -0500)] 
linux-yocto/6.6: update to v6.6.11

Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    22852eaf43ec Linux 6.6.11
    e53b78e3cfb1 media: qcom: camss: Comment CSID dt_id field
    c897fb3da8a7 cxl/memdev: Hold region_rwsem during inject and clear poison ops
    0a460481df43 cxl/hdm: Fix a benign lockdep splat
    c56f610fe947 cxl: Add cxl_num_decoders_committed() usage to cxl_test
    2e22a9095fe3 mmc: sdhci-sprd: Fix eMMC init failure after hw reset
    73432eb655a8 mmc: core: Cancel delayed work before releasing host
    882ab492767a mmc: rpmb: fixes pause retune on all RPMB partitions.
    1f1e1d8006ba mmc: meson-mx-sdhc: Fix initialization frozen issue
    ceb3af686015 drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR
    fd3247512698 drm/amd/display: add nv12 bounding box
    039c4551438e drm/amdgpu: skip gpu_info fw loading on navi12
    2247df454c7b mm: fix unmap_mapping_range high bits shift bug
    b240a3ef3d91 i2c: core: Fix atomic xfer check for non-preempt config
    dfb8a426e030 x86/kprobes: fix incorrect return address calculation in kprobe_emulate_call_indirect
    d44bd49abe3d firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards
    e73022d60017 mm/mglru: skip special VMAs in lru_gen_look_around()
    22c8e0b87bcb net: constify sk_dst_get() and __sk_dst_get() argument
    f797a2f74a8e net: libwx: fix memory leak on free page
    51079378514d cxl/pmu: Ensure put_device on pmu devices
    95b3904a261a net: prevent mss overflow in skb_segment()
    e1b45baa2e38 powerpc/pseries/vas: Migration suspend waits for no in-progress open windows
    24f855a88c95 RISCV: KVM: update external interrupt atomically for IMSIC swfile
    443860676828 dmaengine: fsl-edma: fix wrong pointer check in fsl_edma3_attach_pd()
    7734bb38104a dmaengine: idxd: Protect int_handle field in hw descriptor
    1695423c9630 drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml
    e4a5b2f60e06 kernel/resource: Increment by align value in get_free_mem_region()
    4c269350e3c6 cxl/core: Always hold region_rwsem while reading poison lists
    07f9a20b899a cxl: Add cxl_decoders_committed() helper
    9826255cdec6 drm/amd/display: Increase num voltage states to 40
    93d67b62c768 drm/i915: Call intel_pre_plane_updates() also for pipes getting enabled
    c33fc69553b2 clk: rockchip: rk3128: Fix SCLK_SDMMC's clock name
    b58d2fc1f94d clk: rockchip: rk3128: Fix aclk_peri_src's parent
    09aa95c0e714 phy: sunplus: return negative error code in sp_usb_phy_probe
    c7573ba35562 phy: mediatek: mipi: mt8183: fix minimal supported frequency
    9cdfbfc652ac iommu/vt-d: Support enforce_cache_coherency only for empty domains
    41294f9d1782 iio: imu: adis16475: use bit numbers in assign_bit()
    634d43a2dafa dmaengine: fsl-edma: Add judgment on enabling round robin arbitration
    df9e5371221f dmaengine: fsl-edma: Do not suspend and resume the masked dma channel when the system is sleeping
    2bd6f2164821 dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data
    6c9e7caeb29a dmaengine: ti: k3-psil-am62: Fix SPI PDMA data
    a7ccc9d9001b phy: ti: gmii-sel: Fix register offset when parent is not a syscon node
    42db0099eca3 KVM: s390: vsie: fix wrong VIR 37 when MSO is used
    b649a7fe9a8b riscv: don't probe unaligned access speed if already done
    5d1e4e5fd1e9 rcu/tasks-trace: Handle new PF_IDLE semantics
    b3ffc1167584 rcu/tasks: Handle new PF_IDLE semantics
    547c59c83abf rcu: Introduce rcu_cpu_online()
    39d04e558882 rcu: Break rcu_node_0 --> &rq->__lock order
    17f449600a98 ACPI: thermal: Fix acpi_thermal_unregister_thermal_zone() cleanup
    04ebb29dc9aa RDMA/mlx5: Fix mkey cache WQ flush
    eaab31dceb11 clk: si521xx: Increase stack based print buffer size in probe
    94eacb45d816 vfio/mtty: Overhaul mtty interrupt handling
    6feb483ab744 crypto: hisilicon/qm - fix EQ/AEQ interrupt issue
    bcf6fe34a314 crypto: qat - fix double free during reset
    64170e83ae89 crypto: xts - use 'spawn' for underlying single-block cipher
    3f1800cade99 bpftool: Align output skeleton ELF code
    0b39339f8afa bpftool: Fix -Wcast-qual warning
    030346df8cc4 tcp: derive delack_max from rto_min
    88a884dec104 media: qcom: camss: Fix genpd cleanup
    3c97918a8a65 media: qcom: camss: Fix V4L2 async notifier error path
    f302f37f1630 xsk: add multi-buffer support for sockets sharing umem
    bf07fda050c8 mm/memory-failure: pass the folio and the page to collect_procs()
    393155f9b265 mm: convert DAX lock/unlock page to lock/unlock folio
    200bc3661325 net: Implement missing SO_TIMESTAMPING_NEW cmsg support
    ea37c4b61107 bnxt_en: Remove mis-applied code from bnxt_cfg_ntp_filters()
    428ae1b99fce net: ravb: Wait for operating mode to be applied
    ba75a06fa273 asix: Add check for usbnet_get_endpoints
    67a4a2589db0 octeontx2-af: Re-enable MAC TX in otx2_stop processing
    f725e894b123 octeontx2-af: Always configure NIX TX link credits based on max frame size
    511e4a579624 net/smc: fix invalid link access in dumping SMC-R connections
    ed192246db75 net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues
    3ffd05c2cccd virtio_net: fix missing dma unmap for resize
    e2e5c2a3f90f virtio_net: avoid data-races on dev->stats fields
    6d2e4e56576f apparmor: Fix move_mount mediation by detecting if source is detached
    1d95d871f907 igc: Fix hicredit calculation
    17f5cfeb15d6 i40e: Restore VF MSI-X state during PCI reset
    1ee4eb8024ee ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux
    3d5a6ed6aa43 ASoC: meson: g12a-toacodec: Fix event generation
    28fdf45be31f ASoC: meson: g12a-tohdmitx: Validate written enum values
    97ee19ff4914 ASoC: meson: g12a-toacodec: Validate written enum values
    d715f2949a9c i40e: fix use-after-free in i40e_aqc_add_filters()
    d5e0bb03d99c net: Save and restore msg_namelen in sock_sendmsg
    9824064683a7 netfilter: nft_immediate: drop chain reference counter on error
    97cbb828482a netfilter: nf_nat: fix action not being set for all ct states
    d4969c264d91 net: bcmgenet: Fix FCS generation for fragmented skbuffs
    9f2e244bfc9e sfc: fix a double-free bug in efx_probe_filters
    015414fdc068 ARM: sun9i: smp: Fix array-index-out-of-bounds read in sunxi_mc_smp_init
    4d9b792986dd selftests: bonding: do not set port down when adding to bond
    742e4af3d7d7 net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)
    d090faafd954 r8169: Fix PCI error on system resume
    4083c9bc3809 net: sched: em_text: fix possible memory leak in em_text_destroy()
    463fe6953f3b mlxbf_gige: fix receive packet race condition
    ad0ea7a29031 ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset
    4deed2c6027b ASoC: fsl_rpmsg: Fix error handler with pm_runtime_enable
    38036a739ef1 igc: Check VLAN EtherType mask
    08144bac8d23 igc: Check VLAN TCI mask
    4109b21e785c igc: Report VLAN EtherType matching back to user
    0ec87fc8be95 i40e: Fix filter input checks to prevent config with invalid values
    a659ce14c776 ice: Shut down VSI with "link-down-on-close" enabled
    49b1e2aa233c ice: Fix link_down_on_close message
    03ed388f9bb8 drm/i915/perf: Update handling of MMIO triggered reports
    c3d24a3d380b drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern
    029d4ab2b772 octeontx2-af: Fix marking couple of structure as __packed
    fb195df90544 nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local
    d27e2798e3ea netfilter: nf_tables: set transport offset from mac header for netdev/egress
    8b410abf1729 drm/bridge: ps8640: Fix size mismatch warning w/ len
    1688af7d86ed drm/bridge: ti-sn65dsi86: Never store more than msg->size bytes in AUX xfer
    ce5b06e2a7bb drm/bridge: parade-ps8640: Never store more than msg->size bytes in AUX xfer
    ad1220bb4bcf wifi: iwlwifi: pcie: don't synchronize IRQs from IRQ
    f8d0c6d1992c accel/qaic: Implement quirk for SOC_HW_VERSION
    efcedd56998b accel/qaic: Fix GEM import path code
    30912a7f64de KVM: x86/pmu: fix masking logic for MSR_CORE_PERF_GLOBAL_CTRL
    30aae98b75b4 cifs: do not depend on release_iface for maintaining iface_list
    40fc7dfd17ec cifs: cifs_chan_is_iface_active should be called with chan_lock held
    feef4dc27da0 drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE
    8cc22ba3f77c Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()"
    c25546cac381 mptcp: prevent tcp diag from closing listener subflows
    67df4c4a4854 drm/amd/display: pbn_div need be updated for hotplug event
    0c0192321762 ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP ProBook 440 G6
    855c75f35020 ALSA: hda/realtek: fix mute/micmute LEDs for a HP ZBook
    0fc0d040f430 ALSA: hda/realtek: enable SND_PCI_QUIRK for hp pavilion 14-ec1xxx series
    0ccbd44d7d72 ALSA: hda/tas2781: remove sound controls in unbind
    cb7a397dbb7e ALSA: hda/tas2781: move set_drv_data outside tasdevice_init
    aee67bbe969d ALSA: hda/tas2781: do not use regcache
    da89365158f6 keys, dns: Fix missing size check of V1 server-list header
    c9a51ebb4bac Linux 6.6.10
    9b603077e29c Revert "platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe"
    b7f1c01b55ad netfilter: nf_tables: skip set commit for deleted/destroyed sets
    e904e81fd3c2 wifi: nl80211: fix deadlock in nl80211_set_cqm_rssi (6.6.x)
    d673099085dd wifi: cfg80211: fix CQM for non-range use
    ccd48707d511 tracing: Fix blocked reader of snapshot buffer
    a12754a8f5ac ftrace: Fix modification of direct_function hash while in use
    baa88944038b ring-buffer: Fix wake ups when buffer_percent is set to 100
    c62b9a2daf28 Revert "nvme-fc: fix race between error recovery and creating association"
    d16c5d215b53 mm/memory-failure: check the mapcount of the precise page
    8c7da70d9ae4 mm/memory-failure: cast index to loff_t before shifting it
    07550b1461d4 mm: migrate high-order folios in swap cache correctly
    d16eb52c176c mm/filemap: avoid buffered read/write race to read inconsistent data
    09141f08fdf6 selftests: secretmem: floor the memory size to the multiple of page_size
    2c30b8b105d6 maple_tree: do not preallocate nodes for slot stores
    11d41d01c088 platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe
    7d5f219f1ef6 ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
    33fd5fb1258b platform/x86/intel/pmc: Move GBE LTR ignore to suspend callback
    91dcd5ee1e11 platform/x86/intel/pmc: Allow reenabling LTRs
    8663b99c38a6 platform/x86/intel/pmc: Add suspend callback
    b5f63f5e8a68 block: renumber QUEUE_FLAG_HW_WC
    cf742d095585 mptcp: fix inconsistent state on fastopen race
    44ee4764c60a mptcp: fix possible NULL pointer dereference on close
    34c7757aa561 mptcp: refactor sndbuf auto-tuning
    183c8972b6a6 linux/export: Ensure natural alignment of kcrctab array
    466e9af15507 linux/export: Fix alignment for 64-bit ksymtab entries
    7844d7d8d8af kexec: select CRYPTO from KEXEC_FILE instead of depending on it
    78422b744ad9 kexec: fix KEXEC_FILE dependencies
    28d6cde17f21 virtio_ring: fix syncs DMA memory with different direction
    9a4987444330 fs: cifs: Fix atime update check
    23171df51f60 client: convert to new timestamp accessors
    5b5599a7eee5 fs: new accessor methods for atime and mtime
    861eaba7ca6c ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()
    ab5a0a1c40be ksmbd: lazy v2 lease break on smb2_write()
    3c1e602a34e1 ksmbd: send v2 lease break notification for directory
    572388ff429a ksmbd: downgrade RWH lease caching state to RH for directory
    d7af4e499c30 ksmbd: set v2 lease capability
    bc025d49c507 ksmbd: set epoch in create context v2 lease
    3da84670973b ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error
    b06c96373179 ksmbd: move setting SMB2_FLAGS_ASYNC_COMMAND and AsyncId
    fa86141f357f ksmbd: release interim response after sending status pending response
    e4ae19537558 ksmbd: move oplock handling after unlock parent dir
    f263652dc6c9 ksmbd: separately allocate ci per dentry
    8d69547b94e0 ksmbd: prevent memory leak on error return
    cdb93ef9cfcc ksmbd: fix kernel-doc comment of ksmbd_vfs_kern_path_locked()
    b48bb8c2ecdb ksmbd: no need to wait for binded connection termination at logoff
    0bd595cb8e8b ksmbd: add support for surrogate pair conversion
    dca63bad3950 ksmbd: fix missing RDMA-capable flag for IPoIB device in ksmbd_rdma_capable_netdev()
    31c453b3743f ksmbd: fix kernel-doc comment of ksmbd_vfs_setxattr()
    d73737884ea4 ksmbd: reorganize ksmbd_iov_pin_rsp()
    3ba08c420d05 ksmbd: Remove unused field in ksmbd_user struct

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoqemu: add PACKAGECONFIG for sndio
Richard Purdie [Fri, 19 Jan 2024 13:44:25 +0000 (13:44 +0000)] 
qemu: add PACKAGECONFIG for sndio

In qemu's configuration this is an 'auto' configuration option so if the host has
the sndio headers on then it gets enabled, causing sstate reuse problems. This is
particularly problematic as some qemu pieces can 'see' into the host pkg-config
due to openGL linkage.

Add config and disable by default to avoid host contamination.

[YOCTO #15284]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoshadow: replace static linking with dynamic libraries in a custom location and bundle...
Alexander Kanavin [Fri, 19 Jan 2024 12:43:23 +0000 (13:43 +0100)] 
shadow: replace static linking with dynamic libraries in a custom location and bundled with shadow

Despite our efforts to make static linking work, there have
been new reports of bizarre build failures:
https://lists.openembedded.org/g/openembedded-core/message/194006
https://lists.openembedded.org/g/openembedded-core/message/193907

This commit changes back to dynamic linking, but places
the libraries in a custom location, per RP's suggestion.

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>
18 months agoeudev: modify predictable network if name search
Joe Slater [Thu, 18 Jan 2024 18:04:31 +0000 (10:04 -0800)] 
eudev: modify predictable network if name search

Consider a name based on mac address in addition to
those based on slot or path.

Note that as of this commit predictable naming is
suppressed by eudev, but can be enabled by removing
/etc/udev/rules.d/80-net-name-slot.rules from the
root filesystem.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolinux-firmware: fix mediatek MT76x empty license package
Timotheus Giuliani [Thu, 18 Jan 2024 17:40:49 +0000 (18:40 +0100)] 
linux-firmware: fix mediatek MT76x empty license package

Installing the linux-firmware-dev package fails because of the following problem.
For each mediatek MT76x firmware a separate license package was declared.
In all these license packages the same file was referenced as the license file.
This meant that if several of these packages were used at the same time,
the license packages would be empty.

This commit defines a common license package for the mediatek MT76x packages,
which is then referenced by all of them.

Fixes: dfb7d2c426b4 ("linux-firmware: create separate packages")
Signed-off-by: Julian Haller <julian.haller@philips.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agotiff: fix CVE-2023-6228
Yogita Urade [Thu, 18 Jan 2024 05:52:29 +0000 (05:52 +0000)] 
tiff: fix CVE-2023-6228

CVE-2023-6228:
An issue was found in the tiffcp utility distributed by the
libtiff package where a crafted TIFF file on processing may
cause a heap-based buffer overflow leads to an application
crash.

References:
https://nvd.nist.gov/vuln/detail/CVE-2023-6228
https://gitlab.com/libtiff/libtiff/-/issues/606

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agotune-core2: Update qemu cpu to supported model
Simone Weiß [Wed, 17 Jan 2024 20:29:23 +0000 (20:29 +0000)] 
tune-core2: Update qemu cpu to supported model

Fixes [YOCTO #12388]

QEMUs documentation does recommend to not use n270 and core2duo as
an argument to -cpu anymore. See also the QEMU documentation for this at
[0].
Update therefore the QEMU cpu option for the core2duo tune to Nehalam.
Tested it locally with QEMU and KVM.

[0]: https://qemu-project.gitlab.io/qemu/system/qemu-cpu-models.html#other-non-recommended-x86-cpus

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoweston: Update to 13.0.0
Fabio Estevam [Tue, 16 Jan 2024 10:07:37 +0000 (07:07 -0300)] 
weston: Update to 13.0.0

Update to Weston 13.0.0.

Remove the following options that were no longer exist in 13.0.0:
deprecated-launcher-logind and launcher-libseat.

Add seatd as a required dependency for kms.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agocmake.bbclass: add Darwin support
Etienne Cordonnier [Tue, 16 Jan 2024 09:02:19 +0000 (10:02 +0100)] 
cmake.bbclass: add Darwin support

This was initially added by https://git.yoctoproject.org/meta-darwin/commit/?id=97a84e083d0c2812e44231d48fb478e9a9cfac79
to the meta-darwin repository, however having it directly in openembedded-core will make the maintenance of meta-darwin easier.

Signed-off-by: Dominik Schnitzer <dominik@snap.com>
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agonewlib: Upgrade 4.3.0 -> 4.4.0
Alejandro Hernandez Samaniego [Tue, 16 Jan 2024 06:27:23 +0000 (23:27 -0700)] 
newlib: Upgrade 4.3.0 -> 4.4.0

- COPYING.LICENSE: Added Apache-2.0-with-LLVM-exception from newlibs commit
  96ec8f868e1a0f5a75badfe4627a41f12cce742d
  applicable to newlib/libc/machine/aarch64.
- Also switch libgloss to use PV from newlib.inc instead to align with the
  newlib recipe behavior.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibxrandr: upgrade 1.5.3 -> 1.5.4
Jiang Kai [Tue, 16 Jan 2024 02:06:40 +0000 (10:06 +0800)] 
libxrandr: upgrade 1.5.3 -> 1.5.4

Changelog:
=========
-Remove "All rights reserved" from Oracle copyright notices
-configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
-XRRGetMonitors(): free correct pointer in error path

Signed-off-by: Jiang Kai <jiangkai@fujitsu.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibsecret: upgrade 0.21.1 -> 0.21.2
Jiang Kai [Tue, 16 Jan 2024 02:06:39 +0000 (10:06 +0800)] 
libsecret: upgrade 0.21.1 -> 0.21.2

Changelog:
============
 * Support GnuTLS as an alternative crypto backend
 * Fix LeakSanitizer issues
 * secret-tool: Verify that the parsed stdin password is vaild UTF-8
 * Fix markup syntax for SecretSchema
 * Public secret_attributes_validate method
 * Updated translations

Signed-off-by: Jiang Kai <jiangkai@fujitsu.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoenchant2: upgrade 2.6.4 -> 2.6.5
Jiang Kai [Tue, 16 Jan 2024 02:06:38 +0000 (10:06 +0800)] 
enchant2: upgrade 2.6.4 -> 2.6.5

Changelog:
============
-permits error messages from spelling providers not to be valid UTF-8.
-The --with-hunspell-dir configure option is removed (along with all the
 other ---with-PROVIDER-dir options, which did nothing).
-Doxygen API documentation is now included in the release tarball

Signed-off-by: Jiang Kai <jiangkai@fujitsu.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agodebianutils: upgrade 5.15 -> 5.16
Jiang Kai [Tue, 16 Jan 2024 02:06:37 +0000 (10:06 +0800)] 
debianutils: upgrade 5.15 -> 5.16

Changelog:
 Upload to unstable per request of Chris Hofstaedtler.

Signed-off-by: Jiang Kai <jiangkai@fujitsu.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibtest-warnings-perl: upgrade 0.031 -> 0.032
Wang Mingyu [Mon, 15 Jan 2024 23:54:12 +0000 (07:54 +0800)] 
libtest-warnings-perl: upgrade 0.031 -> 0.032

License-Update:
 basic artistic license changed to perl artistic license.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agopython3-subunit: upgrade 1.4.2 -> 1.4.4
Wang Mingyu [Mon, 15 Jan 2024 23:54:11 +0000 (07:54 +0800)] 
python3-subunit: upgrade 1.4.2 -> 1.4.4

License-Update:
 change License file to COPYING.
 add BSD-3-Clause to LICENSE

Changelog:
===========
* Removed use of deprecated "utc" and "utcfromtimestamp"
  methods of "datetime.datetime".
* Fix an issue with date parsing exception handling
* Add support for Python 3.12

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agoautoconf: 2.72d -> 2.72e
Robert Yang [Mon, 15 Jan 2024 06:33:23 +0000 (22:33 -0800)] 
autoconf: 2.72d -> 2.72e

Refresh patches with devtool to fix do_patch errors.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agocoreutils: Fix build with clang
Khem Raj [Wed, 17 Jan 2024 07:09:51 +0000 (23:09 -0800)] 
coreutils: Fix build with clang

Add a gnulib patch to fix build with clang-18

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agolibgudev: Pass export-dynamic to linker directly.
Khem Raj [Tue, 16 Jan 2024 21:42:38 +0000 (13:42 -0800)] 
libgudev: Pass export-dynamic to linker directly.

New clang 18+ errors out on this while older clang does not

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 months agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 19 Jan 2024 12:22:56 +0000 (12:22 +0000)] 
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>