Commit Graph

71345 Commits

Author SHA1 Message Date
Ross Burton
142b6921bd libtraceevent: build with Meson
After what I presume is the recent kernel upgrade, perf started to fail
to configure.  This was actually due to libtraceevent racing during its
build and failing to put one of the .o files into the .so (reminder:
Make is terrible). This doesn't cause the libtraceevent build to fail so
once the broken .so is in sstate, it causes all future perf builds to
fail.

Instead of rewriting the Makefile rules to fix this race it's easier to
switch to Meson which doesn't have this sort of problem. However the
Meson support is pretty new and has some rough edges, so we need a patch
to make it do the right thing.

I will submit the libtraceevent fixes upstream shortly.

[ YOCTO #15201 ]

(From OE-Core rev: 5d060725e706476751b0bda8e6d9f3670aa4b7de)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Joshua Watt
6da9c2b29e buildtools-tarball: Add libacl
Hash equivalence need to include the ACLs in the output hash, and libacl
is used to do that so include the library in the buildtools-tarball.

(From OE-Core rev: d152dfe784f231fa369d59f9bce8195ad09c5482)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Markus Volk
513c21b8fc qemu: add packageconfigs for fuse and dbus-display
glib-2.0-native is needed to provide gdbus-codegen

(From OE-Core rev: 0df2247c7b670401fa9efda0a818fbad30f8f921)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Markus Volk
be3f83029c qemu: build pulseaudio support depending on distro_feature
(From OE-Core rev: 6104325d32c95864830ba2d39f711d7e6e52bc00)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Markus Volk
53774ffaf7 qemu: fix libudev packageconfig for systemd images
eudev is needed to provide libudev when not using systemd,
but including eudev breaks things for systemd. We can't
include eudev here since systemd provides libudev itself.

(From OE-Core rev: e86b572f260fae7837694aa4c6d61de639bc71e8)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Julien Stephan
038d646d7e vulkan-samples: convert debugfix.patch to git format patch
devtool modify on vulkan-samples fails to apply the debugfix.patch
because it is not in one of git's known formats.

Here is the error:
ERROR: Applying patch 'debugfix.patch' on target directory '<..>/build/tmp/work/core2-64-poky-linux/vulkan-samples/git/devtooltmp-38uz7jyq/workdir/git'
CmdError("sh -c 'git add -f -A .'", 0, 'stdout:
stderr: fatal: not a git repository (or any of the parent directories):
.git
')

Also, rename debugfix.patch to something more meaningfull

(From OE-Core rev: c05c508cf3141a6923d87e1d04f7387ce3c91a9d)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Julien Stephan
060f285e58 patch.py: use --absolute-git-dir instead of --show-toplevel to retrieve gitdir
[YOCTO #14141]

Currently the gitdir is manually constructed using `git
rev-parse --show-toplevel` and appending `.git`. This is most of the time
correct but not always: `.git` can be a file with the following content:

gitdir: <some_folder>

This is the case for submodules, so when using devtool modify on a recipe
using submodules *and* patching files inside one of the submodules, do_patch
fails with the following error:

ERROR: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:patch_do_patch(d)
     0003:
File: '<..>/poky/meta/classes-global/patch.bbclass', lineno: 157, function: patch_do_patch
     0153:        except Exception as exc:
     0154:            bb.utils.remove(process_tmpdir, True)
     0155:            bb.fatal("Importing patch '%s' with striplevel '%s'\n%s" % (parm['patchname'], parm['striplevel'], repr(exc).replace("\\n", "\n")))
     0156:        try:
 *** 0157:            resolver.Resolve()
     0158:        except bb.BBHandledException as e:
     0159:            bb.utils.remove(process_tmpdir, True)
     0160:            bb.fatal("Applying patch '%s' on target directory '%s'\n%s" % (parm['patchname'], patchdir, repr(e).replace("\\n", "\n")))
     0161:
File: '<..>/poky/meta/lib/oe/patch.py', lineno: 769, function: Resolve
     0765:    def Resolve(self):
     0766:        olddir = os.path.abspath(os.curdir)
     0767:        os.chdir(self.patchset.dir)
     0768:        try:
 *** 0769:            self.patchset.Push()
     0770:        except Exception:
     0771:            import sys
     0772:            os.chdir(olddir)
     0773:            raise
File: '<..>/poky/meta/lib/oe/patch.py', lineno: 274, function: Push
     0270:            else:
     0271:                next = 0
     0272:
     0273:            bb.note("applying patch %s" % self.patches[next])
 *** 0274:            ret = self._applypatch(self.patches[next], force)
     0275:
     0276:            self._current = next
     0277:            return ret
     0278:
File: '<..>/poky/meta/lib/oe/patch.py', lineno: 556, function: _applypatch
     0552:        if os.path.lexists(hooks_dir_backup):
     0553:            raise Exception("Git hooks backup directory already exists: %s" % hooks_dir_backup)
     0554:        if os.path.lexists(hooks_dir):
     0555:            shutil.move(hooks_dir, hooks_dir_backup)
 *** 0556:        os.mkdir(hooks_dir)
     0557:        commithook = os.path.join(hooks_dir, 'commit-msg')
     0558:        applyhook = os.path.join(hooks_dir, 'applypatch-msg')
     0559:        with open(commithook, 'w') as f:
     0560:            # NOTE: the formatting here is significant; if you change it you'll also need to
Exception: NotADirectoryError: [Errno 20] Not a directory: '<..>/build/tmp/work/core2-64-poky-linux/vulkan-samples/git/devtooltmp-n87_zx1i/workdir/git/third_party/spdlog/.git/hooks'

Using `git rev-parse --absolute-git-dir` instead of `git rev-parse
--show-toplevel` ensure we get the correct gitdir

(From OE-Core rev: f74879dd95b19504ce8a8554636d2310d0336806)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Dmitry Baryshkov
3664a232fe linux-firmware: package Dragonboard 845c sensors DSP firmware
Add package with sensors DSP firmware for Qualcomm RB3 aka Dragonboard
845c platform.

(From OE-Core rev: 632a8955ce8f6cd8fe66fef4b116747e11fa7085)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Dmitry Baryshkov
d76a4aec14 linux-firmware: package audio topology for Lenovo X13s
Add audio topology description to the qcom-sc8280xp-lenovo-x13s-audio
package. The file is licensed is copyright by Linaro and licensed under
BSD 3-clause license.

(From OE-Core rev: 958d6a209edf059d31ff07bdd55179fc21ea7079)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Dmitry Baryshkov
b5b0813a94 linux-firmware: upgrade 20230625 -> 20230804
License-Update: additional firmwares

(From OE-Core rev: 6a36c10cd51382bd2356fe6589e4c1d3be8179cd)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Joe Slater
3cffa34a9c file: fix call to localtime_r()
Depending on the version of glibc, localtime_r() must
be preceded by a call to tzset() or it will ignore any
value of TZ in the environment.  This problem will only
be seen when building file-native on outdated hosts.

(From OE-Core rev: 791145f3064d7807630d3591b9e7c7b2dc37152c)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Chen Qi
68e468b3e9 cmake.bbclass: fix allarch override syntax
The override syntax should be ":allarch" instead of "_allarch".

(From OE-Core rev: bea74c9942a3bb4f71aca0f722b4a7306ae52fb4)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Chen Qi
026fe2b8e0 cmake: drop OE specific environment variable support
CMAKE_TOOLCHAIN_FILE is now also a supported environment
variable, we can export it directly. There's no need to
use a OE specific patch to add OE_CMAKE_TOOLCHAIN_FILE
support.

(From OE-Core rev: b061149ad06ff3b9d30de0bbd2b698c711a241c7)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Julien Stephan
da67e9e9cd less: add ptest support
add ptest support for less

root@qemux86-64:~# ptest-runner less
START: ptest-runner
2023-08-21T14:22
BEGIN: /usr/lib/less/ptest
TEST chinese1.lt
PASS: chinese1 (30 steps)
TEST colorbars.lt
PASS: colorbars (222 steps)
TEST github216.lt
PASS: github216 (143 steps)
TEST github265.lt
PASS: github265 (17 steps)
TEST github329.lt
PASS: github329 (28 steps)
TEST hdr-unicode.lt
PASS: hdr-unicode (164 steps)
TEST hdr-unicode1.lt
PASS: hdr-unicode (107 steps)
TEST proc-special.lt
PASS: proc-special (107 steps)
TEST seq200.lt
PASS: seq200 (18 steps)
TEST subsearch.lt
PASS: subsearch (59 steps)
TEST table-50x200.lt
PASS: table-50x200 (467 steps)
TEST utf8-2.txt.lt
PASS: utf8-2.txt (309 steps)
TEST version.c.lt
PASS: version.c (38 steps)
RAN  13 tests with 0 errors
DURATION: 184
END: /usr/lib/less/ptest
2023-08-21T14:25
STOP: ptest-runner
TOTAL: 1 FAIL: 0

[YOCTO #15073]

(From OE-Core rev: 1d20e7990656c2135570640a329c80b7df879675)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Julien Stephan
64de3746ad less: upgrade 633 -> 643
(From OE-Core rev: 8557ecc23c52de0d171807fa9a982374e2caa746)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Markus Niebel
4a56d0cc93 oeqa: wic: Add test for --no-table option
Add basic test for the --no-table wic part option.

(From OE-Core rev: ad89d7e6039da2d79c1d55fe7fdc8bb9c235dacf)

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Khem Raj
8cd5d264af arch-armv8,arch-armv9: Add sve based tune options
(From OE-Core rev: 3109a48740546f6defc652fa1a6736dc484e6021)

(From OE-Core rev: d388bf00314639f82cd9143e786c482731d2719b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Khem Raj
e4be03be5b tunes: Add support for sve instructions on armv8/armv9
This helps in defining correct compiler options and configure options
for glibc and overall ABI for toolchain

(From OE-Core rev: 58330ce58719bd82530b1143623db7af7a85e897)

(From OE-Core rev: 43c980ad688cc4df5a5e687b0f693cf46778ce64)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-29 09:41:07 +01:00
Samantha Jalabert
c8e9590a37 bitbake: Fix disk space monitoring on cephfs
Error occured while running bitbake on cephfs:

WARNING: The free inode of path is running low (-0.001K left)
ERROR: Immediately halt since the disk space monitor action is "HALT"!

(Bitbake rev: 95088b447f563c5e1d9630e6acb32787b5ebed9c)

Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-25 07:55:34 +01:00
Peter Kjellerstedt
c7061c5bde poky.conf: Switch to post release name/version
(From meta-yocto rev: 803ef4a3f2304350484d2993fc0e811a6d8e1fa7)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 21:30:28 +01:00
Ross Burton
fe09892082 perf: disable perl support
The perf support was broken and if enabled results in non-reproducible
binaries, so disable it for now.

(From OE-Core rev: 55463c1898c220b79b77da95b2d0dd9bdc1628a2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Ross Burton
d37eff3907 perf: split scripting PACKAGECONFIG into perl and python
There's no reason for Python and Perl support to be tied together, so
split the PACKAGECONFIG into two.

(From OE-Core rev: af1511065120b12600e39725d8507fa2c018ae1b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Ross Burton
8eb4223c22 perf: fix perl binding support
The build of the perl integration has been broken for some time.

Update the PERL_* variables so that it can find libperl in the new
location.

This then fails because the Perl headers cause warnings and the feature
checks run with -Werror, so disable the errors.

The perf-dbg package then has target build paths, so set INSANE_SKIP for
now until this is resolved.

(From OE-Core rev: a59e31c78b5468fac461067e5bacf263c2cf23ad)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Ross Burton
0fa81bddd6 perf: add more PACKAGECONFIGs
libpfm4 and babeltrace are enabled if they're found, so add
PACKAGECONFIGs so that our configuration is explicit.

(From OE-Core rev: 8818a259495310f3054abc2918771587e6f82ae9)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Ross Burton
04f625d0d1 perf: enable verbose feature detection
Having verbose feature detection is helpful to see exactly what has been
enabled or disabled.

(From OE-Core rev: d08de74d09a83d3bc94cce80f886bd2c6add416b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Peter Kjellerstedt
d0ddefc7b7 insane.bbclass: Remove an unused variable
The use of coremeta_path was removed with commit 61a881fdbe (insane:
Improve patch-status layer filtering) when the patch-status QA test was
generalized.

(From OE-Core rev: 71a2c7b2608640dfa45d065692541d537149052e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Trevor Gamblin
ceeb8e5639 python3-dtc: upgrade 1.6.1 -> 1.7.0
Changelog: 039a99414e

Remove custom PV from the recipe since the relevant functionality is in
1.7.0:

[tgamblin@megalith dtc]$ git tag --contains c001fc01a43e7a06447c06ea3d50bd60641322b8
v1.7.0

(From OE-Core rev: 55208224f492af0ad929555ffc9b95ff1d301c5f)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Richard Purdie
65318019cd recipes/classes/scripts: Drop SRCPV usage in OE-Core
Now that SRCPV isn't needed we can simplify things in a few places...

(From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Richard Purdie
62afa02d01 base/package: Move source revision information from PV to PKGV
Source control information being present in PV used to be a hard requirement
for bitbake to operate correctly. Now that hashes are a required part of task
stamps, this requirement no longer exists.

This means we can defer the hash pieces to PKGV and simplify PV.

Use new bitbake fetcher API to inject the source revisions directly into the hash
allowing removal of some horrible code from base.bbclass and avoiding any hardcoding
about how SRCREV may or may not be used.

Use that API to object the string to append to PKGV and append that directly.

The user visible effect of this change is that PV will no longer have revision
information in it and this will now be appended to PV through PKGV when the
packages are written. Since PV is used in STAMP and WORKDIR, users will see
small directory naming and stamp naming changes.

This will mean that sstate reuse through hash equivalence where the source
revision changes but the output does not will become possible as the sstate
naming will become less specific and no longer contain the revision.

The SRCPV variable will no longer be needed in PV and is effectively now just
a null operation. Usage can be removed over time.

(From OE-Core rev: a8e7b0f932b9ea69b3a218fca18041676c65aba0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:50:24 +01:00
Joshua Watt
871a4ac6e7 bitbake: lib/bb: Add xattr and acl libraries
Adds Python wrappers around the xattr API from libc and the ACL API from
libacl.

(Bitbake rev: 538011256964d0253f8e3ab7ff1d6fd62c7c2f89)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:49:38 +01:00
Martin Jansa
8087c261b0 bitbake: runqueue: show more pressure data
* with latest bitbake I'm seeing very low number of bitbake tasks
  executed in parallel, probably due to pressure regulation
  show the values this is based on in the note

* also simplify a bit by counting the pressure and exceeds signs
  only once

(Bitbake rev: 21c17968f801e406ef7f328656587fadd9ef7f5d)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:49:38 +01:00
Richard Purdie
c9400d0157 bitbake: fetch2: Add new srcrev fetcher API
Add new functions to return some of the get_srcrev data in new and different
ways. We need two different forms of the data, one is a string to inject into
PKGV, the other is the full revisions as a string to include in hash computations
so that the hash changes when the input revisions change.

This allows us to clean up and simplify the code in OE-Core and move the
version information from PV to PKGV.

(Bitbake rev: ae4dfa2a31c74c0c6c2b14cece822ed1f3d79723)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:49:38 +01:00
Paulo Neves
65cd9697f9 bitbake: siggen.py: Improve taskhash reproducibility
file checksums are part of the data checksummed
to generate the task hash. The list of file checksums
was not ordered.

In this commit we make sure the task hash checksum takes
a list of checksum data that is ordered by unique file name
thus guaranteeing reproducibility.

(Bitbake rev: 5293a1b36eeb89f57577cb709ec7f293909039a1)

Signed-off-by: Paulo Neves <paulo@myneves.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 16:47:31 +01:00
Alexis Lothoré
359a105de6 oeqa/utils/gitarchive: replace warning with info when reading local tags
Whenever a script needs to list tags, if it falls back to the third method
(reading local tags only), it emits a warning. While this warning is useful
for future diagnostic if some tagging issues re-appear, it makes buildperf
autobuilds status as "Passed with warnings", which is not desirable

(From OE-Core rev: b2c1d8a83a3b2134a8f9a445cbf00103e63ed0b3)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-24 13:34:34 +01:00
Alexis Lothoré
db6ace80a0 oeqa/utils/gitarchive: fall back to local tags when listing existing tags
e9cff55e73 has switched tag listing from bare "git tag" to "git
ls-remote" to make sure not to miss remote tags which are not fetched
locally. This mechanism first checks for configured remote repository, next
for possibly passed url, and then fails if none worked.

However there are still cases where no remote repository is
configured and no url is provided (for instance: buildperf tests use an
empty git directory to store tests). Fix those cases by putting back the
old behavior (local tags check) as last resort, with at least a warning for
future diagnostics if we still encounter tagging issues

Fixes: e9cff55e73 ("oeqa/utils/gitarchive: fix tag computation when creating archive")
(From OE-Core rev: 34e1f845687d2f7169f5d6c1bb54e1a7ab5412c4)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-23 22:33:39 +01:00
Alexis Lothoré
3c1ee6d8b0 oeqa/utils/gitarchive: allow to pass a logger to get_tags
Propagate a "log" parameter to get_tags in order to know what method is
used to retrieve existing tags

(From OE-Core rev: f8212eda45444dfb330e4d930eeceefde936adeb)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-23 22:33:39 +01:00
Jasper Orschulko
92983dba65 cve_check: Fix cpe_id generation
Use "*" (wildcard) instead of "a" (application)in cpe_id generation,
as the product is not necessarily of type application, e.g.
linux_kernel, which is of type "o" (operating system).

(From OE-Core rev: cae9528b002c06143bf048b991b9d7e93968cb6b)

(From OE-Core rev: e7c1def3c3c3a72249802ef6fb64292277a7a53e)

Signed-off-by: Jasper Orschulko <jasper@fancydomain.eu>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Ross Burton
bedbda8561 linux/cve-exclusions: update CVE_STATUS exclusions
(From OE-Core rev: b499411734d0bf7fa817f214f89717c07186af02)

(From OE-Core rev: 0d8c651ddcdf2dc95a12db52c8f7aa45b986432d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Ross Burton
a105e7d254 linux/generate-cve-exclusions.py: fix comparison
The backport detection logic didn't handle issues which were backported
to the current version.

(From OE-Core rev: 1c7b01627b47604744f723d5eeedd455df6307e2)

(From OE-Core rev: 568d65ccfb0e44ef3a40951d9da297036e7f345d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Etienne Cordonnier
844dd42d1f vim: update obsolete comment
vim 8.3 has been out for a long time, so this comment is obsolete.
However we still need UPSTREAM_VERSION_UNKNOWN, since we ignore
the last digit of the upstream version number.

Test result:
$ devtool check-upgrade-status vim
  ...
  INFO: vim                       9.0.1592        UNKNOWN         Tom Rini <trini@konsulko.com> c0370529c027abc5b1698d53fcfb8c02a0c515da

(From OE-Core rev: 65f5de85c3f488136d1ec2b1f7fe8d8426d6c5b3)

(From OE-Core rev: 868a19357841470eb55fb7f1c4ab1af09dea99ed)

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Ross Burton
3b6ebc1111 procps: backport fix for CVE-2023-4016
(From OE-Core rev: 255515e1b52fea6d72d37fae61667db08eb5b086)

(From OE-Core rev: eae2a94f5de78b95590ec45e11e930655dbd5caf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Ross Burton
11e2bbc9fe python3: ignore disputed CVE-2023-36632
For some reason in the migration of CVE_CHECK_IGNORE to CVE_STATUS[1], this
CVE was commented out.

[1] oe-core 1634ed40

(From OE-Core rev: 07deefea29169ba8d663c869f26b31d3f37a1c9f)

(From OE-Core rev: 20a8f5d928c0b3022609678d7c21b06912df058f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Luca Ceresoli
d40fed311e Revert "oeqa/runtime/parselogs: Exclude preempt-rt error for now"
There's now a real fix in commits "linux-yocto/6.*: fix IRQ-80 warnings".

This reverts commit 1451df346a0e2433714774421ce8f339a37a844a.

(From OE-Core rev: f5c1b0f2b17814315bc2a09acc3aaa20f2522cff)

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
6a7cf469b9 linux-yocto/6.4: fix IRQ-80 warnings
Integrating the following commit(s) to linux-yocto/6.4:

    9753b4497951 tick/rcu: fix false positive "softirq work is pending" messages on RT

Paul Gortmaker has found and fixed the root cause of why we are
getting "softirq work is pending" messages on boot with -rt ..
although the issue is not rt-specific.

The fix has been submitted to lkml, but we are integrating it
to avoid the delay of -stable picking it up and then linux-yocto
doing the same.

(From OE-Core rev: 5617d2c03833830c0100d1c775a15d4ad1c02fdd)

(From OE-Core rev: 75ca8527bb90c98b7139ad92e4e5f1baf790e75d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
7b421cae3c linux-yocto/6.1: fix IRQ-80 warnings
Integrating the following commit(s) to linux-yocto/6.1:

    44fd0c7a5a79 tick/rcu: fix false positive "softirq work is pending" messages on RT

Paul Gortmaker has found and fixed the root cause of why we are
getting "softirq work is pending" messages on boot with -rt ..
although the issue is not rt-specific.

The fix has been submitted to lkml, but we are integrating it
to avoid the delay of -stable picking it up and then linux-yocto
doing the same.

(From OE-Core rev: 69fffaa7ed863f8811254843e169cfbf3a0400b0)

(From OE-Core rev: 2099b728c48d920aa3914f4297563105a672e174)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
37724982d6 linux-yocto/6.1: update to v6.1.46
Updating  to the latest korg -stable release that comprises
the following commits:

    6c44e13dc284 Linux 6.1.46
    5525c289dbcf drm/amd/pm/smu7: move variables to where they are used
    4346a66ad198 sch_netem: fix issues in netem_change() vs get_dist_table()
    3ae919c317dd alpha: remove __init annotation from exported page_is_ram()
    cbce265f959f ACPI: scan: Create platform device for CS35L56
    afc4ddd9507f platform/x86: serial-multi-instantiate: Auto detect IRQ resource for CSC3551
    38b0020f68b7 scsi: qedf: Fix firmware halt over suspend and resume
    a9518f4a4978 scsi: qedi: Fix firmware halt over suspend and resume
    fb004497b3ea scsi: fnic: Replace return codes in fnic_clean_pending_aborts()
    b191ff1f075c scsi: core: Fix possible memory leak if device_add() fails
    7723a5d5d187 scsi: snic: Fix possible memory leak if device_add() fails
    9fdb273ede6f scsi: 53c700: Check that command slot is not NULL
    8282d0b35880 scsi: ufs: renesas: Fix private allocation
    ed70fa5629a8 scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
    0e1605ec5bea scsi: core: Fix legacy /proc parsing buffer overflow
    f3f0f95a0233 netfilter: nf_tables: report use refcount overflow
    c21fddce7e45 nvme-rdma: fix potential unbalanced freeze & unfreeze
    cddbaa8dee7e nvme-tcp: fix potential unbalanced freeze & unfreeze
    bf67802453d3 btrfs: set cache_block_group_error if we find an error
    3ae93b316ca4 btrfs: reject invalid reloc tree root keys with stack dump
    9d04716e3665 btrfs: exit gracefully if reloc roots don't match
    7112abc9e8f2 btrfs: properly clear end of the unreserved range in cow_file_range
    504d81c512f6 btrfs: don't stop integrity writeback too early
    4e18c827d61b btrfs: wait for actual caching progress during allocation
    b8cd871d0a18 gpio: sim: mark the GPIO chip as a one that can sleep
    227bd2c1eab1 gpio: ws16c48: Fix off-by-one error in WS16C48 resource region extent
    5e17b8ee64c1 ibmvnic: Ensure login failure recovery is safe from other resets
    206ccf4f0977 ibmvnic: Do partial reset on login failure
    31ccd1ba20d8 ibmvnic: Handle DMA unmapping of login buffs in release functions
    24556c1cc9db ibmvnic: Unmap DMA login rsp buffer on send login fail
    2c5dd8805e6c ibmvnic: Enforce stronger sanity checks on login response
    ad0f73cbace4 net/mlx5: Reload auxiliary devices in pci error handlers
    88ec484ef8e2 net/mlx5: Skip clock update work when device is in error state
    4276f3e7ae4a net/mlx5: LAG, Check correct bucket when modifying LAG
    a824d012ad8f net/mlx5: Allow 0 for total host VFs
    ab06983c5bbd dmaengine: owl-dma: Modify mismatched function name
    dff220037148 dmaengine: mcf-edma: Fix a potential un-allocated memory access
    c4f7de3e8ce1 net: hns3: fix strscpy causing content truncation issue
    87d7e140081f nexthop: Fix infinite nexthop bucket dump when using maximum nexthop ID
    8d6df2c523e2 nexthop: Make nexthop bucket dump more efficient
    0b10d8d1cf85 nexthop: Fix infinite nexthop dump when using maximum nexthop ID
    743f7c1762e0 net: hns3: fix deadlock issue when externel_lb and reset are executed together
    59bad9190ac7 net: hns3: add wait until mac link down
    667ce6a0ff80 net: hns3: refactor hclge_mac_link_status_wait for interface reuse
    758dbcfb257e net: dsa: ocelot: call dsa_tag_8021q_unregister() under rtnl_lock() on driver remove
    001b7d6706e2 net: phy: at803x: remove set/get wol callbacks for AR8032
    a3e5f3b7f25d net: marvell: prestera: fix handling IPv4 routes with nhid
    059ec8287fd3 net: tls: avoid discarding data on record close
    05e6b93da45d RDMA/umem: Set iova in ODP flow
    521860ddf314 wifi: cfg80211: fix sband iftype data lookup for AP_VLAN
    94916b314861 drm/rockchip: Don't spam logs in atomic check
    ac6640f4193d IB/hfi1: Fix possible panic during hotplug remove
    c2efcaf304fb iavf: fix potential races for FDIR filters
    bcbc48b12092 drivers: vxlan: vnifilter: free percpu vni stats on error path
    eeb0e4c1dbdf drivers: net: prevent tun_build_skb() to exceed the packet size limit
    a6ddc1c77487 dccp: fix data-race around dp->dccps_mss_cache
    00f033d451c4 bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
    15b453cf7348 xsk: fix refcount underflow in error path
    da5f42a6e748 tunnels: fix kasan splat when generating ipv4 pmtu error
    f20a941bc2c5 tcp: add missing family to tcp_set_ca_state() tracepoint
    ddebdaec1af2 net/smc: Use correct buffer sizes when switching between TCP and SMC
    584a783270c1 net/packet: annotate data-races around tp->status
    b249c510b43e mptcp: fix the incorrect judgment for msk->cb_flags
    fc0b41ac1106 macsec: use DEV_STATS_INC()
    ebceef298c56 mISDN: Update parameter type of dsp_cmx_send()
    6b2824b198a6 bpf, sockmap: Fix bug that strp_done cannot be called
    ed90fe7435c5 bpf, sockmap: Fix map type error in sock_map_del_link
    20acffcdc2b7 net: core: remove unnecessary frame_sz check in bpf_xdp_adjust_tail()
    e59a2e5a3123 selftests: forwarding: tc_flower: Relax success criterion
    352dc3ee33c6 selftests: forwarding: Switch off timeout
    2df0e4373507 selftests: forwarding: Skip test when no interfaces are specified
    9ff7465b9160 selftests: forwarding: hw_stats_l3_gre: Skip when using veth pairs
    693c0a5a02e1 selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
    10519d0b260d selftests: forwarding: ethtool: Skip when using veth pairs
    1455765e28ce selftests: forwarding: Add a helper to skip test when using veth pairs
    e146162dcf2e selftests/rseq: Fix build with undefined __weak
    e12b1ebc758a interconnect: qcom: sm8450: add enable_mask for bcm nodes
    8d0e2802b111 interconnect: qcom: Add support for mask-based BCMs
    312f04ede209 iio: core: Prevent invalid memory access when there is no parent
    98e470dc73a9 drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes
    19e7feda8966 x86: Move gds_ucode_mitigated() declaration to header
    f276899f8dbc x86/speculation: Add cpu_show_gds() prototype
    179430c2aa46 x86/sev: Do not try to parse for the CC blob on non-AMD hardware
    9ad49178c00a x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
    25085250a150 x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
    d93eeac34e75 x86/srso: Fix build breakage with the LLVM linker
    6f75e0934354 usb: typec: altmodes/displayport: Signal hpd when configuring pin assignment
    57b8f5fb8f17 usb: typec: tcpm: Fix response to vsafe0V event
    e3b37754988a usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
    bed19d95fcb9 USB: Gadget: core: Help prevent panic during UVC unconfigure
    d2a4ded0ee99 usb: dwc3: Properly handle processing of pending events
    0d2d5282d39a usb-storage: alauda: Fix uninit-value in alauda_check_media()
    8ee39ec47914 misc: rtsx: judge ASPM Mode to set PETXCFG Reg
    f11a26633eb6 binder: fix memory leak in binder_init()
    77b689cc27d4 iio: adc: ina2xx: avoid NULL pointer dereference on OF device match
    2f8ebbd0f03e iio: adc: ad7192: Fix ac excitation feature
    5e1ed816a0e1 iio: frequency: admv1013: propagate errors from regulator_get_voltage()
    366563c14f1f iio: cros_ec: Fix the allocation size for cros_ec_command
    5aac2726b693 io_uring: correct check for O_TMPFILE
    b61a06eca15c drm/amd/display: trigger timing sync only if TG is running
    07152d9e87ef drm/amd/display: fix the build when DRM_AMD_DC_DCN is not set
    647e12741e6d drm/amd/display: Retain phantom plane/stream if validation fails
    e61f0ad73668 drm/amd/display: Disable phantom OTG after enable for plane disable
    9caac2a9f69f drm/amd/display: Use update plane and stream routine for DCN32x
    e93ae6e6b660 drm/amd/display: Avoid ABM when ODM combine is enabled for eDP
    4fe91c51aa93 drm/amd/display: Update OTG instance in the commit stream
    b2415df0afba drm/amd/display: Handle seamless boot stream
    9b1a1f168c03 drm/amd/display: Add function for validate and update new stream
    60334c0cba2f drm/amd/display: Handle virtual hardware detect
    0f19195d6397 drm/amd/pm: avoid unintentional shutdown due to temperature momentary fluctuation
    b064f9ccf11c drm/amd/pm: fulfill powerplay peak profiling mode shader/memory clock settings
    b844033ea813 drm/amd/pm: expose swctf threshold setting for legacy powerplay
    2368afd60f64 drm/amd/pm: fulfill swsmu peak profiling mode shader/memory clock settings
    7532ff6edbf5 nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
    79a96970293b radix tree test suite: fix incorrect allocation size for pthreads
    0176533f5a39 hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
    088773aaafef cpuidle: dt_idle_genpd: Add helper function to remove genpd topology
    3d3fd58bfca1 drm/amd/display: limit DPIA link rate to HBR3
    10347b115da1 drm/amd: Disable S/G for APUs when 64GB or more host memory
    f6166ca452b8 drm/amdgpu: add S/G display parameter
    c3d2d4b02e5e drm/amd/display: check attr flag before set cursor degamma on DCN3+
    9a2393af1f35 drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()
    2322dd8c9d3d drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
    a372c3f0db81 drm/nouveau/nvkm/dp: Add workaround to fix DP 1.3+ DPCD issues
    e179b058d720 drm/nouveau/gr: enable memory loads on helper invocation on all channels
    56c79fcae6f3 nvme-pci: add NVME_QUIRK_BOGUS_NID for Samsung PM9B1 256G and 512G
    3fdaa7fbc81b riscv/kexec: handle R_RISCV_CALL_PLT relocation type
    b374684018e4 riscv,mmio: Fix readX()-to-delay() ordering
    98a34f50c15f riscv/kexec: load initrd high in available memory
    593615bf14c9 net: mana: Fix MANA VF unload when hardware is unresponsive
    aec1ce9a30d4 dmaengine: pl330: Return DMA_PAUSED when transaction is paused
    ded9f5551ce5 mptcp: fix disconnect vs accept race
    84aa65a52561 mptcp: avoid bogus reset on fallback close
    d143c736020f selftests: mptcp: join: fix 'implicit EP' test
    aae988c09650 selftests: mptcp: join: fix 'delete and re-add' test
    a537fd9096a1 ipv6: adjust ndisc_is_useropt() to also return true for PIO
    ecab78febff0 mmc: moxart: read scr register without changing byte order
    260ec73757c1 wireguard: allowedips: expand maximum node depth
    839aae189e1f selftests: forwarding: Set default IPv6 traceroute utility
    aa4b5895a80f wifi: rtw89: fix 8852AE disconnection caused by RX full flags
    e642eb67b8c1 wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()
    5bdf1c1f346c KVM: SEV: only access GHCB fields once
    ec18273e41d9 KVM: SEV: snapshot the GHCB before accessing it
    f339d76a3a97 ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()
    c6bef3bc30fd ksmbd: validate command request size
    ccb1700ed606 tpm: Add a helper for checking hwrng enabled
    d8a7d6136cbf tpm: Disable RNG for all AMD fTPMs
    ed2f8701fb9b Revert "loongarch/cpu: Switch to arch_cpu_finalize_init()"
    65383fe06065 gcc-plugins: Reorganize gimple includes for GCC 13

(From OE-Core rev: 91711cc075d0b44a1a1adab5b3c27da95264dc6f)

(From OE-Core rev: 6c758bece326cf43eb46c95a420f0c9eb42e36ad)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
beb31cb1c4 linux-yocto/6.4: update to v6.4.11
Updating  to the latest korg -stable release that comprises
the following commits:

    eb3cdb587879 Linux 6.4.11
    0fc364d079fd alpha: remove __init annotation from exported page_is_ram()
    7438f63562fa ACPI: scan: Create platform device for CS35L56
    fee4731266af platform/x86: serial-multi-instantiate: Auto detect IRQ resource for CSC3551
    cada3f116e8d platform: mellanox: Fix order in exit flow
    26cca33e5d2b platform: mellanox: mlx-platform: Modify graceful shutdown callback and power down mask
    90516af4b63c platform: mellanox: mlx-platform: Fix signals polarity and latch mask
    9005ce6ecd31 platform: mellanox: Change register offset addresses
    53f2cbc03aa5 platform/x86: lenovo-ymc: Only bind on machines with a convertible DMI chassis-type
    791a666573d1 platform/x86: msi-ec: Fix the build
    52620dae7c33 scsi: qedf: Fix firmware halt over suspend and resume
    78dca9ac06fc scsi: qedi: Fix firmware halt over suspend and resume
    d4326d5256cc scsi: fnic: Replace return codes in fnic_clean_pending_aborts()
    43c0e16d0c5e scsi: core: Fix possible memory leak if device_add() fails
    ed0acb1ee2e9 scsi: snic: Fix possible memory leak if device_add() fails
    0e85ca3f9272 scsi: 53c700: Check that command slot is not NULL
    9a731466afc5 scsi: ufs: renesas: Fix private allocation
    763c06565055 scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
    20831760ea77 scsi: core: Fix legacy /proc parsing buffer overflow
    e044b1b286ec btrfs: set cache_block_group_error if we find an error
    84256e00eeca btrfs: reject invalid reloc tree root keys with stack dump
    a96b6519ac71 btrfs: exit gracefully if reloc roots don't match
    663c9949ba5c btrfs: properly clear end of the unreserved range in cow_file_range
    15da6eaecc2f btrfs: don't wait for writeback on clean pages in extent_write_cache_pages
    f1f2e3a418ff btrfs: don't stop integrity writeback too early
    793525c287c9 btrfs: wait for actual caching progress during allocation
    373b7dbe1c3d gpio: sim: mark the GPIO chip as a one that can sleep
    c2e0d39e76be gpio: ws16c48: Fix off-by-one error in WS16C48 resource region extent
    753bcd16bdf4 ibmvnic: Ensure login failure recovery is safe from other resets
    7024d79d01bb ibmvnic: Do partial reset on login failure
    3e4ae6669a0a ibmvnic: Handle DMA unmapping of login buffs in release functions
    7abe2a2033af ibmvnic: Unmap DMA login rsp buffer on send login fail
    2a394e5511fb ibmvnic: Enforce stronger sanity checks on login response
    62ef77587905 net/mlx5: Reload auxiliary devices in pci error handlers
    6a604ea891ba net/mlx5: Skip clock update work when device is in error state
    498e7e243458 net/mlx5: LAG, Check correct bucket when modifying LAG
    dc91dae14f6f net/mlx5e: Unoffload post act rule when handling FIB events
    4321bbc16fee net/mlx5: Allow 0 for total host VFs
    c256f96535bd net/mlx5: DR, Fix wrong allocation of modify hdr pattern
    bc1918bac0f3 net/mlx5e: TC, Fix internal port memory leak
    16b7775ae438 net/mlx5e: Take RTNL lock when needed before calling xdp_set_features()
    8c23a2878c82 dmaengine: owl-dma: Modify mismatched function name
    0d2bbddb0578 dmaengine: idxd: Clear PRS disable flag when disabling IDXD device
    957c8fbde39a dmaengine: mcf-edma: Fix a potential un-allocated memory access
    07f970ebe6dd net: hns3: fix strscpy causing content truncation issue
    d25665f52855 nexthop: Fix infinite nexthop bucket dump when using maximum nexthop ID
    0fb288559cd0 nexthop: Make nexthop bucket dump more efficient
    b6732dd0228c nexthop: Fix infinite nexthop dump when using maximum nexthop ID
    e691f864c043 net: enetc: reimplement RFS/RSS memory clearing as PCI quirk
    ef2d6bf96956 net: hns3: fix deadlock issue when externel_lb and reset are executed together
    008b9c6167bd net: hns3: add wait until mac link down
    6a5e230a8a17 net: hns3: refactor hclge_mac_link_status_wait for interface reuse
    7ae8fa6b7097 net: dsa: ocelot: call dsa_tag_8021q_unregister() under rtnl_lock() on driver remove
    15d362ca86c7 net: phy: at803x: remove set/get wol callbacks for AR8032
    8373dca3c1f8 net: marvell: prestera: fix handling IPv4 routes with nhid
    3fde6360e63c net: tls: avoid discarding data on record close
    f5ebe0d12d59 RDMA/bnxt_re: Fix error handling in probe failure path
    c95863f6d970 RDMA/bnxt_re: Properly order ib_device_unalloc() to avoid UAF
    1035af5a3bc5 RDMA/umem: Set iova in ODP flow
    e64babe4b8e1 wifi: cfg80211: fix sband iftype data lookup for AP_VLAN
    8ae32cdfa568 wifi: brcm80211: handle params_v1 allocation failure
    f16e9bfb574b drm/rockchip: Don't spam logs in atomic check
    bd7b1430a21b drm/nouveau: remove unused tu102_gr_load() function
    7eacde7fb948 drm/bridge: it6505: Check power state with it6505->powered in IRQ handler
    059412083cf7 drm/amd/display: Don't show stack trace for missing eDP
    d32a5e9b825d IB/hfi1: Fix possible panic during hotplug remove
    1b5006a37aa8 iavf: fix potential races for FDIR filters
    1b57f1794cf2 drivers: vxlan: vnifilter: free percpu vni stats on error path
    6b730822e4f1 drivers: net: prevent tun_build_skb() to exceed the packet size limit
    d1f38d313bdf dccp: fix data-race around dp->dccps_mss_cache
    eef72d9d719c bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
    3e7722c31d41 xsk: fix refcount underflow in error path
    fe6a9f751673 tunnels: fix kasan splat when generating ipv4 pmtu error
    04a1dd890231 tcp: add missing family to tcp_set_ca_state() tracepoint
    3a1889c18558 PCI: move OF status = "disabled" detection to dev->match_driver
    1fa769379f16 net/smc: Use correct buffer sizes when switching between TCP and SMC
    452b2d7a4b1f net/smc: Fix setsockopt and sysctl to specify same buffer size again
    6664320bc2b0 net/packet: annotate data-races around tp->status
    813aa9981a6d ionic: Add missing err handling for queue reconfig
    d753b5f6b3f1 igc: Add lock to safeguard global Qbv variables
    c951a1eeff18 mptcp: fix the incorrect judgment for msk->cb_flags
    019928ce14fe macsec: use DEV_STATS_INC()
    ea7a38287d1f mISDN: Update parameter type of dsp_cmx_send()
    16ce06695c92 hwmon: (aquacomputer_d5next) Add selective 200ms delay after sending ctrl report
    4975d45c2631 bpf, sockmap: Fix bug that strp_done cannot be called
    1270c6299af3 bpf, sockmap: Fix map type error in sock_map_del_link
    d9252d67ed2f net: core: remove unnecessary frame_sz check in bpf_xdp_adjust_tail()
    3ee001d3aca5 selftests: forwarding: bridge_mdb: Make test more robust
    42543ba66de6 selftests: forwarding: bridge_mdb: Fix failing test with old libnet
    d847c5ee4a64 selftests: forwarding: bridge_mdb_max: Fix failing test with old libnet
    f6fcd58181f4 selftests: forwarding: tc_flower: Relax success criterion
    2d3edc009931 selftests: forwarding: tc_actions: Use ncat instead of nc
    ee5f0f837a3f selftests: forwarding: Switch off timeout
    98206738e761 selftests: forwarding: Skip test when no interfaces are specified
    16e6760d6d58 selftests: forwarding: hw_stats_l3_gre: Skip when using veth pairs
    17135cfe4752 selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
    2235d0171f0e selftests: forwarding: ethtool: Skip when using veth pairs
    f00c016b0aa6 selftests: forwarding: Add a helper to skip test when using veth pairs
    0b1745accf6b selftests/rseq: Fix build with undefined __weak
    cf16eeb9816c selftests/bpf: fix a CI failure caused by vsock sockmap test
    3896d810d6fc dmaengine: xilinx: xdma: Fix Judgment of the return value
    65b884018c99 dmaengine: xilinx: xdma: Fix typo
    af406bdbf3b1 KVM: arm64: Fix hardware enable/disable flows for pKVM
    4d3fd2be849a selftests: forwarding: bridge_mdb: Check iproute2 version
    5853f362fcc6 selftests: forwarding: bridge_mdb_max: Check iproute2 version
    df96d95b7a76 selftests: forwarding: ethtool_mm: Skip when MAC Merge is not supported
    5025e4318a03 selftests: forwarding: tc_tunnel_key: Make filters more specific
    e431ff5cef6c interconnect: qcom: sm8550: add enable_mask for bcm nodes
    88131e424650 interconnect: qcom: sm8450: add enable_mask for bcm nodes
    8928567f460f interconnect: qcom: sa8775p: add enable_mask for bcm nodes
    37dcb0e7bc39 interconnect: qcom: Add support for mask-based BCMs
    8e744d466db6 iio: light: bu27034: Fix scale format
    a4b34cccff14 iio: core: Prevent invalid memory access when there is no parent
    3865436d2114 iio: imu: lsm6dsx: Fix mount matrix retrieval
    b686f6074c7b netfilter: nft_set_hash: mark set element as dead when deleting from packet path
    e4d71d6a9c7d netfilter: nf_tables: adapt set backend to use GC transaction API
    0624f190b574 netfilter: nf_tables: GC transaction API to avoid race with control plane
    bd156ce9553d netfilter: nf_tables: don't skip expired elements during walk
    e41bc6e0ec52 drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes
    456eac27a474 Revert "PCI: mvebu: Mark driver as BROKEN"
    c4ea4f7241dc x86: Move gds_ucode_mitigated() declaration to header
    f0d3379b4ea6 x86/speculation: Add cpu_show_gds() prototype
    c67ee610c9f9 x86/linkage: Fix typo of BUILD_VDSO in asm/linkage.h
    b85f340e5a9b x86/sev: Do not try to parse for the CC blob on non-AMD hardware
    5c0d1eda1f82 x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
    0a638acf3367 x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
    84bf9e4a4637 x86/vdso: Choose the right GDT_ENTRY_CPUNODE for 32-bit getcpu() on 64-bit kernel
    593d6381e646 x86/srso: Fix build breakage with the LLVM linker
    ce1ebdd6e639 usb: typec: altmodes/displayport: Signal hpd when configuring pin assignment
    aba8c65bb9e4 usb: typec: tcpm: Fix response to vsafe0V event
    7fd656100d59 usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
    8c1edc00db65 USB: Gadget: core: Help prevent panic during UVC unconfigure
    558bcb5e7288 usb: dwc3: Properly handle processing of pending events
    373e0ab8c4c5 usb-storage: alauda: Fix uninit-value in alauda_check_media()
    0752bb32aed2 thunderbolt: Fix memory leak in tb_handle_dp_bandwidth_request()
    69304c8d285b misc: rtsx: judge ASPM Mode to set PETXCFG Reg
    ee95051c0c19 binder: fix memory leak in binder_init()
    13f3ce53b65a iio: adc: ina2xx: avoid NULL pointer dereference on OF device match
    a3751305397d iio: adc: meson: fix core clock enable/disable moment
    9656c2baeb54 iio: adc: ad7192: Fix ac excitation feature
    d28e4f9b5716 iio: frequency: admv1013: propagate errors from regulator_get_voltage()
    773cf6b3b64a iio: cros_ec: Fix the allocation size for cros_ec_command
    737d519e7b38 drm/amd/pm: avoid unintentional shutdown due to temperature momentary fluctuation
    a4e94b8816b6 drm/amd/pm: expose swctf threshold setting for legacy powerplay
    3a38bc2f475b mm: memory-failure: avoid false hwpoison page mapped error info
    97d06fb1e8a4 mm: memory-failure: fix potential unexpected return value from unpoison_memory()
    b41c0999b35f selftests: mm: ksm: fix incorrect evaluation of parameter
    da7beebb49c6 mm/damon/core: initialize damo_filter->list from damos_new_filter()
    9a1a43a0e7e9 hugetlb: do not clear hugetlb dtor until allocating vmemmap
    4747cc404258 accel/ivpu: Add set_pages_array_wc/uc for internal buffers
    5828d5f5dc87 nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
    6accf02034f2 fs/proc/kcore: reinstate bounce buffer for KCORE_TEXT regions
    ddcfc33a2038 cpufreq: amd-pstate: fix global sysfs attribute type
    965a20ed518a radix tree test suite: fix incorrect allocation size for pthreads
    651ed8d88521 hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
    ad0bcbd2d19f zsmalloc: fix races between modifications of fullness and isolated
    f042605998da io_uring: correct check for O_TMPFILE
    6befa74c70fa cpuidle: psci: Move enabling OSI mode after power domains creation
    05dca3a190c7 cpuidle: dt_idle_genpd: Add helper function to remove genpd topology
    d78177be9b01 tpm_tis: Opt-in interrupts
    27722a5a5c30 tpm: tpm_tis: Fix UPX-i11 DMI_MATCH condition
    349a7b42bcd5 drm/amd: Disable S/G for APUs when 64GB or more host memory
    40df9ac4a936 drm/amd/display: check attr flag before set cursor degamma on DCN3+
    9206004c9540 drm/amd/display: Fix a regression on Polaris cards
    cef7a321d82f drm/amd/pm: correct the pcie width for smu 13.0.0
    e08e9dd09809 drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()
    8996eeaac498 drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
    ab4ae028f973 drm/nouveau/nvkm/dp: Add workaround to fix DP 1.3+ DPCD issues
    1092c929bb78 drm/nouveau/gr: enable memory loads on helper invocation on all channels
    061fbf64825f nvme-pci: add NVME_QUIRK_BOGUS_NID for Samsung PM9B1 256G and 512G
    1e59c7194dc5 nvme-rdma: fix potential unbalanced freeze & unfreeze
    0c48e4590aa7 nvme-tcp: fix potential unbalanced freeze & unfreeze
    0712a9ef6b0b nvme: fix possible hang when removing a controller during error recovery
    b6c506a14686 riscv: mm: fix 2 instances of -Wmissing-variable-declarations
    e1bcaa14194b riscv/kexec: handle R_RISCV_CALL_PLT relocation type
    0b00f20d453e riscv,mmio: Fix readX()-to-delay() ordering
    ef6169c76999 riscv/kexec: load initrd high in available memory
    8486218eb60d riscv: Start of DRAM should at least be aligned on PMD size for the direct mapping
    24555c3794bc parisc: Fix lightweight spinlock checks to not break futexes
    7dc5a1f27989 io_uring/parisc: Adjust pgoff in io_uring mmap() for parisc
    729881aeec33 zram: take device and not only bvec offset into account
    0f70a470e2ed ACPI: resource: Add IRQ override quirk for PCSpecialist Elimina Pro 16 M
    2756f4353d26 ACPI: resource: Honor MADT INT_SRC_OVR settings for IRQ1 on AMD Zen
    8bb595a262bc ACPI: resource: Always use MADT override IRQ settings for all legacy non i8042 IRQs
    d9dbddc66461 ACPI: resource: revert "Remove "Zen" specific match and quirks"
    13716b91514c net: mana: Fix MANA VF unload when hardware is unresponsive
    d5c2c893e2f8 dmaengine: xilinx: xdma: Fix interrupt vector setting
    16ab6a83809d dmaengine: pl330: Return DMA_PAUSED when transaction is paused
    b2b4c84eb714 mptcp: fix disconnect vs accept race
    3c78824221ba mptcp: avoid bogus reset on fallback close
    4f733a06809c selftests: mptcp: join: fix 'implicit EP' test
    a762ac80dd6d selftests: mptcp: join: fix 'delete and re-add' test
    10d0726c4680 ipv6: adjust ndisc_is_useropt() to also return true for PIO
    8235a0ecabd3 mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
    d361d76fdf9e mmc: moxart: read scr register without changing byte order
    d36914ba66c4 wireguard: allowedips: expand maximum node depth
    c0e1eebfe99e selftests: forwarding: Set default IPv6 traceroute utility
    d48663156f19 wifi: rtw89: fix 8852AE disconnection caused by RX full flags
    7d09f9f255a5 wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()
    ab8e9a874574 KVM: SEV: only access GHCB fields once
    b85422c221d5 KVM: SEV: snapshot the GHCB before accessing it
    4bf629262f91 ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()
    ff7236b66d69 ksmbd: validate command request size
    d75c2b5e06bc tpm: Add a helper for checking hwrng enabled
    6b718101cd99 tpm/tpm_tis: Disable interrupts for Lenovo P620 devices
    872fe964648c tpm: Disable RNG for all AMD fTPMs
    bc3d1e146f83 tpm/tpm_tis: Disable interrupts for TUXEDO InfinityBook S 15/17 Gen7

(From OE-Core rev: 6d831173b206f16ae62a61c79c3a4d73f940a5e8)

(From OE-Core rev: dae2be4ea2f6fd08ed0b1a89ebc5e5eafd574614)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
d65e9aa756 linux-yocto/6.4: fix uninitialized read in nohz_full/isolcpus setup
Integrating the following commit(s) to linux-yocto/6.4:

    4675ec8d0b9a kernel/sched: Fix uninitialized read in nohz_full/isolcpus setup

The carry forward of commit from the v5.15 linux-yocto kernel:

https://git.yoctoproject.org/linux-yocto/commit/?id=97c96388922

...in which case the sanity checks are properly *after* the allocation
and processing of the bootargs into the cpumask.

However, it seems patch (or wiggle?) apparently decided to put the
sanity checks *before* the population of the cpumask during the
carry-forward and generation of the new v6.1 kernel.  Meaning they are
validating uninitialized memory and hence nohz_full= and isolcpus= are
subject to random failures even for valid input ranges.

(From OE-Core rev: b3a71c7d36e3a4833e90728499e08543257042a1)

(From OE-Core rev: bb5865b10316754213711551fa68a53a4fb741d9)

Signed-off-by: Adrian Cinal <adriancinal1@gmail.com>
Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
0dba974a14 linux-yocto/6.1: fix uninitialized read in nohz_full/isolcpus setup
Integrating the following commit(s) to linux-yocto/6.1:

    4675ec8d0b9a kernel/sched: Fix uninitialized read in nohz_full/isolcpus setup

The carry forward of commit from the v5.15 linux-yocto kernel:

https://git.yoctoproject.org/linux-yocto/commit/?id=97c96388922

...in which case the sanity checks are properly *after* the allocation
and processing of the bootargs into the cpumask.

However, it seems patch (or wiggle?) apparently decided to put the
sanity checks *before* the population of the cpumask during the
carry-forward and generation of the new v6.1 kernel.  Meaning they are
validating uninitialized memory and hence nohz_full= and isolcpus= are
subject to random failures even for valid input ranges.

(From OE-Core rev: 4b349ee66eab8ebe3150ac4c1b449ea5c264a5be)

(From OE-Core rev: 92642acd1166b7990fb520337b78a4d37ce7cbe4)

Signed-off-by: Adrian Cinal <adriancinal1@gmail.com>
Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00
Bruce Ashfield
5e8e48567c kern-tools: include utility to post process config diffs
Trevor Woerner contributed a simple utility that cleans up a .config
diff to produce a fragment.

    kconfig-diff2frag.py: introduce a utility to post process a config diff

    Add a python tool to generate a config fragment from a unified diff of two
    kernel configurations. The diff is read from stdin and the fragment is printed
    to stdout.

    Usage:
            $ diff -u config1 config2 | kconfig-diff2frag.py

(From OE-Core rev: f9fc16e1776452d3f0c4d6dd8f8eece66722128a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-22 15:13:54 +01:00