Compare commits

..

2115 Commits

Author SHA1 Message Date
Richard Purdie
fb91a49387 build-appliance-image: Update to scarthgap head revision
(From OE-Core rev: b65b4e5a8e4473d8ca43835ba17bc8bd4bdca277)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-18 17:14:22 +01:00
Richard Purdie
25b05cb80d curl: Backport patch to fix buildtools issues
bitbake-selftest was failing on a github url on hosts using buildtools.
The issue was tracked down to the curl upgrade 8.6.0 -> 8.7.1. Whilst there
is a fix in upstream git to workaround the issue in this version, backport
the fix from curl upstream to ensure there are no other related issues to
the bug.

(From OE-Core rev: 28ee90b07c70cafbba9149dd4dbe26cae9e214c7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-18 11:58:28 +01:00
Richard Purdie
5b727a8fa1 build-appliance-image: Update to scarthgap head revision
(From OE-Core rev: 09ccab7d0b4d815b812e49a5861a13a4ec0189b9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 15:54:22 +01:00
Richard Purdie
845626a36b buildtools-tarball: Add python3-pip
Many of the common use cases for buildtools need pip to allow python to be
extended. Add it.

(From OE-Core rev: 0a1714533ed2b02a98b8456e1193fc079273fbbd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 15:54:00 +01:00
Paul Eggleton
ed5ba9b900 release-notes: additional features and one known issue for 5.0
Add additional features and tweak some existing entries.

Also add one known issue for gpgme.

(From yocto-docs rev: 0cdc0afd3332459d30cfc8f4c2e62bdcc23f5ed5)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
1c35484be2 migration: extend migration guide for 5.0
Add a few missing entries based upon combing through the release
commits, as well as minor tweaks to existing items.

(From yocto-docs rev: 0680ee719edaa31a52f9cb7bd5138b402b1b26ce)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
0b86798f04 release-notes: add CVEs, recipe upgrades and contributors for 5.0
* Add CVEs from commits
* Add recipe upgrades using layer index branch comparison
* Add contributors from commits

(From yocto-docs rev: 4cf6b62939c226fb9c49b7d61f3d95075a9cd8bd)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
8ccdf6df3c dev-manual: update custom distribution section
In keeping with the addition of the motd message pointing out that
the poky DISTRO is a reference distribution, adjust the opening of the
Creating Your Own Distribution section to match. Additionally, add a
section on the end pointing out what users need to consider if they just
take a copy of the poky distribution and modify it.

(From yocto-docs rev: 3dc812e7255ba7c0ddd7b43b9b1319ea4ef3161e)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
bba5a688ea dev-manual: update reference to sstate-cache-management script
* Script is now .py
* In the example, we would most likely be within the build directory
  already, so the path would be just "sstate-cache" not
  "build/sstate-cache"

(From yocto-docs rev: a655ef8f5fee98e55277cbd40a092fcae697cbae)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
bb4f3bc1fc ref-manual: variables: add TARGET_DBGSRC_DIR
New variable in 5.0.

(From yocto-docs rev: 047780931ec8156d77ec10f3f051bd98b83714f8)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
7d41877ce9 ref-manual: classes: cve_check: add note about remote patches
Document the change in behaviour in 5.0.

(From yocto-docs rev: f7a223d4e78bee67107fa47e147208f57a2d9521)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
0ff0de3c65 ref-manual: add new python classes
Add brief documentation of python_maturin and python_mesonpy classes
that were added in 5.0.

(From yocto-docs rev: ce7dd61a928dec778a5df538701dfdeb26db0ebd)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Paul Eggleton
cb7663fe2b ref-manual: add virtual-slash QA check
Add the new virtual-slash QA check to the insane class section and the
QA checks section.

(From yocto-docs rev: fdca0217558185eca67f7ec04b9d282b7819d107)

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Geoff Parker
073c07ef76 ref-manual: variables: Update default INHERIT_DISTRO value
Add remove-libtool and create-spdx to INHERIT_DISTRO defaults per
meta/conf/distro/defaultsetup.conf

(From yocto-docs rev: a5193a97d774dd6aad09fc756fcd362638d7d2fe)

Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Lee Chee Yang
eb8d6f9a09 release-notes-5.0: various additions and improvements
(From yocto-docs rev: 4b839c460867d685584134dbd322cd9b20f2ae6d)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:55:42 +01:00
Richard Purdie
5ee6d81db7 build-appliance-image: Update to master head revision
(From OE-Core rev: eb3adf58d5111a0d894b581d935528b14f40b146)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:38:33 +01:00
Richard Purdie
17723c6e34 poky.conf: Bump version for 5.0 scarthgap release
(From meta-yocto rev: 8f12ba9f7006d54e6f5259eb1c734e6116a2580b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:38:22 +01:00
Richard Purdie
3bbe0a45b4 bitbake: bitbake: Bump to version 2.8.0
(Bitbake rev: c86466d51e8ff14e57a734c1eec5bb651fdc73ef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:38:22 +01:00
Peter Marko
fd794ce87c openssl: openssl: patch CVE-2024-2511
Patch: e9d7083e24
News: b7acb6731a

(From OE-Core rev: b439d1c9e5a115bbb5193a2df25e84291cc07bec)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:33:19 +01:00
Richard Purdie
27a0ee6670 abi_version/sstate: Switch to a new version for the upcoming release
In testing websocket hashequivalence, corrupted sstate was injected into the
autobuilder extensively. With the new release/LTS, being able to clearly
differentiate between old and new sstate is probably desireable anyway
so bump the appropriate versions.

(From OE-Core rev: 7f107c180f592be29f57f580c60a6adbbebd7714)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:33:19 +01:00
Joshua Watt
e0f79072dc bitbake: hashserv: client: Fix mode state errors
Careful reading of the code can contrive cases where poorly timed
ConnectionError's will result in the client mode being incorrectly reset
to MODE_NORMAL when it should actual be a stream mode for the current
command. Fix this by no longer attempting to restore the mode when the
connection is setup. Instead, attempt to set the stream mode inside the
send wrapper for the stream data, which means that it should always end
up in the correct mode before continuing.

Also, factor out the transition to normal mode into a invoke() override
so it doesn't need to be specified over and over again.

(Bitbake rev: 0cd276fd98eeca463518d4a42675fffb18d6b3de)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:33:19 +01:00
Joshua Watt
2ecd97fa59 bitbake: siggen: Capture SSL environment for hashserver
Now that the bitbake hash server supports SSL connections, we need to
capture a few environment variables which can affect the ability to
connect via SSL. Note that the variables are only put in place to affect
the environment while actually invoking the server

[RP: Tweak to use BB_ORIGENV as well]
[RP: Tweak to handle os.environ restore correctly]
(Bitbake rev: 0bacf6551821beb8915513b120ae672ae8eb1612)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 07:33:19 +01:00
Richard Purdie
6bd8367aa9 bitbake: BBHandler: Handle unclosed functions correctly
A function accidentally defined as:

somefunction() {
	:
 }

which is unclosed due to the space at the end, would currently silently
cause breakage. Have the parser throw and error for this.

[YOCTO #15470]

(Bitbake rev: a7dce72da6be626734486808f1b731247697e638)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
9889a0ff1a bitbake: prserv: remove unnecessary code
In db.py, the ifnull() statement guarantees that the SQL request will
return a value. It's therefore unnecessary to test the case when no
value is found.

(Bitbake rev: e4ae5177861c9a27e93e5a2d3a6c393baecd6416)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
f2a83b50b3 bitbake: prserv: correct error message
according to db.py, prserv.NotFoundError is returned here when
adding a new value to the database failed

(Bitbake rev: 4cc4069987edd14f51715dfaf0c6e1a3aa307106)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
d19e32dcd7 bitbake: prserv: remove redundant exception handler
This exception handler is already present in db.py's get_value() code.

(Bitbake rev: 2fd38b1bb685ec441f0eb0f28f3d84ba252ba90b)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
112a37e6a9 bitbake: prserv: add extra requests
Useful for connecting a PR server to an upstream one

- "test-package" checks whether the specified package
  version and arch is known in the database.

- "test-pr" checks a specified output hash is found in the database.
  Otherwise it returns 'None' instead of a new value.

- "max-package-pr" returns the highest PR number for
  (version, arch) entries in the database, and None if not found

Add new DB functions supporting the above, plus test_value()
which tells whether a given value is available for the specified
package and architecture.

(Bitbake rev: 0f1474a30f741b760ca81c19dd1d8f3bd5647251)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
62a3a7172a bitbake: prserv: capitalization and spacing improvements
Choosing only one style of capitalization
Add extra space after some commas too
Remove idle spaces

(Bitbake rev: daad17bccec8cb98ef2fca4262641167500bd46e)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
d133dc7e77 bitbake: asyncrpc: include parse_address from hashserv
Moving the code and related definitions from
hashserv/__init__.py to asyncrpc/client.py,
allowing this function to be used in other asyncrpc clients.

(Bitbake rev: b67bb05e431414866b8e8c6a4c88d20b9cdb44a3)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
9a2d08995e bitbake: prserv: use self.logger instead of logger directly
In both the PRServerClient and PRClient objects.

This aligns with what is done in hashserv/server.py and makes it
possible to benefit from possible specializations of the logger
in the corresponding super classes, instead of using
always the global logger.

(Bitbake rev: 5fc6d2b1a5db617e16c1eb9fbd25e821237611d8)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
d57e17425e bitbake: bitbake-prserv: replace deprecated optparse by argparse
optparse is deprecated since Python 2.7

Note that this is neither supposed to change the options
supported by bitbake-prserv nor the way they are interpreted.

Note that in the "--help" output, long options are now reported
for example as "--host HOST" instead of "--host=HOST" but
both are equivalent anyway, as they already were with optparse.

(Bitbake rev: 434cd00a9e5a8ef32088f1a587005adf910a92eb)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
4b1ef692a9 bitbake: prserv: use double quotes by default
To aligh with the hashserv code

(Bitbake rev: 7a6999750791659eaffe49aabfbfba9f37f51913)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Michael Opdenacker
8d78b5f9c5 bitbake: prserv: simplify the PRServerClient() interface
serv.py: simplify the PRServerClient() interface by passing the
server object instead of multiple arguments, and then retrieving
the data through this object.

This replicates what is done for ServerClient() in hashserv/server.py

(Bitbake rev: d3be073218feb4d6e68a751832da4936da485dbc)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Joshua Watt <JPEWhacker@gmail.com>
Cc: Tim Orling <ticotimo@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:31:45 +01:00
Khem Raj
9a197e4f92 poky-bleeding.bbclass: Remove use of SRCPV
(From meta-yocto rev: a287fabcc55cbe46bc660ad45e03f94428824386)

(From meta-yocto rev: 705258d7ad70b4b69f4c5b5397101853ae7ba4d3)

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>
2024-04-14 06:29:00 +01:00
Dan McGregor
9aae4e1660 openssh: add fido2 support
OpenSSH supports FIDO security keys in both the client
and server.  Add an option to support them in oe.
This change requires a new recipe that I've submitted to
meta-openembedded that has not merged yet.

(From OE-Core rev: 74451a65f29b16f78b008b3ac70c99c2d61a7cad)

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Trevor Gamblin
6cbe62a0ce python3: upgrade 3.12.2 -> 3.12.3
Remove the following patch:

0001-gh-115133-Fix-tests-for-XMLPullParser-with-Expat-2.6.patch

Which a different fix was submitted for in:

c4fa79b924 [3.12] gh-115133: Fix tests for XMLPullParser with Expat 2.6.0 (GH-115164) (GH-115288)
See: https://github.com/python/cpython/pull/115288
(related to CVE-2023-52425)

Changelog: https://docs.python.org/3/whatsnew/changelog.html#python-3-12-3-final

(From OE-Core rev: 4122d8f6ecf6957de7a34fc51beffcd8e808911f)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Richard Purdie
210a70c981 buildtools-tarball: Add python3-setuptools
After the dependency on setuptools was dropped from python3-testtools, this
exposed eSDK dependencies in devtool and recipetool on python3-setuptools. Add
this to buildtools to fix build failures after the testtools fixes.

(From OE-Core rev: c4431b4dd27d290024472f315858a63aea2a733c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Richard Purdie
b947ea3749 python3-testtools: Fix build problems from incorrect build backend
testtools uses the hatchling backend so:
  * merge the inc back into the recipe
  * drop setuptools
  * use the hatchling backend
  * add the needed vcs dependency
  * drop the now unneeded python3-pbr dependency

This means the submodules are included in packaging, fixing build failures
and the verison in the wheel is no longer 0.0.0

Prior to this fix, testtools in buildtools tarball was completely
broken.

(From OE-Core rev: fe46107e6bf4880d97f03b5e55d722d64f922889)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Peter Marko
1b685309e0 kbd: update license
GPL-3 is used for keymaps-pine

LGPL2 is used in all C source files under src/libkfont/
which generate binaries included in main kbd package.
This is seen in their SPDX headers.

(From OE-Core rev: 29f6d4be31164bf5cba9ff4706f219b3d91a8f1f)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Peter Marko
4d4a07689e kbd: remove non-free Agafari fonts
Its license makes it impossible to distribute kbd in any commercial products.
Backport commit which removes it.

[RP/Khem Raj: Switched binary diff to just delete the files in do_configure]
(From OE-Core rev: 457fc8247f083d89432543337207de0b8c44bf6d)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Peter Marko
c31b13d122 kbd: split gpl-3 keymap to separate package
Pine keymap was added with GPL-3 license.
1589e9e101

Split this GPL-3 keymap and install it via recommendation
so it is easy to remove it by excluding recommendations.

(From OE-Core rev: b81145b61cfc21940fe7204fcaf8b5e84a5a938a)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Peter Marko
0900258689 systemd: make predictable name mac policy opt-out
Even the patch says it's inappropriate for upstream,
and it's also inappropriate for some downstream projects, too.
So make it possible to opt-out on it by replacing
the patch by sed and depend on distro feature pni-names.

(From OE-Core rev: 858eb2bac132adbde851f6594eac4f2efc9c2f35)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Richard Purdie
7c72dc09f0 buildtools-tarball: Add python3-websockets
For the newer hash equivlance servers we need websockets. Add it
to buildtools tarball.

(From OE-Core rev: 3f2b5f6c3af04c8ec245aca35224c52230645bf0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Richard Purdie
78b962d5a9 python3-websockets: Import from meta-python
For the newer hash equivlance servers we need websockets. Import it
from meta-oe so we can easily include it in buildtools tarball.

(From OE-Core rev: c61ed007b9e06683065aed62af1e1ca4569b8c16)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:28:02 +01:00
Justin Bronder
fc8f6f44ce python3-referencing: drop ${PYTHON_PN}
python 2 is gone and we don't need the abstraction now, drop the
remaining usage of this variable.

(From OE-Core rev: f64078dd67b2d4db26edea5992f649161e7fee2f)

Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-13 14:39:07 +01:00
Justin Bronder
561c291776 python3-jsonschema-specifications: drop ${PYTHON_PN}
python 2 is gone and we don't need the abstraction now, drop the
remaining usage of this variable.

(From OE-Core rev: 51c6501e7b255f3a699fea3b787abe1a5d8231dd)

Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-13 14:39:07 +01:00
Peter Marko
2081715ce8 bitbake.conf: remove comment about oldincludedir
oldincludedir was removed by 506c91cbc6a604a84e37e53ccff430436369802e

(From OE-Core rev: 0228ab43e9b659771f4f59944897aec6879f8209)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:36:52 +01:00
Michael Opdenacker
90bf2ec7e4 migration-guides: release-notes-5.0: update docs highlights
Mention the new section about variable context in the BitBake manual.

(From yocto-docs rev: a8b81d8a7974207e2a9fe63da4a0c239132818ed)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Michael Opdenacker
28ea006454 dev-manual/debugging: mention new `taskexp_ncurses` option
(From yocto-docs rev: 301c802a92a2c53c3d0c755c31a6e09130956fde)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested_by: Reyna, David <david.reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Michael Opdenacker
a738448d83 manuals: remove tab characters
As reported by "make sphinx-lint"

Tabs are even removed in Makefile examples,
as Sphinx turns them to spaces anyway in the generated output.

(From yocto-docs rev: 20e9c0c9fad3109567948af6bc40bb0fa2a5552b)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Michael Opdenacker
3ad2f245f0 release-notes-5.0: documentation highlights
(From yocto-docs rev: d8f63d3c83e33793e6249fd660ef7b75d87e12db)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Joao Marcos Costa
6522e13fd3 release-notes-5.0: mention cmake-qemu.bbclass
Mention this new class in QEMU section.

(From yocto-docs rev: ddd0e0817a12ebbd3d33d20e20d2407ac1e63b71)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Joao Marcos Costa
a122a14ddc release-notes-5.0: add updates
- add new core recipes section
- add new variables
- add arch-specific enhancements
- add kernel-related enhancements
- add qemu enhancements
- add rust enhancements
- add wic enhancements
- add sdk-related improvements
- add testing enhancements
- add utility script changes
- add packaging changes
- add bitbake improvements
- add miscellaneous changes

(From yocto-docs rev: 72a80395199dd8a5d757b9e67629e1bb849273f1)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Joao Marcos Costa
e877e81a3c ref-manual/variables: add new variables for v5.0
Add variables newly referenced in release-notes-5.0.

(From yocto-docs rev: 1d064cf0e260a1271c2fad7cd01bb154361f6691)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Yoann Congal
e050327407 release-notes-5.0: document some cve, strace and qa changes
This patch should cover those commits (from poky) :
* 789b10030c (cve-update-nvd2-native: remove rejected cve from database, 2024-03-15)
* 19f27037b2 (cve-update-nvd2-native: add an age threshold for incremental update, 2024-03-13)
* 6ce61b4357 (strace: disable bluetooth support by default, 2023-12-13)
* 381ef628fa (ref-manual: add documentation for the unimplemented-ptest qa warning, 2023-10-10)

(From yocto-docs rev: da44182aa084378dbf7a04bb010cbd87e508a607)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Yoann Congal
f6f6d98e6d ref-manual: variables: document CVE_DB_INCR_UPDATE_AGE_THRES variable
(From yocto-docs rev: 7f1db309205f9c3cb0b44b6d75d6c65c928787e2)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:29:34 +01:00
Oleh Matiusha
b640e94e52 nativesdk-gzip: fix reproducibility issues
There is absolute path in zgrep binary. It is related to the changes that fix an
issue with zgrep on Solaris and other platforms with 'grep -e'. We don't have people
building on Solaris.

Original change:
git.savannah.gnu.org/cgit/gzip.git/commit?id=60b3f4eb672a85de28ecaad47ed426f8c8fe6c32

[RP: Tweak commit message]
(From OE-Core rev: fc18ff491111c22c3372c6de21d37945906d2287)

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Joe Slater
4ebb4a7878 packagegroup-core-boot: recommend ifupdown
If the distro features sysvinit and pni-names are
enabled, RRECOMMENDS ifupdown because busybox ifupdown
will not initialize the renamed interfaces.

(From OE-Core rev: ad739fb930814bced49aafe778dac1da4bfa4b0e)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Joe Slater
03ad123fdc init-ifupdown: modify interfaces for busybox
Busybox ifupdown does not recognize /xxx names, so we
use eth0 instead of /eth0.  If we want to find "predictable name"
interfaces starting with en..., we will have to use the
real ifupdown.

(From OE-Core rev: 091b4410c88b0fdefee3490bca6479881c0da293)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Khem Raj
46e863849f linux-yocto: Enable nft modules for ptest images
nftables ptests need it

(From OE-Core rev: 954b91e61168685f105e8ca0773729bef186ac7e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Ross Burton
885e58a174 eudev: update Upstream-Status on netifnames.patch
(From OE-Core rev: ddd947e4edc133b61f8dcb636068fb7867f49b22)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Julien Stephan
834e91ce53 devtool: standard: throws appropriate error if source is in detached HEAD
If source is in detached HEAD, we get the following error when using
detvool finish command:

    [...]
    File "<...>/poky/scripts/lib/devtool/standard.py", line 1938, in _update_recipe
      bb.process.run('git checkout %s' % startbranch, cwd=srctree)
    File "<...>/poky/bitbake/lib/bb/process.py", line 189, in run
      raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
  bb.process.ExecutionError: Execution of 'git checkout (HEAD detached at 9bbf87e)' failed with exit code 2:
  /bin/sh: -c: line 1: syntax error near unexpected token `('
  /bin/sh: -c: line 1: `git checkout (HEAD detached at 9bbf87e)'

Check this and throws an appropriate error in this case

(From OE-Core rev: d9c686b5ff9f591ec6b928ed539084c02df4c8a5)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Khem Raj
55a03fca7f libseccomp: Fix build when python packageconfig is enabled
It needs additional tweaks with python enabled

(From OE-Core rev: c3568ee00d3b7f6b421020dfec8005a27c2e9164)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:27:53 +01:00
Richard Purdie
e1365064be bitbake: doc/user-manual: Add BB_LOADFACTOR_MAX
Document BB_LOADFACTOR_MAX which was recently added.

(Bitbake rev: 833b76e9333e317cab5f17d6f7daaecc89c69547)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-12 17:23:27 +01:00
Simone Weiß
793b31dbf4 bitbake: doc: Add section for variable context
This is inspired by the same section in the yocto-docs. It aims to provide
information in what contexts(recipes, .conf, bbclass,...) a variable is usually
used. For that I tried to group similar variables, so that a short overview is
given. This was inspired by [YOCTO #14072], but of course does not implement a
warning if a variable is used in an unintended context.

(Bitbake rev: 5ced476685376b1a32b7fdd9546f9b61c5962aa0)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 14:53:15 +01:00
Khem Raj
ca93c215fd sanity: Use diff instead of meld by default
meld fallback assumes that user has a gnome desktop
its better to fallback to good old diff tool which
will most distributions on build host will carry

(From OE-Core rev: d027236eac2a136b06903d4a47adbc50ccd6b7c6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 08:55:24 +01:00
K Sanjay Nayak
9f75f4add5 xorg-xserver-config: Disable screen blanking for qemu images
Disable BlankTime, StandbyTime, SuspendTime and OffTime in X default for QEMU images

This fix addresses the issue of Xserver screensaver blanking being enabled on QEMU images by
disabling BlankTime, StandbyTime, SuspendTime, and OffTime in the Xorg default settings for QEMU images.

Reference : https://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html

[YOCTO #15436]

Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core rev: 173fb4247fdb2b7b5e6a1a604ddbbc8727b3d3bb)

Signed-off-by: K Sanjay Nayak <nayakksanjay@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 08:49:48 +01:00
Khem Raj
120fecc397 llvm: Upgrade to 18.1.3 bugfix release
Brings following changes
* c13b7485b879 [clang] Avoid -Wshadow warning when init-capture named same as class field (#74512)
* f249092ef26d [tsan] Refine fstat{,64} interceptors (#86625)
* 76c721994a11 [clang][Sema] Fix a CTAD regression after 42239d2e9 (#86914)
* e0f0c463b539 [mlir][transform] replace original op to loop ops (#83537)
* 47aac495c895 [OpenMP][AIX] Affinity implementation for AIX (#84984)
* a385a917da93 [Support] Fix color handling in formatted_raw_ostream (#86700)
* 0cd4babe0342 Reapply [libcxx] [modules] Fix relative paths with absolute LIBCXX_INSTALL_MODULES_DIR (#86020)
* cfaeee6a8994  release/18.x: [SystemZ] Fix overflow flag for i128 USUBO (#86491)
* 767b61c159b3 [lld/ELF][X86] Respect outSecOff when checking if GOTPCREL can be relaxed (#86334)
* 7c7c3d4a3a27 [ODS][NFC] Cast range.size() to int32_t in accumulation (#85629)
* 0e501dbd932e [Mips] Restore wrong deletion of instruction 'and' in unsigned min/max processing. (#85902)
* fbb27d16fa12 [Mips] Fix missing sign extension in expansion of sub-word atomic max (#77072)
* e74c1678231a [PowerPC] provide CFI for ELF32 to unwind cr2, cr3, cr4 (#83098)
* 1c7c16e58240 [NFC][PowerPC] use script to regenerate the CHECK lines
* c2a57034eff0 [msan] Re-exec with no ASLR if memory layout is incompatible on Linux (#85142)
* b74f6158460c [msan] Add 'MappingDesc::ALLOCATOR' type and check it is available (#85153)
* 98a15dd2d728 [clang][CodeGen] Allow `memcpy` replace with trivial auto var init
* 2498e3a07f3d [LoongArch] Assume no-op addrspacecasts by default (#82332)
* 368dc8553c5a [SROA]: Only defer trying partial sized ptr or ptr vector types
* 0e16af8e4cf3 [ARM] Update IsRestored for LR based on all returns (#82745)
* 6f8016fda7d5 Pre-commit test showing bug #80287
* ef6d1ec07c69 Bump version to 18.1.3 (#86168)

(From OE-Core rev: f6a561db603a6583969137fdd9fb4ec0138bff46)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 08:47:35 +01:00
Rob Woolley
c0cd7a6d3b bitbake: wget: Make wget --passive-ftp option conditional on ftp/ftps
Fedora 40 introduces wget2 as a drop-in replacement for wget.  This
rewrite does not currently have support for FTP.  This causes
the wget fetcher to fail complaining about an unrecognized option.

Making --passive-ftp conditional based on the protocol used in
the SRC_URI limits the scope of the problem.  It also gives us
an opportunity to build the older wget as a host tool.

(Bitbake rev: f10e630fd7561746d835a4378e8777e78f56e44a)

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 08:47:07 +01:00
Peter Hoyes
29e1ef7f90 u-boot-tools: Package mkeficapsule
mkeficapsule is a tool provided by U-Boot (as part of the tools-only
targets) for generating UEFI capsule update archives.

Install mkeficapsule into a u-boot-tools-mkeficapsule package.

(From OE-Core rev: ab9380cd969cc0762a55e5e2c7a8ea6b697e3ae1)

Signed-off-by: Peter Hoyes <peter.hoyes@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 08:46:49 +01:00
Richard Purdie
4892e16376 pseudo: Update to pull in fchmodat fix
This is needed to work with coreutils 9.5.

Also contains some README tweaks.

(From OE-Core rev: 2268f5960b6b1d8f86749fc0b98169a3efb1465f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-11 08:45:32 +01:00
Harish Sadineni
0304adce22 rust: set CVE_STATUS for CVE-2024-24576
CVE-2024-24576 only applies when invoking batch files (with the `bat` and `cmd` extensions) on Windows & No other platform or use is affected.
More details about CVE is here: https://nvd.nist.gov/vuln/detail/CVE-2024-24576

(From OE-Core rev: 28eddfa53494c7560861feff84be3f3a5a46aecb)

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-10 18:35:09 +01:00
Jon Mason
1fb353995c yocto-bsp/genericarm64: add virtio-gpu
testimage on core-image-sato fails in parselogs and xorg tests.  We can
add the virtio gpu to address these issues (like what is being done in
qemuarm, qemuarm64, and qemuarmv5).

(From meta-yocto rev: ddf075e2abfba6479efc2bc5fe1c41ba6079e355)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:53 +01:00
Jon Mason
cf8677d0e9 yocto-bsp/linux-yocto-dev: add genericarm64
For those crazy enough to want to use/test the latest development kernel
for genericarm64, enable it by adding the COMPATIBLE_MACHINE and
KMACHINE.

NOTE: not using the KBRANCH, as neither does the linux-yocto_%.bbappend.
It is taking the default one from the relevant recipe.

(From meta-yocto rev: 85809c64b645ccca4f075e95b86df56d4f858e67)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:53 +01:00
Bruce Ashfield
532a10b1c5 perf: make bpf asm include arch conditional
To keep the perf source copying as small as possible, we can
further refine the arch/uapi copy to the single file that we
currently need.

To avoid a warning from the general perf source copy routine,
we make the .h conditional based on the architecture.

The supported architectures will not change often, so updating
this arch list is very minimal effort. Alternatively, we could
add a PERF_OPTIONAL_SRC variable and not warn if a file isn't
available for a given architecture.

(From OE-Core rev: 879b4a7d378b4d4d11fdda7921b8c47e4523a948)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Richard Purdie
82a61e246b nghttp2: Upgrade 1.60.1 -> 1.61.0
Includes a fix for CVE-2024-28182.

(From OE-Core rev: 37d4b0c6c5b836f9f2bc52a142b093ef61ca48b2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Richard Purdie
a260b11e77 curl: Upgrade 8.6.0 -> 8.7.1
This includes 4 security fixes:

CVE-2024-2466 - TLS certificate check bypass with mbedTLS
CVE-2024-2398 - HTTP/2 push headers memory-leak
CVE-2024-2379 - QUIC certificate check bypass with wolfSSL
CVE-2024-2004 - Usage of disabled protocol

Along with many other changes, mostly bugfixes: https://curl.se/changes.html

(From OE-Core rev: 8e27b472d1bc872c6da2b22f57b30d36e231d745)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Richard Purdie
f68203810d xwayland: Upgrade 23.2.4 -> 23.2.5
"""
This release contains the 3 security fixes that actually apply to
Xwayland reported in today's security advisory:

  * CVE-2024-31080
  * CVE-2024-31081
  * CVE-2024-31083

Additionally, it also contains a couple of other fixes, a copy/paste
error in the DeviceStateNotify event and a fix to enable buttons with
pointer gestures for backward compatibility with legacy X11 clients.
"""

https://lists.x.org/archives/xorg/2024-April/061614.html

(From OE-Core rev: c89fea4ffb101e3d7079e126721b95fdf199b4aa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Mikko Rapeli
2426053c2c linux-yocto-dev: remove duplicate DEPENDS
They are already set in linux-yocto.inc

(From OE-Core rev: 19cc261158a445b4e361b9e11599fa46d221d119)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Max Krummenacher
8650a98b27 perf: add asm include required for v6.9+
Kernel commit 9eea8fafe33e ("libbpf: fix __arg_ctx type enforcement for
perf_event programs") added with 6.9-rc1 tools/include/uapi/asm/bpf_perf_event.h
which for arc, arm64, loongarch, riscv and s390 includes headers from
the arch/${ARCH}/... directories.

Which results in:

  ERROR: perf-1.0-r0 do_compile: oe_runmake failed
  | In file included from 1.0/perf-1.0/tools/include/uapi/linux/bpf_perf_event.h:11,
  |                  from libbpf.c:36:
  | perf/1.0/perf-1.0/tools/include/uapi/asm/bpf_perf_event.h:2:10: fatal error: ../../arch/arm64/include/uapi/asm/bpf_perf_event.h: No such file or directory
  |     2 | #include "../../arch/arm64/include/uapi/asm/bpf_perf_event.h"
  |       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We copy the uapi/asm directory to make sure the header file is
present.

(From OE-Core rev: d92e04c1cebd7d29a767d5862b713fa97d3e5d8e)

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Jon Mason
2a8994a58c acpica: update to 20240322 release
Update acpica to the latest version, comprised of the following commits:

	170fc3076a86 Update changes.txt for new ACPICA release 20240322
	718374cd1bc2 Update acpixf.h for new ACPICA release 20240322
	d0349632b625 Update osunixxf.c license header from 2023 to 2024
	c929bc0d5028 Update osunixmap.c license header from 2023 to 2024
	78c34e3738bd Update osunixdir.c license header from 2023 to 2024
	193a3dda90e2 Update oslinuxtbl.c license header from 2023 to 2024
	edaf61c8a97d Update oszephyr.c license header from 2023 to 2024
	1c5331ede7ec Update osgendbg.c license header from 2015 to 2024
	ab10380db037 Update osbsdtbl.c license header from 2023 to 2024
	815db2de4317 Update osefixf.c license header from 2023 to 2024
	a4dab90c90a4 Update osefitbl.c license header from 2023 to 2024
	4f9205ae4283 Update oseficlib.c license header from 2023 to 2024
	68bc01cec3b9 Update efihello.c license header from 2023 to 2024
	f71b9942deeb Update acdragonfly.h license header from 2003 to 2024
	74fb08369867 Update acgetline.c license header from 2023 to 2024
	c18edfb1abfb Update the copyright year in the license header from 2023 to 2024
	d58f24933d2f Get rid of MSVC warnings that arise actually due to GCC's new dangling pointer warning and also tGCC's blindspot to work with nested named structs/unions resulting in breaking of ACPI event-handling
	ba8a36b5c734 events/evgpeinit: don't forget to increment registered GPE count
	8affc87afd28 events/evxfgpe: correctly clear GPE_AUTO_ENABLED in AcpiSetupGpeForWake
	69f81815f830 Fix Capabilities[1024] mess
	3e89d40e19fc Update actbl2.h to get rid of the MSVC error C2233
	a0ad1ed5105f Fix CXL 3.0 structure (RDPAS) in the CEDT table
	9061cd9aa131 ACPICA: debugger: check status of AcpiEvaluateObject in AcpiDbWalkForFields
	b9423c1d35b0 SRAT: Add dump and compiler support for RINTC affinity structure
	93caddbf2f62 SRAT: Add RISC-V RINTC affinity structure
	9788e0dc955b Modify ACPI_OBJECT_COMMON_HEADER
	a6a236c44c7d Fix spelling and typos: Clean up the fix for Issue #900
	b6b38edb0c18 Clean up the fix for Issue #900
	8f789f356fb5 tests/common: use CopyObject instead of Store for NRMT
	bce7c55e99a0 acgcc: Fix C++ issue with ACPI_FLEX_ARRAY
	e3afd8e17bc8 MADT: Add new MADT GICC/GICR/ITS non-coherent flags handling
	453a5f675677 MADT: Add GICC online capable bit handling
	6cd47047aca6 Fix various spelling mistakes in text files and code comments
	31a16a32e7f3 acpisrc: Add identifiers for the NHLT table
	32260f5ce519 NHLT: Reintroduce types the table consists of
	6ab5a3bb1608 AdDisassemblerHeader: omit timestamp for deterministic output
	471de8b63a98 Fix build indeterminism for asm compiler header.
	50aec3ad9364 os_specific: zephyr: update AcpiOsGetTimer with arch specific timer
	10ae1038e51e osal: zephyr: Fix write access for mapped memory
	3944ce4dd104 osal: zephyr: Fix AcpiOsPrintf implementation
	a97db76b5f1c Fix issue #896
	f5910dd1ab60 Attempt 1 to fix issue #900
	c581606cf49b ACPI 6.5: RAS2: Add support for RAS2 table
	673fc21311ff Add port definitions for CDAT SSLBIS
	9c5649bd2c65 dmtbdump2: remove redundant failure check on Status
	544938c98a7a dmtbdump: remove duplicated code for both paths of an if statement
	0c7379eae2a0 NHLT: Drop preliminary support
	7b10fafca61f Revert "NHLT: Declare device configuration types"
	0333c2af1317 os_specific: zephyr: add generic platform support
	2872257aab53 Fix segfault when error-checking mixed table types
	c7171588a9f6 actbl1.h: Add EINJ CXL error types
	da740d8d27ff Get rid of // style comments
	75635cb363c6 NHLT: Declare device configuration types
	bbd7aee285ca dmtbinfo2.c: RISC-V: Remove redundant Flags print

License-Update: copyright years

(From OE-Core rev: 6059f8eb8097079142bb35fe46c55f3b6e68d1fc)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Jon Mason
c697522352 acpica: use github for SRC_URI
Github is now the location of the ACPICA source code, per
https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/download.html
Update to this location.  Also, this allows for devtool check for new
versions (in theory), and allows for an easier collection of the
changelog when updating versions.

Using the SRCREV SHA that matches the tarball release.  So, this should
match what is currently being used.

(From OE-Core rev: 7122db6d368170a6a428f3028a221e4036114d68)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 23:33:32 +01:00
Chen Qi
87aed498b9 ovmf: set CVE_STATUS for a few CVEs
For all those CVE-2019-xxxxx CVEs, following the links in NVD, we
can see they have all been fixed.

For CVE-2014-4859 and CVE-2014-4860, there's no useful links in NVD,
but according to the following two links, they have also been fixed.

  https://security-tracker.debian.org/tracker/CVE-2014-4859
  https://security-tracker.debian.org/tracker/CVE-2014-4860

(From OE-Core rev: 62f1e5d1bb8df17aaa14265a7acf60e5b44b53b5)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 17:35:35 +01:00
Jörg Sommer
c0b4eff954 kernel-dev: join mkdir commands with -p
To make it more obvious which directories are needed, pass only these to
*mkdir* and use the option `-p` to create the missing parents.

(From yocto-docs rev: 92806d2ab1f909eef9ccc532958a7ced6262b9b0)

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Michael Opdenacker
88f04994ef migration-guides: add missing opening tag colon
As reported by "make sphinx-lint"

(From yocto-docs rev: 7e8d8d6d47da61457798e90b1d53f3082fe76668)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Michael Opdenacker
e426fd7f86 manuals: fix incorrect double backticks
As reported by "make sphinx-lint"

(From yocto-docs rev: 1601bf2d294c3a8e7c4c654539c8a4da3ed054d0)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Michael Opdenacker
fed404fca0 manuals: fix trailing spaces
Fixing errors reported by "make sphinx-lint"

(From yocto-docs rev: ef6b650c31c4320314564bb85a45eebde3fd98c1)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Michael Opdenacker
ae1b8c6079 manuals: add initial sphinx-lint support
Makes it possible to catch errors not reported by sphinx,
such as idle spaces. After customization, this should be used
to enforce our syntax conventions, such as two spaces after a "-"
character to introduce a list item.

Just run "make sphinx-lint".

(From yocto-docs rev: 9e1aeeddca06cb7d65631010ba0eebdcd8ecf9ee)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Joao Marcos Costa
6981712250 release-notes updates for 5.0
List systemd changes
Add PACKAGECONFIG-related changes, as well as systemd-boot-native, to
'Miscellaneous changes section'.
Mention the licensing changes in systemd and libsystemd.

Add changes to wic
Summarize changes in 'wic Image Creator enhancements' item.

Add Go language upgrade
There were multiple bumps between Scarthgap and Nanbield, but overall
the version was upgraded from 1.20.10 (in Nanbield) to 1.22.1 (in Scarthgap).
Mention the new class 'go-vendor' in 'Miscellaneous changes'.

Add create_go.py to script changes
Mention this new script, at recipetool, in 'Utility script changes'.

(From yocto-docs rev: 3e24a1cf2f2089beedad11b91fc11b8b402caf87)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Joao Marcos Costa
6e147fabdd migration updates for 5.0
List removed recipes
Fill the 'Removed recipes' section for the upcoming release 5.0

Leave some sections empty
Only mention that no classes were removed and no variables were removed in the
upcoming release 5.0.

List systemd changes
Mention the nss-resolve related changes.

Add Go language changes

List removed variables
Fill the 'Removed variables' section for the upcoming release 5.0

Add QEMU changes
Add Miscellaneous changes

(From yocto-docs rev: cbc0b6fa333984c0c49f3c94daffd496815b5d68)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Joao Marcos Costa
d72ace8e5a classes: document new go-vendor class
A reference to this class in the release notes will be added in a
follow-up commit.

(From yocto-docs rev: bfd38ad1056ded01a25acfa37e89302df2290ddf)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Lee Chee Yang
d357a08fb1 migration-guides: add release notes for 4.3.4
(From yocto-docs rev: 26a94025d4ce445495e83565b4d53bda5b7aeef6)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Michael Opdenacker
54e4bc1c91 manuals: fix duplicate "stylecheck" target
(From yocto-docs rev: f19e4231b1982f97ffd210b76978404fe1f2893b)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Quentin Schulz
4de1b38922 manuals: refer to new yocto-patches mailing list wherever appropriate
There's a new yocto-patches mailing list available for all layers that
do not have their own mailing list.

c.f. https://lists.yoctoproject.org/g/yocto/topic/105197684

Cc: Quentin Schulz <foss+yocto@0leil.net>
(From yocto-docs rev: ac512f76b93a20507a6835ddafa954b4ae45e268)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Quentin Schulz
e802b06490 docs: conf.py: properly escape backslashes for latex_elements
There are some syntax warnings returned by Python:
"""
yocto-docs/documentation/conf.py:162: SyntaxWarning: invalid escape sequence '\P'
  'passoptionstopackages': '\PassOptionsToPackage{bookmarksdepth=5}{hyperref}',
yocto-docs/documentation/conf.py:163: SyntaxWarning: invalid escape sequence '\s'
  'preamble': '\setcounter{tocdepth}{2}',
"""

Backslashes must be doubled in Python string literals to avoid
interpretation as escape sequence, c.f.
https://www.sphinx-doc.org/en/master/latex.html#module-latex.

Cc: Quentin Schulz <foss+yocto@0leil.net>
(From yocto-docs rev: a78d9bde7f90f860aa969b7d8e47350de9106183)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Lee Chee Yang
251b5f7a06 release-notes-4.0.17: reorder CVEs
reorder CVEs from alphabetical order to numerical order, align it
with text based release notes.

(From yocto-docs rev: da670cfe7c22ece8925cb620f52832cc1c34e736)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 14:36:38 +01:00
Alexander Kanavin
282e464d7d ovmf: update 202308 -> 202402
RP: The upgrade covers these security issues:
CVE-2022-36763
CVE-2022-36764
CVE-2022-36765
CVE-2023-45229
CVE-2023-45230
CVE-2023-45231
CVE-2023-45232
CVE-2023-45233
CVE-2023-45234
CVE-2023-45235
CVE-2023-45236
CVE-2023-45237

(From OE-Core rev: 46763f78344547a3126b536695077c9e7e60c9d6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 12:55:21 +01:00
Chen Qi
118faea62c ovmf: set CVE_STATUS for CVE-2014-8271
CVE-2014-8271 has an unusual versioning, svn_16280, which breaks
the version comparison and gives us warning like below:

  Failed to compare 202308 < svn_16280 for CVE-2014-8271

The fix has been there since 2014, our current version has included
the fix.

(From OE-Core rev: fdd74b3f3e3a8a07a6107e6ef07198ebe63d2bc8)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-08 11:01:09 +01:00
Jose Quaresma
110ee701b3 sstatesig: fix netrc.NetrcParseError exception
Looks like sometimes the e.filename and the e.lineno is not properly set by the netrc
and this can cause TypeError.

| File "/poky/meta/lib/oe/sstatesig.py", line 342, in init_rundepcheck
|     bb.warn("Error parsing %s:%d: %s" % (e.filename, e.lineno, e.msg))
|             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| TypeError: %d format: a real number is required, not NoneType

(From OE-Core rev: 486ed69939f1b7572f121960c2dde246032686e7)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 21:50:24 +01:00
Alexandre Truong
ab6d3e3d64 oeqa/selftest/devtool: fix test_devtool_add_git_style2
The problem is the following:
AssertionError: 'gitsm://git@github.com/ARMmbed/mbedtls.git;protocol=https;branch=master' != 'git://git@github.com/ARMmbed/mbedtls.git;protocol=https;branch=master'

Mbedlts made changes to their repository, adding a sub-module, thus the
assert triggers an error with the url:
git://git@github.com/ARMmbed/mbedtls.git;protocol=https;branch=master

456a54da8e
was the upstream change.

To fix the issue, the url has been changed to:
gitsm://git@github.com/ARMmbed/mbedtls.git;protocol=https;branch=master

(From OE-Core rev: 9ac737fbe05c85ec8333b396ce2f89de6654916f)

Signed-off-by: Alexandre Truong <alexandre.truong@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 21:50:24 +01:00
Jose Quaresma
797c243ecc go: upgrade 1.22.1 -> 1.22.2
Include fixes for CVE-2023-45288

Upgrade to latest 1.22.x release [1]:

$ git --no-pager log --oneline go1.22.1..go1.22.2
dddf0ae40f (tag: go1.22.2) [release-branch.go1.22] go1.22.2
e55d7cf843 [release-branch.go1.22] net/http: update bundled golang.org/x/net/http2
4edf4bb2c6 [release-branch.go1.22] all: update golang.org/x/net
2c6d106541 [release-branch.go1.22] cmd/compile: don't assume args are always zero-extended
46587483e3 [release-branch.go1.22] cmd/compile: fix sign/zero-extension removal
0a5b33a883 [release-branch.go1.22] encoding/gob: make x509.Certificate marshalable again
0c53f93faa [release-branch.go1.22] cmd/go/internal/modfetch: pass "-c" arguments to git before subcommands
abfd578156 [release-branch.go1.22] runtime: fix EvFrequency event value on Windows in the new tracer
7fb7acb82d [release-branch.go1.22] cmd/link/internal/riscv64: generate local text symbols for R_RISCV_CALL
e23707b59c [release-branch.go1.22] go/types, types2: handle Alias types in substitution
3826650c99 [release-branch.go1.22] cmd/compile: fix early deadcode with label statement
e71b0b1fee [release-branch.go1.22] cmd/compile: fix copying SSA-able variables optimization
9508eae5d1 [release-branch.go1.22] cmd/internal/obj/ppc64: don't modify runtime.elf_* symbols
35b1a146d9 [release-branch.go1.22] cmd/go: respect -coverpkg for unselected no-test packages

[1] https://github.com/golang/go/compare/go1.22.1...go1.22.2

(From OE-Core rev: 348e676046159b00a6f06f68336aa5443919c139)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 21:50:24 +01:00
Jose Quaresma
8969055428 go: keep the patches in order
drop the old version no more used 0007-exec.go-do-not-write-linker-flags-into-buildids.patch
that was replaced by the 0001-exec.go-filter-out-build-specific-paths-from-linker-.patch
renamed now to 0007-exec.go-filter-out-build-specific-paths-from-linker-.patch

(From OE-Core rev: 81b35091e4561b96212a1eedf0e579a8c3aa2b7d)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 21:50:24 +01:00
Enrico Jörns
ad81041a33 perf: fix TMPDIR contamination for recent mainline kernels
The sed command

  sed -i -e "s,prefix='\$(DESTDIR_SQ)/usr'$,prefix='\$(DESTDIR_SQ)/usr' --install-lib='\$(PYTHON_SITEPACKAGES_DIR)' --root='\$(DESTDIR)',g" \
    ${S}/tools/perf/Makefile.perf

that was introduced by oe-core commit 43f96506 ("perf: fix the
install-python_ext") [1] and adapted with oe-core commit 138673f8
("perf: Fix reproducibility issues with 5.19 onwards") [2], patches the
'setup.py install' arguments for the 'install-python_ext' Make target
similar to what the setuptools3_legacy.bbclass provides as
${SETUPTOOLS_INSTALL_ARGS}.

However, this only applies to the linux-yocto kernel patched with
linux-yocto commit 3fd60d4d ("perf: change --root to --prefix for python
install") [3] that was introduced in 2012 and never went upstream in any
way.

For a recent mainline kernel instead, we will run into host path
contamination QA warnings like:

| WARNING: perf-1.0-r0 do_package_qa: QA Issue: File /usr/lib/python3.11/site-packages/perf-0.1-py3.11-linux-x86_64.egg/EGG-INFO/SOURCES.txt in package perf-python contains reference to TMPDIR
| File /usr/lib/python3.11/site-packages/perf-0.1-py3.11-linux-x86_64.egg/__pycache__/perf.cpython-311.pyc in package perf-python contains reference to TMPDIR [buildpaths]

To fix this, this commit introduces a replacement for Makefile.perf that
results in the exact same setup.py install args as for the linux-yocto
kernel.

In oe-core commit c849ed0c ("perf: fix the install-python_ext on
upstream kernel") [4], the sed that was originally meant for 'Makefile'
only, was extended to 'Makefile*' (and thus including) Makefile.perf to
fix similar issues.

Since this would the affect the just-introduced Makefile.perf-specific
sed, the scope of this extra sed was limited back to 'Makefile' only.
The line could also be entirely removed maybe, since it seems to be for
very old kernels only.

In general, I would tend to argue that the above-mentioned linux-yocto
patch for  should be dropped if it requires additional sed-based
patching anyway.

[1] https://git.openembedded.org/openembedded-core/commit/?id=43f965061f8af4c4537e9d9c0257253e613a616d
[2] https://git.openembedded.org/openembedded-core/commit/?id=138673f833a72c636a7fa185089f25dda350dc54
[3] https://git.yoctoproject.org/linux-yocto/commit/?id=3fd60d4d6f0095b03ff9b7b1499a049c580e7302
[4] https://git.openembedded.org/openembedded-core/commit/?id=c849ed0c66a2fb7d91795c421eb4c87b47d03c0d

(From OE-Core rev: e68d97dd605babc3c16815b890a52ea3a3a69965)

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 21:50:24 +01:00
Ryan Eatmon
38f6f3a066 perf: Fix QA error due to most recent kernel
A change in the latest kernel (next), triggers a QA error due to a
missing RDEPENDS on perl for perf-tests.

ERROR: QA Issue: /usr/libexec/perf-core/tests/shell/common/check_no_patterns_found.pl contained in package perf-tests requires /usr/bin/perl, but no providers found in RDEPENDS:perf-tests? [file-rdeps]

(From OE-Core rev: a85e8eb558acbfd77fe83ad150f3dab2f240b094)

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>
2024-04-04 21:50:24 +01:00
Bruce Ashfield
acdb1bb14e lttng-modules: update to v2.13.12
We drop our previously backported patches for v6.8 kernels as they are
part of the 2.13.12 release of lttng and we add backports for v6.9+
kernels.

Bumping lttng-modules to version v2.13.12-7-g52eb2ee9, which comprises the following commits:

    52eb2ee9 Fix: dev_base_lock removed in linux 6.9-rc1
    175fe77c Fix: mm_compaction_migratepages changed in linux 6.9-rc1
    303434ab Fix: ASoC add component to set_bias_level events in linux 6.9-rc1
    88c4e0fe Fix: ASoC snd_doc_dapm on linux 6.9-rc1
    578ab207 Fix: build kvm probe on EL 8.4+
    057ad399 Fix: support ext4_journal_start on EL 8.4+
    3ca21738 Fix: correct RHEL range for kmem_cache_free define
    4ba4f0ec Version 2.13.12
    1124749b docs: Add supported versions and fix-backport policy
    c302cf1d docs: Add links to project resources
    d6b75831 Fix: Correct minimum version in jbd2 SLE kernel range
    9e6736d6 Fix: Handle recent SLE major version codes
    5d331562 Fix: build on sles15sp4
    f6800492 Compile fixes for RHEL 9.3 kernels
    d988f04a Fix: ext4_discard_preallocations changed in linux 6.8.0-rc3
    616c60b9 Fix: btrfs_get_extent flags and compress_type changed in linux 6.8.0-rc1
    8d195927 Fix: btrfs_chunk tracepoints changed in linux 6.8.0-rc1
    7e8d89d1 Fix: strlcpy removed in linux 6.8.0-rc1
    f4c1678d Fix: timer_start changed in linux 6.8.0-rc1
    60a1e809 Fix: sched_stat_runtime changed in linux 6.8.0-rc1

(From OE-Core rev: f8be1a87f1a7e7de714d19a6b3afe59e6f177e7d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Bruce Ashfield
0447fc142b linux-yocto-dev: bump to v6.9
6.9-rc2 is available, so we bump linux-yocto-dev to track.

(From OE-Core rev: dae2667eb51ac15e6b5e965bc87fe01224256105)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Harish Sadineni
5a433a80f3 binutils: gprofng - change use of bignum to use of bignint
In SDK, The "x86_64-pokysdk-linux-gp-display-html" fails with below error while genearting profiling html reports from test experiment file (eg., test.1.er)
Error: Undefined subroutine &bigint::hex called at .../sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-pokysdk-linux-gp-display-html line 4059, <MAP_XML> line 1.

Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]

(From OE-Core rev: b1f08a3d6a5e91619fb448e067a3d542eb130fcc)

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Baruch Siach
0c9d83138e oeqa/selftest/overlayfs: test read-only rootfs
Use the read-only squashfs filesystem to test the read-only case.

(From OE-Core rev: 1a61da196f014dc34a998d3e46f03abc79ebc84d)

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Martin Jansa
61b7acdb76 pixman: explicitly disable openmp in native builds
* on some hosts (e.g. on my gentoo after recent update) it detects OpenMP in do_configure:
  Run-time dependency OpenMP found: YES 4.5
  but then fails in do_compile as shown in:
  http://errors.yoctoproject.org/Errors/Details/754632/

  gcc  -o test/fetch-test test/fetch-test.p/fetch-test.c.o -LTOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/recipe-sysroot-native/usr/lib -LTOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/recipe-sysroot-native/lib -Wl,--as-needed -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,-rpath-link,TOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/recipe-sysroot-native/usr/lib -Wl,-rpath-link,TOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/recipe-sysroot-native/lib -Wl,-rpath,TOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/recipe-sysroot-native/usr/lib -Wl,-rpath,TOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/recipe-sysroot-native/lib -Wl,-O1 '-Wl,-rpath,$ORIGIN/../pixman' -Wl,-rpath-link,TOPDIR/tmp-glibc/work/x86_64-linux/pixman-native/0.42.2/build/pixman -Wl,--start-group test/libtestutils.a pixman/libpixman-1.so.0.42.2 -pthread -fopenmp -fopenmp -lm -Wl,--end-group
  gcc: fatal error: cannot read spec file ‘libgomp.spec’: No such file or directory
  compilation terminated.

  it's only used in tests, so should be safe to disable for native builds

* the check in meson uses /usr/include/omp.h which is provided by libomp
  even when openmp support is disabled in native gcc in gentoo this happned
  after switching from 17.1 profile to 23.0 which doesn't include openmp
  USE flag by default, if you later run depclean it will uninstall libomp
  as well which will fix this conflict in meson's OpenMP autodetection

(From OE-Core rev: b64d4e30bbd972d0665cc310bc0fdde3b49f0367)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Bartosz Golaszewski
1460548764 linux-firmware: update to 20240312
Update the linux-firmware recipe to the most recent upstream tag.

(From OE-Core rev: 346ba6b23be30ae82205aee2ccc8618a6c6b5006)

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Jörg Sommer
f785a323ae autotools: update link in comment for cross compiling
(From OE-Core rev: bc0a28203334a5925a8f3ea2b955a4cdad87c4c9)

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Kevin Hao
0cd45e051c image-live.bbclass: Adjust the default value for INITRD_LIVE
The ${INITRAMFS_FSTYPES} may contains multi filesystem types,
such as "cpio.gz cpio.xz". So it can't be used directly in setting
of the default INITRD_LIVE. We choose the first filesystem type
in ${INITRAMFS_FSTYPES} for the default INITRD_LIVE.

(From OE-Core rev: aa1a55a90ea86349734e2b62288d54863e01c7b8)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Sourav Kumar Pramanik
905b41d6bf libseccomp: Add back in PTESTS_SLOW list
Enable libseccomp-ptest in PTESTS_SLOW as
all tests are passing now.

(From OE-Core rev: af3436a6f66262610e10444c7c97a39d20a5907f)

Signed-off-by: Sourav Pramanik <pramanik.souravkumar@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Markus Volk
11651df0f6 epiphany: update 45.3 -> 46.0
46.0 - March 15, 2024
=====================

 * Improve keyboard navigation of address bar dropdown (#1726, Markus Göllnitz)
 * Add "Send Link by Email..." to context menu for links (#2037, Leon Marz)
 * Use selected text when middle clicking on New Tab button (#2159)

46.rc - February 29, 2024
===========================

 * Close security popover after selection (#2215)
 * Focus location entry on search hotkey (#2278)
 * Close page menu popover on print, search and fullscreen actions (#2283)
 * Forward key events directly to web view (#1915) (#2173)
 * Updated translations

46.beta - February 10, 2024
===========================

 * Fix a crash (#2021)
 * Allow closing pinned tabs (#2264)
 * Adjust labels to improve HIG compliance (!1431, Bart Gravendeel)
 * Support PKCS #11 smart card authentication (!1433)
 * Updated translations

46.alpha - January 5, 2024
==========================

 * Use web app manifest to get better app name and icon (#931)
 * Prevent websites from using certain Epiphany internal APIs (#1664)
 * Fix poor Firefox Sync error message when gnome-keyring is not installed (#1755)
 * Reduce adblock filter update interval on metered connections (#2152)
 * Rename Firefox Account to Mozilla Account (#2231)
 * Hide various context menu items when text is selected (#2258)
 * Remove Google Safe Browsing support due to terms of service changes (!335)
 * Hide developer context menu actions by default (!1392, Vitaly Dyachkov)
 * Update to highlight.js 11.9.0 (!1394)
 * Use AdwSpinRow in preferences dialog (Pig, !1411)
 * Many improvements to appstream metainfo (Sabri Ünal, !1398, !1399, !1414, !1422, !1425)
 * Updated translations

(From OE-Core rev: c7384afa31f76e9e547a1a0af819707b90699e5b)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Markus Volk
f9ed8b9fa1 gtk+3: disable wayland without opengl
Wayland backend requires epoxy so it will pull in a requirement for opengl
While doing some tests in building old stuff like matchbox-terminal with
vte 0.76, I encountered an issue with building matchbox-terminal without
opengl in DISTRO_FEATURES.

Explicitly stating that the Wayland backend requires opengl fixes this problem
and allows matchbox-terminal to be used without.

(From OE-Core rev: 35a7e970bfba02fa01ebcf03169d2ddad90ad419)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Yash Shinde
8d27d8ff7c glibc: Skip 2 qemu tests that can hang in oe-selftest
qemumips and qemuppc were leaving stale processes behind after
running glibc oe-selftest. During analysis, it was found that
it was due to "tst-scm_rights" and "tst-scm_rights-time64" tests.
Disable them so that there are no stale processes left behind.

[YOCTO #15423]
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15423

(From OE-Core rev: b3f7b19b6d21368bac00a33ea208cc0379ce4543)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Markus Volk
b041bd9eab webkitgtk: update 2.42.5 -> 2.44.0
- add a PACKAGECONFIG for libbacktrace to avoid:
  | -- Could NOT find LibBacktrace (missing: LIBBACKTRACE_INCLUDE_DIR LIBBACKTRACE_LIBRARY)
  | CMake Error at Source/cmake/OptionsGTK.cmake:425 (message):
  |   libbacktrace is required for USE_LIBBACKTRACE

- while at it also add a PACKAGECONFIG for gamepad

- remove submitted patch. Issue seems to be fixed. Not entirely
  sure about that, but there has been rework:
  [https://bugs.webkit.org/show_bug.cgi?id=267349]
  I also did a test build with oe-core/poky for qemuarm.
  It completed without error

- There is an issue with creating the json files if
  CMAKE_EXPORT_COMPILE_COMMANDS is enabled. Disable this
  for now to fix the build:
  FAILED: CMakeFiles/RewriteCompileCommands DeveloperTools/compile_commands.json /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/build/CMakeFiles/RewriteCompileCommands /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/build/DeveloperTools/compile_commands.json
  cd /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/build && /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/recipe-sysroot-native/usr/bin/python3-native/python3 /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/webkitgtk-2.44.0/Tools/Scripts/rewrite-compile-commands /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/build/compile_commands.json /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/build/DeveloperTools/compile_commands.json /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/webkitgtk-2.44.0 /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/build
  /home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/recipe-sysroot-native/usr/bin/python3-native/python3: can't open file '/home/flk/poky/build-hypr/tmp/work/corei7-64-poky-linux/webkitgtk/2.44.0/webkitgtk-2.44.0/Tools/Scripts/rewrite-compile-commands': [Errno 2] No such file or directory

- Add a patch to fix webassembly for riscv64

- Add a backport patch to fix the build for 32bit architectures

================
WebKitGTK 2.44.0
================

What's new in WebKitGTK 2.44.0?

  - Fix connection of UI and web process accessibility tree in GTK4.
  - Add BubblewrapLauncher sandbox directory for the gstreamer user registry cache directory.
  - Fix bug causing preferred language to not be passed to NetworkProcess if set in WebContext before creating WebView.
  - Do not use real time priority for the display link thread.
  - Use a shorter web process cache lifetime.
  - Fix several crashes and rendering issues.
  - Translation updates: German, Polish, Swedish, Turkish.

================
WebKitGTK 2.43.4
================

What's new in WebKitGTK 2.43.4?

  - Remove key event reinjection in GTK4 to make keyboard shortcuts work in web sites.
  - Use the new GTK API to create a GdkTexture from a DMA-BUF buffer when available.
  - Fix rendering when GTK is using the vulkan renderer.
  - Fix gamepads detection by correctly handling focused window in GTK4.
  - Fix rendering after history navigation.
  - Write bwrapinfo.json to disk for xdg-desktop-portal.
  - Fixed several memory leaks in media backend.
  - Fix several crashes and rendering issues.

================
WebKitGTK 2.43.3
================

What's new in WebKitGTK 2.43.3?

  - Show vblank monitor information in webkit://gpu.
  - Fallback to timer based vblank monitor if drmWaitVBlank fails.
  - Fix several memory leaks in media backend.
  - Fix several crashes and rendering issues.

================
WebKitGTK 2.43.2
================

What's new in WebKitGTK 2.43.2?

  - Remove the X11 and WPE renderers.
  - Release unused buffers when the view is hidden.
  - Fix flickering while playing videos with DMA-BUF sink.
  - Do not special case the "sans" font family name.
  - Fix webkit_web_context_allow_tls_certificate_for_host() for IPv6 URIs produced by SoupURI.
  - Fix several crashes and rendering issues.

================
WebKitGTK 2.43.1
================

What's new in WebKitGTK 2.43.1?

  - Improve vblank synchronization when rendering.
  - Improve DMA-BUF buffers handling for video frames.
  - Use the buffer format preferred by the driver in DMA-BUF renderer.
  - Do not block the compositing thread waiting for rendering threads.
  - Improve performance when scaling images in a canvas.
  - Fix several crashes and rendering

(From OE-Core rev: 7b96a7e433eb6b85c35dd6a36a12ad55d2e6a108)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Simone Weiß
1885588807 gnutls: upgrade 3.8.3 -> 3.8.4
- Upgrade gnutls SRCREV for new version
- Refresh patches for 3.8.4

Changelog:
==========

** libgnutls: RSA-OAEP encryption scheme is now supported
   To use it with an unrestricted RSA private key, one would need to
   initialize a gnutls_x509_spki_t object with necessary parameters
   for RSA-OAEP and attach it to the private key. It is also possible
   to import restricted private keys if they are stored in PKCS#8
   format.

** libgnutls: Fix side-channel in the deterministic ECDSA.
   Reported by George Pantelakis (#1516).
   [GNUTLS-SA-2023-12-04, CVSS: medium] [CVE-2024-28834]

** libgnutls: Fixed a bug where certtool crashed when verifying a certificate
   chain with more than 16 certificates. Reported by William Woodruff (#1525)
   and yixiangzhike (#1527).
   [GNUTLS-SA-2024-01-23, CVSS: medium] [CVE-2024-28835]

** libgnutls: Compression libraries are now loaded dynamically as needed
   instead of all being loaded during gnutls library initialization.
   As a result, the library initialization should be faster.

** build: The gnutls library can now be linked with the static library
   of GMP.  Note that in order for this to work libgmp.a needs to be
   compiled with -fPIC and libhogweed in Nettle also has to be linked
   to the static library of GMP.  This can be used to prevent custom
   memory allocators from being overriden by other applications.

** API and ABI modifications:
gnutls_x509_spki_get_rsa_oaep_params: New function.
gnutls_x509_spki_set_rsa_oaep_params: New function.
GNUTLS_PK_RSA_OAEP: New enum member of gnutls_pk_algorithm_t.

(From OE-Core rev: feaa2b8065c7a02b52aa55954f05a3ee66260305)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Peter Kjellerstedt
5b486cd1dc util-linux: Set the license for util-linux-fcntl-lock to MIT
This avoids problems if BSD-4-Clause is in INCOMPATIBLE_LICENSE since
util-linux-fcntl-lock is now a dependency of run-postinsts.

(From OE-Core rev: c2c7e1624e8080fb8fa1f14d252f20e85b232eb7)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Xiangyu Chen
f938563eea lttng-tools: fix rotation-destroy-flush test fails if no kernel module present
lttng-tools supports testing the userspace application without kernel
module since oe-core commit e0d8494b, this is a fix that testcase
rotation-destroy-flush report LTTNG_ABORT_ON_ERROR when no lttng kernel
module present.

Fixes: e0d8494b (lttng-tools: skip kernel tests if no kernel modules present)

(From OE-Core rev: 34b6554f9f889e84ab6004c4af87e0714b8263c4)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Oleh Matiusha
e6da241f29 gmp: improve reproducibility
nativesdk-gmp package contains host references in output packages.
remove them.

(From OE-Core rev: 7b072b46bd0d0442066189ecf098b56e50ea77b1)

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Oleh Matiusha
cabeed4e6d curl: improve reproducibility
nativesdk-curl package contains host references in output files.
remove them.

(From OE-Core rev: 30f4471ddced07929524b12ee5567521d51de033)

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Oleh Matiusha
e96918f49e bash: improve reproducibility
nativesdk-bash package contains host references in output packages.
remove them.

(From OE-Core rev: 9d749f0a67ce72952e7a731fe5081ae5f432dfdb)

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Chen Qi
fa6c4f014a ovmf: set CVE_PRODUCT and CVE_VERSION
Set CVE_PRODUCT and CVE_VERSION for ovmf. NVD uses 'edk2' and the
version should be the date only. Here's an example:
https://nvd.nist.gov/vuln/detail/CVE-2023-45232

(From OE-Core rev: 7d11e4d55c9de23edbf5ba21d7ee007bab20c38a)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00
Richard Purdie
30d88a2043 oeqa/sstatetests: Fix race issue
Under some load conditions, the result event can come back before the
command complete event. If that happens, the code would hang
indefinitely.

Rework the code to wait for both events and avoid the hang.

(From OE-Core rev: 8cfc94a4404c54bc73eab9f98d9da1f84c2135ad)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-31 06:57:01 +01:00
lixiaoyong
66f2f710e6 oe/package: enhance objdump command call with llvm
Replace `${HOST_PREFIX}objdump` with `${OBJDUMP}`.

When utilizing llvm for compiling packages, the invocation of GNU objdump
will consistently occur during package precess. This behavior is unfriendly
to llvm. So prefer `${OBJDUMP}` over `${HOST_PREFIX}objdump`.

(From OE-Core rev: fac4d33041d8feb041e617b9b16689c4d3a522cb)

Signed-off-by: lixiaoyong <lixiaoyong19@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
lixiaoyong
f5e084ede6 utils: enhance readelf command call with llvm
Replace `${HOST_PREFIX}readelf` with `${READELF}`.

When utilizing llvm for compiling packages, the invocation of GNU readelf
will consistently occur if the oe_soinstall and oe_libinstall functions,
which are defined in utils.bbclass, are called. This behavior is unfriendly
to llvm. So prefer `${READELF}` over `${HOST_PREFIX}readelf`.

(From OE-Core rev: daecdd577213da0c045e45c47e7acbd279956d41)

Signed-off-by: lixiaoyong <lixiaoyong19@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Khem Raj
8203f61959 mesa: Drop LLVM-17 patch
This patch is no longer needed with llvm/clang 18+

(From OE-Core rev: 22174e5b64cc46e3e5b9f45d0b7796e92f20a48c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Markus Volk
c152a1e25c systemd: disable mdns feature in resolved for zeroconf
DISTRO_FEATURE zeroconf installs avahi. If additionally resolved mdns
implementation is running they will fight each other:

Mar 29 13:31:51 intel-corei7-64 avahi-daemon[752]: *** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
Mar 29 13:31:51 intel-corei7-64 avahi-daemon[752]: *** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***

(From OE-Core rev: 8509edeafea8e62e1b9ffe76b33999447f739b20)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Khem Raj
135c4f7b56 readline: Apply patches from readline-8.2-patches
These patches are submitted/backported to 8.2 release
and address issues reported by different distros.

(From OE-Core rev: c74048f5ff2e90b06c7a6d5866db4b94a6f1539d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Ross Burton
d5d10db429 curl: fix quoting when disabling flaky tests
The list of test labels to disable shouldn't be quoted, and this meant
that tests were running when they should not.

[ YOCTO #15268 ]

(From OE-Core rev: 97afe73e6fbd4a116ac3bf2178634d7636195e5a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Timon Bergelt
7d2ea09deb populate_sdk_ext.bbclass: only overwirte lsb string if uninative is used
Overwriting the lsb string without inheriting from uninative causes
shared state cache entries to end up in the wrong path where they are
not beeing picked up by the extensible SDK environment.

(From OE-Core rev: 6a4c83919f27f0f552e9b79aed11e3da6791b7e9)

Signed-off-by: Timon Bergelt <timon.bergelt@pm.me>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Enrico Jörns
04eb94b84e cml1: prompt location of updated .config after do_menuconfig()
When modifying the kernel config by invoking '-c menuconfig' manually, a
sensible next step is to persist this changed configuration somewhere.

A way to do this is to copy the generated .config back to the original
config location.

For this purpose, emit a copy+pasteable printout of the saved .config
path similar to what we have for the fragment location in the
'diffconfig' task already.

Example output:

| Changed configuration saved at:
|  /path/to/bsp/build/tmp/work/my-machine-oe-linux/linux-custom/6.6.4/build/.config
| Recompile will be forced

(From OE-Core rev: b104470763b081f040f4fcac564136fc5562f23b)

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Enrico Jörns
356a489345 cml1: remove needless check for write_taint attribute
The 'FIXME' comment itself says to remove this once the minimum bitbake
version has been bumped. This was in 2012.

The function was introduced in bitbake commit f7b55a94 ("bitbake:
bitbake: ensure -f causes dependent tasks to be re-run") and is already
part of bitbake 1.15.3 which is the minimum bitbake version since
'danny'.

Remove the check.

(From OE-Core rev: 035fe46fbf57ca83baf6610482ee7ee83c825a06)

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Changqing Li
319353cd9d dnf: fix Exception handling for class ProcessLock
Yocto based systems will sometimes have log_lock.pid left in target
filesystems.  Users typing 'ls /' will notice it, and will never be
removed.

It happened when log rotate happened, refer [1], since the problem
descripted in patch 0001-lock.py-fix-Exception-handling.patch, file
log_lock.pid will not be removed after dnf exit. For target system,
refer [4], dnf have a solution to remove it. But for OE, refer commit
[2][3], for fix another issue, OE changed log_lock.pid to root dir for
native dnf, so solution in [4] not works for log_lock.pid under "/", so
it will always exist under "/" of target system.

Use patch 0001-lock.py-fix-Exception-handling.patch to fix the problem.

[1] a6d82221ae/dnf/logging.py (L127C31-L127C42)
[2] https://git.openembedded.org/openembedded-core/commit/?id=742a1b71249f4da1c8d8e13e270b0eb6128a3f66
[3] https://git.openembedded.org/openembedded-core/commit/?id=7610f81586bd475f28fd3d89a7350771720c3264
[4] https://github.com/rpm-software-management/dnf/blob/master/etc/tmpfiles.d/dnf.conf

(From OE-Core rev: d86c0e3468504c6ed19e38750abbb8970b5b7691)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Jermain Horsman
9b839a835c bblayers/makesetup.py: Move git utility functions to oe.buildcfg module
This allows other classes to make use of these as well.

Includes a git describe and git toplevel function and functions
to get info for git remotes.

(From OE-Core rev: a04a084b6e513d15cb57ee103c6d6215ce1c75b9)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:25:43 +00:00
Khem Raj
861a703c1a tcl: Forward port skip logic for musl ptests
commit 9d1df0596f overhauled
run-ptest script which did not consider the edits being
done from recipe especially for musl ptests. Bring the skip
editing to follow the new logic in run-ptest

Fixes Failed ptests:
{'tcl': ['unixInit.test']}

(From OE-Core rev: 04a8f73762e86376dcd9dbe452cbc68b9fe83030)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Khem Raj
b7df5bd45d valgrind: Backport fixes from 3.22 branch
These fixes are helping some ptests on musl and 6.6 kernel

(From OE-Core rev: 151dfe7a7bb21cda213ae539f40d17008ad6ff3e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Ross Burton
4a8b005afc openssl: fix crash on aarch64 if BTI is enabled but no Crypto instructions
On aarch64, if the processor doesn't have the Crypto instructions then
OpenSSL will fall back onto the "bit-sliced" assembler routines. When
branch protection (BTI) was enabled in OpenSSL these routines were
missed, so if BTI is available libssl will immediately abort when it
enters this assembler.

Backport a patch submitted upstream to add the required call target
annotations so that BTI doesn't believe the code is being exploited.

(From OE-Core rev: 438a390e8e1811bc2d3820c1cd2b8e099e70064a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Randy MacLeod
b84ae2ad79 gstreamer: upgrade 1.22.10 -> 1.22.11
Changelog:
   https://gstreamer.freedesktop.org/releases/1.22/#1.22.11

Change the Upstream-Status URL for patch:
   0002-ssaparse-enhance-SSA-text-lines-parsing.patch
since the bug tracker moved but the bug is not yet resolved.

"gstreamer 1.22.9 and 1.22.10 contain a regression that cause the audio
output to freeze when muting. this regression has been fixed in 1.22.11"
[YOCTO #15456]

(From OE-Core rev: cad5d53e13093ac2fc6f5ba1d0e26fb16e3d88f7)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Richard Purdie
7c916d8f1b run-postinsts: Add workaround for locking deadlock issue
When run-postinsts is installed, a service is added for system which can run
while the package is still being installed. This calls "opkg configure" and if
package management is still running, it can deadlock and error.

To work around this, call fcntl-lock on the opkg lock file and if the lock
was held, it would wait to obtain it. This wait gives the package management
time to finish the install before the configure can then take the lock and run.

Note the dependency in SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS otherwise we'd see
sstate selftest failures.

Also ensure that if the configure fails, the scripts returns an error. This
applies to opkg and dpkg.

(From OE-Core rev: 96d37df074dc1fe1578c1406235dff7e328b62b7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Richard Purdie
4e6a20efa9 util-linux: Add fcntl-lock
Add a version of flock that uses the fnctl based lockf locking instead of
flock based locks. This allows us to take the same lock that opkg would
use from a shell script. The two different locking mechanisms operate
independently of each other.

Inserting this C file into the util-linux build seems like the easiest/best
place to insert the code. At this point it hasn't been discussed with upstream.

(From OE-Core rev: d2b784110e2c3df8a0a41e4819cf2de9003f9fa3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Richard Purdie
3c7e103af4 util-linux: Add missing MIT license
The MIT license was missing from the license list for util-linux. Add
a patch, submitted to upstream which adds the missing license mentions.

(From OE-Core rev: 24078c0542626f74c93203d17ab4b2bb2f9b5630)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Bruce Ashfield
4333457331 linux-yocto/6.6: update CVE exclusions (6.6.23)
Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 25Feb24
        Date: Sun, 25 Feb 2024 07:03:08 -0500

    ]

(From OE-Core rev: b0d64611c8e31a7dae59172e7e03c09dd2ef584c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Bruce Ashfield
f0034f0d2b linux-yocto/6.6: update to v6.6.23
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    5c7587f69194 Linux 6.6.23
    5ad5dcfd7543 x86/efistub: Don't clear BSS twice in mixed mode
    ae863aa18493 x86/efistub: Clear decompressor BSS in native EFI entrypoint
    31423f464fdd dm-integrity: align the outgoing bio in integrity_recheck
    5cfcea648834 dm io: Support IO priority
    b6dfcdbc8037 selftests: forwarding: Fix ping failure due to short timeout
    62b1f837b15c spi: spi-mt65xx: Fix NULL pointer access in interrupt handler
    79846fdcc548 netfilter: nf_tables: Fix a memory leak in nf_tables_updchain
    16f55acf58e2 net: dsa: mt7530: fix handling of all link-local frames
    25a2f73ee7d1 net: dsa: mt7530: fix link-local frames that ingress vlan filtering ports
    5fcee137dbd9 bpf: report RCU QS in cpumap kthread
    e92971a7ed42 net: report RCU QS on threaded NAPI repolling
    c26190214512 rcu: add a helper to report consolidated flavor QS
    4d37f12707ee netfilter: nf_tables: do not compare internal table flags on updates
    ff9005077141 netfilter: nft_set_pipapo: release elements in clone only from destroy path
    dc29dd00705a octeontx2-af: Use separate handlers for interrupts
    85724ee6e274 octeontx2-pf: Send UP messages to VF only when VF is up.
    b96b278c8213 octeontx2-pf: Use default max_active works instead of one
    1a2ce88ab3a9 octeontx2-pf: Wait till detach_resources msg is complete
    c6354b85fa7c octeontx2: Detect the mbox up or down message via register
    7d8c7bc99a33 devlink: fix port new reply cmd type
    3a9f78b297e0 net/bnx2x: Prevent access to a freed page in page_pool
    338580a7fb9b dm-integrity: fix a memory leak when rechecking the data
    4a73b5ac78eb net: phy: fix phy_read_poll_timeout argument type in genphy_loopback
    3006137ed68a ceph: stop copying to iter at EOF on sync reads
    a4cbcc4c4546 ipv4: raw: Fix sending packets from raw sockets via IPsec tunnels
    0f25725d62d9 hsr: Handle failures in module init
    4a4dffdff9ea rds: introduce acquire/release ordering in acquire/release_in_xmit()
    78739d72f16b wireguard: receive: annotate data-race around receiving_counter.counter
    e142169aca55 virtio: packed: fix unmap leak for indirect desc table
    bf6f4d5d8c6f vdpa/mlx5: Allow CVQ size changes
    cddd85da38b9 vdpa_sim: reset must not run
    296e6678a432 drm: Fix drm_fixp2int_round() making it add 0.5
    720a92c24d4e spi: spi-imx: fix off-by-one in mx51 CPU mode burst length
    5c1e6df309ca net: dsa: mt7530: prevent possible incorrect XTAL frequency selection
    8c1901e75ccc net: veth: do not manipulate GRO when using XDP
    6312d88f9f67 xfrm: Allow UDP encapsulation only in offload modes
    2c02c5059c78 packet: annotate data-races around ignore_outgoing
    cfbb3abadc33 xen/events: increment refcnt only if event channel is refcounted
    99e425032c6e xen/evtchn: avoid WARN() when unbinding an event channel
    f0f52af461df riscv: Fix compilation error with FAST_GUP and rv32
    4cbc5e93bf6e io_uring: fix poll_remove stalled req completion
    943c14ece95e net: ethernet: mtk_eth_soc: fix PPE hanging issue
    1f32abb474c1 net: mediatek: mtk_eth_soc: clear MAC_MCR_FORCE_LINK only when MAC is up
    ff2f90f88d78 nvme: fix reconnection fail due to reserved tag allocation
    dd3ffa27270e net: txgbe: fix clk_name exceed MAX_DEV_ID limits
    39cc316fb3bc hsr: Fix uninit-value access in hsr_get_node()
    aba8659caf88 vmxnet3: Fix missing reserved tailroom
    856baaa100cd tcp: Fix refcnt handling in __inet_hash_connect().
    0b6f39c175ba io_uring: Fix release of pinned pages when __io_uaddr_map fails
    9d47d2e7f82d cpufreq: Fix per-policy boost behavior on SoCs using cpufreq_boost_set_sw()
    fa92366e413f soc: fsl: dpio: fix kcalloc() argument order
    6915b1b28fe5 net/sched: taprio: proper TCA_TAPRIO_TC_ENTRY_INDEX check
    517a2390cd8d s390/vtime: fix average steal time calculation
    32eeb4b5ecd8 octeontx2-af: Use matching wake_up API variant in CGX command interface
    f901ee07853c rds: tcp: Fix use-after-free of net in reqsk_timer_handler().
    363ceb44305d tcp: Fix NEW_SYN_RECV handling in inet_twsk_purge()
    123c3bcc04cf nouveau: reset the bo resource bus info after an eviction
    a982368a13be ASoC: rockchip: i2s-tdm: Fix inaccurate sampling rates
    da83ed350e46 spi: lpspi: Avoid potential use-after-free in probe()
    e627c433c83d io_uring: don't save/restore iowait state
    2584d6bbc2bc thermal/drivers/qoriq: Fix getting tmu range
    2db869da91af thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path
    13eccd707039 ASoC: tlv320adc3xxx: Don't strip remove function when driver is builtin
    3d6af30f177f x86/hyperv: Use per cpu initial stack for vtl context
    68c001047b83 usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
    40f0170f2278 staging: greybus: fix get_channel_from_mode() failure path
    da19b8c892bf serial: 8250_exar: Don't remove GPIO device on suspend
    b2725efd184c rtc: mt6397: select IRQ_DOMAIN instead of depending on it
    ca5e22042c59 hwtracing: hisi_ptt: Move type check to the beginning of hisi_ptt_pmu_event_init()
    0c9254770814 bus: mhi: ep: check the correct variable in mhi_ep_register_controller()
    9066bec62f52 iio: gts-helper: Fix division loop
    3328ff75f642 kconfig: fix infinite loop when expanding a macro at the end of file
    afce13580a16 coresight: etm4x: Set skip_power_up in etm4_init_arch_data function
    b7bcc2c269ce coresight: Fix issue where a source device's helpers aren't disabled
    e23d162e4d81 arm64: dts: broadcom: bcmbca: bcm4908: drop invalid switch cells
    e0d4a4d37362 tty: serial: samsung: fix tx_empty() to return TIOCSER_TEMT
    2ab4e1f70c23 serial: max310x: fix syntax error in IRQ error message
    6d99e673264d tty: vt: fix 20 vs 0x20 typo in EScsiignore
    0255a3b17b1c usb: phy: generic: Get the vbus supply
    330e860a08a0 iio: pressure: mprls0025pa fix off-by-one enum
    f01a856edc70 remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef
    b82db393a953 remoteproc: stm32: Fix incorrect type in assignment for va
    9c4c28ba316e mei: gsc_proxy: match component when GSC is on different bus
    631cc575ebc4 comedi: comedi_test: Prevent timers rescheduling during deletion
    f263cf1626b5 io_uring/net: correct the type of variable
    7ca651b4ec4a nfs: fix panic when nfs4_ff_layout_prepare_ds() fails
    106e14ca55a0 afs: Revert "afs: Hide silly-rename files from userspace"
    7be89bd65f16 perf/x86/amd/core: Avoid register reset when CPU is dead
    b386f5dda0a8 f2fs: zone: fix to remove pow2 check condition for zoned block device
    c92f2927df86 f2fs: fix to truncate meta inode pages forcely
    cfd217f6464d f2fs: introduce f2fs_invalidate_internal_cache() for cleanup
    f0bf89e84c3a f2fs: compress: fix reserve_cblocks counting error when out of space
    4d1a3b791c5d f2fs: compress: relocate some judgments in f2fs_reserve_compress_blocks
    cda2f3d1754a NFSv4.1/pnfs: fix NFS with TLS in pnfs
    7f029d2438a0 NFS: Fix an off by one in root_nfs_cat()
    ad27382f8495 NFS: Fix nfs_netfs_issue_read() xarray locking for writeback interrupt
    f83f1bdac289 Input: iqs7222 - add support for IQS7222D v1.1 and v1.2
    304bc00ee198 RDMA/mana_ib: Fix bug in creation of dma regions
    fa36f5ff74f0 f2fs: ro: compress: fix to avoid caching unaligned extent
    e690dddae437 f2fs: fix to use correct segment type in f2fs_allocate_data_block()
    490510e6082f watchdog: stm32_iwdg: initialize default timeout
    281481d64418 watchdog: starfive: Check pm_runtime_enabled() before decrementing usage counter
    eb1845a8cdb9 f2fs: check number of blocks in a current section
    41e8018b45ec f2fs: compress: fix to check compress flag w/ .i_sem lock
    26e177cffce2 NFSv4.2: fix listxattr maximum XDR buffer size
    79cdcc765969 NFSv4.2: fix nfs4_listxattr kernel BUG at mm/usercopy.c:102
    5e5038413d57 net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
    9deb2010aa9f f2fs: compress: fix to check zstd compress level correctly in mount option
    7525dec4b34c f2fs: fix to create selinux label during whiteout initialization
    a2b6d56416dd scsi: bfa: Fix function pointer type mismatch for hcb_qe->cbfn
    fd8de7292414 RDMA/rtrs-clt: Check strnlen return len in sysfs mpath_policy_store()
    034977c33b4a RDMA/device: Fix a race between mad_client and cm_client init
    522e5e477062 RDMA/hns: Fix mis-modifying default congestion control algorithm
    076acd671fc6 i3c: dw: Disable IBI IRQ depends on hot-join and SIR enabling
    ccb6998cbc7d scsi: csiostor: Avoid function pointer casts
    8844b2f8a3f0 f2fs: fix to avoid potential panic during recovery
    5e59e199f3a6 f2fs: compress: fix to cover f2fs_disable_compressed_file() w/ i_sem
    8e2ea8b04cb8 f2fs: fix NULL pointer dereference in f2fs_submit_page_write()
    10b19ea7146d f2fs: zone: fix to wait completion of last bio in zone correctly
    0386408036bf f2fs: fix to remove unnecessary f2fs_bug_on() to avoid panic
    bc1e39928c26 f2fs: compress: fix to avoid inconsistence bewteen i_blocks and dnode
    eb6d30bca0f2 f2fs: update blkaddr in __set_data_blkaddr() for cleanup
    dcd6b38ba2e8 f2fs: introduce get_dnode_addr() to clean up codes
    5690754e4089 f2fs: delete obsolete FI_DROP_CACHE
    eaf3389c8545 f2fs: delete obsolete FI_FIRST_BLOCK_WRITTEN
    d415e1c96599 f2fs: compress: fix to check unreleased compressed cluster
    75abfd61392b f2fs: compress: fix to cover normal cluster write with cp_rwsem
    82704e598d7b f2fs: compress: fix to guarantee persisting compressed blocks by CP
    85570b91e482 RDMA/srpt: Do not register event handler until srpt device is fully setup
    b9ad0e9217a1 RDMA/irdma: Remove duplicate assignment
    22cad1b841a6 ALSA: usb-audio: Stop parsing channels bits when all channels are found.
    de4bfe60b030 ALSA: hda/tas2781: restore power state after system_resume
    ee4a82135de3 ALSA: hda/tas2781: configure the amp after firmware load
    93cc238b7f56 ALSA: hda/tas2781: do not call pm_runtime_force_* in system_resume/suspend
    939dbde00950 ALSA: hda/tas2781: add ptrs to calibration functions
    c27f8b739f9b ALSA: hda/tas2781: do not reset cur_* values in runtime_suspend
    e965f1152b0c ALSA: hda/tas2781: add lock to system_suspend
    5796fe3fa432 ALSA: hda/tas2781: use dev_dbg in system_resume
    cf850ab86f6f ALSA: hda/realtek: fix ALC285 issues on HP Envy x360 laptops
    e45deec35bf7 cifs: Fix writeback data corruption
    d3c792357cda cifs: Don't use certain unnecessary folio_*() functions
    2e411c57562f smb: do not test the return value of folio_start_writeback()
    57541d8c89c0 PCI: brcmstb: Fix broken brcm_pcie_mdio_write() polling
    0801c893fd48 clk: zynq: Prevent null pointer dereference caused by kmalloc failure
    a5d9b1aa61b4 clk: Fix clk_core_get NULL dereference
    73f06dadb60b sparc32: Fix section mismatch in leon_pci_grpci
    26343bc16089 backlight: lp8788: Fully initialize backlight_properties during probe
    7117253138bd backlight: lm3639: Fully initialize backlight_properties during probe
    6b97127d3fe1 backlight: da9052: Fully initialize backlight_properties during probe
    099d15c6b501 backlight: lm3630a: Don't set bl->props.brightness in get_brightness
    28a2568eb115 backlight: lm3630a: Initialize backlight_properties on init
    f582a2491030 backlight: ktz8866: Correct the check for of_property_read_u32
    f3dfffb34474 leds: sgm3140: Add missing timer cleanup and flash gpio control
    e3f63060736f leds: aw2013: Unlock mutex before destroying it
    ffc331a37e29 powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc.
    8ee19caaaa64 mfd: cs42l43: Fix wrong GPIO_FN_SEL and SPI_CLK_CONFIG1 defaults
    8c61e3beb03e modules: wait do_free_init correctly
    1fc5edeb3c6e drm/msm/dpu: add division of drm_display_mode's hskew parameter
    b8db7d833ff4 clk: qcom: gcc-ipq5018: fix register offset for GCC_UBI0_AXI_ARES reset
    3ad0f4162175 clk: qcom: gcc-ipq5018: fix 'halt_reg' offset of 'gcc_pcie1_pipe_clk'
    40c37683535b clk: qcom: gcc-ipq5018: fix 'enable_reg' offset of 'gcc_gmac0_sys_clk'
    c2c3bdaee224 powerpc/hv-gpci: Fix the H_GET_PERF_COUNTER_INFO hcall return value checks
    1699fb915b9f powerpc/pseries: Fix potential memleak in papr_get_attr()
    30d1366b4814 mfd: cs42l43: Fix wrong register defaults
    a3dd12b64ae8 drm/mediatek: Fix a null pointer crash in mtk_drm_crtc_finish_page_flip
    37e0f758e057 gpio: nomadik: fix offset bug in nmk_pmx_set()
    310ae9eb3d2a drm/amd/pm: Fix esm reg mask use to get pcie speed
    4f14cbcd0b5c drm/tests: helpers: Include missing drm_drv header
    e55093c542d9 arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang
    7334b815d202 media: mediatek: vcodec: avoid -Wcast-function-type-strict warning
    7393c681f9aa media: ttpci: fix two memleaks in budget_av_attach
    f31c1cc37411 media: go7007: fix a memleak in go7007_load_encoder
    8fad9c5bb00d media: dvb-frontends: avoid stack overflow warnings with clang
    8e60b99f6b7c media: pvrusb2: fix uaf in pvr2_context_set_notify
    bf13e50a4b76 drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int()
    54bec46280c1 HID: amd_sfh: Avoid disabling the interrupt
    c691d69fed1e HID: amd_sfh: Update HPD sensor structure elements
    dfde5becadf6 perf pmu: Fix a potential memory leak in perf_pmu__lookup()
    05173ef70742 ASoC: meson: axg-tdm-interface: add frame rate constraint
    923d95bae79a ASoC: meson: axg-tdm-interface: fix mclk setup without mclk-fs
    8529c215360b mtd: rawnand: lpc32xx_mlc: fix irq handler prototype
    6853209fd36a mtd: maps: physmap-core: fix flash size larger than 32-bit
    e0cbea9a3c59 clk: imx: imx8mp: Fix SAI_MCLK_SEL definition
    1dce1cee2488 drm/tidss: Fix sync-lost issue with two displays
    7a3cb96d72f4 drm/tidss: Fix initial plane zpos values
    f104e5629476 crypto: jitter - fix CRYPTO_JITTERENTROPY help text
    7c5001d9d8e4 crypto: qat - fix ring to service map for dcc in 4xxx
    9ca3af17808d crypto: qat - relocate and rename get_service_enabled()
    a3eb010943ae crypto: qat - move adf_cfg_services
    f5aa20882eea crypto: qat - avoid division by zero
    6a28ba59e477 crypto: ccp - Avoid discarding errors in psp_send_platform_access_msg()
    7baf1151c336 crypto: arm/sha - fix function cast warnings
    f88698d6459c perf print-events: make is_event_supported() more robust
    18421148eed7 mfd: altera-sysmgr: Call of_node_put() only when of_parse_phandle() takes a ref
    1b01e66c1ce4 mfd: syscon: Call of_node_put() only when of_parse_phandle() takes a ref
    81d998e18311 media: i2c: imx290: Fix IMX920 typo
    069e1bd0ad2d media: ivsc: csi: Swap SINK and SOURCE pads
    f33bf922d49d drm/tegra: put drm_gem_object ref on error in tegra_fb_create
    6ff01b314149 clk: mediatek: mt7981-topckgen: flag SGM_REG_SEL as critical
    56b8f242ebaf clk: mediatek: mt8183: Correct parent of CLK_INFRA_SSPM_32K_SELF
    de3340533bd6 clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe()
    19a66e36c228 clk: mediatek: mt8135: Fix an error handling path in clk_mt8135_apmixed_probe()
    95d1f1228c1b clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
    0c55334f731e clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
    93664eb8d640 pinctrl: renesas: Allow the compiler to optimize away sh_pfc_pm
    1dee290109e3 PCI: Mark 3ware-9650SE Root Port Extended Tags as broken
    87a5a9169c40 drm/mediatek: dsi: Fix DSI RGB666 formats and definitions
    d4d8162d725d drm/panel: boe-tv101wum-nl6: make use of prepare_prev_first
    f610c46771ef drm/amd/display: Add 'replay' NULL check in 'edp_set_replay_allow_active()'
    8863d8097a0f clk: qcom: dispcc-sdm845: Adjust internal GDSC wait times
    5b8d21f7edfd media: pvrusb2: fix pvr2_stream_callback casts
    1ff1f8c388f6 media: pvrusb2: remove redundant NULL check
    79159e7c485e media: go7007: add check of return value of go7007_read_addr()
    d164ddc21e98 media: imx: csc/scaler: fix v4l2_ctrl_handler memory leak
    8b50270c4aa0 media: sun8i-di: Fix chroma difference threshold
    9fd05afd5eef media: sun8i-di: Fix power on/off sequences
    5e56f933d24e media: sun8i-di: Fix coefficient writes
    0bf19d804736 media: cedrus: h265: Fix configuring bitstream size
    a039690d3232 NTB: fix possible name leak in ntb_register_device()
    fad132306512 drm: ci: use clk_ignore_unused for apq8016
    ced7df8b3c5c ASoC: SOF: Add some bounds checking to firmware data
    c9901903edfb powerpc: Force inlining of arch_vmap_p{u/m}d_supported()
    d6585d694fb4 ASoC: meson: t9015: fix function pointer type mismatch
    b188c9e1d5d2 ASoC: meson: aiu: fix function pointer type mismatch
    0bbe598b5830 perf metric: Don't remove scale from counts
    40ae9bb1ddc7 perf stat: Avoid metric-only segv
    e40ef597e57c perf expr: Fix "has_event" function for metric style events
    435e7f647428 ALSA: seq: fix function cast warnings
    427322dccd98 clk: renesas: r8a779f0: Correct PFC/GPIO parent clock
    78dd26a1c1b3 clk: renesas: r8a779g0: Correct PFC/GPIO parent clocks
    e040f1fbe9ab drm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini()
    6fc5fb8ebef8 drm/radeon/ni: Fix wrong firmware size logging in ni_init_microcode()
    fd0ce43cbde3 drm/msm/dpu: Only enable DSC_MODE_MULTIPLEX if dsc_merge is enabled
    3bb4f4b16276 drm/msm/dpu: fix the programming of INTF_CFG2_DATA_HCTL_EN
    e2326c8ae3a6 dt-bindings: msm: qcom, mdss: Include ommited fam-b compatible
    149ad69e002d perf srcline: Add missed addr2line closes
    3e72d9d98036 perf thread_map: Free strlist on normal path in thread_map__new_by_tid_str()
    cfd9b1db6475 drivers/ps3: select VIDEO to provide cmdline functions
    23bc89fdce71 crypto: xilinx - call finalize with bh disabled
    44eb7b3b3695 PCI: switchtec: Fix an error handling path in switchtec_pci_probe()
    1bb68f30d8b6 PCI/P2PDMA: Fix a sleeping issue in a RCU read section
    42954c374534 quota: Properly annotate i_dquot arrays with __rcu
    e45e8aa2b70a quota: Fix rcu annotations of inode dquot pointers
    40a673b4b07e quota: Fix potential NULL pointer dereference
    cfa7009c18af clk: qcom: reset: Ensure write completion on reset de/assertion
    cbb2787620ca clk: qcom: reset: Commonize the de/assert functions
    8f3e68c6a3ff drm/amdgpu: Fix potential out-of-bounds access in 'amdgpu_discovery_reg_base_init()'
    6ed98a594bdb pinctrl: mediatek: Drop bogus slew rate register range for MT8192
    2969f5b83d07 pinctrl: mediatek: Drop bogus slew rate register range for MT8186
    779e8db7efb2 media: edia: dvbdev: fix a use-after-free
    0a96e0da9fd9 mtd: spinand: esmt: Extend IDs to 5 bytes
    90029b9c979b media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity
    4c86c772fef0 media: v4l2-tpg: fix some memleaks in tpg_alloc
    b64cc91c6d76 media: em28xx: annotate unchecked call to media_device_register()
    0cbefc7b5bda clk: meson: Add missing clocks to axg_clk_regmaps
    13696dc3ed17 perf bpf: Clean up the generated/copied vmlinux.h
    cfd2417c3be2 perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample()
    9a5b6b47a34c media: v4l2: cci: print leading 0 on error
    66d8bafff7f4 clk: samsung: exynos850: Propagate SPI IPCLK rate change
    d6786cf3ccc0 pinctrl: renesas: r8a779g0: Add missing SCIF_CLK2 pin group/function
    21fe1069aa9c drm/vmwgfx: Fix vmw_du_get_cursor_mob fencing of newly-created MOBs
    ccf09255d89c ASoC: sh: rz-ssi: Fix error message print
    2d9fe7787af0 drm/amd/display: Fix potential NULL pointer dereferences in 'dcn10_set_output_transfer_func()'
    69a0a42bdfab perf pmu: Treat the msr pmu as software
    ad76fd30557d drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'
    7e062c083dc9 HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd
    e55c8abaadd9 perf record: Check conflict between '--timestamp-filename' option and pipe mode before recording
    1f7b3c801fa8 perf top: Uniform the event name for the hybrid machine
    d361a8ec7b20 perf record: Fix possible incorrect free in record__switch_output()
    ef8a156ca181 PCI/DPC: Print all TLP Prefixes, not just the first
    ae532eb08a28 media: cadence: csi2rx: use match fwnode for media link
    edbb3226c985 media: tc358743: register v4l2 async device only after successful setup
    6be2ed7243a6 dmaengine: tegra210-adma: Update dependency to ARCH_TEGRA
    88028c45d587 ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()
    9439808c87e6 ASoC: amd: acp: Add missing error handling in sof-mach
    8e25c0ee5665 drm/lima: fix a memleak in lima_heap_alloc
    c5e834cf86fd drm/panel-edp: use put_sync in unprepare
    b241ee1e491d drm/rockchip: lvds: do not print scary message when probing defer
    33ea53cdd60d drm/rockchip: lvds: do not overwrite error code
    83e0f220d1e9 drm/vmwgfx: fix a memleak in vmw_gmrid_man_get_node
    9556c1676730 drm/vkms: Avoid reading beyond LUT array
    bac3d37d2f7c drm: Don't treat 0 as -1 in drm_fixp2int_ceil
    9ac30fb8fae6 drm/rockchip: inno_hdmi: Fix video timing
    c5825eff7750 drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe()
    845322a9c06d drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()
    20a176aeba9a drm/tegra: rgb: Fix some error handling paths in tegra_dc_rgb_probe()
    3f5f7810dbc5 drm/tegra: hdmi: Fix some error handling paths in tegra_hdmi_probe()
    79a7e4019e30 drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe()
    d4ae74ad1988 drm/tegra: dsi: Fix some error handling paths in tegra_dsi_probe()
    58252c351c8f drm/tegra: dpaux: Fix PM disable depth imbalance in tegra_dpaux_probe
    52aa507148c4 drm/tegra: dsi: Add missing check for of_find_device_by_node
    15a3fc5c8774 dm: call the resume method on internal suspend
    9f926ba25343 dm raid: fix false positive for requeue needed during reshape
    535fb2160ade bpf: hardcode BPF_PROG_PACK_SIZE to 2MB * num_possible_nodes()
    408ba7fd04f9 nfp: flower: handle acti_netdevs allocation failure
    138cca05a83a net/x25: fix incorrect parameter validation in the x25_getsockopt() function
    cddf9fc70b06 net: kcm: fix incorrect parameter validation in the kcm_getsockopt) function
    48f1ffc935fa udp: fix incorrect parameter validation in the udp_lib_getsockopt() function
    4865e9fb565c l2tp: fix incorrect parameter validation in the pppol2tp_getsockopt() function
    e82ae490a9cd ipmr: fix incorrect parameter validation in the ip_mroute_getsockopt() function
    0709f6fa131b tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function
    b64a1b4f4760 OPP: debugfs: Fix warning around icc_get_name()
    145cd3e36e99 erofs: fix lockdep false positives on initializing erofs_pseudo_mnt
    51b27119196c erofs: fix handling kern_mount() failure
    613139a0303d erofs: Convert to use bdev_open_by_path()
    dd0bd4291250 block: Provide bdev_open_* functions
    3721c63d3002 net: phy: dp83822: Fix RGMII TX delay configuration
    6dda052ee1e5 Bluetooth: Fix eir name length
    9017a4f37437 net: hns3: fix port duplex configure error in IMP reset
    f0b5225a7dfc net: hns3: fix kernel crash when 1588 is received on HIP08 devices
    a8cbdc98b37e net: hns3: fix wrong judgment condition issue
    589ec16174dd net: phy: fix phy_get_internal_delay accessing an empty array
    c4c857723b37 net: ip_tunnel: make sure to pull inner header in ip_tunnel_rcv()
    2db74b0d8748 ipv6: fib6_rules: flush route cache when rule is changed
    582a7eba2c25 iommu: Fix compilation without CONFIG_IOMMU_INTEL
    7070b274c786 bpf: Fix stackmap overflow check on 32-bit arches
    8435f0961bf3 bpf: Fix hashtab overflow check on 32-bit arches
    250051acc21f bpf: Fix DEVMAP_HASH overflow check on 32-bit arches
    eabb38ad015e s390/cache: prevent rebuild of shared_cpu_list
    e39a3a14eafc sr9800: Add check for usbnet_get_endpoints
    a23546053eef Bluetooth: fix use-after-free in accessing skb after sending it
    64be3c615488 Bluetooth: af_bluetooth: Fix deadlock
    620b9e60e4b5 Bluetooth: btusb: Fix memory leak
    98e9920c75e0 Bluetooth: msft: Fix memory leak
    36626c26bed6 Bluetooth: msft: __hci_cmd_sync() doesn't return NULL
    a41c8efe659c Bluetooth: hci_core: Fix possible buffer overflow
    dd163fa34c48 Bluetooth: btrtl: fix out of bounds memory access
    5939db19db73 Bluetooth: hci_h5: Add ability to allocate memory for private data
    2af7aa6685e2 Bluetooth: hci_sync: Fix overwriting request callback
    0ce1229cbba6 Bluetooth: hci_core: Cancel request on command timeout
    988b77ba0df0 Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
    0b3df53c9d3a Bluetooth: hci_event: Fix not indicating new connection for BIG Sync
    cd5d26a9488e Bluetooth: Remove BT_HS
    47b1b88008e0 Bluetooth: Remove superfluous call to hci_conn_check_pending()
    b439de9f7cbf Bluetooth: mgmt: Remove leftover queuing of power_off work
    54ab126c844a Bluetooth: Remove HCI_POWER_OFF_TIMEOUT
    f054ffeeb031 ice: fix stats being updated by way too large values
    bcb6d9fad06f igb: Fix missing time sync events
    9bfb3503245f igc: Fix missing time sync events
    2b74b2a92e52 iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected
    e33ee8d5e6fc PCI: Make pci_dev_is_disconnected() helper public for other drivers
    df62e22c2e27 wifi: brcm80211: handle pmk_op allocation failure
    6cada014b245 wifi: rtw88: 8821c: Fix false alarm count
    6195fc512109 wifi: rtw88: 8821c: Fix beacon loss and disconnect
    40243da588a0 wifi: rtw88: 8821cu: Fix firmware upload fail
    fa797951513c ACPI: CPPC: enable AMD CPPC V2 support for family 17h processors
    1155f56ce76d mmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function
    f91a731ffc3b arm64: dts: qcom: sm8550: Fix SPMI channels size
    5e6013ae2c8d SUNRPC: fix some memleaks in gssx_dec_option_array
    99044c01ed53 SUNRPC: fix a memleak in gss_import_v2_context
    af2a9f98d884 x86, relocs: Ignore relocations in .notes section
    1cbdc6f36850 objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks
    2babfee5d4a2 arm64: dts: rockchip: drop rockchip,trcm-sync-tx-only from rk3588 i2s
    b22efd4ecab2 arm64: dts: rockchip: fix reset-names for rk356x i2s2 controller
    8c0c1139e9e6 arm64: dts: rockchip: add missing interrupt-names for rk356x vdpu
    6e7ecc7741ab ACPI: scan: Fix device check notification handling
    92cf658326ad ACPI: resource: Add MAIBENBEN X577 to irq1_edge_low_force_override
    588d59b5d5d1 ACPI: resource: Do IRQ override on Lunnen Ground laptops
    dce8c4bd9cf9 ACPI: resource: Add Infinity laptops to irq1_edge_low_force_override
    d6433a9cc72c arm64: dts: marvell: reorder crypto interrupts on Armada SoCs
    630ed2bb6f4d gpiolib: Pass consumer device through to core in devm_fwnode_gpiod_get_index()
    271d0efed20a regulator: userspace-consumer: add module device table
    656311b9bf9e arm64: dts: imx8mp-evk: Fix hdmi@3d node
    1d77f1f28300 arm64: dts: imx8mp: Set SPI NOR to max 40 MHz on Data Modul i.MX8M Plus eDM SBC
    733d6599163a ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node
    a193e542c832 ARM: dts: imx6dl-yapp4: Fix typo in the QCA switch register address
    832f0faddc2c arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF
    4cdf9006fc09 pstore: inode: Only d_invalidate() is needed
    952d8a809351 pstore: inode: Convert mutex usage to guard(mutex)
    be50365391a7 net: mctp: copy skb ext data when fragmenting
    8f39d2e9d806 arm64: dts: renesas: r8a779g0: Correct avb[01] reg sizes
    0986e6324106 arm64: dts: renesas: r8a779a0: Correct avb[01] reg sizes
    25d7fe04096a arm64: dts: renesas: rzg2l: Add missing interrupts to IRQC nodes
    9d5d48d9fe34 wifi: mt76: mt792x: fix a potential loading failure of the 6Ghz channel config from ACPI
    c7dd42fbebcf wifi: mt76: mt7921e: fix use-after-free in free_irq()
    cb8ae15877b0 wifi: mt76: mt792x: fix ethtool warning
    4bb175d465a1 wifi: mt76: mt7996: fix HIF_TXD_V2_1 value
    0e8c4809ddb5 wifi: mt76: mt7996: fix efuse reading issue
    9d87f925afce wifi: mt76: mt7996: fix HE beamformer phy cap for station vif
    a1eb16a051a3 wifi: mt76: mt7996: fix incorrect interpretation of EHT MCS caps
    e6ed68cbace5 wifi: mt76: mt7996: fix TWT issues
    f1773a106c42 memory: tegra: Correct DLA client names
    45de92bba120 ARM: dts: arm: realview: Fix development chip ROM compatible value
    0f7bdcbb0fcb wifi: wilc1000: revert reset line logic flip
    3e4ca4a721ac arm64: dts: ti: k3-am62p: Fix memory ranges for DMSS
    857f56db8c3a firmware: arm_scmi: Fix double free in SMC transport cleanup path
    d515b758d56c arm64: dts: ti: Add common1 register space for AM62x SoC
    d8b1f0effb7f arm64: dts: ti: Add common1 register space for AM65x SoC
    c5e988aca5d0 arm64: dts: mt8195-cherry-tomato: change watchdog reset boot flow
    ddca1e4fb34d arm64: dts: ti: k3-am64-main: Fix ITAP/OTAP values for MMC
    b0e4672f4e21 arm64: dts: ti: k3-am64: Enable SDHCI nodes at the board level
    b024e6732327 arm64: dts: ti: k3-am642-sk: Add boot phase tags marking
    91e057f66151 arm64: dts: ti: k3-am642-evm: Add boot phase tags marking
    acf9ac51af48 arm64: dts: ti: k3-j784s4-evm: Remove Pinmux for CTS and RTS in wkup_uart0
    82a1f7c758fb arm64: dts: ti: k3-j721s2-common-proc-board: Remove Pinmux for CTS and RTS in wkup_uart0
    4182b4b76a98 arm64: dts: ti: k3-j7200-common-proc-board: Remove clock-frequency from mcu_uart0
    c9fc538fc946 arm64: dts: ti: k3-j7200-common-proc-board: Modify Pinmux for wkup_uart0 and mcu_uart0
    f5dd253943e7 net: ena: Remove ena_select_queue
    3b454d50e41d powercap: dtpm_cpu: Fix error check against freq_qos_add_request()
    9f31b114d408 arm64: dts: qcom: sm8150: correct PCIe wake-gpios
    d2a519c72ebb arm64: dts: qcom: sm8150: use 'gpios' suffix for PCI GPIOs
    4853a673327a arm64: dts: qcom: sdm845-db845c: correct PCIe wake-gpios
    f8e360c73bdf wifi: brcmsmac: avoid function pointer casts
    3438dccde560 iommu/amd: Mark interrupt as managed
    c69d39288dbe bus: tegra-aconnect: Update dependency to ARCH_TEGRA
    3d48e5be1074 ACPI: processor_idle: Fix memory leak in acpi_processor_power_exit()
    a34c44b605c4 arm64: dts: ti: k3-am62-main: disable usb lpm
    3da9d32b7f4a wifi: wilc1000: prevent use-after-free on vif when cleaning up all interfaces
    af35d0639a33 cpufreq: qcom-hw: add CONFIG_COMMON_CLK dependency
    cfdca1154f82 arm64: dts: mediatek: mt8186: Add missing xhci clock to usb controllers
    8781c3f4d848 arm64: dts: mediatek: mt8186: Add missing clocks to ssusb power domains
    8a56f8da9655 ARM: dts: qcom: msm8974: correct qfprom node size
    7cff695d84dc soc: qcom: llcc: Check return value on Broadcast_OR reg read
    9fce71d05648 arm64: dts: qcom: sdm845: Use the Low Power Island CX/MX for SLPI
    e36373dc5eee bpf: Mark bpf_spin_{lock,unlock}() helpers with notrace correctly
    15c8de52b3bc wifi: iwlwifi: mvm: Fix the listener MAC filter flags
    887407b622f8 can: m_can: Start/Cancel polling timer together with interrupts
    248ebf21e860 arm64: dts: mediatek: mt7622: add missing "device_type" to memory nodes
    b5d11a01fb1a arm64: dts: mediatek: mt8186: fix VENC power domain clocks
    a067a7cefce2 arm64: dts: mediatek: mt8192: fix vencoder clock name
    889f133834b3 arm64: dts: mediatek: mt8192-asurada: Remove CrosEC base detection node
    0ae767338a85 arm64: dts: mediatek: mt7986: add "#reset-cells" to infracfg
    8fa8e91f8ad0 arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM
    13147d172922 arm64: dts: mediatek: mt7986: fix SPI nodename
    f6e13a87aae4 arm64: dts: mediatek: mt7986: fix SPI bus width properties
    e30c3495361d arm64: dts: mediatek: mt7986: drop crypto's unneeded/invalid clock name
    7f318c21ed65 arm64: dts: mediatek: mt7986: fix reference to PWM in fan node
    f24edae37423 arm64: dts: mt8183: Move CrosEC base detection node to kukui-based DTs
    26d4bac55750 ipv6: mcast: remove one synchronize_net() barrier in ipv6_mc_down()
    5ebcdbcb9e2c selftests: forwarding: Add missing multicast routing config entries
    7cb8a8ee4938 selftests: forwarding: Add missing config entries
    d19c74e20bc5 s390/vdso: drop '-fPIC' from LDFLAGS
    1cd9c4680748 s390/pai: fix attr_event_free upper limit for pai device drivers
    85074e3394a8 wifi: iwlwifi: mvm: don't set replay counters to 0xff
    b4f1b0b3b917 wifi: iwlwifi: mvm: don't set the MFP flag for the GTK
    67e7b24a70fe wifi: iwlwifi: mvm: fix erroneous queue index mask
    7559a34fc068 wifi: iwlwifi: support EHT for WH
    e4c4a0213029 tools/resolve_btfids: Fix cross-compilation to non-host endianness
    29d1ee8e7aa2 tools/resolve_btfids: Refactor set sorting with types from btf_ids.h
    e326c0d88849 pwm: sti: Fix capture for st,pwm-num-chan < st,capture-num-chan
    a3b17859c818 printk: Disable passing console lock owner completely during panic()
    75f1048672e7 wifi: ath12k: fix incorrect logic of calculating vdev_stats_id
    24648972fe5d arm64: dts: qcom: sm6115: declare VLS CLAMP register for USB3 PHY
    a535c7198b3c arm64: dts: qcom: qcm2290: declare VLS CLAMP register for USB3 PHY
    3a71ec74e5e3 wifi: wfx: fix memory leak when starting AP
    fa5bef5e80c6 libbpf: Use OPTS_SET() macro in bpf_xdp_query()
    da10f6b7918a wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
    4615164c4d09 wifi: ath11k: initialize rx_mcs_80 and rx_mcs_160 before use
    033984c98d79 arm64: dts: ti: k3-j784s4: Fix power domain for VTM node
    dbe156207532 arm64: dts: ti: k3-j721s2: Fix power domain for VTM node
    f91adad08237 net: blackhole_dev: fix build warning for ethh set but not used
    dae1b8166ca1 pwm: atmel-hlcdc: Fix clock imbalance related to suspend support
    93c17dc0cc14 arm64: dts: imx8mm-venice-gw71xx: fix USB OTG VBUS
    04cd48311746 gpio: vf610: allow disabling the vf610 driver
    1cabe943729f wifi: iwlwifi: read BIOS PNVM only for non-Intel SKU
    c8dcee2052e2 wifi: iwlwifi: mvm: fix the TLC command after ADD_STA
    8b15cdc00f9e wifi: iwlwifi: mvm: d3: fix IPN byte order
    503431174b1a wifi: iwlwifi: fix EWRD table validity check
    82aebbd686c1 wifi: iwlwifi: mvm: initialize rates in FW earlier
    45eacd73727e wifi: iwlwifi: acpi: fix WPFC reading
    783d413f332a wifi: iwlwifi: dbg-tlv: ensure NUL termination
    70104eb71974 wifi: iwlwifi: mvm: report beacon protection failures
    3f6548bae353 wifi: ath12k: fix fetching MCBC flag for QCN9274
    bc3bfb638b51 wifi: ath12k: Update Qualcomm Innovation Center, Inc. copyrights
    f77ba3e04717 wifi: ath11k: change to move WMI_VDEV_PARAM_SET_HEMU_MODE before WMI_PEER_ASSOC_CMDID
    a015fbf698c8 wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete
    738b192efdc7 libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim API
    00382885701b arm64: dts: imx8mm-kontron: Fix interrupt for RTC on OSM-S i.MX8MM module
    47d00e06659b arm64: dts: imx8mm-kontron: Disable pull resistors for SD card signals on BL board
    413d325c3e35 arm64: dts: imx8mm-kontron: Disable pull resistors for SD card signals on BL OSM-S board
    8c19e4a1c657 arm64: dts: imx8mm-kontron: Disable pullups for onboard UART signals on BL board
    a6978973b490 arm64: dts: imx8mm-kontron: Disable pullups for onboard UART signals on BL OSM-S board
    44033a1cb2a4 arm64: dts: imx8mm-kontron: Disable pullups for I2C signals on SL/BL i.MX8MM
    0c3a9a2b4262 arm64: dts: imx8mm-kontron: Disable pullups for I2C signals on OSM-S i.MX8MM
    fd4edeaa3772 selftests/bpf: Disable IPv6 for lwt_redirect test
    12955f97d602 arm64: dts: renesas: r8a779g0: Add missing SCIF_CLK2
    ef4f026bc9df arm64: dts: renesas: r8a779g0: Restore sort order
    d1db5c5bf196 arm64: dts: qcom: sa8540p: Drop gfx.lvl as power-domain for gpucc
    2b344ad37354 pmdomain: qcom: rpmhpd: Drop SA8540P gfx.lvl
    ed168d6c381c libbpf: Fix faccessat() usage on Android
    ff1a989b4a2f cpufreq: mediatek-hw: Don't error out if supply is not found
    01934a552cdb arm64: dts: qcom: sdm845-oneplus-common: improve DAI node naming
    447a83adaf85 soc: qcom: socinfo: rename PM2250 to PM4125
    6f05d724e1ae arm64: dts: qcom: sm8450: Add missing interconnects to serial
    debbb9987439 af_unix: Annotate data-race of gc_in_progress in wait_for_unix_gc().
    a9800dc6cf4a selftests/bpf: Wait for the netstamp_needed_key static key to be turned on
    f02bcb416a4f selftests/bpf: Fix the flaky tc_redirect_dtime test
    1ccc54df5797 selftests/bpf: Add netkit to tc_redirect selftest
    72f1ba021198 selftests/bpf: De-veth-ize the tc_redirect test case
    e479ae4c9b46 wifi: ath12k: Fix issues in channel list update
    fb9f3f366850 selftest/bpf: Add map_in_maps with BPF_MAP_TYPE_PERF_EVENT_ARRAY values
    f33d3161f3bf libbpf: Apply map_set_def_max_entries() for inner_maps on creation
    308e65ed6068 selftests/bpf: Fix potential premature unload in bpf_testmod
    e9a89238b9fb bpftool: Silence build warning about calloc()
    9311cc6658b1 inet_diag: annotate data-races around inet_diag_table[]
    96ba0fc3b7a9 sock_diag: annotate data-races around sock_diag_handlers[family]
    1d938ac977b0 cpufreq: mediatek-hw: Wait for CPU supplies before probing
    b25b64a241d7 cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value
    65400f7ef86e arm64: dts: qcom: sc8180x: Shrink aoss_qmp register space size
    75c279257574 arm64: dts: qcom: sc8180x: Require LOW_SVS vote for MMCX if DISPCC is on
    b2506fd0390d arm64: dts: qcom: sc8180x: Don't hold MDP core clock at FMAX
    eddaa65ee1f3 arm64: dts: qcom: sc8180x: Fix eDP PHY power-domains
    d217d75db861 arm64: dts: qcom: sc8180x: Add missing CPU off state
    e29688f14d83 arm64: dts: qcom: sc8180x: Fix up big CPU idle state entry latency
    d80997b55ff3 arm64: dts: qcom: sc8180x: Hook up VDD_CX as GCC parent domain
    6d4a320e16ba ARM: dts: renesas: r8a73a4: Fix external clocks and clock rate
    9ade676d2560 wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir()
    b66b008f1d37 wifi: wilc1000: fix multi-vif management when deleting a vif
    4041c60a9d54 wifi: wilc1000: do not realloc workqueue everytime an interface is added
    156012667b85 wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work
    4bfd20d5f5c6 wifi: wilc1000: fix RCU usage in connect path
    da5deb0db48a wifi: wilc1000: fix declarations ordering
    7b9fe69c3b93 wifi: b43: Disable QoS for bcm4331
    d607e9ad6efa wifi: b43: Stop correct queue in DMA worker when QoS is disabled
    6b62086ef60b wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled
    bc845e2e42ca wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled
    10a342fa2fe4 wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
    76b512a49f10 sched/fair: Take the scheduling domain into account in select_idle_core()
    495b7cb95200 sched/fair: Take the scheduling domain into account in select_idle_smt()
    e42c1df34e58 timekeeping: Fix cross-timestamp interpolation for non-x86
    9e4d5849b4cf timekeeping: Fix cross-timestamp interpolation corner case decision
    c56317c7ed46 timekeeping: Fix cross-timestamp interpolation on counter wrap
    835ae8a07a2a x86/sme: Fix memory encryption setting if enabled by default and not overridden
    1723d72da7ad x86/resctrl: Implement new mba_MBps throttling heuristic
    2e205eb59ea5 x86/resctrl: Read supported bandwidth sources from CPUID
    655f231bde27 x86/resctrl: Remove hard-coded memory bandwidth limit
    325956b0173f x86/mm: Ensure input to pfn_to_kaddr() is treated as a 64-bit type
    eb48680b0255 aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts
    59a534690ecc io_uring/net: fix overflow check in io_recvmsg_mshot_prep()
    51d28472db8b io_uring/net: move receive multishot out of the generic msghdr path
    1a03310940bb io_uring/net: unify how recvmsg and sendmsg copy in the msghdr
    01df80b3e4d5 rtc: test: Fix invalid format specifier.
    491ed9f9ebaf time: test: Fix incorrect format specifier
    3c3d394b531f lib: memcpy_kunit: Fix an invalid format specifier in an assertion msg
    8d98a46b8b45 lib/cmdline: Fix an invalid format specifier in an assertion msg
    8c018386023b kunit: test: Log the correct filter string in executor_test
    c6f95031cf21 ovl: Always reject mounting over case-insensitive directories
    cc0918b3582c ovl: add support for appending lowerdirs one by one
    0d8097526ba8 ovl: refactor layer parsing helpers
    26532aeb3cec ovl: store and show the user provided lowerdir mount option
    1fff0482186b ovl: remove unused code in lowerdir param parsing
    108ae1b5cdef md: Don't clear MD_CLOSING when the raid is about to stop
    7a3894ec496e fs/select: rework stack allocation hack for clang
    b7f5aed55829 nbd: null check for nla_nest_start
    eba92d62cbc8 rcu/exp: Handle RCU expedited grace period kworker allocation failure
    6047cdf6fcce rcu/exp: Fix RCU expedited parallel grace period kworker allocation failure recovery
    ec09bcab32fc s390/dasd: fix double module refcount decrement
    0ef87c0bb4ee s390/dasd: Use dev_*() for device log messages
    7b8fa7a0c291 io_uring: remove unconditional looping in local task_work handling
    8c0a0ae8afc8 io_uring: remove looping around handling traditional task_work
    829b161b3557 fs: Fix rw_hint validation
    0ab2a85c8020 iomap: clear the per-folio dirty bits on all writeback failures
    7df62b8cca38 workqueue: Don't call cpumask_test_cpu() with -1 CPU in wq_update_node_max_active()
    5a70baec2294 workqueue: Implement system-wide nr_active enforcement for unbound workqueues
    b522229a5694 workqueue: Introduce struct wq_node_nr_active
    bd31fb926dfa workqueue: RCU protect wq->dfl_pwq and implement accessors for it
    5f99fee6f2de workqueue: Make wq_adjust_max_active() round-robin pwqs while activating
    4023a2d95076 workqueue: Move nr_active handling into helpers
    6c592f0bb968 workqueue: Replace pwq_activate_inactive_work() with [__]pwq_activate_work()
    bad184d26a4f workqueue: Factor out pwq_is_empty()
    82e098f5bed1 workqueue: Move pwq->max_active to wq->max_active
    43a181f8f41a workqueue.c: Increase workqueue name length
    c1362eae861d do_sys_name_to_handle(): use kzalloc() to fix kernel-infoleak
    47a03a1a335f ASoC: wm8962: Fix up incorrect error message in wm8962_set_fll
    2108a49ff25a ASoC: wm8962: Enable both SPKOUTR_ENA and SPKOUTL_ENA in mono mode
    e5ff56e824cc ASoC: wm8962: Enable oscillator if selecting WM8962_FLL_OSC
    bf18280d4338 Input: gpio_keys_polled - suppress deferred probe error for gpio
    52a85947ac12 xfrm: set skb control buffer based on packet offload as well
    4f77a8c21373 xfrm: fix xfrm child route lookup for packet offload
    5171cac6f5c3 ASoC: amd: yc: Add HP Pavilion Aero Laptop 13-be2xxx(8BD6) into DMI quirk table
    2984f26a4604 x86/hyperv: Allow 15-bit APIC IDs for VTL platforms
    a9fcd576b712 ASoC: Intel: bytcr_rt5640: Add an extra entry for the Chuwi Vi8 tablet
    adb19164baf0 arm64: tegra: Set the correct PHY mode for MGBE
    3ede8e94de6b perf: RISCV: Fix panic on pmu overflow handler
    e4cd40ba9afd firewire: core: use long bus reset on gap count error
    bdfc6e5310e5 Bluetooth: mgmt: Fix limited discoverable off timeout
    3ead59bafad0 Bluetooth: rfcomm: Fix null-ptr-deref in rfcomm_check_security
    2ffabb2066c0 ASoC: amd: yc: Fix non-functional mic on Lenovo 21J2
    b5f085b46f0e drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series
    3396b5db215d ALSA: hda/realtek - ALC285 reduce pop noise from Headphone port
    c59d1a4e1277 scsi: mpt3sas: Prevent sending diag_reset when the controller is ready
    da7224eb17af ASoC: amd: yc: Add Lenovo ThinkBook 21J0 into DMI quirk table
    61e24fd6c391 drm/ttm/tests: depend on UML || COMPILE_TEST
    d6e4c77b1245 wifi: mac80211: only call drv_sta_rc_update for uploaded stations
    7624a8ef847f net: smsc95xx: add support for SYS TEC USB-SPEmodule1
    f6d4d29a1265 btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve
    82220b1835ba btrfs: fix data races when accessing the reserved amount of block reserves
    f642b8f2e20c regulator: max5970: Fix regulator child node name
    0cce072e4185 ARM: dts: renesas: rcar-gen2: Add missing #interrupt-cells to DA9063 nodes
    024fb877723a arm64: dts: qcom: Fix interrupt-map cell sizes
    ac37cda44f06 arm: dts: Fix dtc interrupt_map warnings
    377602fc04af arm64: dts: Fix dtc interrupt_provider warnings
    ab7e3fe1287f arm: dts: Fix dtc interrupt_provider warnings
    978698aae59d dm-verity, dm-crypt: align "struct bvec_iter" correctly
    bf9e4b5f90be platform/x86: x86-android-tablets: Fix acer_b1_750_goodix_gpios name
    75bb19ed372d perf: CXL: fix CPMU filter value mask length
    0468ac562405 cxl/region: Allow out of order assembly of autodiscovered regions
    9f57eecf94ff cxl/region: Handle endpoint decoders in cxl_region_find_decoder()
    031b6233fe7e block: sed-opal: handle empty atoms when parsing response
    3a28164d9b0d parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check
    61698b987b6d net/iucv: fix the allocation size of iucv_path_table array
    57f78c46f081 x86/mm: Disallow vsyscall page read for copy_from_kernel_nofault()
    aa18a46ef809 x86/mm: Move is_vsyscall_vaddr() into asm/vsyscall.h
    9fe96db9ccac riscv: dts: sifive: add missing #interrupt-cells to pmic
    8f5069af97ef ARM: dts: rockchip: Drop interrupts property from pwm-rockchip nodes
    19faac404968 RDMA/mlx5: Relax DEVX access upon modify commands
    9a624a5f9573 RDMA/mlx5: Fix fortify source warning while accessing Eth segment
    ddc1f16ea54c arm64: dts: rockchip: mark system power controller on rk3588-evb1
    4c11bcb119bf soc: microchip: Fix POLARFIRE_SOC_SYS_CTRL input prompt
    10a33d1d056b arm64/sve: Lower the maximum allocation for the SVE ptrace regset
    b98f2b8653de gen_compile_commands: fix invalid escape sequence warning
    3cac6eebea9b ASoC: SOF: ipc4-pcm: Workaround for crashed firmware on system suspend
    59ab1e455901 HID: multitouch: Add required quirk for Synaptics 0xcddc device
    ab63a80996d7 MIPS: Clear Cause.BD in instruction_pointer_set
    a9bbb05c0c04 x86/xen: Add some null pointer checking to smp.c
    994aecb412f2 ASoC: amd: yc: Fix non-functional mic on Lenovo 82UU
    d1b6521cecba regmap: kunit: Ensure that changed bytes are actually different
    ec33549be99f spi: intel-pci: Add support for Lunar Lake-M SPI serial flash
    c33afbcc9cd8 ASoC: rt5645: Make LattePanda board DMI match more precise
    071facc21c6e selftests: tls: use exact comparison in recv_partial
    4c3157dd6a1d selftests: openvswitch: Add validation for the recursion test
    1f87429485ec perf/arm-cmn: Workaround AmpereOneX errata AC04_MESH_1 (incorrect child count)
    ae668e2e60dc wifi: iwlwifi: mvm: use correct address 3 in A-MSDU
    ae25251ade01 ASoC: cs42l43: Handle error from devm_pm_runtime_enable
    b39b4d207d4f media: rkisp1: Fix IRQ handling due to shared interrupts
    2bbd65c6ca56 soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free
    6fc19b3d8a45 io_uring: drop any code related to SCM_RIGHTS
    303c0a13833f io_uring/unix: drop usage of io_uring socket
    049f043fe8cd platform/x86: p2sb: On Goldmont only cache P2SB and SPI devfn BAR
    06644f0d7193 drm/tilcdc: Set preferred depth
    ff7ae7b32324 crypto: jitter - add RCT/APT support for different OSRs
    50cd24ddb6f0 arm64: defconfig: remove CONFIG_IPQ_APSS_5018
    58e5c91d6701 x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
    c878fd2d4c79 x86/alternatives: Sync core before enabling interrupts
    c2d64b9f52b6 qemux86: add configuration symbol to select values
    630c33229e6d sched/isolation: really align nohz_full with rcu_nocbs
    0e5e0f68e2e6 clear_warn_once: add a clear_warn_once= boot parameter
    46934791b902 clear_warn_once: bind a timer to written reset value
    cdee9e38ff32 clear_warn_once: expand debugfs to include read support
    82b562b81841 tools: Remove some options from CLANG_CROSS_FLAGS
    36dc380b776b libbpf: Fix build warning on ref_ctr_off
    9e3e1fe20982 perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.
    e497a4a5da65 perf: x86-32: explicitly include <errno.h>
    7b57ddd89565 perf: mips64: Convert __u64 to unsigned long long
    1cfc19423dc7 perf: fix bench numa compilation
    98bc2815fade perf: add SLANG_INC for slang.h
    17209a70b9b3 perf: add sgidefs.h to for mips builds
    9cd4258d910a perf: change --root to --prefix for python install
    8110a4f26628 perf: add 'libperl not found' warning
    bc89d5e08f77 perf: force include of <stdbool.h>
    4f6c760cc876 fat: Replace prandom_u32() with get_random_u32()
    bc53117b12b2 fat: don't use obsolete random32 call in namei_vfat
    30b2236ab378 FAT: Added FAT_NO_83NAME
    cef98d22b4ed FAT: Add CONFIG_VFAT_NO_CREATE_WITH_LONGNAMES option
    0bbd7daba9e1 FAT: Add CONFIG_VFAT_FS_NO_DUALNAMES option
    5883fc340084 aufs6: adapt to v6.6 i_op->ctime changes
    c4342d979bf2 aufs6: fix magic.mk include path
    35266bc2dc81 aufs6: adapt to v6.6
    8edede4e98be aufs6: core
    712248233ebe aufs6: standalone
    3b71a8a848d8 aufs6: mmap
    3e2924871f37 aufs6: base
    7f4907a93101 aufs6: kbuild
    d2f7b03e4aa7 yaffs2: update VFS ctime operations to 6.6+
    bcd6cfcd1aa0 yaffs2: v6.5 fixups
    cc615704b5f5 yaffs2: Fix miscalculation of devname buffer length
    8ef2e22dcf91 yaffs2: convert user_namespace to mnt_idmap
    c9c749f9f7d3 yaffs2: replace bdevname call with sprintf
    395b01cdc39d yaffs2: convert read_page -> readfolio
    d98b07e43ba6 yaffs: replace IS_ERR with IS_ERR_OR_NULL to check both ERR and NULL
    613c6d50fdbe yaffs: fix -Wstringop-overread compile warning in yaffs_fix_null_name
    622c4648936f yaffs2: v5.12+ build fixups (not runtime tested)
    7562133d4090 yaffs: include blkdev.h
    dbd44252cd59 yaffs: fix misplaced variable declaration
    c223a10b1ac0 yaffs2: v5.6 build fixups
    90f6007cfbf4 yaffs2: fix memory leak when /proc/yaffs is read
    37ee169c5ea1 yaffs: add strict check when call yaffs_internal_read_super
    b6e007b8abb6 yaffs: repair yaffs_get_mtd_device
    fb98f65a466a yaffs: Fix build failure by handling inode i_version with proper atomic API
    51e0aac75ea2 yaffs2: fix memory leak in mount/umount
    2b74a0cae7b0 yaffs: Avoid setting any ACL releated xattr
    ff4130a9c376 Yaffs:check oob size before auto selecting Yaffs1
    ba95b409c67c fs: yaffs2: replace CURRENT_TIME by other appropriate apis
    8fa35eba9056 yaffs2: adjust to proper location of MS_RDONLY
    1eb5deaad8c4 yaffs2: import git revision b4ce1bb (jan, 2020)
    4dce67c1e8c8 initramfs: allow an optional wrapper script around initramfs generation
    2f603d83fcc4 pnmtologo: use relocatable file name
    664a6a0a484b tools: use basename to identify file in gen-mach-types
    9de64bc0c185 lib/build_OID_registry: fix reproducibility issues
    ae9b80797295 vt/conmakehash: improve reproducibility
    a972323151bd iwlwifi: select MAC80211_LEDS conditionally
    15d2adcc0198 net/dccp: make it depend on CONFIG_BROKEN (CVE-2020-16119)
    5556a6c04b19 arm64/perf: Fix wrong cast that may cause wrong truncation
    5552dc768ffc defconfigs: drop obselete options
    00fe4152df31 arm64/perf: fix backtrace for AAPCS with FP enabled
    3888d0652edf linux-yocto: Handle /bin/awk issues
    3d55d299f23a uvesafb: provide option to specify timeout for task completion
    23c068c080be uvesafb: print error message when task timeout occurs
    edbfc939266e compiler.h: Undef before redefining __attribute_const__
    c99ae7e2a19a vmware: include jiffies.h
    572d84d928c8 Resolve jiffies wrapping about arp
    fdcd47cac843 nfs: Allow default io size to be configured.
    927d48801098 check console device file on fs when booting
    57cc27f821dd mount_root: clarify error messages for when no rootfs found
    1b53d82a8152 mconf: fix output of cflags and libraries
    1811da09f42c menuconfig,mconf-cfg: Allow specification of ncurses location
    83c2e0c6eb1f modpost: mask trivial warnings
    6de673039484 kbuild: exclude meta directory from distclean processing
    6decd32815f5 powerpc: serialize image targets
    f6b683b38318 arm: serialize build targets
    e798b09ebf57 mtd_blkdevs: add mtd_table_mutex lock back to blktrans_{open, release} to avoid race condition
    dc8a1e5a88f8 x86_64_defconfig: Fix warnings
    68491e5f72b6 powerpc/ptrace: Disable array-bounds warning with gcc8
    d71ebfce3004 powerpc: Disable attribute-alias warnings from gcc8
    62f50884b8b1 powerpc: kexec fix for powerpc64
    da6871c62c37 powerpc: Add unwind information for SPE registers of E500 core
    f161c880c11d mips: make current_cpu_data preempt safe
    5e94a8247ce7 mips: vdso: fix 'jalr $t9' crash in vdso code
    19e36714b1c7 mips: Kconfig: add QEMUMIPS64 option
    e2e537db3cbd 4kc cache tlb hazard: tlbp cache coherency
    aee9870611e5 malta uhci quirks: make allowance for slow 4k(e)c
    881948cd1517 drm/fb-helper: move zeroing code to drm_fb_helper_fill_var
    98ec1963fcb7 arm64: defconfig: cleanup config options
    f1727c537ba8 vexpress: Pass LOADADDR to Makefile
    4474c32dc24a arm: ARM EABI socketcall
    75e31a2b70fd ARM: LPAE: Invalidate the TLB for module addresses during translation fault

(From OE-Core rev: 1b6c37753682a257f5af5e6934800ad6f1b190f2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Bruce Ashfield
fce4a47d78 linux-yocto/6.6: nftables: ptest and cleanup tweaks
Integrating the following commit(s) to linux-yocto/.:

1/2 [
    Author: William Lyu
    Email: William.Lyu@windriver.com
    Subject: features/nf_tables: nft_objref is now builtin
    Date: Wed, 27 Mar 2024 08:52:14 -0700

    Starting from kernel v6.2 (including all rc versions),
    CONFIG_NFT_OBJREF has become builtin and cannot be disabled [1]. So,
    this configure option is removed from nf_tables.cfg.

    References
    [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d037abc2414b4539401e0e6aa278bedc4628ad69

    Signed-off-by: William Lyu <William.Lyu@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/2 [
    Author: William Lyu
    Email: William.Lyu@windriver.com
    Subject: features/nf_tables: Add net_fib_* options for greater ptest coverage
    Date: Wed, 27 Mar 2024 08:52:15 -0700

    Several nftables ptest testcases failed due to missing features. The
    following kernel configuration options are added as part of the missing
    features:

    -   NFT_FIB_INET (tristate "Netfilter nf_tables fib inet support")
        This option allows using the FIB expression from the inet table.
        The lookup will be delegated to the IPv4 or IPv6 FIB depending
        on the protocol of the packet.

    -   NFT_FIB_IPV4 (tristate "nf_tables fib / ip route lookup support")
        This module enables IPv4 FIB lookups, e.g. for reverse path filtering.
        It also allows query of the FIB for the route type, e.g. local, unicast,
        multicast or blackhole.

    -   NFT_FIB_IPV6 (tristate "nf_tables fib / ipv6 route lookup support")
        This module enables IPv6 FIB lookups, e.g. for reverse path filtering.
        It also allows query of the FIB for the route type, e.g. local, unicast,
        multicast or blackhole.

    Adding those three kernel configuration options above pass the following
    ptest testcases:

    -   tests/shell/testcases/parsing/large_rule_pipe
        Previously failed due to using rule:
            meta nfproto ipv6 fib saddr . iif oif missing drop
    -   tests/shell/testcases/nft-f/sample-ruleset
        Previously failed due to using rules:
            fib saddr . iif oif eq 0 counter drop
            fib daddr type { broadcast, multicast, anycast } counter drop
            fib daddr type { broadcast, multicast, anycast } counter drop
            fib daddr type { broadcast, multicast, anycast } counter drop
    -   tests/shell/testcases/optimizations/ruleset
        Previously failed due to using rule:
            fib daddr type broadcast  drop

    Signed-off-by: William Lyu <William.Lyu@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: ee8e8b75fd9a3fb33de2c280f64ed0d38dd67cfb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Bruce Ashfield
47389891e5 linux-yocto/6.6: cfg: genericarm64 configuration updates
Integrating the following commit(s) to linux-yocto/.:

1/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable support for Xilinx KV260
    Date: Wed, 27 Mar 2024 17:08:08 +0000

    Add more config options so that the Xilinx KV260 is fully supported.

    This work was done by Bill Mills <bill.mills@linaro.org>, I simply
    integrated it.

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

2/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: build the Intel Pro/1000 ethernet driver
    Date: Wed, 27 Mar 2024 17:08:10 +0000

    This is both used as a PCIe card, but is also often the virtual hardware
    in VMs.

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

3/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: more enabling for the ThunderX2
    Date: Wed, 27 Mar 2024 17:08:09 +0000

    Enable the ThunderX EDAC support.

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

(From OE-Core rev: 1334de8faf8de3c3be681586e4be27478875253a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Alexander Kanavin
d1622b87f8 selftest/sstatetests: run CDN check twice, ignoring errors the first time
The current CDN isn't able to serve all objects on first request, and it
was suggested to work around that by trying again:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15335#c16

Once CDN moves to a better location this can probably be reverted.

[YOCTO #15335]

(From OE-Core rev: 0db3466303f56736d2fa9a105435eaaadb385082)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Ross Burton
91d11b3ad8 glib-2.0: skip a timing sensitive ptest
The /timeout/rounding test is sensitive to system load, as it expects
timeouts to trigger in windows that on an idle system are realistic but
not when running inside a qemu-system on a loaded system.

[ YOCTO #14464 ]

(From OE-Core rev: 684ac8005aef8ab26e61e6e7535e19c9974972d3)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Tim Orling
863a7dd585 liberror-perl: move to meta-perl
The upstream maintainer for Error has deprecated it for quite some time [1].
The only dependency in oe-core was coreutils-ptest.

[YOCTO #15461]

[1] https://metacpan.org/pod/Error#WARNING

    Using the "Error" module is no longer recommended due to the black-magical
    nature of its syntactic sugar, which often tends to break. Its maintainers
    have stopped actively writing code that uses it, and discourage people from
    doing so. See the "SEE ALSO" section below for better recommendations [2].

[2] https://metacpan.org/pod/Error#SEE-ALSO

    SEE ALSO
    --------

    See Exception::Class for a different module providing Object-Oriented
    exception handling, along with a convenient syntax for declaring hierarchies
    for them. It doesn't provide Error's syntactic sugar of try { ... },
    catch { ... }, etc. which may be a good thing or a bad thing based on what
    you want. (Because Error's syntactic sugar tends to break.)

    Error::Exception aims to combine Error and Exception::Class "with correct
    stringification".

    TryCatch and Try::Tiny are similar in concept to Error.pm only providing a
    syntax that hopefully breaks less.

(From OE-Core rev: 7750469e0acfb7f7ef5b3002d1562df5354e6a61)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Tim Orling
854b0ee4bd coreutils: drop obsolete liberror-perl RDEPENDS
The upstream maintainer for Error has deprecated it for quite some time [1].
There is no dependency in current coreutils tests for it.

[YOCTO #15461]

[1] https://metacpan.org/pod/Error#WARNING

    Using the "Error" module is no longer recommended due to the black-magical
    nature of its syntactic sugar, which often tends to break. Its maintainers
    have stopped actively writing code that uses it, and discourage people from
    doing so.

(From OE-Core rev: 16c8c8de3303805695f58e241245aafa61b3c772)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-30 22:22:19 +00:00
Ross Burton
ae7056844a README.hardware.md: add section on genericarm64 on qemu
(From meta-yocto rev: 3b45bc4faa620ecf11eb117252e6cd6c5e7d0a09)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-28 12:35:11 +00:00
Ross Burton
07d62690b0 README.hardware.md: fix Markdown formatting
This file is has a .md extension so it's meant to be Markdown. Reformat
it so that it's actually Markdown.

(From meta-yocto rev: 53470f2050efeb09935c238f22ce62a0185d0e13)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-28 12:35:11 +00:00
Joshua Watt
f2ff622a4c bitbake: bitbake-hashclient: Warn on bad .netrc
If there is an error parsing .netrc, warn the user on stderr

(Bitbake rev: 6366ea8d9c284d10bb8f4129004b55239d9022c0)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-26 17:11:15 +00:00
Joshua Watt
df60c6d3ee sstatesig: Warn on bad .netrc
If there is an error parsing .netrc, warn the user

(From OE-Core rev: 47ea9418dfa31a87bc0014c482be5bfdc9df98e1)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-26 17:10:51 +00:00
lixiaoyong
3b69367bc2 kernel-module-split.bbclass: enhance objcopy command call for kernel compilation with llvm
Using meta-clang for llvm kernel compilation previously defaulted to the gcc objcopy tool.
To improve flexibility and compatibility, $OBJCOPY is preferred over $HOST_PREFIXobjcopy
in the kernel-module-split.bbclass.

With $OBJCOPY already defined in bitbake.conf, the empty condition has been removed,
simplifying the invocation process.

(From OE-Core rev: 45366f9162e5a7707c8a46c46b115e8501d367d0)

Signed-off-by: lixiaoyong <lxy204899@163.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-26 17:10:51 +00:00
Anibal Limon
7c3f956a0a wic: bootimg-partition allow to set var to get boot files
This is a generic functionality that takes a set of files and create a
boot parition based on IMAGE_BOOT_FILES var, allow to sepcify the
variable name so a BSP plugin can extend this and re-use the
functionality.

(From OE-Core rev: 3a2339455be29a6ff65c8c5f6865a4cd35dd7f63)

Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-26 17:10:51 +00:00
Khem Raj
81567510fd glibc: Repace aarch configure patch fix with a backport
despite it being an issue in gcc and still being open
glibc has fixed this problem upstream regardless, therefore
apply the backport instead.

(From OE-Core rev: a6200d18c6a1438e39d44b391f8d0e343f8fdc1a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-26 17:10:51 +00:00
Ross Burton
daa6afead8 classes/qemuboot: add depends on qemu-system-native and qemu-helper-native
Any image that inherits qemuboot must also add image dependencies on
qemu-system-native and qemu-helper-native, otherwise the image won't
be able to be booted.

Currently this is done by conf/machine/include/qemu.inc, but not every
machine that uses qemuboot includes that file.

Move the EXTRA_IMAGEDEPENDS from qemu.inc into qemuboot.bbclass, so that
the dependencies don't have to be duplicated.

(From OE-Core rev: dd54cf058f632e985917ff227483995f368e6a7d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-25 13:01:14 +00:00
Ross Burton
21c9a9f814 genericarm64: add qemuboot configuration
A basic SystemReady IR system can be provided by qemu-system-aarch64
and u-boot, so tell u-boot to build the qemu_arm64 machine and configure
qemuboot to start that u-boot and search the virtio-attached wic image
for the EFI boot partition.

Currently this machine support emulated (Cortex-A76) and virtualised (KVM)
execution, and virtio storage/network/console.  Display support will be
added shortly.

Note that this machine still doesn't build U-Boot by default, as a u-boot
binary for qemu in deploy would potentially confuse users who want to
boot on real hardware and think this u-boot is needed.  If you wish to
use genericarm64 with runqemu, you'll need to manually bitbake u-boot.

(From meta-yocto rev: cd40f405844c1ccfabcbe64ad6be5d98d0221f72)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:19:00 +00:00
Joshua Watt
978206fed4 bitbake: siggen: Add support for hashserve credentials
Adds support for hashserver credentials to be specified in the
SignatureGenerator

(Bitbake rev: 741bef3755fde7bae1386aad575ea704d9fe0969)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:19:00 +00:00
Bruce Ashfield
d616929413 linux-yocto/6.6: cfg: genericarm64 platform/peripheral support
Integrating the following commit(s) to linux-yocto/.:

1/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: include .scc files instead of .cfg
    Date: Wed, 20 Mar 2024 19:42:09 +0000

    Some .cfg files were included accidentally, fix this.

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

2/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: move CONFIG_PHYLINK under the right comment
    Date: Wed, 20 Mar 2024 19:42:10 +0000

    A bug in my annotation script meant this item ended up in the wrong place.

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

3/12 [
    Author: Bill Mills
    Email: bill.mills@linaro.org
    Subject: bsp/genericarm64: Automatically create /dev/i2c* devices
    Date: Wed, 20 Mar 2024 19:42:11 +0000

    With CONFIG_I2C_DEV=m you must modprobe that module in order to get the
    /dev nodes.  It is a small module (~8.5K) so just include it in.

    Signed-off-by: Bill Mills <bill.mills@linaro.org>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

4/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable hugetlbfs
    Date: Wed, 20 Mar 2024 19:42:12 +0000

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

5/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: integrate the IMX clocks
    Date: Wed, 20 Mar 2024 19:42:13 +0000

    If these are kernel modules then there's a WARN_ON triggered when booted
    on IMX boards.

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

6/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable more SPI controllers
    Date: Wed, 20 Mar 2024 19:42:14 +0000

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

7/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable PHY subsystem
    Date: Wed, 20 Mar 2024 19:42:15 +0000

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

8/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable USB On-The-Go and Gadget
    Date: Wed, 20 Mar 2024 19:42:16 +0000

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

9/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable SATA
    Date: Wed, 20 Mar 2024 19:42:17 +0000

    SBCs don't tend to use SATA, but larger platforms will.

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

10/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: support some i.MX8 boards
    Date: Wed, 20 Mar 2024 19:42:18 +0000

    Add more hardware enabling so that NXP i.MX8M boards boot successfully.

    Thanks to anton.antonov@arm.com for the options and testing.

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

11/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable networking on Kontron KBox
    Date: Wed, 20 Mar 2024 19:42:19 +0000

    Thanks to anton.antonov@arm.com.

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

12/12 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: enable Marvell ThunderX2 support
    Date: Wed, 20 Mar 2024 19:42:20 +0000

    Add the required options so that this BSP works on the Marvell ThunderX2.

    Thanks to anton.antonov@arm.com for the config and testing.

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

(From OE-Core rev: 18e696048cc3486c6cce600c5a2a27a887f558e1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Quentin Schulz
8580c23284 u-boot: fix externalsrc not triggering do_configure on defconfig changes
externalsrc only monitors files listed in CONFIGURE_FILES environment
variable to know if it should trigger a rebuild of do_configure. By
default it is unset, but the defconfig from U-Boot should be listed
otherwise an old defconfig may be used even though the change is
technically detected by the do_compile logic later in the process.

Because U-Boot recipe uses `make oldconfig` when no defconfig is passed,
monitor .config for that special case.

This fixes U-Boot recipes not detecting defconfig changes when
devtool'ed.

Reported-by: Iskander Amara <iskander.amara@theobroma-systems.com>
Cc: Quentin Schulz <foss+yocto@0leil.net>
(From OE-Core rev: fef517b5f978cf848b9cc40e8ce6bb2762681182)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Sam Van Den Berge
f9b691150b shadow: don't install libattr.so.* when xattr not in DISTRO_FEATURES
Fixes the following issue:

install: cannot stat '.../recipe-sysroot-native/usr/lib/libattr.so.*': No such file or directory
...
ERROR: Task (virtual:native:.../shadow_4.14.2.bb:do_install) failed with exit code '1'

(From OE-Core rev: b3afb80d07d97aaa786b6921fb6f61e316201367)

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Joshua Watt
84cb5d2568 sstatesig: Set hash server credentials from bitbake variables
Allows the hash server credentials to be specified in bitbake variables.
If omitted, the users .netrc will be checked

(From OE-Core rev: ba391d39f2b888706e53028e9df3a37c5baedfc1)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Ross Burton
b3b611a5e5 tcl: skip I/O channel 46.1
This test, which is in both the io and chanio test suites, has short
timeouts which can trigger on loaded systems.

[ YOCTO #15407 #15421 ]

(From OE-Core rev: 1617b98491c5293567674e4b9c49c2017fb5c8b2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Ross Burton
9d1df0596f tcl: improve run-ptest
By setting ERROR_ON_FAILURES we don't need to grep the output to know
if the tests failed.  By default the log runner will print the failed
test case, so we don't need to store the log at all.

Set the skipped tests across multiple lines so that it's easier to see
what skips are related to what bugs, and to avoid very long lines.

Use basename instead of awk to get the test name.

(From OE-Core rev: a3fffea6b370e22380b0699dcefcda16fdc1f116)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Joe Slater
6b70b8b646 systemd: enable mac based names in NamePolicy
Some BSPs only provide information to construct a
predictable network interface named based on a mac
address, so we enable that NamePolicy option.

This policy has been adopted for sysvinit as of
commit 4a7b42fcf6981d3120c08091a7ed3d4d7bcd41f0.

(From OE-Core rev: 37bd8e8dddce9d0b5bfbcf9244225c3b853d7077)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Trevor Woerner
3fa85ab34e bmaptool: update to latest
Upstream contains the patches that were being carried here.

(From OE-Core rev: 240b3db72343f20f354f2681da48946da04c3260)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Tom Hochstein
084fe2241b toolchain-shar-relocate.sh: Add check for missing command 'file'
On a machine without the file command, the SDK install fails with a
cryptic error message.

```
xargs: file: No such file or directory
sed: no input files
Failed to replace perl. Relocate script failed. Abort!
```

Add a test for 'file' to print a clear error message.

```
The command 'file' is required by the relocation script, please install it first. Abort!
```

(From OE-Core rev: 1aa19b9e34ebe6f39a25364073fed4c069f650e8)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Harish Sadineni
62c184ed61 gcc: Oe-selftest failure analysis - fix for vect-simd test failures
In gcc vect module, the vect-simd-clone-10.c & vect-simd-clone-12.c tests are failed with below error, due to a bug in testcase:
xgcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files compilation terminated'

Detailed bug info & upstream fix is here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113899

Upstream Status: Backport [https://gcc.gnu.org/g:948dbc5ee45f9ffd5f41fd6782704081cc7c8c27]

(From OE-Core rev: 50b6b938ec91dee346642b95cdcb35043be1697c)

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-23 10:18:20 +00:00
Ross Burton
f111c2a120 python-*: don't set PYPI_ARCHIVE_NAME and S when PYPI_PACKAGE is sufficient
There's no need to explicitly set PYPI_ARCHIVE_NAME and S when
PYPI_PACKAGE is set correctly.

(From OE-Core rev: e757a0595602dafcd95a988fb123a8fdb3d4d82b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:27:48 +00:00
Ross Burton
0291c2c131 python3_pip517: just count wheels in the directory, not subdirectories
The install task uses a recursive find to check that it can only find
one wheel, but then does a non-recursive glob to install.  This can
lead to false-failures if PEP517_WHEEL_PATH points at a directory with
subdirectories.

Solve this mismatch by making the find non-recusive.

(From OE-Core rev: 0142da4768b7818b94601a89bf867e10a0ba0ec0)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:27:48 +00:00
Derek Erdmann
825055e83e bitbake: fetch2/git: Install Git LFS in local repository config
Git uses a lock file to prevent concurrent modifications to the global
config, so if unpack tasks for different recipes try to run "git lfs
install" simultaneously the operation can fail:

    error: could not lock config file /home/build/.gitconfig: File exists exit status 255
    Run `git lfs install --force` to reset Git configuration.

Adding "--local" sets the smudge and clean filters in the local
repository's config instead of modifying the user's global config.

(Bitbake rev: 328ca4de8422be514fa0d0c9e3cfd36bb9d3e9a7)

Signed-off-by: Derek Erdmann <derek.erdmann@sonos.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:46 +00:00
Yang Xu
64057e6b15 bitbake: bitbake-worker: Fix silent hang issue caused by unexpected stdout content
This patch addresses an issue in bitbake-worker where stdout,
reserved for status reporting, is improperly accessed by child processes.

The problem occurs during the execution of parseRecipe,
which calls anonymous functions. If these functions use print-like operations,
they can inadvertently output data to stdout. This unexpected data can cause
the runqueue to hang silently, if the stdout buffer is flushed
before exec_task is executed.

To prevent this, the patch redirects stdout to /dev/null and ensures it is
flushed prior to the execution of exec_task.

(Bitbake rev: 08f3e677d6af27a41a918aaa9da9c1c9b20a0b95)

Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:46 +00:00
Felix Moessbauer
9504df41f9 bitbake: utils: better estimate number of available cpus
When running in a cgroup which is limited to a subset of cpus (via
cpuset.cpus), cpu_count() should return the number of cpus that can be
used instead of the number of cpus the system has.

This also aligns the semantics with nproc.

(Bitbake rev: a029bfe96c6542f178720c72a772b7ede9898118)

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Viswanath Kraleti
3a97792820 bitbake: fetch2: Fix misleading "no output" msg
When a command is run with a non-null log, errors are only output to the
log and are not returned in the exception. In that case direct users to
that logfile instead of telling the command had no output.

(Bitbake rev: 944fe0a77932a5559e01ae6035c4bffa5185ea6a)

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Ross Burton
e20ee877ed bitbake: fetch2: handle URIs with single-valued query parameters
Whilst typically the URI query is a list of key-value pairs, that's not
actually required by the URI specification.

For example:  http://example.com/foo?bar is a valid query, but this will
result in the fetcher raising an exception:

  File "bitbake/lib/bb/fetch2/__init__.py", line 265, in __init__
    self.query = self._param_str_split(urlp.query, "&")
  File "bitbake/lib/bb/fetch2/__init__.py", line 293, in _param_str_split
    for k, v in [x.split(kvdelim, 1) for x in string.split(elmdelim) if x]:
ValueError: not enough values to unpack (expected 2, got 1)

In this case the query is just "bar", but the fetcher is trying to split
it into a key-value pair.

The URI object exposes the parsed query explicitly as a dictionary of
key-value pairs, so we have to be a little creative here: if a value is
None then it isn't a key-value pair, but a bare key.

Fix this by handling elements without the deliminator in _param_str_split()
(by assigning the value to None), and handle a None value when formatting
the query in _param_str_join().

(Bitbake rev: eac583bd4c46f3bb9661852cb6a1448f16147ff1)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Peter A. Bigot
adb0ea98d1 bitbake: lib/bb: support NO_COLOR
Red text on a black background can make it difficult for people with
visual impairments to read the text of error messages.  Respect the
presence of a non-empty NO_COLOR environment variable as an indication
the user doesn't want colorization to be automatically enabled.

See: https://no-color.org/
(Bitbake rev: d9986c54cd3d67ed1f7cb636b17696c8d0d4db85)

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Philippe Rivest
2eeef2800b bitbake: bitbake: fetch2/git: Escape parentheses in git src name
FIXES [YOCTO #15404]

When using git fetcher on a repo with parentheses in its URL, the
invocation of the git clone command will fail. The clone directory
is not quoted thus the shell will return an error and won't execute
the command.

(Bitbake rev: b5624ee564)

Cc: Philippe Rivest <privest@genetec.com>

(Bitbake rev: 12f9738577934ad7c99f0770f1392a9d6050e7d6)

Signed-off-by: Philippe Rivest <technophil98@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
david d zuhn
ecb1248914 bitbake: bitbake-worker: allow '=' in environment variable values
Limit the split to key & value (2 items) instead of the n items one
can get if there are '=' characters in the value.

Fixes [YOCTO #15447]

(Bitbake rev: 86315961829ab1d137a0265cc246c44d3929e1fb)

Signed-off-by: david d zuhn <david.zuhn@sonos.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Sava Jakovljev
0acdb81ca6 bitbake: bitbake-worker: Fix bug where umask 0 was not being applied to a task
* In the current implementation, "umask" variable is initially set to
  None and overwritten with user-specified value. However, in the worker
  implementation, a faulty if clause would only check whether the
  variable contains a value that evaluates to True, and not whether
  the variable is defined, so the value of 0 would lead to umask not
  being changed.
  This bug makes it impossible to have a task set its umask to value 0,
  for any possible reason it may want to.
  Fix this bug by extending the condition checked in the worker
  implementation.

(Bitbake rev: 19f9df6c750c592316a0fa18165b68636281fe3e)

Signed-off-by: Sava Jakovljev <sjakovljev@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Alexander Kanavin
98d09d41fa bitbake: bitbake: improve descriptions of '-S printdiff'
(Bitbake rev: becf88c2250a47102c8d36ad8b40839e0bfa9137)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:26:45 +00:00
Markus Volk
1b15f9e78a gtk4: update 4.12.5 -> 4.14.1
- Remove ffmpeg backend as it was removed upstream

Overview of Changes in 4.14.1, 16-03-2024
=========================================

* GtkTextView:
 - Fix a mixup of cursor and anchor when retrieving surrounding text
   in input methods

* Printing:
 - Avoid accessing freed printers

* Accessibility:
 - Fix memory leaks

* GDK:
 - Rename the GDK_VULKAN_SKIP environment variable to GDK_VULKAN_DISABLE
 - Add a GDK_GL_DISABLE environment variable

* GSK:
 - Rename the GSK_GPU_SKIP environment variable to GSK_GPU_DISABLE
 - Speed up handling of repeated ops, which should help for text
 - Speed up the inner loop of text node conversion
 - Drop the glyph-align optimization flag
 - ngl: Avoid reusing frames while they are in use
 - Fix flickering thumbnails in nautilus
 - Speed up buffer handling in both ngl and Vulkan

* Demos:
 - Skip demos using gl shaders when we're not using the gl renderer

* Build:
 - Fix some ubsan warnings
 - Avoid zink in ci since it spams stderr

* Translation updates:
 Czech
 German
 Korean
 Russian

Overview of Changes in 4.14.0, 12-03-2024
=========================================

Note: The new renderers and dmabuf support are using graphics drivers
in different ways than the old gl renderer, and trigger new driver bugs,
(see for example https://gitlab.gnome.org/GNOME/gtk/-/issues/6418 and
https://gitlab.gnome.org/GNOME/gtk/-/issues/6388). Therefore, it is
recommended to use the latest mesa release (24.x) with the new renderers.

* GtkTextView:
 - Don't snapshot children twice
 - Don't blink the cursor when hidden

* GtkEmojiChooser:
 - Fix presentation selector handling

* GtkSnapshot:
 - Fix wrong nodes with transformed shadows

* GtkIMContext:
 - Make gtk_im_context_activate_osk public

* Accessibility:
 - Implement get_contents_at for all our text widgets
 - Add GtkAccessibleText.get_default_attributes

* GSK:
 - Don't fall back to cairo for software rendering. gl+llvmpipe is better
 - Round vertical glyph position to a device pixel position if the font is hinted
 - Fix problems with clip handling
 - Make vulkan and ngl match their font handling
 - Fix some corner-cases with offloading and clips
 - Fix problem with rendering of missing glyphs in hinted fonts

* MacOs:
 - Implement cursor-from-texture

* Translation updates:
 Basque
 British English
 French
 Indonesian
 Kazakh
 Latvian
 Lithuanian
 Norwegian Bokmål
 Slovenian
 Spanish
 Turkish

Overview of Changes in 4.13.9, 02-03-2024
=========================================

* GtkEditable:
 - Fix preconditions to be not too strict

* GtkEmojiChooser:
 - Support search in the locale as well as in English

* GtkIconTheme:
 - Make gtk_icon_paintable_new_for_file support symbolics

* GtkVideo:
 - Fix a problem with cursor handling that could lead to crashes

* Accessibility:
 - Fix GetCharacterAtOffset implementation
 - Add a Terminal role
 - Make TextCaretMoved match gtk3
 - Support multiple levels of GtkEditable delegates

* GSK:
 - Make the node parser more flexible for text nodes
 - Change the way font scaling is handled to avoid clipping
 - Fix handling of missing glyphs in the new renderers

* X11:
 - Don't claim to support shadows without a compositor

* Wayland:
 - Fix handling of output scales

* Tools:
 - Add a compare command to gtk4-rendernode-tool

* Build:
 - Fix some ubsan complaints

* Translation updates:
 Basque
 British English
 Catalan
 Finnish
 Galician
 Georgian
 Hebrew
 Indonesian
 Kazakh
 Latvian
 Lithuanian
 Persian
 Polish
 Russian
 Slovenian
 Spanish
 Turkish
 Ukrainian

Overview of Changes in 4.13.8, 20-02-2024
=========================================

* Accessibility:
 - Add a GtkAccessibleText interface for allowing 3rd party
   text widgets (notably vte) to be accessible
 - Avoid duplicate accessible descriptions
 - Fix GetAccessibleAtPoint

* GSK:
 - Avoid offscreens for disjoint containers
 - Don't use the gpu renderers with llvmpipe
 - Fix various rendering issues found by tests
 - Allow unnormalized node bounds again
 - Fix a broken case of rounded-rect intersection
 - Fix handling of external textures in gpu renderers
 - Make gpu renderers work with WGL on Windows

* build:
 - Allow building without dmabuf support on (old) Linux

* X11:
 - Fix monitor enter/leave signals

* Translation updates:
 Basque
 Brazilian Portuguese
 Catalan
 Czech
 Galician
 Georgian
 Hebrew
 Lithuanian
 Persian
 Russian
 Turkish
 Ukrainian

Overview of Changes in 4.13.7, 11-02-2024
=========================================

* GtkFileChooser:
 - Speed up opening

* GtkCalendar:
 - Add some missing setters and getters

* Accessibility:
 - Add socket support for webkit accessibility
 - Implement AT-SPI text for GtkText
 - Implement AT-SPI component generically
 - Add an announce API

* GSK:
 - Make the ngl renderer work on macOS
 - Fix a crash in the vulkan renderer
 - Make nodeparser allow aliases for fonts again
 - Implement cache eviction for glyph and texture caches
 - Fix ngl shaders to work on GL < 4.0
 - Require GL 3.3 for the ngl renderer
 - Fix problems with scaled shadows
 - Fix problems with holes for underlaid subsurfaces
 - Improve handling of scales and glyph cache efficiency

* Media:
 - Support dmabufs in the gstreamer backend. This allows
   zero-copy video playback on Wayland when paired with
   hardware video decoding
 - Drop the experimental ffmpeg backend. It hasn't been
   building for a year

* Wayland:
 - Commit empty frames if and double-buffered state is pending
 - Fix monitor size information when using mutter without
   the scale-monitor-framebuffer setting
 - Clear the current tablet on tab leave, fixing a crash

* macOS:
 - Propagate unhandled input events back to the OS

* Tools:
 - Make the crash handling in gtk4-node-editor more robust

* Translation updates
 Galician
 Georgian
 Occitan
 Turkish

Overview of Changes in 4.13.6, 25-01-2024
=========================================

This release changes the ngl renderer to be the default renderer.

The intent of this change is to get wider testing and verify that
the new renderers are production-ready. If significant problems
show up, we will revert this change for 4.14.

You can still override the renderer choice using the GSK_RENDERER
environment variable.

Since ngl can handle fractional scaling much better than the old gl
renderer, we allow fractional scaling by default with gl now. If you
are using the old gl renderer (e.g. because your system is limited to
GLES2), you can disable fractional scaling by setting the GDK_DEBUG
environment variable to include the gl-no-fractional key.

* GtkColumnView:
 - Fix infinite loops in dispose
 - Fix problems with weak ref cycles in GtkExpression

* GtkListView:
 - Fix some corner cases with sections during insertions and deletions
 - Don't double-recycle widgets

* GtkStack:
 - Add automatic cleanup for GtkStackPage

* GDK:
 - Use standard cursor names for drag cursors
 - Enable fractional scaling with gl by default

* GSK:
 - Many fixes and improvements to the unified renderers:
   - Fix text rendering with the uber shader
   - Fix rounding issues with fractional scales
   - Fix some memory leaks
   - Many text rendering fixes
   - Implement subpixel positioning for glyphs
   - Support custom fonts in node files
   - Add tests for font rendering
   - Fix drawing of repeat nodes
   - Implement subpixels positioning
   - Evict stale textures, glyphs and atlases from the cache
 - Some fixes and improvements to the GL renderer:
   - Fix problems with GLES on Nvidia
   - Avoid a crash in the mask demo
   - Respect opacity of the first child node in containers
 - Some fixes and improvements to the fallback renderer:
   - Fix drawing of repeat nodes
 - Make ngl the default renderer

* Wayland:
 - Fix problems with tablet cursors
 - Fix problems without seats

* Accessibility:
 - Respect a separate "show-status-shapes setting
 - Fix change notification for accessible names on some widgets

* Inspector:
 - Show the git commit in devel builds

* Tools:
 - Make gtk4-node-editor autosave its contents
 - Add a benchmark command to gtk4-rendernode-tool

* Translation updates:
 French
 Galician
 Georgian
 Occitan
 Persian
 Russian
 Vietnamese

Overview of Changes in 4.13.5, 07-01-2024
=========================================

This release adds two new GSK renderers called vulkan and ngl,
that are built from the same sources. The new renderers can
handle many corner cases correctly that the current gl renderer
does not handle, and they offer advantages such as antialiasing
and supersampled gradients.

The new renderers are still considered experimental, and GTK
will only use them if they are explicitly selected using the
GSK_RENDERER environment variable.

As part of this work, the GSK include files have been rearranged.
It is no longer necessary to include renderer-specific headers for
ngl and vulkan (and doing so will trigger deprecation warnings),
and their constructors are always available.

The previously available experimental GdkVulkanContext APIs and
the old Vulkan renderer have been removed.

Vulkan is now enabled by default, and Linux distributions should
build GTK with Vulkan support. This requires the glslc shader
compiler as a new dependency.

Vulkan is now also used for dmabuf support.

* GtkDropdown:
 - Fix display of initial selection

* GtkShortcutsWindow:
 - Make the window adapt to smaller screen widths

* GtkTextView:
 - Fix a possible NULL dereference in history

* GDK:
 - Make the png loader safer against overflows

* GL:
 - Fix some errors in handling of texture formats and mipmaps

Overview of Changes in 4.13.4, 30-12-2023
=========================================

* GtkFileDialog:
 - Return an error if no file is selected

* GtkFileLauncher:
 - Add a writable property

* GtkFileChooserNative:
 - Make closing portal file dialogs work

* GtkEmojiChooser:
 - Update Emoji data to CLDR v43

* GtkStringList:
 - Add item-type and n-itmes properties

* Input:
 - Respect GTK grabs on DND events
 - Fix crossing event generation for enter/leave

* Wayland:
 - Avoid recreating wl_buffers needlessly
 - Be more careful when loading cursors

* Dmabuf:
 - Add support for all Dmabuf formats
 - Tweak the offload code a bit, allow offloading translucent
   textures, as long as they are raised. Decline to offload
   with fractional scales.

* Accessibility:
 - Add a few more accessible roles

* GL:
 - Use GLES by default
 - Tweak GDK_DEBUG values. The new values are
   gl-disable-gl, gl-disable-gles and gl-prefer-gl.
   The gl-legacy and nograbs values have been dropped.

* Css:
 - Reduce memory consumption during theme loading
 - Fix opacity handling

* Theme:
 - Refresh some of the included symbolic icons

* MacOs:
 - Silence secure-restore message

* Build:
 - Require Vulkan 1.3

* Translation updates:
 Chinese (China)
 Czech
 Hebrew
 Icelandic
 Polish
 Russian

Overview of Changes in 4.13.3, 15-11-2023
=========================================

* GtkGraphicsOffload: A new widget to support passthrough
  of dmabuf textures with subsurfaces on Wayland

* GtkListView:
 - reduce tree indentation

* GtkInspector:
 - Show more GL information
 - Add a subsurface overlay
 - Improve the fps overlay

* GDK
 - Allow implicit modifiers for dmabufs
 - Support more dmabuf formats: NV16, NV61, NV24, NV42
   and 3-plane YUV formats

* GSK
 - Fix padding of icons in the GL atlas
 - Fix handling of texture-scale nodes in cairo
 - Treat texture-scale nodes more faithfully in GL

* Accessibility:
 - Tweak the accessible name computation for corner cases

* The GTK/GDK/GSK_DEBUG environment variables now
  work in productions as well as in debug builds

* Translation updates
 Catalan
 French
 Russian

Overview of Changes in 4.13.2, 22-10-2023
=========================================

* GtkPrintdialog:
 - New async-style api to replace GtkPrintOperation

* GtkEmojiChooser:
 - Add more languages: Bengali, Hindi, Japanese, Finnish,
   Thai and Norwegian bokmål

* Accessibility:
 - Fix some utf8 handling issues

* GDK:
 - Add support for dmabuf textures, with GdkDmabufTextureBuilder
 - Add a few more supported memory formats for textures

* GSK:
 - Add a fast-path for masking color
 - Add support for importing dmabuf textures
 - Handle GLES better by using some extensions

* Translation updates:
 Catalan
 Russian
 Turkish

Overview of Changes in 4.13.1, 28-09-2023
=========================================

* GtkTooltip:
 - Don't cross native boundaries when looking for tooltips

* GtkCenterLayout, GtkEntry, GtkSearchEntry:
 - Fix some issues with baseline handling

* GtkColorButton, GtkFontButton:
 - Propagate focus-on-click

* GtkFileChooser:
 - Make "Visit file" scroll to the file

* GtkSwitch:
 - Respect text direction

* GtkWindow:
 - Don't assume titlebars are GtkHeaderBars

* Printing:
 - Fix some problems with the portal implementation
 - Add a new simple print API: GtkPrintDialog

* Paths:
 - GskPathMeasure performance has been improved
 - Add custom contours for circles, rounded rectangles and rectangles
 - Simplify GskPathPoint handling
 - gsk_path_point_get_closest_point now returns the distance as well
 - Make GskPathBuilder simplify curves

* Input:
 - Handle (some) single-key compose sequences
 - Fix active state tracking with sensitivity changes and grabs

* GSK:
 - Make the repeated gradients match between GL and cairo
 - Make rounded rect shrinking match between Vulkan, GL and cairo
 - Fix parsing of text nodes with color glyphs
 - Restrict an optimization to the cases where it is crrect
 - Fix rendering of shadows with opacity
 - The Vulkan renderer now requires Vulkan 1.2
 - GL: Transition gradients unpremultiplied
 - GL: Fix clipping of shadows
 - GL: Some optimizations
 - Broadway: Fix memory leaks in the renderer

* Wayland:
 - Make activation more reliable

* macOS:
 - Clamp damage regions to the surface size

* Tools:
 - gtk4-path-tool gained restrict and reverse commands
 - gtk4-path-tool show and render can show control points

* Demos:
 - Add a demo for hit testing with paths

* Build:
 - Fix build problems with C++ compilers

* Deprecations:
 - gtk_window_present_with_time

* Translation updates
 Brazilian Portuguese
 British English
 Catalan
 Chinese (China)
 Czech
 Danish
 Dutch
 Esperanto
 Galician
 Georgian
 Italian
 Korean
 Latvian
 Lithuanian
 Persian
 Polish
 Punjabi
 Slovenian
 Turkish

Overview of Changes in 4.13.0, 25-08-2023
=========================================

* GskPath, GskPathBuilder, GskPathMeasure:
  Data types and APIs for path rendering. These APIs are still
  considered experimental, and may change until 4.14. Please try
  them out and give us feedback. Documentation can be found
  here: https://docs.gtk.org/gsk4/paths.html

* GtkGridView:
 - Fix a crash when scrolling

* GtkColumnView:
 - Fix a refcounting issue in the new scroll_to api

* GtkTreeView
 - Fix style classes for sort arrows

* GtkEntry:
 - Improve tracking of user changes (for undo)

* GtkNotebook:
 - Fix a critical when switching pages

* GtkColor/FontDialogButton:
 - Make these widgets activatable

* GtkMenuButton:
 - Fix problems with focus handling
 - Fix problems with DND
 - Make flags a settable property

* GtkShortcutsWindow:
 - Add API to build shortcuts windows programmatically

* Printing
 - Fix the cpdb backend build

* MacOS:
 - Make file filters work again

* GSK:
 - Fix issues with color matrix nodes

* Wayland:
 - Fix a crash with compositors other than gnome-shell

* Deprecations:
 - Remaining GtkTreeModel-related types

* Demos:
 - Add a few path demos to gtk4-demo

* Tools:
 - gtk4-path-tool provides a commandline interface for paths

* Translation updates:
 Basque
 Catalan
 Finnish
 Galician
 Georgian
 German
 Greek
 Indonesian
 Kazakh
 Persian
 Polish
 Romanian
 Spanish
 Swedish
 Turkish
 Ukrainian

(From OE-Core rev: 9d6923da5564d45bbf80fd722184e87b4a2be867)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Khem Raj
d61921cc1e llvm: Upgrade to 18.1.2 bugfix release
(From OE-Core rev: ba6435d13f9d565a92d3e6f15a04398c8a7133f6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Markus Volk
47ec509476 libadwaita: update 1.4.4 -> 1.5.0
=============
Version 1.5.0
=============

- AdwDialog
  - Fix widget selection in inspector when presented as a bottom sheet
  - Fix clicks on the dimming still working with can-closed=true
- Demo
  - Fix <developer> in metainfo
- Translation updates
  - Belarusian
  - Brazilian Portuguese
  - Danish
  - French
  - Galician
  - Hungarian
  - Italian
  - Kabyle
  - Kazakh
  - Latvian
  - Norwegian Bokmål
  - Occitan
  - Slovenian
  - Swedish
  - Turkish

==============
Version 1.5.rc
==============

- Depend on GTK 4.13.4
- Fix layout with GtkSettings:gtk-xft-dpi == 0
- AdwAboutDialog
  - Support zero-clause bsd license
  - Fix example
- AdwAboutWindow
  - Support zero-clause bsd license
- AdwDialog
  - Allow bottom sheets to shrink beyond 360px width
  - Fix a crash when swiping on the dimming
  - Adjust dimming intensity
- AdwNavigationView
  - Fix signal mentions in push() docs
  - Disable missing title warning when containing a split view
- AdwStatusPage
  - Fix property notification in set_child()
- AdwSwipeTracker
  - Use a smaller threshold for window handles
- AdwToolbarView
  - Fix a typo in docs
- Demo
  - Fix window.devel demo
- Stylesheet
  - Adjust shade colors in dark
  - Make .devel not propagate to dialogs

- Translation updates
  - Basque
  - Belarusian
  - Catalan
  - Chinese (China)
  - Chinese (Taiwan)
  - Czech
  - Dutch
  - Finnish
  - French
  - Georgian
  - Hebrew
  - Hungarian
  - Indonesian
  - Kazakh
  - Korean
  - Latvian
  - Lithuanian
  - Norwegian Bokmål
  - Occitan
  - Persian
  - Polish
  - Russian
  - Spanish
  - Swedish
  - Ukrainian

================
Version 1.5.beta
================

- Fix build with libappstream 1.0
- Fix deprecation warning with libappstream 0.16.4
- Fix a build error with MSVC
- Add AdwDialog, AdwAlertDialog, AdwPreferencesDialog and AdwAboutDialog
- AdwAboutWindow
  - Don't pre-select the first section on the Legal page
- AdwApplicationWindow
  - Add :dialogs and :visible-dialog
- AdwBreakpointBin
  - Add remove_breakpoint()
  - Fix focus during transitions
  - Fix swapping the child during transitions
- AdwButtonContent
  - Horizontally center children
- AdwCarousel
  - Fix carousel scroll behavior with page reordering
- AdwComboRow
  - Don't change selection on filtering
  - Fix focus when opening the popover
  - Set the correct state on the selected checkmark
- AdwEntryRow
  - Add :text-length
- AdwHeaderBar
  - Integrate with AdwDialog
  - Fix visibility after changing :show-back-button
- AdwMessageDialog
  - Add remove_response()
  - Fix choose() annotations
- AdwNavigationView
  - Fix a warning message
- AdwPreferencesWindow
  - Fix :visible-page and :visible-page-name docs
- AdwStyleManager
  - Support contrast setting in the settings portal
- AdwSwipeTracker
  - Add :allow-window-handle
- AdwTabOverview
  - Allow child focus on out animations
- AdwTabView
  - Keep view alive during ::page-detached
  - Fix crashes when using :pages
- AdwViewSwitcherBar
  - Fix a warning when empty
- AdwWindow
  - Add :dialogs and :visible-dialog
- Demo
  - Port everything to AdwDialog
- Docs
  - Add a migration guide for adaptive dialogs
  - Add a favicon
  - Use the new asides
  - Fix erroneous <child> use in breakpoints migration guide
- Stylesheet
  - Increase GtkSwitch padding
  - Align property row title and other row subtitle sizes
  - Align expander row and combo row arrows
  - Stop hiding switch shapes
- Translation updates
  - Czech
  - French
  - Galician
  - German
  - Greek
  - Hebrew
  - Hungarian
  - Norwegian Bokmål
  - Persian
  - Russian
  - Serbian
  - Slovenian
  - Turkish
  - Ukrainian

(From OE-Core rev: 95b01b95a99df06e555416ec4834df426bca4c4a)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Wang Mingyu
e420d29267 libadwaita: upgrade 1.4.3 -> 1.4.4
Changelog:
===========
- Fix layout with GtkSettings:gtk-xft-dpi == 0
- AdwNavigationView
  - Fix signal mentions in push() docs
- AdwStatusPage
  - Fix property notification in set_child()
- AdwToolbarView
  - Fix a typo in docs
- Translation updates
  - British English

(From OE-Core rev: 2357cc49a25aaa87dc64e1ec02f365f69a95c0dc)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Markus Volk
5d826cd425 gsettings-desktop-schemas: update 45.0 -> 46.0
Major changes in 46.0
=====================
- Translation updates

Major changes in 46.rc
======================
- Make default clock format overridable by translators
- Translation updates

Major changes in 46.beta
========================
- Add key to modify XKB options
- Add key to indicate whether switches should indicate
  state with shapes
- Translation updates

Major changes in 46.alpha
=========================
- Update default background file extension to jxl
- Translation updates

(From OE-Core rev: 51a559f0ca30df6867baa0871cdde1d4bfe088e8)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Xiangyu Chen
212be69715 ltp: fix missing connectors tests in scenario_groups/default
Upstream moved the connectors tests to kernel_misc group but didn't
update the group index, this cause test kernel by group report error.

(From OE-Core rev: 360c6230f8466975b2907d23c056110296c4e68d)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Alejandro Hernandez Samaniego
ab02ac1b27 python3-manifest: Sync RDEPENDS with latest version
bitbake python3 -c create_manifest revealed several changes that were missing.

This commit contains a manual cherry-picked version of those, making sure that
new RDEPENDS are reflected since the last time this was updated.

In this case its taking out unnecessary dependencies to python3-profile and
python3-shell.

(From OE-Core rev: 692013b9aa5106561afb4c6506661bab41d88461)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Khem Raj
b9497332dd qemuriscv: Fix kbd and mouse emulation for qemuriscv64
(From OE-Core rev: 870bfc48f1d051831a9326b7f320abbbb6fa26d6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-22 16:25:08 +00:00
Bruce Ashfield
94f99434ef yocto-bsps: update to v6.6.21
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    06644f0d7193 drm/tilcdc: Set preferred depth
    62e5ae5007ef Linux 6.6.21
    d6ac0ee5ff95 drm/nouveau: don't fini scheduler before entity flush
    ece1aaec7f7e selftests: mptcp: rm subflow with v4/v4mapped addr
    8e7f31bf1101 selftests: mptcp: add mptcp_lib_is_v6
    9d71f43afd89 selftests: mptcp: update userspace pm test helpers
    f9190d7995a7 selftests: mptcp: add chk_subflows_total helper
    ae1fa39da991 selftests: mptcp: add evts_get_info helper
    e81742f6e2eb KVM/VMX: Move VERW closer to VMentry for MDS mitigation
    ae46691220f7 KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH
    7a62647efcb2 x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key
    ca13d8cd8dac x86/entry_32: Add VERW just before userspace transition
    7caf330faf16 x86/entry_64: Add VERW just before userspace transition
    2664bb298cdf block: define bvec_iter as __packed __aligned(4)
    21bbe847686c gpio: fix resource unwinding order in error path
    9c7c16109b71 gpiolib: Fix the error path order in gpiochip_add_data_with_key()
    92515c4ef1b4 gpio: 74x164: Enable output pins after registers are reset
    6b6282d56b14 powerpc/rtas: use correct function name for resetting TCE tables
    d4d1e4b1513d powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV
    5e3022ea42e4 dmaengine: idxd: Ensure safe user copy of completion record
    4d6e793eacfb dmaengine: idxd: Remove shadow Event Log head stored in idxd
    981917766b59 phy: freescale: phy-fsl-imx8-mipi-dphy: Fix alias name to use dashes
    d24fe6d5a1cf dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup
    227ef58a9b0c dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup
    55501b7359ef dmaengine: dw-edma: Add HDMA remote interrupt configuration
    3fa3dfcabf3a dmaengine: dw-edma: HDMA_V0_REMOTEL_STOP_INT_EN typo fix
    8b5657ac34b7 dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA
    3adea99aa756 dmaengine: dw-edma: Fix the ch_count hdma callback
    57e869be88d0 ASoC: cs35l56: fix reversed if statement in cs35l56_dspwait_asp1tx_put()
    e9eac260369d af_unix: Drop oob_skb ref before purging queue in GC.
    69e0f04460f4 af_unix: Fix task hung while purging oob_skb in GC.
    be8a177250b2 NFS: Fix data corruption caused by congestion.
    fa8c776f4c32 mptcp: fix possible deadlock in subflow diag
    ce0809ada38d mptcp: fix double-free on socket dismantle
    b609ecda2d76 mptcp: fix potential wake-up event loss
    ae5530ccd5ef mptcp: fix snd_wnd initialization for passive socket
    536a661bfdf4 selftests: mptcp: join: add ss mptcp support check
    48428b07de4f mptcp: push at DSS boundaries
    fca4e6ab0681 mptcp: avoid printing warning once on client side
    a49ecbe8d0f0 mptcp: map v4 address to v6 when destroying subflow
    dff60a5531b5 x86/cpu/intel: Detect TME keyid bits before setting MTRR mask registers
    c43b984f0b23 x86/e820: Don't reserve SETUP_RNG_SEED in e820
    d2a9510c0e39 mm/debug_vm_pgtable: fix BUG_ON with pud advanced test
    e9eeb0dddf61 pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation
    71da10e633a9 efivarfs: Request at most 512 bytes for variable names
    f1fb745ee0a6 iommufd: Fix iopt_access_list_id overwrite bug
    8db4f87fa3e1 kbuild: Add -Wa,--fatal-warnings to as-instr invocation
    9537603a5436 riscv: add CALLER_ADDRx support
    0c8a3d3354cd RISC-V: Drop invalid test from CONFIG_AS_HAS_OPTION_ARCH
    aebd67a52edd mmc: sdhci-xenon: fix PHY init clock stability
    b4eacb32e066 mmc: sdhci-xenon: add timeout for PHY init complete
    4344444255a3 mmc: core: Fix eMMC initialization with 1-bit bus connection
    176e66269f0d mmc: mmci: stm32: fix DMA API overlapping mappings warning
    a69c8bbb9469 dmaengine: fsl-qdma: init irq after reg initialization
    91b001fb0b08 dmaengine: fsl-edma: correct calculation of 'nbytes' in multi-fifo scenario
    4e0fe154be7b dmaengine: ptdma: use consistent DMA masks
    1291d278b557 crypto: arm64/neonbs - fix out-of-bounds access on short input
    5b696e9c3882 dmaengine: fsl-qdma: fix SoC may hang on 16 byte unaligned read
    737d2e9300cd soc: qcom: pmic_glink: Fix boot when QRTR=m
    82dacc26e15c drm/amd/display: Add monitor patch for specific eDP
    5e476625fa8a drm/buddy: fix range bias
    baac292852c0 Revert "drm/amd/pm: resolve reboot exception for si oland"
    202e4f4bb858 btrfs: send: don't issue unnecessary zero writes for trailing hole
    b1690ced4d2d btrfs: dev-replace: properly validate device names
    eb3441093aad btrfs: fix double free of anonymous device after snapshot creation failure
    177d574be4b5 wifi: nl80211: reject iftype change with mesh ID change
    ad8ff8cff38d mtd: rawnand: marvell: fix layouts
    ba60fdf75e89 mm: cachestat: fix folio read-after-free in cache walk
    93dd420bc415 gtp: fix use-after-free and null-ptr-deref in gtp_newlink()
    f4906938bdd4 landlock: Fix asymmetric private inodes referring
    0be289ba41bb Bluetooth: hci_bcm4377: do not mark valid bd_addr as invalid
    a4904b3afed0 ALSA: hda/realtek: Add special fixup for Lenovo 14IRP8
    5cdf76fbbed9 ALSA: hda/realtek: fix mute/micmute LED For HP mt440
    46fb5e7ec337 ALSA: hda/realtek: Enable Mute LED on HP 840 G8 (MB 8AB8)
    d6ac6ffbdc39 ALSA: hda/realtek: tas2781: enable subwoofer volume control
    bb06ffbf3862 ALSA: ump: Fix the discard error code from snd_ump_legacy_open()
    22df6ff560c5 ALSA: firewire-lib: fix to check cycle continuity
    2caa60507948 tomoyo: fix UAF write bug in tomoyo_write_control()
    6f72b4458ead of: property: fw_devlink: Fix stupid bug in remote-endpoint parsing
    d43f8e58f10a btrfs: fix race between ordered extent completion and fiemap
    a278d5c60f21 riscv: Sparse-Memory/vmemmap out-of-bounds fix
    eb2571673cfc riscv: Fix pte_leaf_size() for NAPOT
    2b7ce74e19fc Revert "riscv: mm: support Svnapot in huge vmap"
    e0d17ee872cf drivers: perf: ctr_get_width function for legacy is not defined
    2f8c09478a2c drivers: perf: added capabilities for legacy PMU
    f67898867b6b afs: Fix endless loop in directory parsing
    73a6bd68a134 fbcon: always restore the old font data in fbcon_do_set_font()
    8e8c66afe27b drm/tegra: Remove existing framebuffer only if we support display
    274bf3cca13f RISC-V: Ignore V from the riscv,isa DT property on older T-Head CPUs
    fb3618f6bd49 ASoC: soc-card: Fix missing locking in snd_soc_card_get_kcontrol()
    4b5d89ace3ce ASoC: cs35l56: Fix deadlock in ASP1 mixer register initialization
    9f05fe599965 ASoC: cs35l56: Fix misuse of wm_adsp 'part' string for silicon revision
    c249f04f2bff ASoC: cs35l56: Fix for initializing ASP1 mixer registers
    044edc12fe01 ASoC: cs35l56: Don't add the same register patch multiple times
    a2f0a6846da8 ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
    93fc01f9b58d ASoC: cs35l56: cs35l56_component_remove() must clear cs35l56->component
    cc698db49b93 riscv: Fix build error if !CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
    99adc8b4d2f3 ASoC: qcom: Fix uninitialized pointer dmactl
    841361d88fae ASoC: qcom: convert not to use asoc_xxx()
    c92c96cda3e3 ASoC: soc.h: convert asoc_xxx() to snd_soc_xxx()
    ac549defb351 ALSA: Drop leftover snd-rtctimer stuff from Makefile
    4a7f5eff429b ASoC: cs35l56: Must clear HALO_STATE before issuing SYSTEM_RESET
    fbca8bae1ba7 power: supply: bq27xxx-i2c: Do not free non existing IRQ
    11aabd748785 efi/capsule-loader: fix incorrect allocation size
    81be85353b0f tls: fix use-after-free on failed backlog decryption
    dec5b6e7b211 tls: separate no-async decryption request handling from async
    11121c2ce571 tls: fix peeking with sync+async decryption
    c19fdb06d3d7 tls: decrement decrypt_pending if no async completion will be called
    9422350aea63 net: hsr: Use correct offset for HSR TLV values in supervisory HSR frames
    c88bf996e88b igb: extend PTP timestamp adjustments to i211
    167d8642daa6 rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back
    dbc81b032dd0 tools: ynl: fix handling of multiple mcast groups
    80cd0487f630 netfilter: bridge: confirm multicast packets before passing them up the stack
    98567dc7973f netfilter: nf_tables: allow NFPROTO_INET in nft_(match/target)_validate()
    39e39c34abb5 Bluetooth: qca: Fix triggering coredump implementation
    c50ce483c28a Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT
    fb3e827badce Bluetooth: qca: Fix wrong event type for patch config command
    dcd646f40a56 Bluetooth: Enforce validation on max value of connection interval
    fba268ac36ab Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
    4a9139678ede Bluetooth: hci_event: Fix wrongly recorded wakeup BD_ADDR
    6699d7ce263c Bluetooth: hci_sync: Fix accept_list when attempting to suspend
    2ab9a19d896f Bluetooth: Avoid potential use-after-free in hci_error_reset
    0a07fa1f61e4 Bluetooth: hci_sync: Check the correct flag before starting a scan
    699b103e48ce stmmac: Clear variable when destroying workqueue
    af6dfe9e9551 uapi: in6: replace temporary label with rfc9486
    2ae3d9d1d8da net: lan78xx: fix "softirq work is pending" error
    0ec3ea616a50 net: usb: dm9601: fix wrong return value in dm9601_mdio_read
    2d8003e55d12 veth: try harder when allocating queue memory
    288218b1dd26 lan78xx: enable auto speed configuration for LAN7850 if no EEPROM is detected
    44112bc5c74e ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
    16edf51f33f5 net: veth: clear GRO when clearing XDP even when down
    1a8682737600 cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
    7322b217c6f0 tun: Fix xdp_rxq_info's queue_index when detaching
    fbccbb4215ae net: dpaa: fman_memac: accept phy-interface-type = "10gbase-r" in the device tree
    cbebc55ceace net: mctp: take ownership of skb in mctp_local_output
    a0a1db40b23e net: ip_tunnel: prevent perpetual headroom growth
    a2ab02815184 netlink: add nla be16/32 types to minlen array
    d3ada42e534a netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
    03f1573c9587 spi: cadence-qspi: fix pointer reference in runtime PM hooks
    c53b8d8f70c4 mtd: spinand: gigadevice: Fix the get ecc status issue
    8cb8ef0c79e3 ublk: move ublk_cancel_dev() out of ub->mutex
    2b5f1692a95b ksmbd: fix wrong allocation size update in smb2_open()
    05059601518e ASoC: cs35l34: Fix GPIO name and drop legacy include
    d3d782b5a5d3 ubifs: fix possible dereference after free
    ff7ae7b32324 crypto: jitter - add RCT/APT support for different OSRs
    50cd24ddb6f0 arm64: defconfig: remove CONFIG_IPQ_APSS_5018
    58e5c91d6701 x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
    c878fd2d4c79 x86/alternatives: Sync core before enabling interrupts
    c2d64b9f52b6 qemux86: add configuration symbol to select values
    630c33229e6d sched/isolation: really align nohz_full with rcu_nocbs
    0e5e0f68e2e6 clear_warn_once: add a clear_warn_once= boot parameter
    46934791b902 clear_warn_once: bind a timer to written reset value
    cdee9e38ff32 clear_warn_once: expand debugfs to include read support
    82b562b81841 tools: Remove some options from CLANG_CROSS_FLAGS
    36dc380b776b libbpf: Fix build warning on ref_ctr_off
    9e3e1fe20982 perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.
    e497a4a5da65 perf: x86-32: explicitly include <errno.h>
    7b57ddd89565 perf: mips64: Convert __u64 to unsigned long long
    1cfc19423dc7 perf: fix bench numa compilation
    98bc2815fade perf: add SLANG_INC for slang.h
    17209a70b9b3 perf: add sgidefs.h to for mips builds
    9cd4258d910a perf: change --root to --prefix for python install
    8110a4f26628 perf: add 'libperl not found' warning
    bc89d5e08f77 perf: force include of <stdbool.h>
    4f6c760cc876 fat: Replace prandom_u32() with get_random_u32()
    bc53117b12b2 fat: don't use obsolete random32 call in namei_vfat
    30b2236ab378 FAT: Added FAT_NO_83NAME
    cef98d22b4ed FAT: Add CONFIG_VFAT_NO_CREATE_WITH_LONGNAMES option
    0bbd7daba9e1 FAT: Add CONFIG_VFAT_FS_NO_DUALNAMES option
    5883fc340084 aufs6: adapt to v6.6 i_op->ctime changes
    c4342d979bf2 aufs6: fix magic.mk include path
    35266bc2dc81 aufs6: adapt to v6.6
    8edede4e98be aufs6: core
    712248233ebe aufs6: standalone
    3b71a8a848d8 aufs6: mmap
    3e2924871f37 aufs6: base
    7f4907a93101 aufs6: kbuild
    d2f7b03e4aa7 yaffs2: update VFS ctime operations to 6.6+
    bcd6cfcd1aa0 yaffs2: v6.5 fixups
    cc615704b5f5 yaffs2: Fix miscalculation of devname buffer length
    8ef2e22dcf91 yaffs2: convert user_namespace to mnt_idmap
    c9c749f9f7d3 yaffs2: replace bdevname call with sprintf
    395b01cdc39d yaffs2: convert read_page -> readfolio
    d98b07e43ba6 yaffs: replace IS_ERR with IS_ERR_OR_NULL to check both ERR and NULL
    613c6d50fdbe yaffs: fix -Wstringop-overread compile warning in yaffs_fix_null_name
    622c4648936f yaffs2: v5.12+ build fixups (not runtime tested)
    7562133d4090 yaffs: include blkdev.h
    dbd44252cd59 yaffs: fix misplaced variable declaration
    c223a10b1ac0 yaffs2: v5.6 build fixups
    90f6007cfbf4 yaffs2: fix memory leak when /proc/yaffs is read
    37ee169c5ea1 yaffs: add strict check when call yaffs_internal_read_super
    b6e007b8abb6 yaffs: repair yaffs_get_mtd_device
    fb98f65a466a yaffs: Fix build failure by handling inode i_version with proper atomic API
    51e0aac75ea2 yaffs2: fix memory leak in mount/umount
    2b74a0cae7b0 yaffs: Avoid setting any ACL releated xattr
    ff4130a9c376 Yaffs:check oob size before auto selecting Yaffs1
    ba95b409c67c fs: yaffs2: replace CURRENT_TIME by other appropriate apis
    8fa35eba9056 yaffs2: adjust to proper location of MS_RDONLY
    1eb5deaad8c4 yaffs2: import git revision b4ce1bb (jan, 2020)
    4dce67c1e8c8 initramfs: allow an optional wrapper script around initramfs generation
    2f603d83fcc4 pnmtologo: use relocatable file name
    664a6a0a484b tools: use basename to identify file in gen-mach-types
    9de64bc0c185 lib/build_OID_registry: fix reproducibility issues
    ae9b80797295 vt/conmakehash: improve reproducibility
    a972323151bd iwlwifi: select MAC80211_LEDS conditionally
    15d2adcc0198 net/dccp: make it depend on CONFIG_BROKEN (CVE-2020-16119)
    5556a6c04b19 arm64/perf: Fix wrong cast that may cause wrong truncation
    5552dc768ffc defconfigs: drop obselete options
    00fe4152df31 arm64/perf: fix backtrace for AAPCS with FP enabled
    3888d0652edf linux-yocto: Handle /bin/awk issues
    3d55d299f23a uvesafb: provide option to specify timeout for task completion
    23c068c080be uvesafb: print error message when task timeout occurs
    edbfc939266e compiler.h: Undef before redefining __attribute_const__
    c99ae7e2a19a vmware: include jiffies.h
    572d84d928c8 Resolve jiffies wrapping about arp
    fdcd47cac843 nfs: Allow default io size to be configured.
    927d48801098 check console device file on fs when booting
    57cc27f821dd mount_root: clarify error messages for when no rootfs found
    1b53d82a8152 mconf: fix output of cflags and libraries
    1811da09f42c menuconfig,mconf-cfg: Allow specification of ncurses location
    83c2e0c6eb1f modpost: mask trivial warnings
    6de673039484 kbuild: exclude meta directory from distclean processing
    6decd32815f5 powerpc: serialize image targets
    f6b683b38318 arm: serialize build targets
    e798b09ebf57 mtd_blkdevs: add mtd_table_mutex lock back to blktrans_{open, release} to avoid race condition
    dc8a1e5a88f8 x86_64_defconfig: Fix warnings
    68491e5f72b6 powerpc/ptrace: Disable array-bounds warning with gcc8
    d71ebfce3004 powerpc: Disable attribute-alias warnings from gcc8
    62f50884b8b1 powerpc: kexec fix for powerpc64
    da6871c62c37 powerpc: Add unwind information for SPE registers of E500 core
    f161c880c11d mips: make current_cpu_data preempt safe
    5e94a8247ce7 mips: vdso: fix 'jalr $t9' crash in vdso code
    19e36714b1c7 mips: Kconfig: add QEMUMIPS64 option
    e2e537db3cbd 4kc cache tlb hazard: tlbp cache coherency
    aee9870611e5 malta uhci quirks: make allowance for slow 4k(e)c
    881948cd1517 drm/fb-helper: move zeroing code to drm_fb_helper_fill_var
    98ec1963fcb7 arm64: defconfig: cleanup config options
    f1727c537ba8 vexpress: Pass LOADADDR to Makefile
    4474c32dc24a arm: ARM EABI socketcall
    75e31a2b70fd ARM: LPAE: Invalidate the TLB for module addresses during translation fault

(From meta-yocto rev: 8fcd4ad918835818ebb3280803c952c55f1eee03)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:21:06 +00:00
Ross Burton
20c1d917c6 linux-yocto: implicitly track oe-core's kernel version for genericarm64
Don't override KBRANCH/SRCREV/LINUX_VERSION, instead use the values in
the base oe-core linux-yocto recipe.

The advantage of this is that we don't need to update this file every
time the kernel is upgraded in oe-core.

(From meta-yocto rev: 91c4efe03d96bee555b0c6581f3fae1145e75a68)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:21:06 +00:00
Ross Burton
5e69d4ba0f linux-yocto: put COMPATIBLE_MACHINE first
Move the COMPATIBLE_MACHINE assignments to the top of the file as they
effectively control what machines this bbappend is for.

(From meta-yocto rev: b9c5cd28856d2b86fb00b5c90d346638bf729c29)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:21:06 +00:00
Richard Purdie
e83129f4a3 poky-altcfg: Default to ipk packaging
poky itself defaults to rpm packaging. In support of the binary distro
testing, and for wider testing in general, default poky-altcfg to ipk.

Since we plan to have better "binary distro" testing on the autobuilder
and we plan to primarily use ipk for this, having ipk based images available
as part of our builds is desireable.

Since we want systemd based images with ipk, it makes sense to leave standard
poky using rpm images but switch poky-altcfg to use ipk.

Doing this now for scarthgap gives us a good platform to build off in
the long term too.

This matches https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?id=a9b4f83c05136dd83e07c0f68ae2ad13507ed36a

(From meta-yocto rev: 6d89a66ad8a28d07425cf8886567038950ef65e7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:21:06 +00:00
Yogesh Tyagi
160dce550c lttng-modules: fix v6.8+ build
Backport a patch which remove 'needed' in trace_ext4_discard_preallocations

(From OE-Core rev: 88c78fec6daf34d4bf50f788a0adc75e601994da)

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Marcel Ziswiler
181f8d101b mesa: enable imagination powervr support
Allows mesa to be build with Imagination PowerVR support.

(From OE-Core rev: d52ba5f350dd1b468d089ed0bba2e17e6d89fb7d)

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Khem Raj
38fa6d08d2 piglit: Switch to upstreamed patch for musl fix
(From OE-Core rev: 660ca031737a63b0912c69e0c64ef65878776687)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
a8c6271be2 linux-yocto/6.6: update CVE exclusions (6.6.22)
Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 25Feb24
        Date: Sun, 25 Feb 2024 07:03:08 -0500

    ]

(From OE-Core rev: 2aff14a76396abe5139a918bfe27403248ff09ec)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
f3ffd35e33 linux-yocto/6.6: update to v6.6.22
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    06644f0d7193 drm/tilcdc: Set preferred depth
    6a646d9fe8a2 Linux 6.6.22
    4a5b5bfea063 KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests
    77018fb9efe5 x86/rfds: Mitigate Register File Data Sampling (RFDS)
    ddfd38558acc Documentation/hw-vuln: Add documentation for RFDS
    c35ca0968de4 x86/mmio: Disable KVM mitigation when X86_FEATURE_CLEAR_CPU_BUF is set
    e2ee3c628a6f selftests: mptcp: decrease BW in simult flows
    de5c36abf708 readahead: avoid multiple marked readahead pages
    f5572c0323cf KVM: s390: vsie: fix race during shadow creation
    99b86c9b07a3 KVM: s390: add stat counter for shadow gmap events
    995f802abff2 net: pds_core: Fix possible double free in error handling path
    34cab94f7473 netrom: Fix data-races around sysctl_net_busy_read
    db364859ce68 netrom: Fix a data-race around sysctl_netrom_link_fails_count
    d732b8325132 netrom: Fix a data-race around sysctl_netrom_routing_control
    2309b369fae2 netrom: Fix a data-race around sysctl_netrom_transport_no_activity_timeout
    db006d7edbf0 netrom: Fix a data-race around sysctl_netrom_transport_requested_window_size
    4ccad39009e7 netrom: Fix a data-race around sysctl_netrom_transport_busy_delay
    7d56ffc51ebd netrom: Fix a data-race around sysctl_netrom_transport_acknowledge_delay
    fa3f3ab5c399 netrom: Fix a data-race around sysctl_netrom_transport_maximum_tries
    5d5c14efc987 netrom: Fix a data-race around sysctl_netrom_transport_timeout
    5731369af2de netrom: Fix data-races around sysctl_netrom_network_ttl_initialiser
    7e1e25891f09 netrom: Fix a data-race around sysctl_netrom_obsolescence_count_initialiser
    7510b08c5f5b netrom: Fix a data-race around sysctl_netrom_default_path_quality
    b3b87525b545 erofs: apply proper VMA alignment for memory mapped files on THP
    014a807f1cc9 netfilter: nf_conntrack_h323: Add protection for bmp length out of range
    b7f885cc7029 netfilter: nft_ct: fix l3num expectations with inet pseudo family
    2b505d052807 net/rds: fix WARNING in rds_conn_connect_if_down
    782c5fa6638f net: dsa: microchip: fix register write order in ksz8_ind_write8()
    f562e4c4aab0 cpumap: Zero-initialise xdp_rxq_info struct before running XDP program
    02e3549492db selftests/bpf: Fix up xdp bonding test wrt feature flags
    586a2f410c78 xdp, bonding: Fix feature flags when there are no slave devs anymore
    ff4d6006870f bpf: check bpf_func_state->callback_depth when pruning states
    ed883060c387 net/ipv6: avoid possible UAF in ip6_route_mpath_notify()
    8df393af9e7e igc: avoid returning frame twice in XDP_REDIRECT
    1a770927dc1d net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink()
    671a28603c6b ice: virtchnl: stop pretending to support RSS over AQ or registers
    e83bebb718fd net: sparx5: Fix use after free inside sparx5_del_mact_entry
    0ece581d2a66 geneve: make sure to pull inner header in geneve_rx()
    24d5a89652c9 tracing/net_sched: Fix tracepoints that save qdisc_dev() as a string
    d98d364d98d1 net/mlx5e: Switch to using _bh variant of of spinlock API in port timestamping NAPI poll context
    d1f71615dbb3 net/mlx5e: Use a memory barrier to enforce PTP WQ xmit submission tracking occurs after populating the metadata_map
    b526c3177531 net/mlx5e: Fix MACsec state loss upon state update in offload path
    6d6bb522d74b net/mlx5e: Change the warning when ignore_flow_level is not supported
    c11138f0172f net/mlx5: Check capability for fw_reset
    c8d7228ddda7 net/mlx5: E-switch, Change flow rule destination checking
    ba888f1f5c21 Revert "net/mlx5e: Check the number of elements before walk TC rhashtable"
    3fba8eab2cfc Revert "net/mlx5: Block entering switchdev mode with ns inconsistency"
    4c0b028e7100 ice: reorder disabling IRQ and NAPI in ice_qp_dis
    484c8e3beb0f i40e: disable NAPI right after disabling irqs when handling xsk_pool
    2e60e9531ab9 ixgbe: {dis, en}able irqs in ixgbe_txrx_ring_{dis, en}able
    550fe716031f net: lan78xx: fix runtime PM count underflow on link stop
    f6edcad58cea xfrm: Pass UDP encapsulation in TX packet offload
    d6159bd4c005 mm/vmscan: fix a bug calling wakeup_kswapd() with a wrong zone index
    641eb2d9ab1e ceph: switch to corrected encoding of max_xattr_size in mdsmap
    3b897ea5ee75 dmaengine: fsl-edma: correct max_segment_size setting
    525c13971479 dmaengine: fsl-edma: utilize common dt-binding header file
    fb2f43ed48dd dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in dts
    ff7ae7b32324 crypto: jitter - add RCT/APT support for different OSRs
    50cd24ddb6f0 arm64: defconfig: remove CONFIG_IPQ_APSS_5018
    58e5c91d6701 x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
    c878fd2d4c79 x86/alternatives: Sync core before enabling interrupts
    c2d64b9f52b6 qemux86: add configuration symbol to select values
    630c33229e6d sched/isolation: really align nohz_full with rcu_nocbs
    0e5e0f68e2e6 clear_warn_once: add a clear_warn_once= boot parameter
    46934791b902 clear_warn_once: bind a timer to written reset value
    cdee9e38ff32 clear_warn_once: expand debugfs to include read support
    82b562b81841 tools: Remove some options from CLANG_CROSS_FLAGS
    36dc380b776b libbpf: Fix build warning on ref_ctr_off
    9e3e1fe20982 perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.
    e497a4a5da65 perf: x86-32: explicitly include <errno.h>
    7b57ddd89565 perf: mips64: Convert __u64 to unsigned long long
    1cfc19423dc7 perf: fix bench numa compilation
    98bc2815fade perf: add SLANG_INC for slang.h
    17209a70b9b3 perf: add sgidefs.h to for mips builds
    9cd4258d910a perf: change --root to --prefix for python install
    8110a4f26628 perf: add 'libperl not found' warning
    bc89d5e08f77 perf: force include of <stdbool.h>
    4f6c760cc876 fat: Replace prandom_u32() with get_random_u32()
    bc53117b12b2 fat: don't use obsolete random32 call in namei_vfat
    30b2236ab378 FAT: Added FAT_NO_83NAME
    cef98d22b4ed FAT: Add CONFIG_VFAT_NO_CREATE_WITH_LONGNAMES option
    0bbd7daba9e1 FAT: Add CONFIG_VFAT_FS_NO_DUALNAMES option
    5883fc340084 aufs6: adapt to v6.6 i_op->ctime changes
    c4342d979bf2 aufs6: fix magic.mk include path
    35266bc2dc81 aufs6: adapt to v6.6
    8edede4e98be aufs6: core
    712248233ebe aufs6: standalone
    3b71a8a848d8 aufs6: mmap
    3e2924871f37 aufs6: base
    7f4907a93101 aufs6: kbuild
    d2f7b03e4aa7 yaffs2: update VFS ctime operations to 6.6+
    bcd6cfcd1aa0 yaffs2: v6.5 fixups
    cc615704b5f5 yaffs2: Fix miscalculation of devname buffer length
    8ef2e22dcf91 yaffs2: convert user_namespace to mnt_idmap
    c9c749f9f7d3 yaffs2: replace bdevname call with sprintf
    395b01cdc39d yaffs2: convert read_page -> readfolio
    d98b07e43ba6 yaffs: replace IS_ERR with IS_ERR_OR_NULL to check both ERR and NULL
    613c6d50fdbe yaffs: fix -Wstringop-overread compile warning in yaffs_fix_null_name
    622c4648936f yaffs2: v5.12+ build fixups (not runtime tested)
    7562133d4090 yaffs: include blkdev.h
    dbd44252cd59 yaffs: fix misplaced variable declaration
    c223a10b1ac0 yaffs2: v5.6 build fixups
    90f6007cfbf4 yaffs2: fix memory leak when /proc/yaffs is read
    37ee169c5ea1 yaffs: add strict check when call yaffs_internal_read_super
    b6e007b8abb6 yaffs: repair yaffs_get_mtd_device
    fb98f65a466a yaffs: Fix build failure by handling inode i_version with proper atomic API
    51e0aac75ea2 yaffs2: fix memory leak in mount/umount
    2b74a0cae7b0 yaffs: Avoid setting any ACL releated xattr
    ff4130a9c376 Yaffs:check oob size before auto selecting Yaffs1
    ba95b409c67c fs: yaffs2: replace CURRENT_TIME by other appropriate apis
    8fa35eba9056 yaffs2: adjust to proper location of MS_RDONLY
    1eb5deaad8c4 yaffs2: import git revision b4ce1bb (jan, 2020)
    4dce67c1e8c8 initramfs: allow an optional wrapper script around initramfs generation
    2f603d83fcc4 pnmtologo: use relocatable file name
    664a6a0a484b tools: use basename to identify file in gen-mach-types
    9de64bc0c185 lib/build_OID_registry: fix reproducibility issues
    ae9b80797295 vt/conmakehash: improve reproducibility
    a972323151bd iwlwifi: select MAC80211_LEDS conditionally
    15d2adcc0198 net/dccp: make it depend on CONFIG_BROKEN (CVE-2020-16119)
    5556a6c04b19 arm64/perf: Fix wrong cast that may cause wrong truncation
    5552dc768ffc defconfigs: drop obselete options
    00fe4152df31 arm64/perf: fix backtrace for AAPCS with FP enabled
    3888d0652edf linux-yocto: Handle /bin/awk issues
    3d55d299f23a uvesafb: provide option to specify timeout for task completion
    23c068c080be uvesafb: print error message when task timeout occurs
    edbfc939266e compiler.h: Undef before redefining __attribute_const__
    c99ae7e2a19a vmware: include jiffies.h
    572d84d928c8 Resolve jiffies wrapping about arp
    fdcd47cac843 nfs: Allow default io size to be configured.
    927d48801098 check console device file on fs when booting
    57cc27f821dd mount_root: clarify error messages for when no rootfs found
    1b53d82a8152 mconf: fix output of cflags and libraries
    1811da09f42c menuconfig,mconf-cfg: Allow specification of ncurses location
    83c2e0c6eb1f modpost: mask trivial warnings
    6de673039484 kbuild: exclude meta directory from distclean processing
    6decd32815f5 powerpc: serialize image targets
    f6b683b38318 arm: serialize build targets
    e798b09ebf57 mtd_blkdevs: add mtd_table_mutex lock back to blktrans_{open, release} to avoid race condition
    dc8a1e5a88f8 x86_64_defconfig: Fix warnings
    68491e5f72b6 powerpc/ptrace: Disable array-bounds warning with gcc8
    d71ebfce3004 powerpc: Disable attribute-alias warnings from gcc8
    62f50884b8b1 powerpc: kexec fix for powerpc64
    da6871c62c37 powerpc: Add unwind information for SPE registers of E500 core
    f161c880c11d mips: make current_cpu_data preempt safe
    5e94a8247ce7 mips: vdso: fix 'jalr $t9' crash in vdso code
    19e36714b1c7 mips: Kconfig: add QEMUMIPS64 option
    e2e537db3cbd 4kc cache tlb hazard: tlbp cache coherency
    aee9870611e5 malta uhci quirks: make allowance for slow 4k(e)c
    881948cd1517 drm/fb-helper: move zeroing code to drm_fb_helper_fill_var
    98ec1963fcb7 arm64: defconfig: cleanup config options
    f1727c537ba8 vexpress: Pass LOADADDR to Makefile
    4474c32dc24a arm: ARM EABI socketcall
    75e31a2b70fd ARM: LPAE: Invalidate the TLB for module addresses during translation fault

(From OE-Core rev: aea8aa3effe7ddc16bc301bfc07bbaf36c84e5f5)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
f405c9b560 linux-yocto/6.6: drm/tilcdc: Set preferred depth
Integrating the following commit(s) to linux-yocto/6.6:

1/1 [
    Author: Kevin Hao
    Email: haokexin@gmail.com
    Subject: drm/tilcdc: Set preferred depth
    Date: Tue, 19 Mar 2024 08:35:29 +0800

    The commit c91acda3a380 ("drm/gem: Check for valid formats") adds a
    check for valid pixel formats on drm_gem_fb_create(), but this breaks
    the X server on the beaglebone black board.

    We have set 'DefaultDepth' to 16 in our xorg.conf. In the X modesetting
    driver, the drmmode_get_default_bpp() is used to guess the default
    depth/bpp. First it tries to get them via DRM_CAP_DUMB_PREFERRED_DEPTH
    ioctl, and if it fail, then try to create a FB with 'depth = 24' and
    'bpp = 32' to check whether this depth/dpp is a valid combo. Before the
    kernel commit c91acda3a380, the FB always can be created successfully.
    This will avoid the bpp to be set to 24 forcibly. But after kernel
    commit c91acda3a380, the FB will not be created successfully due to the
    check of the valid pixel format. Then the bpp is set to 24, but the
    'depth = 16' and 'bpp = 24' combo is not a valid pixel format.

    Fix this issue by explicitly setting the preferred_depth in this driver.
    With this change, the modesetting driver would choose the correct
    depth/bpp combo based on our setting in xorg.conf.

    Fixes: c91acda3a380 ("drm/gem: Check for valid formats")
    Cc: stable@vger.kernel.org
    Signed-off-by: Kevin Hao <haokexin@gmail.com>
    Link: https://lore.kernel.org/r/20240317033918.535716-1-haokexin@gmail.com/
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: e23cbdd51ce4a8ca784f5902310a9e2d363c438a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
e686282da8 linux-yocto/6.6: cfg: drop unsettable options
Integrating the following commit(s) to linux-yocto/.:

1/3 [
    Author: Yongxin Liu
    Email: yongxin.liu@windriver.com
    Subject: features/vfio: remove CONFIG_VFIO_VIRQFD
    Date: Mon, 18 Mar 2024 19:10:37 +0800

    CONFIG_VFIO_VIRQFD was changed to bool in kernel commit
    e2d55709398e ("vfio: Fold vfio_virqfd.ko into vfio.ko") and
    it is not user selectable.

    Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/3 [
    Author: Yongxin Liu
    Email: yongxin.liu@windriver.com
    Subject: features/vfio: remove CONFIG_VFIO_MDEV
    Date: Mon, 18 Mar 2024 19:10:38 +0800

    CONFIG_VFIO_MDEV wasn't a user choice after kerne commit
    8bf8c5ee1f38 ("vfio-mdev: turn VFIO_MDEV into a selectable symbol").

    Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

3/3 [
    Author: Yongxin Liu
    Email: yongxin.liu@windriver.com
    Subject: bsp/intel-x86: remove CONFIG_IXGB
    Date: Mon, 18 Mar 2024 19:10:39 +0800

    ixgb driver was removed in kernel commit e485f3a6eae0
    ("ixgb: Remove ixgb driver").

    Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 3051b5cdcc03cf7f5a5962bea33f9090b984ab26)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
b352ffe770 linux-yocto/6.6: update CVE exclusions (6.6.21)
Data pulled from: https://github.com/nluedtke/linux_kernel_cves

    1/1 [
        Author: Nicholas Luedtke
        Email: nicholas.luedtke@uwalumni.com
        Subject: Update 25Feb24
        Date: Sun, 25 Feb 2024 07:03:08 -0500

    ]

(From OE-Core rev: 828e2817dd21f28b61a379e3ae794dcb458ca283)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
f2c46dea04 linux-yocto/6.6: update to v6.6.21
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    62e5ae5007ef Linux 6.6.21
    d6ac0ee5ff95 drm/nouveau: don't fini scheduler before entity flush
    ece1aaec7f7e selftests: mptcp: rm subflow with v4/v4mapped addr
    8e7f31bf1101 selftests: mptcp: add mptcp_lib_is_v6
    9d71f43afd89 selftests: mptcp: update userspace pm test helpers
    f9190d7995a7 selftests: mptcp: add chk_subflows_total helper
    ae1fa39da991 selftests: mptcp: add evts_get_info helper
    e81742f6e2eb KVM/VMX: Move VERW closer to VMentry for MDS mitigation
    ae46691220f7 KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH
    7a62647efcb2 x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key
    ca13d8cd8dac x86/entry_32: Add VERW just before userspace transition
    7caf330faf16 x86/entry_64: Add VERW just before userspace transition
    2664bb298cdf block: define bvec_iter as __packed __aligned(4)
    21bbe847686c gpio: fix resource unwinding order in error path
    9c7c16109b71 gpiolib: Fix the error path order in gpiochip_add_data_with_key()
    92515c4ef1b4 gpio: 74x164: Enable output pins after registers are reset
    6b6282d56b14 powerpc/rtas: use correct function name for resetting TCE tables
    d4d1e4b1513d powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV
    5e3022ea42e4 dmaengine: idxd: Ensure safe user copy of completion record
    4d6e793eacfb dmaengine: idxd: Remove shadow Event Log head stored in idxd
    981917766b59 phy: freescale: phy-fsl-imx8-mipi-dphy: Fix alias name to use dashes
    d24fe6d5a1cf dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup
    227ef58a9b0c dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup
    55501b7359ef dmaengine: dw-edma: Add HDMA remote interrupt configuration
    3fa3dfcabf3a dmaengine: dw-edma: HDMA_V0_REMOTEL_STOP_INT_EN typo fix
    8b5657ac34b7 dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA
    3adea99aa756 dmaengine: dw-edma: Fix the ch_count hdma callback
    57e869be88d0 ASoC: cs35l56: fix reversed if statement in cs35l56_dspwait_asp1tx_put()
    e9eac260369d af_unix: Drop oob_skb ref before purging queue in GC.
    69e0f04460f4 af_unix: Fix task hung while purging oob_skb in GC.
    be8a177250b2 NFS: Fix data corruption caused by congestion.
    fa8c776f4c32 mptcp: fix possible deadlock in subflow diag
    ce0809ada38d mptcp: fix double-free on socket dismantle
    b609ecda2d76 mptcp: fix potential wake-up event loss
    ae5530ccd5ef mptcp: fix snd_wnd initialization for passive socket
    536a661bfdf4 selftests: mptcp: join: add ss mptcp support check
    48428b07de4f mptcp: push at DSS boundaries
    fca4e6ab0681 mptcp: avoid printing warning once on client side
    a49ecbe8d0f0 mptcp: map v4 address to v6 when destroying subflow
    dff60a5531b5 x86/cpu/intel: Detect TME keyid bits before setting MTRR mask registers
    c43b984f0b23 x86/e820: Don't reserve SETUP_RNG_SEED in e820
    d2a9510c0e39 mm/debug_vm_pgtable: fix BUG_ON with pud advanced test
    e9eeb0dddf61 pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation
    71da10e633a9 efivarfs: Request at most 512 bytes for variable names
    f1fb745ee0a6 iommufd: Fix iopt_access_list_id overwrite bug
    8db4f87fa3e1 kbuild: Add -Wa,--fatal-warnings to as-instr invocation
    9537603a5436 riscv: add CALLER_ADDRx support
    0c8a3d3354cd RISC-V: Drop invalid test from CONFIG_AS_HAS_OPTION_ARCH
    aebd67a52edd mmc: sdhci-xenon: fix PHY init clock stability
    b4eacb32e066 mmc: sdhci-xenon: add timeout for PHY init complete
    4344444255a3 mmc: core: Fix eMMC initialization with 1-bit bus connection
    176e66269f0d mmc: mmci: stm32: fix DMA API overlapping mappings warning
    a69c8bbb9469 dmaengine: fsl-qdma: init irq after reg initialization
    91b001fb0b08 dmaengine: fsl-edma: correct calculation of 'nbytes' in multi-fifo scenario
    4e0fe154be7b dmaengine: ptdma: use consistent DMA masks
    1291d278b557 crypto: arm64/neonbs - fix out-of-bounds access on short input
    5b696e9c3882 dmaengine: fsl-qdma: fix SoC may hang on 16 byte unaligned read
    737d2e9300cd soc: qcom: pmic_glink: Fix boot when QRTR=m
    82dacc26e15c drm/amd/display: Add monitor patch for specific eDP
    5e476625fa8a drm/buddy: fix range bias
    baac292852c0 Revert "drm/amd/pm: resolve reboot exception for si oland"
    202e4f4bb858 btrfs: send: don't issue unnecessary zero writes for trailing hole
    b1690ced4d2d btrfs: dev-replace: properly validate device names
    eb3441093aad btrfs: fix double free of anonymous device after snapshot creation failure
    177d574be4b5 wifi: nl80211: reject iftype change with mesh ID change
    ad8ff8cff38d mtd: rawnand: marvell: fix layouts
    ba60fdf75e89 mm: cachestat: fix folio read-after-free in cache walk
    93dd420bc415 gtp: fix use-after-free and null-ptr-deref in gtp_newlink()
    f4906938bdd4 landlock: Fix asymmetric private inodes referring
    0be289ba41bb Bluetooth: hci_bcm4377: do not mark valid bd_addr as invalid
    a4904b3afed0 ALSA: hda/realtek: Add special fixup for Lenovo 14IRP8
    5cdf76fbbed9 ALSA: hda/realtek: fix mute/micmute LED For HP mt440
    46fb5e7ec337 ALSA: hda/realtek: Enable Mute LED on HP 840 G8 (MB 8AB8)
    d6ac6ffbdc39 ALSA: hda/realtek: tas2781: enable subwoofer volume control
    bb06ffbf3862 ALSA: ump: Fix the discard error code from snd_ump_legacy_open()
    22df6ff560c5 ALSA: firewire-lib: fix to check cycle continuity
    2caa60507948 tomoyo: fix UAF write bug in tomoyo_write_control()
    6f72b4458ead of: property: fw_devlink: Fix stupid bug in remote-endpoint parsing
    d43f8e58f10a btrfs: fix race between ordered extent completion and fiemap
    a278d5c60f21 riscv: Sparse-Memory/vmemmap out-of-bounds fix
    eb2571673cfc riscv: Fix pte_leaf_size() for NAPOT
    2b7ce74e19fc Revert "riscv: mm: support Svnapot in huge vmap"
    e0d17ee872cf drivers: perf: ctr_get_width function for legacy is not defined
    2f8c09478a2c drivers: perf: added capabilities for legacy PMU
    f67898867b6b afs: Fix endless loop in directory parsing
    73a6bd68a134 fbcon: always restore the old font data in fbcon_do_set_font()
    8e8c66afe27b drm/tegra: Remove existing framebuffer only if we support display
    274bf3cca13f RISC-V: Ignore V from the riscv,isa DT property on older T-Head CPUs
    fb3618f6bd49 ASoC: soc-card: Fix missing locking in snd_soc_card_get_kcontrol()
    4b5d89ace3ce ASoC: cs35l56: Fix deadlock in ASP1 mixer register initialization
    9f05fe599965 ASoC: cs35l56: Fix misuse of wm_adsp 'part' string for silicon revision
    c249f04f2bff ASoC: cs35l56: Fix for initializing ASP1 mixer registers
    044edc12fe01 ASoC: cs35l56: Don't add the same register patch multiple times
    a2f0a6846da8 ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
    93fc01f9b58d ASoC: cs35l56: cs35l56_component_remove() must clear cs35l56->component
    cc698db49b93 riscv: Fix build error if !CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
    99adc8b4d2f3 ASoC: qcom: Fix uninitialized pointer dmactl
    841361d88fae ASoC: qcom: convert not to use asoc_xxx()
    c92c96cda3e3 ASoC: soc.h: convert asoc_xxx() to snd_soc_xxx()
    ac549defb351 ALSA: Drop leftover snd-rtctimer stuff from Makefile
    4a7f5eff429b ASoC: cs35l56: Must clear HALO_STATE before issuing SYSTEM_RESET
    fbca8bae1ba7 power: supply: bq27xxx-i2c: Do not free non existing IRQ
    11aabd748785 efi/capsule-loader: fix incorrect allocation size
    81be85353b0f tls: fix use-after-free on failed backlog decryption
    dec5b6e7b211 tls: separate no-async decryption request handling from async
    11121c2ce571 tls: fix peeking with sync+async decryption
    c19fdb06d3d7 tls: decrement decrypt_pending if no async completion will be called
    9422350aea63 net: hsr: Use correct offset for HSR TLV values in supervisory HSR frames
    c88bf996e88b igb: extend PTP timestamp adjustments to i211
    167d8642daa6 rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back
    dbc81b032dd0 tools: ynl: fix handling of multiple mcast groups
    80cd0487f630 netfilter: bridge: confirm multicast packets before passing them up the stack
    98567dc7973f netfilter: nf_tables: allow NFPROTO_INET in nft_(match/target)_validate()
    39e39c34abb5 Bluetooth: qca: Fix triggering coredump implementation
    c50ce483c28a Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT
    fb3e827badce Bluetooth: qca: Fix wrong event type for patch config command
    dcd646f40a56 Bluetooth: Enforce validation on max value of connection interval
    fba268ac36ab Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
    4a9139678ede Bluetooth: hci_event: Fix wrongly recorded wakeup BD_ADDR
    6699d7ce263c Bluetooth: hci_sync: Fix accept_list when attempting to suspend
    2ab9a19d896f Bluetooth: Avoid potential use-after-free in hci_error_reset
    0a07fa1f61e4 Bluetooth: hci_sync: Check the correct flag before starting a scan
    699b103e48ce stmmac: Clear variable when destroying workqueue
    af6dfe9e9551 uapi: in6: replace temporary label with rfc9486
    2ae3d9d1d8da net: lan78xx: fix "softirq work is pending" error
    0ec3ea616a50 net: usb: dm9601: fix wrong return value in dm9601_mdio_read
    2d8003e55d12 veth: try harder when allocating queue memory
    288218b1dd26 lan78xx: enable auto speed configuration for LAN7850 if no EEPROM is detected
    44112bc5c74e ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
    16edf51f33f5 net: veth: clear GRO when clearing XDP even when down
    1a8682737600 cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
    7322b217c6f0 tun: Fix xdp_rxq_info's queue_index when detaching
    fbccbb4215ae net: dpaa: fman_memac: accept phy-interface-type = "10gbase-r" in the device tree
    cbebc55ceace net: mctp: take ownership of skb in mctp_local_output
    a0a1db40b23e net: ip_tunnel: prevent perpetual headroom growth
    a2ab02815184 netlink: add nla be16/32 types to minlen array
    d3ada42e534a netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
    03f1573c9587 spi: cadence-qspi: fix pointer reference in runtime PM hooks
    c53b8d8f70c4 mtd: spinand: gigadevice: Fix the get ecc status issue
    8cb8ef0c79e3 ublk: move ublk_cancel_dev() out of ub->mutex
    2b5f1692a95b ksmbd: fix wrong allocation size update in smb2_open()
    05059601518e ASoC: cs35l34: Fix GPIO name and drop legacy include
    d3d782b5a5d3 ubifs: fix possible dereference after free

(From OE-Core rev: bc5f2943976e2fb5802d680f691e4e1711bd7139)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
f09310d7f5 linux-yocto/6.6: cfg: riscv XHCI
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Khem Raj
    Email: raj.khem@gmail.com
    Subject: riscv: Enable XHCI usb
    Date: Thu, 7 Mar 2024 08:04:18 -0800

    This brings it closer to other qemu configs in yocto and help to use usb
    mouse and keyboard device emulation

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 93ea21a179153e9883e232213f2667f0d72979b2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Bruce Ashfield
f451612ca2 linux-yocto/6.6: cfg: generic arm64
Integrating the following commit(s) to linux-yocto/.:

1/2 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: cfg/timer/no_hz: set NO_HZ_IDLE instead of NO_HZ
    Date: Wed, 6 Mar 2024 07:15:44 -0800

    NO_HZ was obsoleted in 2011[1] and simply selects NO_HZ_IDLE.

    [1] linux 3ca277e

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

2/2 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp/genericarm64: incorporate more features, and sort
    Date: Wed, 6 Mar 2024 07:15:44 -0800

    Pull in a large number of drivers and build them as modules. The set of
    drivers enabled is based on the current defconfig.

    Some chunks are split out into separate files to keep the top-level
    cfg file size manageable.

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

(From OE-Core rev: ebb5214b9860b4ee120d88ee5be30b344088cd5c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Alexander Kanavin
2d606350c7 python3: correct upstream version check
This only needs removal of the custom setting (which no longer produces a webpage suitable for parsing the version out),
as the default SRC_URI is 'tarballs in versioned directoroies' setup, which the version checker is able to handle.

(From OE-Core rev: d9fa89180fe497ce67493b8dec8452d87c05ccba)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Alexander Kanavin
37d2ba9adb wayland: fix upstream version check by asking gitlab directly
https://wayland.freedesktop.org/releases.html is prone to delays
and missing entries as it is manually updated; in particular
latest wayland-protocols remains unlisted:
https://gitlab.freedesktop.org/wayland/wayland.freedesktop.org/-/issues/7

(From OE-Core rev: 1932f6ebe0c108852010b1fac8febd23236c86ae)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Jose Quaresma
b4be67b5f7 elfutils: fix unused variable BUFFER_SIZE
Fix build break with clang

(From OE-Core rev: 760292c23213476169116b8608ca4119b99e6ff8)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Enrico Scholz
7d530aa417 shadow: fix copydir operation with 'pseudo'
Calling 'useradd' through pseudo on (at least) Ubuntu 20 creates
filesystem objects (.bashrc, .profile) with invalid attributes.  It
manifests as

| tar: ./home/.../.bashrc: Unknown file type; file ignored

or

| Copying files into the device: __populate_fs: ignoring entry ".bashrc"
| .bashrc: File not found by ext2_lookup while looking up ".bashrc"

when building the image.

This happens due to a bug in shadow which is caused by clobbering
fstatat() results.

(From OE-Core rev: 991f880e5cb3d30a1197711d44af2fdb1719ce82)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Markus Volk
7588fe77a1 libsoup: enable vapi support
without vapi gnome-calculator-46.0 will fail with:
| ../gnome-calculator-46.0/lib/currency-provider.vala:161.19-161.47:
error: The name `send_and_splice_async' does not exist in the context
of `Soup.Session' (libsoup-3.0)

(From OE-Core rev: cce5c9db1f19fd4638c19c70fd99f065dd93f15b)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-20 18:20:38 +00:00
Ross Burton
78e48090b2 gstreamer1.0: improve test reliability
First, libcheck has the ability to increase all test timeouts by an arbitrary
multiplier. Because we run our tests on loaded build machines,
increase all timeouts by 10x to reduce the chance of load causing failures.

Second, use GST_CHECKS_IGNORE to list test cases that should be skipped.

Drop skip-aggregator-test.patch as this is now redundant, and also skip
gstnetclientclock.c:test_functioning as this is very sensitive to load.

[ YOCTO #14808 ]

(From OE-Core rev: 669d0df81f651f7c033c8cb7872cac5bfe670a4f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:25:12 +00:00
Ross Burton
b2191bb7a7 curl: increase test timeouts
We often see multiple curl tests fail during ptest runs, the actual test
varies but the output is like this:

  FAIL: 337: protoc!
  There was no content at all in the file log/3/server.input.
  Server glitch? Total curl failure? Returned: 28

Error code 28 is CURLE_OPERATION_TIMEDOUT, so this is almost certainly
due to a loaded machine resulting in the tests running slowly.

It is notable that the test runner explicitly passes --max-time=13 to
curl, so experiment and change this to 600 to see if this solves the
problem.

[ YOCTO #15268 ]

(From OE-Core rev: e2e9ec1bf97a7e36a05a247dbc671ecca584205f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:25:12 +00:00
Ross Burton
264a3f429a curl: improve run-ptest
There's no need to run the output of runtests.pl through a sed to get
automake-style output, as you can pass -am to get this formatting.

Don't run timing dependent tests, as the ptests can run on loaded
systems.

Add a dependency on the en_US locale because some of the tests require
this.

(From OE-Core rev: 3c3601d50ae290e7e9797eadd20c05df99bbd040)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:25:12 +00:00
Richard Purdie
b739fa5f4d uninative: Add pthread linking workaround
With newer glibc versions, pthread was merged into the main library so there is
no longer any need to link with -lpthread. On newer systems this means that linker
flag is dropped from places like pkgconfig .pc files. If uninative then uses this
newer library on an older system, the flag is missing and linker errors about missing
symbols occur.

Adding the linkage unconditionally to our uninative linking flags avoids that problem
at a potential cost of slight over linking.

(From OE-Core rev: 5ec2bc7ef663db4c04c85eee518297d442556481)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:25:12 +00:00
Richard Purdie
54441215bd bash/flex: Ensure BUILD_FLAGS doesn't leak onto target
The ptest packages were leaking BUILD_LDFLAGS into the Makefile used
on target. Remove these values instead.

(From OE-Core rev: 599132c7794a1192ddd257669798a3ec6d1191bb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:25:12 +00:00
Alexander Kanavin
27e72a5f13 dev-manual: improve descriptions of 'bitbake -S printdiff'
Try to particularly emphasize that it can be used to find
out why something rebuilds when it shouldn't.

(From yocto-docs rev: cfaf2707b4a77888316d5eb24bf41ccc21e2c12b)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Alexander Kanavin
bc06390947 dev/ref-manual: document conf-summary.txt together with conf-notes.txt
(From yocto-docs rev: b92f2eac3b7455ebfc87f668b9442122dbf1c66f)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Alexander Kanavin
b685c76b68 sdk-manual: correctly describe separate build-sysroots tasks in direct sdk workflows
They were separated in
https://git.yoctoproject.org/poky/commit/?id=63e53fb8b60d38315015844bd3357fa1649cd639

(From yocto-docs rev: b880ac9498764027de435103d493f34adf68dc13)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
BELOUARGA Mohamed
98fb300f40 ref-manual: add documentation of the variable SPDX_NAMESPACE_PREFIX
The documentation of the variable SPDX_NAMESPACE_PREFIX does not exist.
This variable is used to change the prefix of some links in SPDX docs.

(From yocto-docs rev: 85c56d8f7f65875628ab63abf661705b26f55224)

Signed-off-by: BELOUARGA Mohamed <m.belouarga@technologyandstrategy.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
d255faa35e profile-manual: usage.rst: further style improvements
According to errors reported by "make stylecheck"

(From yocto-docs rev: fc808b2dca4321209bfa6206d9e43aa1a5a0c5b8)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
f6584a38ae manuals: add initial stylechecks with Vale
Use the "Vale" (https://vale.sh) tool to perform text style checks
Run "make stylecheck" to run the checks.

This just checks the text, not the Sphinx syntax style choices.

(From yocto-docs rev: 51b1f9a4d5aa02d337b105633de38e18b923a13a)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Martin Jansa
8a8040b37e contributor-guide: be more specific about meta-* trees
* this is often confused to apply for e.g. meta-oe as well
  where it doesn't apply as meta-oe has own ML mentioned
  in README.

(From yocto-docs rev: 63be0814a7ecf38c570b6d776f62b7c7803eb299)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Lee Chee Yang
13d1ee8cb4 migration-guides: add release notes for 4.0.17
(From yocto-docs rev: 224de9dfb6238677ecff715e1d57376487b6517f)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
ddd8f69db9 migration-guides: draft notes for upcoming release 5.0
(From yocto-docs rev: e81c4da57aacce4a5c9e7b36ad4f911116747dd1)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
df44348f0b documentation: Makefile: remove releases.rst in "make clean"
releases.rst is generated by the set_versions.py script

(From yocto-docs rev: 4b7773f59bab2d653d07b7e06cd21745b646b604)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
2b66b2f8eb profile-manual: usage.rst: fix reference to bug report
Allowing to remove nested parentheses in the text!

(From yocto-docs rev: 7cfa49fe17a8a20a8d4671c0daf1820c3cd69952)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
3b86df94f7 manuals: use "manual page(s)"
Instead of "manpage(s)" or "man page(s)".
To address one of the errors reported by "make stylecheck"

(From yocto-docs rev: 86f5f5cd385f09c48c4cf0b1ab222d6e1e7c7e54)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
063b0cf8f9 profile-manual: usage.rst: formatting fixes
Plus a few text styling improvements, some reported by "make stylecheck"

(From yocto-docs rev: c29a1bf4dd5223e4af9c1be5a8a8ea6a88bb7a58)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Michael Opdenacker
e987c5151c manuals: add initial stylechecks with Vale
Use the "Vale" (https://vale.sh) tool to perform text style checks
Run "make stylecheck" to run the checks.

This just checks the text, not the Sphinx syntax style choices.

(From yocto-docs rev: d145e1dc45dc0792c8b8f7e73500b56face1e710)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Ulrich Ölmann
0808113517 ref-manual: classes: update description of class 'image_types'
Cite usage of IMGCLASSES variable in class 'image' as found in OE-Core's
commit [1].

[1] 451363438d38 ("classes/recipes: Switch to use inherit_defer")

(From yocto-docs rev: 674f376ece98466d3498459d5b5428a8bfbd5112)

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-19 15:22:27 +00:00
Soumya Sambu
1e4de6edc6 go: Upgrade 1.22.0 -> 1.22.1
Upgrade to latest 1.22.x release [1]:

$git log --oneline go1.22.0..go1.22.1
db6097f8cb (tag: go1.22.1, origin/release-branch.go1.22) [release-branch.go1.22] go1.22.1
041a47712e [release-branch.go1.22] net/textproto, mime/multipart: avoid unbounded read in MIME header
3a855208e3 [release-branch.go1.22] net/http, net/http/cookiejar: avoid subdomain matches on IPv6 zones
337b8e9cbf [release-branch.go1.22] crypto/x509: make sure pub key is non-nil before interface conversion
16830ab48a [release-branch.go1.22] net/http: add missing call to decConnsPerHost
056b0edcb8 [release-branch.go1.22] html/template: escape additional tokens in MarshalJSON errors
f73eba76a0 [release-branch.go1.22] net: work around runtime scheduler starvation on js and wasip1
5330cd225b [release-branch.go1.22] net/mail: properly handle special characters in phrase and obs-phrase
d8c4239f08 [release-branch.go1.22] cmd/go/internal/modcmd: correctly filter out main modules in verify
c33adf44ff [release-branch.go1.22] cmd/trace/v2,internal/trace: use correct frame for identifying goroutines
3b71998078 [release-branch.go1.22] go/types, types2: ensure that Alias.actual is set in NewAlias
8fe2ad6494 [release-branch.go1.22] runtime/internal/atomic: correct GOARM=7 guard at a DMB instruction
686662f3a4 [release-branch.go1.22] cmd/compile: make jump table symbol static
6cbe522fe1 [release-branch.go1.22] cmd/compile: fail noder.LookupFunc gracefully if function generic
fb86598cd3 [release-branch.go1.22] cmd/compile: accept -lang=go1 as -lang=go1.0
6fbd01a711 [release-branch.go1.22] runtime: don't call traceReadCPU on the system stack
d6a271939f [release-branch.go1.22] cmd/cgo/internal/testsanitizers: disable location checking for clang
20107e05a6 [release-branch.go1.22] internal/testenv: support the LUCI mobile builders in tests
53d1b73dff [release-branch.go1.22] internal/testenv: allow "-noopt" anywhere in builder name in test
dd31ad7e9f [release-branch.go1.22] spec: fix typo in year (it's 2024 now)

[1] https://github.com/golang/go/compare/go1.22.0...go1.22.1

(From OE-Core rev: 423f875e10707b583f34dde625301c702c49e9d9)

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Khem Raj
4fd93a7be4 pam: Fix build with musl
Apply a backported patch

(From OE-Core rev: e4fbb97fda6fe6232df743e655d0488f2353a24e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Harish Sadineni
2003557314 gcc: Oe-selftest failure analysis - fix for tcl errors
gcc testsuite unable to read the value of variable $do-what-limit and causing below tcl errors.
ERROR: can't read "do": no such variable
    while executing
"set do_what $do-what-limit"

To fix this, quote the variable using braces, as in ${do-what-limit}.

(From OE-Core rev: e59421468d96282057f5176438a76a325b987e47)

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Yi Zhao
893a8bacc5 libtirpc: drop redundant PACKAGECONFIG
(From OE-Core rev: a2d0f2dd46c95309de00368498a73f58f523accc)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Paul Barker
aec64781fe kernel: Fix check_oldest_kernel
The check_oldest_kernel() function requires utsrelease.h to be
generated. This file is generated during do_compile, so we need to delay
calling check_oldest_kernel() until after this.

With this change in place, I now see the expected warning when building
Linux 5.10.y.

(From OE-Core rev: 525019b30e83ea65021ca4874605589ccd2daf80)

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Alexander Kanavin
88eaffee1e man-pages: use env from coreutils-native
This is the outcome of investigating the selftest-armhost fail:
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3028/steps/15/logs/stdio

When man-pages recipe builds on ubuntu 18.04, /usr/bin/env on that is too
old to support -S option, and the outcome is that man-pages quietly
installs nothing, and no packages get created, and the test
that expects the package to exist fails.

(From OE-Core rev: 7bfbaaf2baa54f0abff231cfc263d4d8bc7f732b)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Xiangyu Chen
276332d289 lttng-tools: skip kernel tests if no kernel modules present
The current tests will run both userspace and kernel testing. Some of use cases
only use lttng for one kind of tracing (e.g. userspace). If the lttng
modules(.ko files) is not present during the test,it would end up with lots of
failing.

Add a check in ptest script, if current system doesn't contain lttng kernel
modules, passing LTTNG_TOOLS_DISABLE_KERNEL_TESTS=1 to make to skip all lttng
kernel related testing.

(From OE-Core rev: e0d8494b569bc5fb45d9a4bafa25527a0ee3d970)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Alexander Kanavin
8139216000 cargo-c-native: update 0.9.18 -> 0.9.30
(From OE-Core rev: 772cb94c9ab0645714e182f0141dc6c8b26b05ef)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Alexander Kanavin
2db6df6f2e cargo-c-native: convert from git fetcher to crate fetcher
Fetching from git requires manually maintaining Cargo.lock
which is tedious and unclear how to do correctly,
especially with version updates. On the other hand, crates
do include Cargo.lock, and this way the revisions would match
upstream's and crate users (which requires regenerating
crates.inc to match the lock file).

(From OE-Core rev: 03c1954404bf56470935b12cb3aeb02199f68ded)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Alexander Kanavin
2894a574db meson: correct upstream version check (exclude pre-releases)
(From OE-Core rev: e01a57979331472b7677b41aa57f448938bc14fc)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Yannick Rodriguez
ab730c5661 linux-firmware: Move Intel 9260 modules firmware.
Moving intel 9260 firmware because it's common wifi chip and otherwise
to include this firmware whe have to include iwlwifi-misc which included
a lot of firmwares.

(From OE-Core rev: d924307b9cee4065ff60d08e3b4298278693ff2c)

Signed-off-by: Yannick Rodriguez <y.rodriguez@i2s.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Khem Raj
af911135e4 glibc: Update to tip of 2.39 branch
Brings

* 1b9c1a0047 Use gcc __builtin_stdc_* builtins in stdbit.h if possible
* e0910f1d32 S390: Do not clobber r7 in clone [BZ #31402]
* d0724994de math: Update mips64 ulps

(From OE-Core rev: b2274aa08fda1734af840aca05c7c7ce464d8775)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Khem Raj
9d4c2be564 elfutils: Fix build break with clang
(From OE-Core rev: 68923430069fcc049ad9c5f7830f72c1c3e7d501)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Khem Raj
8ffe194baa llvm: Update to 18.1.1 release
This is final release after RC suffix is removed

(From OE-Core rev: 8ec8d41087c6c01572b785f5d71983bcce584396)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Max Krummenacher
421083c46c git: git-replacement-native: depend on ca-certificate
git is delegating webacces for URLs using TLS to libcurl.
However our native libcurl build does not find a ca-certificate.crt
unless its curl-native work dir still exists and thus git will
fail.
If a recipe uses AUTOREV with a git repo using https as its protocol
parsing of that recipe will fail fetching the latest HEAD.

Fix that by depending on ca-certificate and give its location
to libcurl via git's envrironment variable GIT_SSL_CAINFO.

(From OE-Core rev: 2e99ffda70fd95b5eab3de47048032349cd66f4b)

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Markus Volk
7f4aa8e6a3 vala: fix for gtk4 prior to 4.14
- add a backport patch to fix compatibility with older gtk4 versions

(From OE-Core rev: f8c360a6fac31ae439a3c638750b8e4a0714ed26)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Markus Volk
a490243e88 vala: merge bb and inc files
(From OE-Core rev: 371b8e3ed211c9a4d730ed919d815830c7aff138)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Ross Burton
83f7d147e5 linux-firmware: remove pointless linux-firmware-gplv2-license package
The GPLv2 text is the standard text, so the -carl9170 package can just
set LICENSE=GPL-2.0-or-later and the custom license handling removed.

Confirmed in the source that the intended license is v2-or-later, not
v2-only as WHENCE says.

(From OE-Core rev: f6ec30f46182afa27678999ba672f05b2899c77e)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Ross Burton
e25101c044 linux-firmware: set LICENSE field for -liquidui and -mellanox
(From OE-Core rev: 9387bd66abf066a2a7260a632e0af1f80be20c32)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Ross Burton
0b122f6337 linux-firmware: add support for deduplicating the firmware
This can a non-trivial amount of disk space, but requires rdfind from
meta-oe. As duplicate pieces of firmware become links, this reduces the
size of individual packages and adds dependencies:

linux-firmware-adsp-sst: PKGSIZE changed from 6362678 to 5609999 (-12%)
linux-firmware-amdgpu: PKGSIZE changed from 80234502 to 60819841 (-24%)
linux-firmware-cirrus: PKGSIZE changed from 1290908 to 1068886 (-17%)
linux-firmware-ibt-17: PKGSIZE changed from 2601222 to 1300679 (-50%)
linux-firmware-ibt-17: RDEPENDS: added "linux-firmware-ibt-misc"
linux-firmware-ibt-20: PKGSIZE changed from 2399511 to 1599721 (-33%)
linux-firmware-ibt-20: RDEPENDS: added "linux-firmware-ibt-misc"
linux-firmware-ibt-misc: PKGSIZE changed from 22400466 to 13390020 (-40%)
linux-firmware-ibt-misc: RDEPENDS: added "linux-firmware-ibt-17"
linux-firmware-qcom-qrb4210-audio: RDEPENDS: added "linux-firmware-qcom-qcm2290-audio"
linux-firmware-qcom-qrb4210-modem: PKGSIZE changed from 8882947 to 63 (-100%)
linux-firmware-qcom-qrb4210-modem: RDEPENDS: added "linux-firmware-qcom-qcm2290-modem"
linux-firmware-qcom-sdm845-audio: RDEPENDS: added "linux-firmware-qcom-qcm2290-audio"
linux-firmware-qcom-sdm845-compute: RDEPENDS: added "linux-firmware-qcom-qrb4210-compute"
linux-firmware-qcom-sdm845-modem: RDEPENDS: added "linux-firmware-qcom-qcm2290-modem"
linux-firmware-qcom-sm8250-audio: RDEPENDS: added "linux-firmware-qcom-qcm2290-audio"
linux-firmware-qcom-sm8250-compute: RDEPENDS: added "linux-firmware-qcom-qrb4210-compute"
linux-firmware-qcom-sm8250-thundercomm-rb5-sensors: RDEPENDS: added "linux-firmware-qcom-sdm845-thundercomm-db845c-sensors"
linux-firmware-radeon: PKGSIZE changed from 7105560 to 3343141 (-53%)
linux-firmware-radeon: RDEPENDS: added "linux-firmware-amdgpu"
linux-firmware-rtl8822: RDEPENDS: added "linux-firmware-rtl8761"
linux-firmware-sd8688: RDEPENDS: added "linux-firmware"
linux-firmware: RDEPENDS: added "linux-firmware-rtl8761"

(From OE-Core rev: 6acca0c04a82af90dca6a160b1b6edb2ec75c967)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Markus Volk
04d7460529 mesa: fix opencl-spirv build
815a6647eb
adds a regression and breaks opencl-spirv build.

The next step in mesa will probably be to completely remove nir in favour of rusticl.
https://gitlab.freedesktop.org/mesa/mesa/-/issues/10674

Revert this commit to avoid that the lts version cannot use spirv
because rusticl is not yet and opencl-spirv is no longer supported.

(From OE-Core rev: 4335436d6dcd6059be784b812f1b1ce4090770a9)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Sundeep KOKKONDA
3dc62ba4a8 rust: reproducibility issue fix with v1.75
Patch updated with upstream fix.
a9a979839b

(From OE-Core rev: 2eceaa4b6ca398ec233b18c1064970bdf68a9258)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Richard Purdie
4293466bf6 expat: Upgrade 2.6.1 -> 2.6.2
Includes a fix for CVE-2024-28757.

(From OE-Core rev: e3d26fe076499c8a01e02c9951696c3a9ea05fa3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18 12:21:45 +00:00
Richard Purdie
a41c320b00 layer.conf: Prepare for release, drop nanbield LAYERSERIES
As we're close to release, drop compatibility to nanbield, people
have had time to switch now.

(From OE-Core rev: 0e42326dfd6b9042b405329ceb56a93199a89a85)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-16 19:17:36 +00:00
Yoann Congal
789b10030c cve-update-nvd2-native: Remove rejected CVE from database
When a CVE is updated to be rejected, matching database entries must be
removed. Otherwise:
* an incremental update is not equivalent the to an initial download.
* rejected CVEs might still appear as Unpatched in cve-check.

(From OE-Core rev: f276a980b8930b98e6c8f0e1a865d77dfcfe5085)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-15 07:36:14 +00:00
Yoann Congal
c698cf6723 cve-update-nvd2-native: Fix CVE configuration update
When a CVE is created, it often has no precise version information and
this is stored as "-" (matching any version). After an update, version
information is added. The previous "-" must be removed, otherwise, the
CVE is still "Unpatched" for cve-check.

(From OE-Core rev: 641ae3f36e09af9932dc33043a0a5fbfce62122e)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-15 07:36:14 +00:00
Yoann Congal
50e17197c6 cve-update-nvd2-native: nvd_request_next: Improve comment
Add a URL to the doc of the API used in the function.
... and fix a small typo dabase -> database

(From OE-Core rev: e0157b3b81333a24abd31dbb23a6abebca3e7ba7)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-15 07:36:14 +00:00
Yoann Congal
64a54c9c39 cve-update-nvd2-native: Remove duplicated CVE_CHECK_DB_FILE definition
CVE_CHECK_DB_FILE is already defined in cve-check.bbclass which is
always inherited in cve-update-nvd2-native (There is a check line 40).

Remove it to avoid confusion. Otherwise, this should not change
anything.

(From OE-Core rev: e5f3f223885c17b7007c310273fc7c80b90a4105)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-15 07:36:14 +00:00
Yoann Congal
19f27037b2 cve-update-nvd2-native: Add an age threshold for incremental update
Add a new variable "CVE_DB_INCR_UPDATE_AGE_THRES", which can be used to
specify the maximum age of the database for doing an incremental update
For older databases, a full re-download is done.

With a value of "0", this forces a full-redownload.

(From OE-Core rev: 74c1765111b6610348eae4b7e41d7045ce58ef86)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-13 22:08:46 +00:00
Yoann Congal
6243d7b8ce cve-update-nvd2-native: Fix typo in comment
attmepts -> attempts

(From OE-Core rev: dc18aaeda8e810f9082a0ceac08e5e4275bbd0f7)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-13 22:08:46 +00:00
William Lyu
b5624ee564 openssh: Add a workaround for ICE on powerpc64le
Fixes [YOCTO #15415]

The new openssh version has an ICE on powerpc64le similar to the one on
mips/mips64[1]. By adding flag "--without-hardening" to "./configure",
compiler option "-fzero-call-used-regs" will be removed when compiling. This
prevents certain functions from triggering the following ICE:

unimplemented: argument 'used' is not supported for '-fzero-call-used-regs' on this target

References
[1] https://git.openembedded.org/openembedded-core/commit/?id=5b290566519a87c563945a033cb49863317ad63d

(From OE-Core rev: bc793fa9d1fe24c102d91e97b7002b6e637cbfa5)

Signed-off-by: William Lyu <William.Lyu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:06:16 +00:00
Christian Taedcke
125771c16f kernel-fitImage: only include valid compatible line
Without this commit the configuration node includes the compatible
line 'compatible = [00];' if EXTERNAL_KERNEL_DEVICETREE is not
defined, i.e. if PREFERRED_PROVIDER_virtual/dtb is not used.
This prevents u-boot from using this configuration and it prints the
message "Could not find configuration node".

An additional check also ensures that the written compatible line
never contains an empty compatible.

The functionality to add the compatible line was added in commit
f4c82fb6da89 ("kernel-fitImage: add machine compatible to config
section").

(From OE-Core rev: f8f3a52b2f924789552e6a3f889162ff07e0887f)

Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:06:16 +00:00
Jose Quaresma
ca829f14e0 go.bbclass: set GOPROXY
The GOPROXY is already correctly defined on the native sys root
and this can be checked using the bitbake devshell:

| $ go env GOPROXY
| https://proxy.golang.org,direct

The go_do_compile task calls the compiler directly so the
GOPROXY env is not seen because it's not defined in the shell.
Defining it explicitly solves this problem and was to avoid
setting it in the recipes itself.

(From OE-Core rev: e0919a3f7bc26b1ea9fb57740de4a9a3b9253f26)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:06:16 +00:00
Khem Raj
e8384ba2fa systemd: Check for directory before chmod'ing it
da9db878a1 systemd: fix dead link /var/log/README
add -Dcreate-log-dirs=false which means journal dir
will not be generated regardless of VOLATILE_LOG_DIR value
if a distro decided to set VOLATILE_LOG_DIR=no this
code path will be executes and the directory being operated
upon wont exist ending in do_install errors

chown: cannot access '/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/systemd/255.4/image/var/log/journal': No such file or directory

(From OE-Core rev: e017f405bf6ae6c269a8c9c981878fd1ad8666b6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:06:16 +00:00
Tom Hochstein
045eb59130 bmaptool: Add bmap-tools runtime alias for compatibility
The rename of bmap-tools to bmaptool creates an incompatibility that
will break package feeds. Restore package feed compatibility by adding
a bmap-tools runtime alias.

Acked-by: Otavio Salvador <otavio@ossystems.com.br>
(From OE-Core rev: fba4ac04524c5c3fa04a51b6e0679276327115ad)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:06:16 +00:00
Ross Burton
4b42a93edf genericarm64: clean up kernel modules and firmware
Don't install _all_ of the firmware, as that's huge (almost 1GB). Instead
install a few pieces of firmware for common hardware.

Also use the same list of packages to populate the initramfs, so there's
no need to manually sync the package lists (as initramfs doesn't install
the MACHINE_EXTRA_RRECOMMENDS automatically).

(From meta-yocto rev: a5aa914990f36cc5175577983dd1ad1aa0bb81f2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:05:44 +00:00
Ross Burton
e1858360af genericarm64.wks: reorder partitions
Put the root partition at the end of the disk so that it can be easily
resized.

(From meta-yocto rev: e2d7f203a08170481e75d43246beda7b1af1d5f2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-08 08:05:44 +00:00
Richard Purdie
47c201da56 poky: Update to prepare for scarthgap release
(From meta-yocto rev: 4e53cc57c1e6c05098f3cfd467bd9cdbc86bd363)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 22:33:12 +00:00
Changqing Li
7165c23237 go: filter out build specific path from the linker flags
patch 0007-exec.go-do-not-write-linker-flags-into-buildids.patch
removes linker flags from buildids for not breaking reproducibility,
but it seems that this will make go not rebuild when linker flag
changes, Refer [1]. So remove this oe-specific patch, and change to
filter out build specific path from the linker flags

[1] https://github.com/golang/go/issues/63760

(From OE-Core rev: 6873c6cb000b24c1badd0fb8b5cd2d0a31a63096)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Chen Qi
bf6591b935 systemd: remove systemd-bus-proxy settings
systemd-bus-proxy was removed since v230.
>From the NEWS file:
"""
  * systemd-bus-proxyd has been removed, as kdbus is unlikely to still be
    merged into the kernel in its current form.
"""

(From OE-Core rev: e99003b244507d8586b1f878765aa4a546a767ef)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Chen Qi
54f32640a0 systemd: use RDEPENDS for systemd-vconsole-setup
With NO_RECOMMENDATIONS set to "1", systemd-vonsole-setup.service
will fail because it invokes /usr/bin/loadkeys, which is from kbd.

The RRECOMMENDATION should be changed to RDEPENDS, because it's not
a recommenation, instead it's necessary.

(From OE-Core rev: 6126d2dfab3f6bafe23d4dce805110784d23acb1)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Changqing Li
da9db878a1 systemd: fix dead link /var/log/README
There are 2 issues here:
First, in package systemd, there is a file /usr/lib/tmpfile.d/legacy.conf,
which will create a symlink to /usr/share/doc/systemd/README.logs during
boot time. But for oe, /usr/share/doc/systemd/README.logs is packaged in
systemd-doc, which will make /var/log/README is dead link.

Second, the symlink /var/log/README in legacy.conf use relative path:
"L /var/log/README - - - - ../../usr/share/doc/systemd/README.logs"
But for oe, when VOLATILE_LOG_DIR is true, /var/log is a link to
/var/volatile/log, so /var/log/README need link to
../../../usr/share/doc/systemd/README.logs, while VOLATILE_LOG_DIR is
false, /var/log is a dir, so /var/log/README need link to
../../usr/share/doc/systemd/README.logs. So current symlink in
legacy.conf will also make it a dead link when VOLATILE_LOG_DIR is true.

Turn off CREATE_LOG_DIRS to avoid these issues.

(From OE-Core rev: 18d46e11d85da1f6feaba5a135931e43060024d6)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Changqing Li
66cf8644c2 rxvt-unicode: Fix installing of terminfo
For cross compile, TIC will be native tic in recipe-sysroot-native, and
the terminfo path will be native path, the rxvt-unicode terminfo will be
wrongly installed to native path.

install terminfo to correct path in do_install

(From OE-Core rev: daff3b4bf9d7b77a8170d9bc6f0b9c81b0a077d7)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Randy MacLeod
329bd0cfa9 valgrind: skip intermittently failing ptests
Skip a few additional ptests that fail occasionally on the Yocto
autobuilder and remove those added to the remove-for-all list
if they were already in the remove-for-aarch64 list.

=== Test Summary ===
TOTAL: 774
PASSED: 755
FAILED: 0
SKIPPED: 19

(From OE-Core rev: bbe97f6688683ebfe77543eacf8a8a0f3c614545)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Eilís 'pidge' Ní Fhlannagáin
2b5903f511 sstatetests.py: Add testing for correct sstate permissions
This patch adds to run_test_sstate_creation so that it also tests
that sstate directories don't accidentally pickup umask permissions
from the user upon creation.

[RP: Python style tweaking]
(From OE-Core rev: 7d6eb828e97ad3f27d94efdccd920fb2aef36743)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Richard Purdie
0bd3234676 oeqa/runtime/login: Fix dbus-wait timeout and loop conditional
The dbus-wait command returns a timeout after 60s but reports "success", detect this.
Unfortunately it does effectively break the test as the signal is nearly never being
correctly detected since it was already sent.

For that reason comment out the code instead too.

Also fix the loop conditional as the logic was incorrect and it was looping
indefinitely when an image match didn't occur.

(From OE-Core rev: 89c930e9e4b38b116edcba59e88621a39f8bda67)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Eilís 'pidge' Ní Fhlannagáin
f6235fef62 oeqa/runtime/login: Add screenshot sample logic/timeout/dbus-wait
This patch uses dbus-wait to wait for matchbox to be up. Once that
happens, it sets a timeout of 60 seconds and takes a screenshot
and compares it, every 2 seconds. If diff=0 it passes. If the timeout
ends, it fails.

(From OE-Core rev: 287b4f0a8244f7214f6a1aaa84ef16cc528f8326)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Eilís 'pidge' Ní Fhlannagáin
59c7b5e706 oeqa/runtime/login: Exclude qemuriscv64
Excluding riscv64 due to mouse rather than a touchscreen which adds a
moving cursor, so the diff ends up > 0. Need to fix the image to use the
touchscreen rather than mouse input.

(From OE-Core rev: 7f7032c7613abd62ce510c98211c75fc7c5e7090)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Richard Purdie
96af410e8e oeqa/runtime/login: Mask out the mouse panel icon for now
The mouse panel icon can move when the time changes between 3 and 4 digits.
Ideally we'd fix the alignment of the clock on the panel but to get the
tests working, increase the size of the mask for now.

(From OE-Core rev: 8ec02142ab98741749281bdb29d5973c96b839d7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Richard Purdie
4d161405d5 oeqa/runtime/login: Various code improvements and fixes
* Allow tools to be found from the host PATH so that imagemagick from a buildtools
  tarball/sdk can work
* Reformat the code to have imports at the start of the file and have more standard
  formatting and whitespace
* Always save copies of the images, the space imapct is negligle compared to the
  debug win
* Write the images to ${T}
* Use bb.utils.mkdirhier() instead of more complex code
* Restrict the tests to images containing matchbox-desktop

(From OE-Core rev: d09989b49517830297654e4d1d150aaa8723c41a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Eilís 'pidge' Ní Fhlannagáin
b49d42ce90 oeqa/runtime/login: Proof of concept for screenshot testcases
This takes the work rburton did on image screenshot testing and
expands it.

Right now this works with most of the qemu based machines except for

- qemuppc64
- qemuarmv5
- qemuriscv32
- qemuloongarch64

See "Known Issues" further down.

This test takes a screendump of a qemu image, blanks out the clock
and compares it to an image we have on record. If the diff is exact,
the test passes. If not, it stores the image in build/failed-images and
fails out.

In order to enable this test, you will need meta-openembedded/meta-oe in
your bblayers.conf for imagemagick and the following in local.conf:

IMAGE_CLASSES += "testimage"
TEST_SUITES = "login"
TESTIMAGEDEPENDS:append:qemuall = " imagemagick-native:do_populate_sysroot "

Known Issues
------------

The main issue is that I've yet to find a gating factor that would allow
me to tell when the qemu instance is fully up and rendered. I've tried a
few tactics here, (dbus-wait, qmp) but for now a disgusting
time.sleep(30) is there.

You can replicate this by running qemumips. The screen load takes forever,
but you even see it on qemux86 where the Home and Workspace Switch icons
will sometimes take a while to fully load.

Eventually I'm going to have to take multiple screenshots and compare
them, but then you get into the issue where the question is, is the diff
greater than 0 because it hasn't fully loaded or something is actually
incorrect.

There are the issues I know about:

   - runqemu qemuppc64 comes up blank.
   - qemuarmv5 comes up with multiple heads but sending "head" to screendump.
     seems to create a png with a bad header.
   - qemuriscv32 and qemuloongarch64 don't work with testimage apparently?
   - qemumips64 is missing mouse icon.
   - qemumips takes forever to render and is missing mouse icon.
   - qemuarm and qemuppc return incorrect width
   - All images have home and screen flipper icons not always rendered fully at first.
     The sleep seems to help this out some, depending on machine load.

(From OE-Core rev: dc7cefbaccde50df6c4396e66d50659a45e00631)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Co-authored-by: Ross Burton <ross.burton@arm.com>
Co-authored-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Eilís 'pidge' Ní Fhlannagáin
f4665afc3c screenshot-tests: Add initial screenshot test png files for core-image-sato
This is an initial commit of png's we can use to test qemu image testing
against.

Also add symlinks for core-image-sato-sdk

[RP: Add symlinks and missing image]
(From OE-Core rev: 06b7a8c02fbf89258034a0a258efc0bd23902f03)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Eilís 'pidge' Ní Fhlannagáin
b9e9693cb0 qemurunner.py: Fix error on calls to run_monitor
A change in QEMUMonitorProtocol.cmd() requires that we either pass in
kwargs instead of an argument dict or move to cmd_raw()

cmd() was renamed to cmd_raw() (and command() was renamed to cmd())
See:
37274707f6
684750ab4f

My concern with this patch is that I haven't seen this come up with
utils/dump.py which also uses QemuMonitor's run_monitor. If it is
occuring, this should fix issues there as well

(From OE-Core rev: 9665d38ab60c1c3b27887c2b1a6396f13a1b33ea)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:27:51 +00:00
Alexander Kanavin
02201e986d webkitgtk: upgrade 2.42.2 -> 2.42.5
(From OE-Core rev: e70cd3ce5e2f49b657de7f06994da751099fe331)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
c9be277fb3 vulkan: upgrade 1.3.268.0 -> 1.3.275.0
Add vulkan-volk recipe to support building latest vulkan-tools.

(From OE-Core rev: d3d0375fa0b4809d2c69837faf5df297d92de683)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
16aa12c8da vala: upgrade 0.56.13 -> 0.56.15
gobject-introspection is added as configure checks for its pkg-config file.

(From OE-Core rev: 7235073a7ee2fb371931922c2d0f28ab09673102)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
1d9d6387b0 update-rc.d: upgrade to latest revision
(From OE-Core rev: 0690f8016577f8bb4f74bc48529171a26fc99d4a)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
ec8a8ef1cf taglib: upgrade 1.13.1 -> 2.0 and add utfcpp recipe to support that
(From OE-Core rev: d264d2134ba169d29b857389fea88c58c38f377a)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
c1cdc892d7 ttyrun: upgrade 2.30.0 -> 2.31.0
(From OE-Core rev: 60b45299b515348c2a312d88d94d748fcfc344cf)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
bd0c5a7781 systemd: upgrade 255.1 -> 255.4
(From OE-Core rev: 1549cf92728ae3113160e5f8f72cc6d2433dc27d)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
5cb1523061 shaderc: update 2023.7 -> 2023.8
(From OE-Core rev: 0e88528515e86833aa69e919dc3444b42a7704f8)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
494b7c73c8 repo: upgrade 2.41 -> 2.42
Drop patch as issue fixed upstream:
https://gerrit.googlesource.com/git-repo/+/b8139bdcf87540fbe88a8b9180c052f5cc3a91b7

(From OE-Core rev: a6f2c8bf9306184e2184d7c5187e4db677cdcae2)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
8479b1d2f9 python3-wcwidth: upgrade 0.2.12 -> 0.2.13
(From OE-Core rev: 800f18b387463a96f3e0642a06f7c4ff5fe85da9)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:03 +00:00
Alexander Kanavin
51460be41f python3-setuptools: upgrade 69.0.3 -> 69.1.1
(From OE-Core rev: a953d88346d4ee93b5669c079586ae27d71552dc)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
8fda67f557 python3-ruamel-yaml: upgrade 0.17.35 -> 0.18.6
License-Update: copyright years

(From OE-Core rev: bc997c790cd2ccdfce8bf21021be6abe008ba46b)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
18c5cba3ad python3-jsonschema: upgrade 4.17.3 -> 4.21.1 and add new dependencies
(From OE-Core rev: 61401c6c82b4e717fcec3810dd9ee5ee61292696)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
316f1fc852 python3-dtschema: upgrade 2023.7 -> 2024.2
(From OE-Core rev: 612be0f227d1d016ea05c78facae2fe0d08e8081)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
f2856c715c python3-build: upgrade 1.0.3 -> 1.1.1
(From OE-Core rev: 8b4703d0a1866053979dd1500a7d6d8d3d6b853a)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
6801330b6c piglit: upgrade to latest revision
(From OE-Core rev: 4c4aec5d4ba34161280e6884df2354ee101be481)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
a0d1d89adb puzzles: upgrade to latest revision
License-Update: copyright years

(From OE-Core rev: 8d862b8405409fc746df480b18f0be5b5c75bff7)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
304270756e orc: upgrade 0.4.37 -> 0.4.38
(From OE-Core rev: 7e96d5931c7c37a23148c414b0f09da58c264148)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
4c7e012637 nghttp2: upgrade 1.59.0 -> 1.60.0
Drop patch as issue addressed upstream.

(From OE-Core rev: b6b337c68fa27a359db6efbedf492ca0cb9d9234)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
d339047b83 minicom: upgrade 2.8 -> 2.9
Adjust selftest to git-add the directory with newly added patches,
as the new minicom recipe has no default patches, and thus no directory
with them (and the selftest assumed it does).

(From OE-Core rev: 1fb2aa3f242ef20f8edfb518164b629258a04dd4)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
9c02943208 mesa: upgrade 24.0.1 -> 24.0.2
(From OE-Core rev: 7d7ed81a77a5ea852451951f0a302d18c225c725)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
6e342a0c76 mc: upgrade 4.8.30 -> 4.8.31
Fish vfs was renamed to shell vfs:
6ca4ab4b4e

(From OE-Core rev: 3dc97bf745239a817af956e354b9b991bf108e59)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
08cde8263a man-pages: upgrade 6.05.01 -> 6.06
License-Update: formatting, file names, http -> https, additional license snippets (which are all BSD-type).
(From OE-Core rev: bedf50acb3877c222ccfd07e8eaad9baceb5dc64)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
71c2eb3ac9 lsof: upgrade 4.98.0 -> 4.99.3
Convert from handcrafted makefiles to autotools (added in 4.97.0).

(From OE-Core rev: c86b575446699864c102dd0408ebe58b5729881c)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
3a20168e70 librsvg: upgrade 2.56.3 -> 2.57.1
Drop 0001-Add-riscv32-support.patch
(merged upstream).

(From OE-Core rev: 2d53ba395affdd2b4e5eb2abe105a78ddcc51ddb)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
6ff5a9ccb6 linux-firmware: upgrade 20231211 -> 20240220
License-Update: additional files

(From OE-Core rev: add81ef0299ea5260f9bdc59ffc8f5cc0e74276f)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
fae05fe284 libxml2: upgrade 2.11.5 -> 2.12.5
License-Update: hash.c is rewritten and no longer carries a special copyright notice, but dict.c still does
(Copyright file updated to reflect that)

(From OE-Core rev: a14769d40bee751ac1dcd536789e8e346046e141)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
5406ff0bc6 libusb1: upgrade 1.0.26 -> 1.0.27
(From OE-Core rev: 4d371bc44735c4e30f454b3522f785df6687a164)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
c6819eaaa7 librepo: update 1.16.0 -> 1.17.0
(From OE-Core rev: 7c60c42091a98d0c22242fb2a500b5b25f66a658)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
e3b7060e0d libpcre2: upgrade 10.42 -> 10.43
License-Update: copyright years

(From OE-Core rev: 6a0cb6e129d5602808f34fd2a9460fc05d9520d6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
00013601aa libpciaccess: upgrade 0.17 -> 0.18
License-Update: copyright years

Convert to meson, drop xorg-lib-common include
(it's too autotools-specific).

(From OE-Core rev: 4acdea1f3b9d0e18e899171aaa133980c1c7382e)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
eee41d341d libdnf: update 0.72.0 -> 0.73.0
(From OE-Core rev: 3680faea03afce24a27106932a255a68dcf0a867)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
3e180097a9 libbsd: upgrade 0.11.8 -> 0.12.1
License-Update: copyright years

(From OE-Core rev: 913212724c5a8437678e0f07795e8a894d6f43bc)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
b88cddd126 kmscube: upgrade to latest revision
(From OE-Core rev: eb07b9388ccd95bb3a593d12037ddf7fdc1b0b13)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
4de1c10252 glib-networking: upgrade 2.78.0 -> 2.78.1
(From OE-Core rev: f45a10b6272039542d17352da0553c9589709edb)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
c8127fe26b glib-2.0: upgrade 2.78.3 -> 2.78.4
(From OE-Core rev: 53118dd8f096c5467223182ada0e0b07fd6471f6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
2f12d80948 gettext: upgrade 0.22.4 -> 0.22.5
(From OE-Core rev: 3cf9853a1a6872667cffe1dd8ed3d7a5037caaa5)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
36965634be epiphany: upgrade 45.1 -> 45.3
(From OE-Core rev: 7d96a1c77147a08d39b98de6b619cfe5e5c0338c)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
4d80c539be elfutils: upgrade 0.189 -> 0.191
Drop backports:
0001-Add-helper-function-for-basename.patch
0001-tests-fix-build-against-upcoming-gcc-14-Werror-callo.patch

(From OE-Core rev: 797117902490fcd336697397ea5d8c2a601124b2)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
053fe287ea ell: upgrade 0.62 -> 0.63
(From OE-Core rev: 5d9027e3d9e59e46eefc238b69c50cc235061a64)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
cbeaf28ada diffoscope: upgrade 253 -> 259
(From OE-Core rev: 343846f62a3b217fb3de67470c7d265567444667)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
d197957750 dnf: upgrade 4.18.2 -> 4.19.0
(From OE-Core rev: f6241428aaf54e540795efc64844cab5acd9629b)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
35f3279165 btrfs-tools: upgrade 6.5.3 -> 6.7.1
(From OE-Core rev: ba87e34dc47559ffd02370169e8fa37dd080a56e)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
51fae36d0c boost: upgrade 1.83.0 -> 1.84.0
(From OE-Core rev: 4a7f5ec28712645d968e6dce84a7bd8bae8b4eb2)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
a4a5569b78 appstream: upgrade 1.0.0 -> 1.0.2
(From OE-Core rev: 2fbff79d223ea6a0887a80f38ed902aae61639c4)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
d92454308b acl: upgrade 2.3.1 -> 2.3.2
(From OE-Core rev: 2daf3cebd0786ffe6b661d0e62296c3c5b864f63)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Alexander Kanavin
e65840bdd5 python3-sphinxcontrib-jquery: add a recipe and make python3-sphinx-rtd-theme depend on it
It's a hard dependency of recent python3-sphinx-rtd-theme
versions:
4d6de11137

The issue is exposed by latest btrfs-tools update.

(From OE-Core rev: 7a3d074f2d1679b4d4e52c4a023edb46224ca0be)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07 17:25:02 +00:00
Trevor Woerner
002a6bbf66 dev-manual: bmaptool: rename
What was previously known variously as Bmaptool, bmaptools, bmap-tool,
and/or bmap-tools has been updated to the singular name: bmaptool. Update
all references to suit.

Since we are not in charge of debian's package naming policy, any
references that relate to debian package(s) will stay as "bmap-tools".

(From yocto-docs rev: 9c1505eabd69af548652381cf996d44f40a4fa8a)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Michael Opdenacker
dbcb74ef81 manuals: document VIRTUAL-RUNTIME variables
Document the convention to use variables prefixed by VIRTUAL_RUNTIME.
Add references to the new term where possible.

Another reason is that such variables are recommended
in a warning issued by meta/classes-global/insane.bbclass

(From yocto-docs rev: 11e1ba97edac979868f199e43c1004db6678044c)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Simone Weiß
f9e1cfe9e8 contributor-guide: add notes for tests
This adds some hints that and how changes should be tested when contributing.

Fixes [YOCTO #15412]

(From yocto-docs rev: 6f3dbb2a909ba5b71efb09b251ee3f8650e30146)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Michael Opdenacker
c2fd0446ec dev-manual: packages: fix capitalization
Using "PR service" instead of "PR Service", like in the other
two instances in this document.

(From yocto-docs rev: f1061014dff7732fe97866dbd9208f09dcde56dc)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Geoff Parker
833506169c ref-manual: variables: adding multiple groups in GROUPADD_PARAM
Add missing documentation on how to add multiple groups with a single
GROUPADD_PARAM:${PN}

(From yocto-docs rev: e55d2aa6a0ee58ee980de2a6ca8d531c7c0cd44a)

Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Johan Bezem
9400b992fd ref-manual: variables: correct sdk installation default path
The SDKPATH variable seems mistakenly identified as the
default path where the SDK will be installed by the generated
installation script, unless option '-d' or a manual input
overrides this default.

The intended variable is SDKPATHINSTALL. SDKPATH indicates
where the SDK is being composed and built.

The definitions have been added/updated.

(From yocto-docs rev: d5b9c4b9c443cc728a11fd1e0a26a11aac8ee2c5)

Signed-off-by: Johan Bezem <jbezem.extern@arri.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Luca Ceresoli
81be53672f ref-manual: tasks: do_cleansstate: recommend using '-f' instead for a shared sstate
do_cleansstat can produce build errors when using a shared sstate cache.

Add a note to clearly discourage, provide a safe alternative (bitbake -f),
and the rationale.

Suggested-by: Quentin Schulz  <quentin.schulz@theobroma-systems.com>
Link: https://lore.kernel.org/yocto-docs/20240219155513.76738-1-luca.ceresoli@bootlin.com/T/#m5529687ecb0f9ec2dacddcb6ff58e2df73af9cde
(From yocto-docs rev: 6fb06bb4a917c1515e54fa3e699119f6bbb85767)

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Luca Ceresoli
aca3afe827 ref-manual: tasks: do_cleanall: recommend using '-f' instead
do_cleanall can produce failures when used in legitimate cases, such as
with recipe variants (foo and foo-native) or a shared DL_DIR. This is why
it is forbidden when writing tests that will run on the autobuilders
(https://docs.yoctoproject.org/test-manual/intro.html?highlight=cleanall#considerations-when-writing-tests).

Reword the documentation to clearly discourage, provide a safe alternative
(bitbake -f -c fetch), and the rationale with an example.

Reported-by: Sam Liddicott
Link: https://bootlin.com/blog/yocto-sharing-the-sstate-cache-and-download-directories/#comment-2650335
(From yocto-docs rev: bfeb00f9213b9d2650ccf03ea666387415227be4)

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Simone Weiß
aaa609ac2b ref-manual: classes: add cve status check for oe.qa
With a new check was added for oe.qa for CVE_STATUS via commit
3c5b7605acd9cd68b ("cve-check: Log if CVE_STATUS set but not
reported for component")
in poky. Add related documentation here.

(From yocto-docs rev: 04e1ff01e1b43daa0e5832904a82f95d0cfab678)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 16:54:54 +00:00
Richard Purdie
c60038b721 libpng: Update SRC_URI to avoid redirects
Currently we're hitting permanent redirects on the urls. Tweak them
to avoid that overhead/noise/inefficiency.

(From OE-Core rev: 6b81db486e760483cf373559dc0b5ee71e410b09)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Richard Purdie
891d30a5d4 go: Drop linkmode with nativesdk/cross-canadian
In 1.22 this appears to cause failures and no longer appears to be needed.

(From OE-Core rev: 6fe1a4336adbee546085fa76ed9448f82736a590)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Richard Purdie
eec5c8778f go: Further tweak indentation in patch
The current patch formatting is a mix of two styles which is hard to read.
Tweak it further to make changes easier to identify since we're already
breaking formatting rules.

(From OE-Core rev: ab443dc1238e6c5a542d29ce9d2ba121b81ef365)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Jose Quaresma
c28c8e67f7 go: bump 1.22.0
Go 1.22 Release Notes
https://go.dev/doc/go1.22

(From OE-Core rev: 170d7bc91537d723790dbe07c5b875b5e3ce57ee)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Christian Taedcke
e9870028b7 image_types.bbclass: fix vfat image names
Remove the appended ${IMAGE_NAME_SUFFIX}, since it is already included
in ${IMAGE_NAME}.

In commit 26d97acc7137 ("image-artifact-names: include
${IMAGE_NAME_SUFFIX} directly in both ${IMAGE_NAME} and
${IMAGE_LINK_NAME}") ${IMAGE_NAME_SUFFIX} was included into
${IMAGE_NAME}. In this commit all other filesystems in
image_types.bbclass were adapted.

(From OE-Core rev: e3460853cdeae78762b31c6a846210f134bcd9ef)

Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Alexander Kanavin
d4b3316cf1 xz: correct upstream version check
(From OE-Core rev: 5be69fc3ff6296411c736e5c7c9522d99c0be2c6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Ross Burton
22d6c0966b rxvt: add rxvt to desktop entry name
If an image ends up with both matchbox-terminal and rxvt installed then
there are two Terminal applications that only differ in the description.

Rename the rxvt desktop entry to specifically identify itself as rxvt.

(From OE-Core rev: 786a1b7041b144743e83e5ba69c538ff6f54ac48)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06 12:13:16 +00:00
Ross Burton
2f4f72fff2 Add genericarm64 MACHINE
This is a new 64-bit "generic" Arm machine, that expects the hardware to
be SystemReady IR compatible.

(From meta-yocto rev: 68de209f58917d8e7108caacfefc55bbe0e0c5a2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:26:21 +00:00
Michael Opdenacker
be10de3423 bitbake: utils: remove BB_ENV_PASSTHROUGH from preserved_envvars()
preserved_envvars() is used when the BB_ENV_PASSTHROUGH
environment variable is not set. Therefore, its code shouldn't
return this variable.

(Bitbake rev: 0a33b560233b983456178541603ab96fea22238b)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Tested-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:25:08 +00:00
Trevor Woerner
f15676592b bmaptool: now part of Yocto Project
The bmaptool (previously: bmap-tools, bmap-tool, bmaptool) has been moved
to be under the Yocto Project umbrella and is now hosted at:

	github.com/yoctoproject/bmaptool

[RP: Added a couple of missing renames]
(From OE-Core rev: 7a036b1a1ec7dcd27dbe18d4c2e703bd2a8af182)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:50 +00:00
Robert P. J. Day
d827eec21c python3-cryptography_42.0.5.bb: delete redundant ptest packaging
Since FILES:${PN}-ptest is already defined to include the contents of
${PTEST_PATH}, adding such an entry to the package is superfluous.

(From OE-Core rev: 61949efcdb496b27d03f89ccde3d16c8cf4a56d5)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Yi Zhao
2c0d94e4f7 expat: upgrdae 2.6.0 -> 2.6.1
ChangeLog:
(https://github.com/libexpat/libexpat/blob/R_2_6_1/expat/Changes)

Bug fixes:
  #817  Make tests independent of CPU speed, and thus more robust
  #828 #836  Expose billion laughs API with XML_DTD defined and
             XML_GE undefined, regression from 2.6.0

Other changes:
  #829  Hide test-only code behind new internal macro
  #833  Autotools: Reject expat_config.h.in defining SIZEOF_VOID_P
  #819  Address compiler warnings
  #832 #834  Version info bumped from 10:0:9 (libexpat*.so.1.9.0)
             to 10:1:9 (libexpat*.so.1.9.1); see https://verbump.de/
             for what these numbers do

Infrastructure:
  #818  CI: Adapt to breaking changes in clang-format

(From OE-Core rev: 1808a9e60d587c705218a3328716cd24a5228dc6)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Khem Raj
f629e7ef1b gdb: Upgrade 14.1 -> 14.2
BugFix release

This is a minor corrective release over GDB 14.1, fixing the following issues:

PR symtab/31112 (DLL export forwarding is broken)
PR c++/31128 (gdb crashes when trying to print a global variable stub without a running inferior)
PR tdep/31254 ([gdb/tdep, arm] FAIL: gdb.threads/staticthreads.exp: up 10)
PR gdb/31256 (Crash with basic 'list .')
PR python/31366 (Frame.static_link() segfaults)

(From OE-Core rev: f5483fe1f9682d18f92788ef71618a00bd6dfee0)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Tim Orling
4f1c141ceb python3-hypothesis: upgrade 6.98.12 -> 6.98.15
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-98-15
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-98-14
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-98-13

6.98.15 - 2024-02-29
* This release adds support for the Array API’s 2023.12 release via the
  api_version argument in make_strategies_namespace(). The API additions
  and modifications in the 2023.12 spec do not necessitate any changes in
  the Hypothesis strategies, hence there is no distinction between a
  2022.12 and 2023.12 strategies namespace.

6.98.14 - 2024-02-29
* This patch adjusts the printing of bundle values to correspond with
  their names when using stateful testing.

6.98.13 - 2024-02-27
* This patch implements filter-rewriting for text() and binary() with
  the search(), match(), or fullmatch() method of a re.compile()d regex.

(From OE-Core rev: 18ac6584ed92c0ff037076c9977b68dae5fddb44)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Khem Raj
7b64530439 rust: Fix build failure re-appeared on riscv32
Refresh the rustix-0.38.19 patch to include FICLONE definition
which fixes the build issue surfaced with rust 1.75

(From OE-Core rev: 693e7cb3eb0cdc715a45ddcba8eb09dc9c5c31b8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Markus Volk
d3b384e899 gtk+3: update 3.24.38 -> 3.24.41
- update opengl.patch

Overview of Changes in GTK+ 3.24.41, 23-01-2024
===============================================

* Fix a crash introduced in the X11 changes in 3.24.40

* Build fixes

* Wayland: Fix interpretation of gtk-shell protocol

Overview of Changes in GTK+ 3.24.40, 17-01-2024
===============================================

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

* GtkGestures:
 - Preserve accuracy when translating events

* X11
 - Support 'virtual' XRANDR monitors

* MacOs:
 - Use consistent event coordinates

* Translation updates:
 Georgian
 Hebrew
 Swedish

Overview of Changes in GTK+ 3.24.39, 19-12-2023
===============================================

* GtkMountOperation:
 - Avoid a segfault

* GtkTooltip:
 - Fix some positioning problems

* GtkFileChooser:
 - Handle webdav in the pathbar

* GtkFileChooserNative:
 - Fix closing portal file choosers

* GDK:
 - Handle offscreen windows better in some places

* Wayland:
 - Create pad devices on enter
 - Ensure device-added/removed are emitted
 - Make stylus button mappings compatible with X11
 - Try harder to preserve cursor size with scaling
 - Avoid oob access to cursor images
 - Support tiling in xdg-shell
 - Avoid using legacy cursor names
 - Fix buffer size for scaled custom cursors

* X11:
 - Remove slow path in gdk_cairo_draw_from_gl
 - Trap more XRANDR errors

* MacOs:
 - Make gdkquartz-cocoa-access.h usable again
 - Silence secure-restore message

* Translation updates
 Belarusian
 British English
 Catalan
 Chinese (China)
 Czech
 Danish
 Esperanto
 Farsi
 Georgian
 Greek
 Hebrew
 Icelandic
 Kazakh
 Korean
 Polish
 Punjabi
 Romanian
 Slovak
 Slovenian
 Spanish
 Turkish

(From OE-Core rev: 2378f50d32aa955a269fc747de3af2cb28767741)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Khem Raj
486f87659f linux-yocto: Enable gpio-sim with ptests
ptests for packages like libgpiod and python3-gpiod need gpio-sim to run
the tests successfully.

(From OE-Core rev: cc651ce0b933abc38fd2d4481297d280c43f1828)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Bruce Ashfield
7f7b2b002e 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 25Feb24
        Date: Sun, 25 Feb 2024 07:03:08 -0500

    ]

(From OE-Core rev: a8d7544baf149e0ce3c473d7e8a9b832b9bd8227)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Bruce Ashfield
98c99fa72c linux-yocto/6.6: update to v6.6.20
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    9b4a8eac17f0 Linux 6.6.20
    af0d04f02145 fs/ntfs3: fix build without CONFIG_NTFS3_LZX_XPRESS
    0700f4e154f8 Linux 6.6.19
    f6e4aca0dd8c ahci: Extend ASM1061 43-bit DMA address quirk to other ASM106x parts
    1f9b7a5d023a ata: ahci: add identifiers for ASM2116 series adapters
    7e7a81f9f2da mptcp: add needs_id for netlink appending addr
    6931f9029aa6 mptcp: userspace pm send RM_ADDR for ID 0
    697128a3e2e6 selftests: mptcp: add mptcp_lib_get_counter
    358f02b84fbb selftests: mptcp: join: stop transfer when check is done (part 2)
    6156277d1b26 mm: zswap: fix missing folio cleanup in writeback race path
    7a3610956d3b mm/zswap: invalidate duplicate entry when !zswap_enabled
    a259173bf265 selftests: mptcp: join: stop transfer when check is done (part 1)
    b81fc6c229ec i2c: imx: when being a target, mark the last read as processed
    10c6b90e9753 drm/amd/display: Fix memory leak in dm_sw_fini()
    7a8a8a6a4f1e selftests/iommu: fix the config fragment
    20e1e1a2b8a4 drm/syncobj: handle NULL fence in syncobj_eventfd_entry_func
    716cfee8053e drm/syncobj: call drm_syncobj_fence_add_wait when WAIT_AVAILABLE flag is set
    c7818378953d net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHY
    8fbc19196dbe Fix write to cloned skb in ipv6_hop_ioam()
    0a9f558c72c4 phonet/pep: fix racy skb_queue_empty() use
    3ebd19073efd phonet: take correct lock to peek at the RX queue
    9adfd66b42d2 net: sparx5: Add spinlock for frame transmission from CPU
    88895d424720 net/sched: flower: Add lock protection when remove filter handle
    30d8d56aee70 devlink: fix port dump cmd type
    a702e9883342 tools: ynl: don't leak mcast_groups on init error
    91addaf5f02b tools: ynl: make sure we always pass yarg to mnl_cb_run
    18a3d49aee31 net: mctp: put sock on tag allocation failure
    73a7cdb48779 netfilter: nf_tables: use kzalloc for hook allocation
    fe9f4d1c531a netfilter: nf_tables: register hooks last when adding new chain/flowtable
    9256ab9232e3 netfilter: nft_flow_offload: release dst in case direct xmit path is used
    558b00a30e05 netfilter: nft_flow_offload: reset dst in route object after setting up flow
    f2135bbf1494 netfilter: nf_tables: set dormant flag on hook register failure
    4f13a79ea3cf tls: don't skip over different type records from the rx_list
    3b952d8fdfcf tls: stop recv() if initial process_rx_list gave us non-DATA
    80b1d6a0c0c0 tls: break out of main loop when PEEK gets a non-data record
    f006c45a3ea4 hwmon: (nct6775) Fix access to temperature configuration registers
    50b30655b224 cache: ax45mp_cache: Align end size to cache boundary in ax45mp_dma_cache_wback()
    9b099ed46dca bpf, sockmap: Fix NULL pointer dereference in sk_psock_verdict_data_ready()
    ef6566d10cf7 s390: use the correct count for __iowrite64_copy()
    0a32395fd1e3 net: ipa: don't overrun IPA suspend interrupt registers
    734b494eac2f octeontx2-af: Consider the action set by PF
    16bc939f224d drm/i915/tv: Fix TV mode
    f9f8f23c5851 platform/x86: thinkpad_acpi: Only update profile if successfully converted
    79491ddfb429 arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend
    7c892383227f arm64/sme: Restore SME registers on exit from suspend
    a3f2c083cb57 arp: Prevent overflow in arp_req_get().
    919092bd5482 devlink: fix possible use-after-free and memory leaks in devlink_init()
    9e02973dbc6a ipv6: sr: fix possible use-after-free and null-ptr-deref
    6e6065dd25b6 afs: Increase buffer size in afs_update_volume_status()
    287a0e6d3a62 parisc: Fix stack unwinder
    8327ed12e8eb bpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancel
    d4c58764dab8 ata: ahci_ceva: fix error handling for Xilinx GT PHY support
    3e831970cf7f selftests: bonding: set active slave to primary eth1 specifically
    b8315b2e25b4 powerpc/pseries/iommu: DLPAR add doesn't completely initialize pci_controller
    7bcb0a2510ce net: bcmasp: Sanity check is off by one
    ae24a16a8343 net: bcmasp: Indicate MAC is in charge of PHY PM
    cf761c81e413 ipv6: properly combine dev_base_seq and ipv6.dev_addr_genid
    6634a8ecacc6 ipv4: properly combine dev_base_seq and ipv4.dev_addr_genid
    37067e6bc241 net: stmmac: Fix incorrect dereference in interrupt handlers
    3a0060d2ba7c x86/numa: Fix the sort compare func used in numa_fill_memblks()
    b5bf39cd0878 x86/numa: Fix the address overlap check in numa_fill_memblks()
    b6979032552b nouveau: fix function cast warnings
    28cdbbd38a44 net/sched: act_mirred: don't override retval if we already lost the skb
    7c787888d164 net/sched: act_mirred: use the backlog for mirred ingress
    73db191dc30d net/sched: act_mirred: Create function tcf_mirred_to_dev and improve readability
    334a8348b2df dccp/tcp: Unhash sk from ehash for tb2 alloc failure after check_estalblished().
    a83856bd0c24 net: bridge: switchdev: Ensure deferred event delivery on unoffload
    603be95437e7 net: bridge: switchdev: Skip MDB replays of deferred events on offload
    0706faf631d7 scsi: jazz_esp: Only build if SCSI core is builtin
    4f5b15c15e60 scsi: smartpqi: Fix disable_managed_interrupts
    239b85a9a977 bpf, scripts: Correct GPL license name
    320767103644 RDMA/srpt: fix function pointer cast warnings
    f05332254350 xsk: Add truesize to skb_add_rx_frag().
    0f7798768f21 arm64: dts: rockchip: Correct Indiedroid Nova GPIO Names
    9ff254f14b19 arm64: dts: rockchip: set num-cs property for spi on px30
    95175dda017c RDMA/qedr: Fix qedr_create_user_qp error flow
    c99e6b267d76 iommufd/iova_bitmap: Consider page offset for the pages to be pinned
    929766dadbd2 iommufd/iova_bitmap: Switch iova_bitmap::bitmap to an u8 array
    634745054a52 iommufd/iova_bitmap: Bounds check mapped::pages access
    bc569f86f978 bus: imx-weim: fix valid range check
    9c29933eae40 arm64: dts: tqma8mpql: fix audio codec iov-supply
    fe2a73d57319 RDMA/srpt: Support specifying the srpt_service_guid parameter
    f562dbfd89dc RDMA/irdma: Add AE for too many RNRS
    3907d842f291 RDMA/irdma: Set the CQ read threshold for GEN 1
    9afa1e4354a1 RDMA/irdma: Validate max_send_wr and max_recv_wr
    c6f1ca235f68 RDMA/irdma: Fix KASAN issue with tasklet
    a8ef9c7f4cfd arm64: dts: imx8mp: Disable UART4 by default on Data Modul i.MX8M Plus eDM SBC
    25f7f28142a2 IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supported
    43a6b52b7cf1 RDMA/bnxt_re: Add a missing check in bnxt_qplib_query_srq
    9abe69327407 RDMA/bnxt_re: Return error for SRQ resize
    b41d0ade0398 IB/hfi1: Fix a memleak in init_credit_return
    b96f500dbbc3 bpf: Derive source IP addr via bpf_*_fib_lookup()
    980278aca1f8 xen/events: fix error code in xen_bind_pirq_msi_to_irq()
    658750e3d8ed Revert "drm/amd/display: increased min_dcfclk_mhz and min_fclk_mhz"
    7211800091a9 drm/amd/display: Fix buffer overflow in 'get_host_router_total_dp_tunnel_bw()'
    a1baf5734231 drm/amd/display: Avoid enum conversion warning
    824c15ad0910 smb3: add missing null server pointer check
    a7f34a068467 selftests: mptcp: diag: unique 'cestab' subtest names
    6b51994e1994 selftests: mptcp: diag: unique 'in use' subtest names
    509bf4e553eb selftests: mptcp: diag: fix bash warnings on older kernels
    1f24ba67ba49 selftests: mptcp: diag: check CURRESTAB counters
    1b1ce669a1f0 selftests: mptcp: pm nl: avoid error msg on older kernels
    4f1aa3853b95 selftests: mptcp: pm nl: also list skipped tests
    db887e24f95f selftests: mptcp: simult flows: fix some subtest names
    5b9bc8e6275a selftests: mptcp: userspace_pm: unique subtest names
    1ea7b252b47f mptcp: fix duplicate subflow creation
    2dba5774e8ed mptcp: fix data races on remote_id
    ba2cf922502c mptcp: fix data races on local_id
    e074c8297ee4 mptcp: fix lockless access in subflow ULP diag
    176421d7afba mptcp: add needs_id for userspace appending addr
    6aba8cf676c0 usb: roles: don't get/set_role() when usb_role_switch is unregistered
    4b45829440b1 usb: roles: fix NULL pointer issue when put module's reference
    da7fc10bc471 usb: gadget: omap_udc: fix USB gadget regression on Palm TE
    2b7ec68869d5 usb: gadget: ncm: Avoid dropping datagrams of properly parsed NTBs
    70e8038813f9 usb: cdns3: fix memory double free when handle zero packet
    29e42e1578a1 usb: cdns3: fixed memory use after free at cdns3_gadget_ep_disable()
    11f656fc0a56 usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllers
    a92de02692b4 usb: cdnsp: blocked some cdns3 specific code
    d3999e342099 usb: dwc3: gadget: Don't disconnect if not started
    9319ecb8380f serial: amba-pl011: Fix DMA transmission in RS485 mode
    3e3578ca1b87 serial: stm32: do not always set SER_RS485_RX_DURING_TX if RS485 is enabled
    6cf046b3acea Revert "usb: typec: tcpm: reset counter when enter into unattached state after try role"
    ba84bbbcd5b8 erofs: fix refcount on the metabuf used for inode lookup
    763f1f13d856 dm-integrity, dm-verity: reduce stack usage for recheck
    97ba7c1f9c0a ARM: ep93xx: Add terminator to gpiod_lookup_table
    804bd8650a3a l2tp: pass correct message length to ip6_append_data
    5ef293c3e0b2 PCI/MSI: Prevent MSI hardware interrupt number truncation
    fbe1049a4d48 irqchip/sifive-plic: Enable interrupt if needed before EOI
    4332f54153de irqchip/gic-v3-its: Do not assume vPE tables are preallocated
    a9ab338683a2 irqchip/mbigen: Don't use bus_get_dev_root() to find the parent
    b0365460e945 crypto: virtio/akcipher - Fix stack overflow on memcpy
    ba6b8b02a331 gtp: fix use-after-free and null-ptr-deref in gtp_genl_dump_pdp()
    cca20208515e accel/ivpu: Don't enable any tiles by default on VPU40xx
    3f70ed98f776 KVM: arm64: vgic-its: Test for valid IRQ in its_sync_lpi_pending_table()
    fcf90b4703bd KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handler
    02dad157ba11 md: Fix missing release of 'active_io' for flush
    8b004583dbc9 sparc: Fix undefined reference to fb_is_primary_device
    38e921616320 cachefiles: fix memory leak in cachefiles_add_cache()
    557cac23bee3 platform/x86: touchscreen_dmi: Allow partial (prefix) matches for ACPI names
    e78a4e221ebf platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler
    9cad9a2e896c mm/damon/reclaim: fix quota stauts loss due to online tunings
    8350888b0226 mm: memcontrol: clarify swapaccount=0 deprecation warning
    3c4441b23bf7 mm/damon/lru_sort: fix quota status loss due to online tunings
    305152314df8 mm/swap: fix race when skipping swapcache
    0b34dca1bfd5 selftests/mm: uffd-unit-test check if huge page size is 0
    3c884ee7c5d4 scsi: core: Consult supported VPD page list prior to fetching page
    4ebc079f0c7d scsi: target: pscsi: Fix bio_put() for error case
    9eb04add2a26 scsi: sd: usb_storage: uas: Access media prior to querying device properties
    2cc1a530ab31 cxl/pci: Fix disabling memory if DVSEC CXL Range does not match a CFMWS window
    8d584cc8e71e cxl/acpi: Fix load failures due to single window creation failure
    e5cc2309f6b3 dm-verity: recheck the hash after a failure
    64ba01a36598 dm-crypt: don't modify the data when using authenticated encryption
    d6824a28b244 dm-integrity: recheck the integrity tag after a failure
    78d41d9ba0b1 Revert "parisc: Only list existing CPUs in cpu_possible_mask"
    0f6cf136974a dm-crypt: recheck the integrity tag after a failure
    e6316749d603 lib/Kconfig.debug: TEST_IOV_ITER depends on MMU
    e7e23fc5d5fe fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio
    699e2648e195 ata: libata-core: Do not try to set sleeping devices to standby
    cf245e831afc s390/cio: fix invalid -EBUSY on ccw_device_start
    fec5aea66916 drm/amd/display: adjust few initialization order in dm
    d715ee6cbe7c drm/meson: Don't remove bridges which are created by other drivers
    47bacc3c7fbb drm/ttm: Fix an invalid freeing on already freed page in error path
    0bb020dca6d8 btrfs: defrag: avoid unnecessary defrag caused by incorrect extent size
    b1ec3d6b86fd LoongArch: Update cpu_sibling_map when disabling nonboot CPUs
    dffdf7c783ef LoongArch: Disable IRQ before init_fn() for nonboot CPUs
    ea459e6926f0 LoongArch: Call early_init_fdt_scan_reserved_mem() earlier
    50297906f81c docs: Instruct LaTeX to cope with deeper nesting
    48985d64c4c8 x86/bugs: Add asm helpers for executing VERW
    a2fef1d81bec IB/hfi1: Fix sdma.h tx->num_descs off-by-one error
    20980195ec8d xen/events: close evtchn after mapping cleanup
    636ac94cee72 xen/events: modify internal [un]bind interfaces
    40f14760da83 xen/events: drop xen_allocate_irqs_dynamic()
    666860d56d83 xen/events: remove some simple helpers from events_base.c
    b79345efd038 xen/events: reduce externally visible helper functions
    3c8f5965a993 xen: evtchn: Allow shared registration of IRQ handers
    71783d1ff652 drm/amd/display: fixed integer types and null check locations
    622c827544ef drm/amd/display: Request usb4 bw for mst streams
    c3682b63c60f drm/amd/display: Add dpia display mode validation logic
    b45df837fe87 mptcp: corner case locking for rx path fields initialization
    9326d0357ab0 mptcp: fix more tx path fields initialization
    d52b3c2b2951 mptcp: use mptcp_set_state
    565575473139 mptcp: add CurrEstab MIB counter support
    c5e3ec783484 smb3: clarify mount warning
    dd40cbafb1d2 cifs: handle cases where multiple sessions share connection
    cd743cfead99 cifs: change tcon status when need_reconnect is set on it
    8946924ff324 virtio-blk: Ensure no requests in virtqueues before deleting vqs.
    cacc0a9c34a8 smb: client: set correct d_type for reparse points under DFS mounts
    c19453cc16ad drm/amdgpu: Fix HDP flush for VFs on nbio v7.9
    cb4541cabb53 drm/amdgpu: Fix shared buff copy to user
    61c0a633bdc6 drm/amdgpu: reset gpu for s3 suspend abort case
    7a3a0b0c7f47 drm/amdgpu: skip to program GFXDEC registers for suspend abort
    7d7046a6caf2 libceph: fail sparse-read if the data length doesn't match
    9fe6ad655fe0 firewire: core: send bus reset promptly on gap count error
    5175a72c8e99 accel/ivpu/40xx: Stop passing SKU boot parameters to FW
    9895188644ee accel/ivpu: Disable d3hot_delay on all NPU generations
    e11aa132160c accel/ivpu: Force snooping for MMU writes
    d382f733c8ba LoongArch: vDSO: Disable UBSAN instrumentation
    88e189bd16e5 LoongArch: Change acpi_core_pic[NR_CPUS] to acpi_core_pic[MAX_CORE_PIC]
    3ed93e781a48 LoongArch: Select HAVE_ARCH_SECCOMP to use the common SECCOMP menu
    a0a48dd597f5 LoongArch: Select ARCH_ENABLE_THP_MIGRATION instead of redefining it
    4dbbd8195a68 scsi: ufs: core: Remove the ufshcd_release() in ufshcd_err_handling_prepare()
    7ac9e18f5d66 scsi: ufs: core: Fix shift issue in ufshcd_clear_cmd()
    51a5ca984866 scsi: lpfc: Use unsigned type for num_sge
    b9c3a26bf95c hwmon: (coretemp) Enlarge per package core count limit
    5c7ed4d957a8 efi: Don't add memblocks for soft-reserved memory
    cf3d6813601f efi: runtime: Fix potential overflow of soft-reserved region size
    3dce50ca9939 wifi: iwlwifi: do not announce EPCS support
    c9da889a37fc wifi: mac80211: accept broadcast probe responses on 6 GHz
    415f8e9854bb wifi: mac80211: adding missing drv_mgd_complete_tx() call
    c7a4f932b3a6 wifi: mac80211: set station RX-NSS on reconfig
    52fff5799e3d fs/ntfs3: Fix oob in ntfs_listxattr
    ded8bf5b3687 fs/ntfs3: Update inode->i_size after success write into compressed file
    8c77398c7261 fs/ntfs3: Fixed overflow check in mi_enum_attr()
    eac2e00f3c31 fs/ntfs3: Correct function is_rst_area_valid
    f4cf29c6772e fs/ntfs3: Use i_size_read and i_size_write
    c55deec3ffdd fs/ntfs3: Prevent generic message "attempt to access beyond end of device"
    8525c77e2f7f fs/ntfs3: use non-movable memory for ntfs3 MFT buffer cache
    86cd46312a30 fs/ntfs3: Use kvfree to free memory allocated by kvmalloc
    adcc0ab3e79f fs/ntfs3: Disable ATTR_LIST_ENTRY size check
    947c3f3d31ea fs/ntfs3: Add NULL ptr dereference checking at the end of attr_allocate_frame()
    323b0ab3f235 fs/ntfs3: ntfs3_forced_shutdown use int instead of bool
    f73f939792fc fs/ntfs3: Implement super_operations::shutdown
    7e0aff0aab65 fs/ntfs3: Drop suid and sgid bits as a part of fpunch
    c28efa873a2a fs/ntfs3: Add file_modified
    07b918639367 fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name"
    289257127a18 fs/ntfs3: Fix multithreaded stress test
    e0b64e4ad2eb fs/ntfs3: Reduce stack usage
    fa2a041a490d fs/ntfs3: Print warning while fixing hard links count
    d46c2ef09180 fs/ntfs3: Correct hard links updating when dealing with DOS names
    d316783dfdc1 fs/ntfs3: Improve ntfs_dir_count
    06144cdddad6 fs/ntfs3: Modified fix directory element type detection
    15735a62add3 fs/ntfs3: Improve alternative boot processing
    4390f74d09a0 Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk table
    f5411b766627 ext4: correct the hole length returned by ext4_map_blocks()
    2fdb5551e35b smb: client: increase number of PDUs allowed in a compound request
    2b1f28ee49da cifs: do not search for channel if server is terminating
    fad689fce093 nvmet-fc: take ref count on tgtport before delete assoc
    eaf0971fdabf nvmet-fc: avoid deadlock on delete association path
    399b70e8eadc nvmet-fc: abort command when there is no binding
    f2879398c295 nvmet-fc: hold reference on hostport match
    ccd49adde054 nvmet-fc: defer cleanup using RCU properly
    2baa7272f2d9 nvmet-fc: release reference on target port
    95a9ff330734 nvmet-fcloop: swap the list_add_tail arguments
    baa6b7eb8c66 nvme-fc: do not wait in vain when unloading module
    ffd63f243735 ALSA: usb-audio: Ignore clock selector errors for single connection
    fabab199b197 ASoC: wm_adsp: Don't overwrite fwf_name with the default
    567f1b1da5da cifs: make sure that channel scaling is done only once
    e34e4e6d8c69 drm/amd/display: increased min_dcfclk_mhz and min_fclk_mhz
    5a1bd2143fd7 drm/amdkfd: Use correct drm device for cgroup permission check
    4c09593b31a5 netfilter: conntrack: check SCTP_CID_SHUTDOWN_ACK for vtag setting in sctp_new
    9e8e25f20191 misc: open-dice: Fix spurious lockdep warning
    17a6d7a0a7a9 Input: xpad - add Lenovo Legion Go controllers
    2c889761d472 spi: sh-msiof: avoid integer overflow in constants
    f7d799076a55 regulator (max5970): Fix IRQ handler
    04d46a95642e ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616
    ee277704a44e ALSA: usb-audio: Check presence of valid altsetting control
    21857eed5066 usb: ucsi_acpi: Quirk to ack a connector change ack cmd
    307fc03dc433 nvmet-tcp: fix nvme tcp ida memory leak
    83527a13740f HID: nvidia-shield: Add missing null pointer checks to LED initialization
    034a0061b2dc ALSA: hda: Increase default bdl_pos_adj for Apollo Lake
    580118d5c6e5 ALSA: hda: Replace numeric device IDs with constant values
    a905b2eccfd2 HID: logitech-hidpp: add support for Logitech G Pro X Superlight 2
    e1b38b919d3d regulator: pwm-regulator: Add validity checks in continuous .get_voltage
    68da1d65b2e3 ASoC: amd: acp: Add check for cpu dai link initialization
    7b24760f3a3c dmaengine: ti: edma: Add some null pointer checks to the edma_probe
    2ccbf84ed3fe Input: goodix - accept ACPI resources with gpio_count == 3 && gpio_int_idx == 0
    d3bbe77a76bc ext4: avoid allocating blocks from corrupted group in ext4_mb_find_by_goal()
    0184747b552d ext4: avoid allocating blocks from corrupted group in ext4_mb_try_best_found()
    f32d2a745b02 ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt
    720751b57f0a platform/x86: touchscreen_dmi: Add info for the TECLAST X16 Plus tablet
    f778a45784d3 MIPS: reserve exception vector space ONLY ONCE
    64783eaa37b7 ARM: dts: Fix TPM schema violations
    b0dd4d7ada6f ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllers
    ab7318c79570 spi: cs42l43: Handle error from devm_pm_runtime_enable
    673629018ba0 aoe: avoid potential deadlock at set_capacity
    89f67051613c ahci: asm1166: correct count of reported ports
    f642fcf3f7e6 cifs: helper function to check replayable error codes
    c09de6bb3ada cifs: translate network errors on send to -ECONNABORTED
    59e04d39fc29 cifs: cifs_pick_channel should try selecting active channels
    8fbefa7a755d smb: Work around Clang __bdos() type confusion
    0f1bae071de9 block: Fix WARNING in _copy_from_iter
    d637b5118274 spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected
    8298ea0f51a9 spi: intel-pci: Add support for Arrow Lake SPI serial flash
    763c59714cf4 platform/mellanox: mlxbf-tmfifo: Drop Tx network packet when Tx TmFIFO is full
    99f1abc34a6d fbdev: sis: Error out if pixclock equals zero
    bc3c2e58d73b fbdev: savage: Error out if pixclock equals zero
    54b79d878696 wifi: mac80211: fix race condition on enabling fast-xmit
    29df20cae2ce wifi: cfg80211: fix missing interfaces when dumping
    22dced37d9c7 dmaengine: dw-edma: increase size of 'name' in debugfs code
    9f11992462ad dmaengine: fsl-qdma: increase size of 'irq_name'
    6e400d6b960a dmaengine: shdma: increase size of 'dev_id'
    8d76726eeb11 cifs: open_cached_dir should not rely on primary channel
    36bc5040c863 scsi: target: core: Add TMF to tmr_list handling
    12d43aec0e75 tools: selftests: riscv: Fix compile warnings in mm tests
    a613c646660a tools: selftests: riscv: Fix compile warnings in vector tests
    df75b8ef7122 scsi: smartpqi: Fix logical volume rescan race condition
    ce10905116e6 scsi: smartpqi: Add new controller PCI IDs
    43ee59fa01c8 dmaengine: apple-admac: Keep upper bits of REG_BUS_WIDTH
    5babeec518c2 riscv/efistub: Ensure GP-relative addressing is not used
    6ea2f3b9b9f6 PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq()
    74fd1b8c4419 sched/rt: Disallow writing invalid values to sched_rt_period_us

(From OE-Core rev: 6d038582421260644374cbb148f8d78884810e74)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Bruce Ashfield
a578b5d472 linux-yocto/cfg/6.6: drop CONFIG_DEBUG_CREDENTIALS
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Bruce Ashfield
    Email: bruce.ashfield@gmail.com
    Subject: cfg/debug: drop DEBUG_CREDENTIALS
    Date: Tue, 27 Feb 2024 11:57:58 -0500

    The upstream commit (which was also backported to -stable
    for some reason):

      commit 207f135d819344c03333246f784f6666e652e081
      Author: Jens Axboe <axboe@kernel.dk>
      Date:   Fri Dec 15 13:40:57 2023 -0700

          cred: get rid of CONFIG_DEBUG_CREDENTIALS

          commit ae1914174a63a558113e80d24ccac2773f9f7b2b upstream.

          This code is rarely (never?) enabled by distros, and it hasn't caught
          anything in decades. Let's kill off this legacy debug code.

          Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
          Signed-off-by: Jens Axboe <axboe@kernel.dk>
          Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
          Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    Means that we can drop our use of CONFIG_DEBUG_CREDENTIALS.

    It does leave an emptry .cfg file, but to keep any external includes
    around, we'll leave the file for a while.

    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: fded0ce745d4584ac23e8e2bb990e40c94d9570c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-05 12:24:49 +00:00
Jose Quaresma
a13c62b66b go: upgrade 1.21.5 -> 1.21.7
Upgrade to latest 1.21.x release [1]:

$ git --no-pager log --oneline go1.21.5..go1.21.7
f29208030a (tag: go1.21.7) [release-branch.go1.21] go1.21.7
2fdad8af6d [release-branch.go1.21] cmd/internal/obj/arm64: fix frame pointer restore in epilogue
01c93ad049 [release-branch.go1.21] cmd/go/internal/generate: call modload.InitWorkFile
db74bfba18 [release-branch.go1.21] Revert "crypto/internal/boring: upgrade module to fips-20220613" +1
916e6cddf1 [release-branch.go1.21] runtime: fix Pinner.Pin documentation
6552f3d4ac [release-branch.go1.21] cmd/go/internal/toolchain: apply the -modcacherw flag when downloading a module to determine what toolchain it needs
3960318b87 [release-branch.go1.21] crypto/x509: properly gate test on macos version
00f974eb1f [release-branch.go1.21] go/types, types2: don't lose position info of interface embeddings
2f91c16e68 [release-branch.go1.21] runtime: properly model rwmutex in lock ranking
2540b1436f [release-branch.go1.21] slices: explicitly discard results of some functions
7e34c4308f [release-branch.go1.21] runtime: clear g0 stack bounds in dropm
491c1e7e95 [release-branch.go1.21] runtime: allow update of system stack bounds on callback from C thread
caafb50c0d [release-branch.go1.21] runtime: don't print "unexpected SPWRITE" when printing traceback
cc85462b3d (tag: go1.21.6) [release-branch.go1.21] go1.21.6
d2cb140194 [release-branch.go1.21] crypto/tls: align FIPS-only mode with BoringSSL policy
368e2a9461 [release-branch.go1.21] crypto/internal/boring: upgrade module to fips-20220613
8c6078adfb [release-branch.go1.21] runtime: add race annotations in IncNonDefault
f6b203c828 [release-branch.go1.21] maps: fix aliasing problems with Clone
43818206dc [release-branch.go1.21] runtime: put ReadMemStats debug assertions behind a double-check mode
cf65d74bc5 [release-branch.go1.21] runtime: add the disablethp GODEBUG setting
ad1ec60a5b [release-branch.go1.21] runtime/pprof: fix generics function names
bbab863ada [release-branch.go1.21] os/signal: skip nohup tests on darwin builders
7dc67e8f29 [release-branch.go1.21] os/signal: remove go t.Run from TestNohup
9f8b3ac8c4 [release-branch.go1.21] cmd/compile: fix escape analysis of string min/max
8c840b10d0 [release-branch.go1.21] cmd/compile: fix memcombine pass for big endian, > 1 byte elements

[1] https://github.com/golang/go/compare/go1.21.5...go1.21.7

(From OE-Core rev: 163db4537b5844ff792e9dd462406c2d178939e0)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:28:21 +00:00
Jose Quaresma
d21978d33d go: upgrade 1.21.0 -> 1.21.5
Upgrade to latest 1.21.x release [1]:

$ git --no-pager log --oneline go1.21.0..go1.21.5
6018ad99a4 (tag: go1.21.5) [release-branch.go1.21] go1.21.5
ec8c526e4b [release-branch.go1.21] net/http: limit chunked data overhead
f7a79cb5fc [release-branch.go1.21] cmd/compile: fix findIndVar so it does not match disjointed loop headers
3684d19c20 [release-branch.go1.21] runtime: call enableMetadataHugePages and its callees on the systemstack
9e43850a32 [release-branch.go1.21] crypto/rand,runtime: switch RtlGenRandom for ProcessPrng
8caf4bb3e7 [release-branch.go1.21] path/filepath: consider \\?\c: as a volume on Windows
23c943e529 [release-branch.go1.21] cmd/go/internal/vcs: error out if the requested repo does not support a secure protocol
4952f41180 [release-branch.go1.21] cmd/go: allow 'go mod download' to switch toolchains if called with explicit arguments
f26fa05522 [release-branch.go1.21] os: report IO_REPARSE_TAG_DEDUP files as regular in Stat and Lstat
8ae493b5b8 [release-branch.go1.21] internal/poll: add SPLICE_F_NONBLOCK flag for splice to avoid inconsistency with O_NONBLOCK
b9f245b8d3 [release-branch.go1.21] cmd/compile: ensure pointer arithmetic happens after the nil check
caacf3a09a [release-branch.go1.21] cmd/compile: handle constant pointer offsets in dead store elimination
1e91861f67 [release-branch.go1.21] syscall: copy rlimit.go's build constraint to rlimit_test.go
ed817f1c40 (tag: go1.21.4) [release-branch.go1.21] go1.21.4
9e933c189c [release-branch.go1.21] path/filepath: fix various issues in parsing Windows paths
434af8537e [release-branch.go1.21] net/http: pull http2 underflow fix from x/net/http2
7b04d81cbc [release-branch.go1.21] runtime/cgo: avoid taking the address of crosscall2 in code
f9a31cda3c [release-branch.go1.21] cmd/compile/internal/typecheck: fix closure field naming
64b6c48107 [release-branch.go1.21] go/types, types2: don't use generics
ef6993f327 [release-branch.go1.21] runtime: don't eagerly collapse hugepages
bae01521f3 [release-branch.go1.21] go/types, types2: don't implicitly modify an argument function's type
236c07c049 [release-branch.go1.21] cmd/link: split text sections for arm 32-bit
9465990e0e [release-branch.go1.21] all: tidy dependency versioning after release
883f062fc0 (tag: go1.21.3) [release-branch.go1.21] go1.21.3
24ae2d9272 [release-branch.go1.21] net/http: regenerate h2_bundle.go
26b5783b72 (tag: go1.21.2) [release-branch.go1.21] go1.21.2
2ddfc04d12 [release-branch.go1.21] cmd/compile: use absolute file name in isCgo check
a15ef1bb0f [release-branch.go1.21] cmd/compile: absorb InvertFlags into Noov comparisons
41d71a5afa [release-branch.go1.21] cmd/compile: reset memcombine correctly between basic blocks
0b6b0a275a [release-branch.go1.21] runtime: always lock OS thread in debugcall
cd671a1180 [release-branch.go1.21] runtime: increase g0 stack size in non-cgo case
fc57cc31a0 [release-branch.go1.21] cmd/link: suppress -bind_at_load deprecation warning for ld-prime
9bec49cf52 [release-branch.go1.21] cmd/link: disable DWARF by default in c-shared mode on darwin
3ef4f939c3 [release-branch.go1.21] cmd/link: force old Apple linker in plugin mode
556e9c36ba [release-branch.go1.21] cmd/link: avoid deadcode of global map vars for programs using plugins
b64dc5f499 [release-branch.go1.21] cmd/go: in TestScript/gotoolchain_path, remove the user's PATH
cd66ca0636 [release-branch.go1.21] runtime/metrics: fix /gc/scan/* metrics
d7a0626806 [release-branch.go1.21] runtime: ignore SPWrite on innermost traceback frame
2c1e5b05fe (tag: go1.21.1) [release-branch.go1.21] go1.21.1
bbd043ff0d [release-branch.go1.21] html/template: properly handle special tags within the script context
b0e1d3ea26 [release-branch.go1.21] html/template: support HTML-like comments in script contexts
d25a935574 [release-branch.go1.21] cmd/go: reject toolchain directives containing path separators
e3ba569c78 [release-branch.go1.21] net/http: revert "support streaming POST content in wasm"
8dc6ad1c61 [release-branch.go1.21] runtime: restore caller's frame pointer when recovering from panic
06df3292a8 [release-branch.go1.21] runtime: avoid MADV_HUGEPAGE for heap memory
b120517ffd [release-branch.go1.21] go/types, types2: remove order dependency in inference involving channels
0a9582163c [release-branch.go1.21] cmd/go: retry ETXTBSY errors when running test binaries
91a4e74b98 [release-branch.go1.21] crypto/tls: QUIC: fix panics when processing post-handshake messages
6385a6fb18 [release-branch.go1.21] cmd/go: find GOROOT using os.Executable when installed to GOROOT/bin/GOOS_GOARCH
2d07bb86f0 [release-branch.go1.21] encoding/xml: overriding by empty namespace when no new name declaration
745b81b6e6 [release-branch.go1.21] encoding/gob: prevent panic from index out of range in Decoder.typeString
13339c75b8 [release-branch.go1.21] runtime: fix maps.Clone bug when cloning a map mid-grow
2977709875 [release-branch.go1.21] context: fix synchronization in ExampleAfterFunc_cond
2d4746f37b [release-branch.go1.21] go/types, types2: disable interface inference for versions before Go 1.21
2b8026f025 [release-branch.go1.21] cmd/compile: in expandCalls, move all arg marshalling into call block
7c97cc7d97 [release-branch.go1.21] Revert "os: use handle based APIs to read directories on windows"
cb6ea94996 [release-branch.go1.21] Revert "cmd/compile: omit redundant sign/unsign extension on arm64"
45b98bfb79 [release-branch.go1.21] path/filepath: don't drop .. elements when cleaning invalid Windows paths
bac083a584 [release-branch.go1.21] cmd/link: don't mangle string symbol names
70aa116c4a [release-branch.go1.21] runtime/internal/wasitest: skip racy TCP echo test
31c5a236bc [release-branch.go1.21] runtime: mark traceEnabled and traceShuttingDown as no:split
25ec110e51 [release-branch.go1.21] cmd/compile: ensure empty blocks in write barriers are marked unpreemptible
6634ce2f41 [release-branch.go1.21] runtime: profiling on Darwin cannot use blocking reads
25c6dce188 [release-branch.go1.21] cmd/compile: make backingArrayPtrLen to return typecheck-ed nodes
4e34f2e81d [release-branch.go1.21] go/types, types2: don't panic during interface completion
d91843ff67 [release-branch.go1.21] go/types, types2: use correct parameter list when checking argument passing
7437db1085 [release-branch.go1.21] go/types, types2: use exact unification when comparing interface methods
ed527ecfb2 [release-branch.go1.21] cmd/api: rename api.go to main_test.go
b78e8cc145 [release-branch.go1.21] crypto/tls: add GODEBUG to control max RSA key size
3475e6af4c [release-branch.go1.21] cmd/go: fix missing case checking for empty slice
179821c9e1 [release-branch.go1.21] net/http: permit requests with invalid Host headers
9398951479 [release-branch.go1.21] cmd/distpack: include directory entries in tar files
75d8be5fb4 [release-branch.go1.21] cmd/go/internal/web: release the net token when an HTTP request fails due to CheckRedirect
1755d14559 [release-branch.go1.21] cmd/compile: fix missing init nodes for len(string([]byte)) optimization

[1] https://github.com/golang/go/compare/go1.21.0...go1.21.5

(From OE-Core rev: 0e0a939b0fa124618b963e9af7a11cea3748ef82)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:28:21 +00:00
Jose Quaresma
f92e32957c oeqa/gotoolchain: set GOPROXY
Since go-1.21 GOPROXY needs to be set explicitly, otherwise it fails with:
- GOPROXY list is not the empty string, but contains no entries

This fixes the selftest

(From OE-Core rev: c491d967858c01fead21495f44f1a9f8cdf8e833)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:28:21 +00:00
Jose Quaresma
fd2e5e0b89 goarch: disable dynamic linking globally
With go-1.21 dynamic linking cause a runtime panic:

| root@qemux86-64:~# go-helloworld
| panic: runtime error: index out of range [0] with length 0
|
| goroutine 1 [running]:
| flag.init()
|         /usr/lib/go/src/flag/flag.go:1199 +0xf9

In my opinion, this would be a good trade-off so that we can update and
leave the version 1.20 for the next LTS 5.0 since we are already quite
behind on the version available upstream which already has the 1.22 available.

(From OE-Core rev: 827c60b79e7fcafd14e68870f6b69dcc48ac9c39)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:28:20 +00:00
Jose Quaresma
ed39f516e9 go: bump 1.21.0
Go 1.21 Release Notes
https://go.dev/doc/go1.21

(From OE-Core rev: 51a3cb046de4cfd66ecef36031fa96be29ef0a2a)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:28:20 +00:00
Jose Quaresma
9c730d3bcc go: rework patch to avoid identation
It's more hard to read but easy to rebase, no functional changes

(From OE-Core rev: 5065025a66f96140ca895a140067fbde82879941)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:28:20 +00:00
Yoann Congal
ef88dee4f7 bitbake: prserv/serv: Fix a PID file removal race on prserv stop
A race condition has happened where the exiting server removed the PID
file between the existence check and the removal, resulting in a
FileNotFoundError exception.

The fix is to ignore the FileNotFoundError exception, the existence
check is now redundant so remove it to simplify.

Fixes [YOCTO #14341]

(Bitbake rev: 40d00bf9308e0bf73a00134a99a012a292daa1c5)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:26:17 +00:00
Richard Purdie
2689d8cf22 bitbake: fetch/git: Avoid clean upon failure
Currently when git fetches fail, it destroys all the existing local clone data.
For large repositories this can introduce long build delays when for example,
you just typo'd the git revision hash.

The git fetcher should be able to recover most directories so when the fetch is
for a git repo, avoid removing things unless clean is explicitly called
(e.g. a -c cleanall task).

(Bitbake rev: 1b3cd039fe19b24bd4be9a0202a98cdcbb0e9443)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:26:17 +00:00
Simone Weiß
9f60a16646 qemu: backport patch for ui/clipboard issue
Backported from upstream to fix CVE-2023-6683

(From OE-Core rev: d33a0ef657663faa05448454fad8a004879fe624)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Khem Raj
282ade0f4b mesa,mesa-gl: Fix build when dri3 is not enabled
Some machines e.g. odroid-c4 disable dri3 and it now fails to build
mesa-gl e.g.

| aarch64-yoe-linux-ld.lld: error: undefined symbol: dri3_check_multibuffer [3/5]
    | >>> referenced by drisw_glx.c
    | >>>               libglx.a.p/drisw_glx.c.o:(driswCreateScreenDriver) in archive src/glx/libglx.a

Apply patches from a pull request which is already submitted upstream

(From OE-Core rev: c713b8458968815b1bb53d3523ee0af52a9f2945)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Simone Weiß
3299b4942c coreutils: backport patch to fix heap overflow in split
Backported from upstream to fix CVE-2024-0684

(From OE-Core rev: 64c502850147e82c93b5fc7f45a8c76a9ad414d8)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Fabio Estevam
9a8fff9148 u-boot: Move UBOOT_INITIAL_ENV back to u-boot.inc
Commit cc6c3e31526d ("u-boot: Move definitions to common locations") moved
UBOOT_INITIAL_ENV to uboot-config.bbclass, but it should be kept at u-boot.inc
because it encodes ${PN} in it, which should be set by the U-Boot recipe.

Currently, whatever inherits uboot-config bbclass will fill-in its own PN,
which would change the content of UBOOT_INITIAL_ENV per-package.

Cc: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Cc: Marek Vasut <marex@denx.de>
Fixes: cc6c3e31526d ("u-boot: Move definitions to common locations")
(From OE-Core rev: 0b0c4b37d318b86f100512476ffd861e0ce1f47e)

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Richard Purdie
9d1a99cf45 qemu: Replace workaround with proper usermode fix for shmat
We were using a workaround to avoid problems with the behaviour of shmat()
calls in usermode qemu. Switch to patches from upstream which are in review
but not merged yet.

Update the mmap fixed/noreplace workaround for the changes.

(From OE-Core rev: 8a571e352734045176bac310441a1003efbf0891)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Richard Purdie
9b5c6444f7 no-gplv3: Tweak for packagemangement in core-image-full-cmdline
If we enable package-management for core-image-full-cmdline we need the workarounds
used for core-image-weston to ensure the oe-selftest license QA tests keep working.

(From OE-Core rev: 29bc855c167ff66aea7ca4681cee85c2557b2308)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Michael Opdenacker
2387bd6323 core-image-full-cmdline: add package-management
Add "package-management" image feature to the core-image-full-cmdline image,
to support package upgrade testing.

(From OE-Core rev: 6f06e18adbea74340415807842cac443e3bf37da)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03 16:25:20 +00:00
Tim Orling
25d60ac6f6 python3-attrs: disable Hypothesis deadline
The deadline is by default 200ms, but this is intended to be useful to
the developer and not necessarily recommended for heavily loaded CI
systems. Avoid warnings by disabling the deadline completely.

https://github.com/HypothesisWorks/hypothesis/issues/3713
https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.deadline
https://lists.openembedded.org/g/openembedded-core/topic/104640034#196437
https://github.com/python-attrs/attrs/pull/1252

Fixes:
"""
Unreliable test timings! On an initial run, this test took 268.29ms,
which exceeded the deadline of 200.00ms, but on a subsequent run it
took 2.63 ms, which did not. If you expect this sort of variability in
your test timings, consider turning deadlines off for this test by
setting deadline=None.
"""

[YOCTO #15350]

(From OE-Core rev: f6064e573b68104d57565c57bfe43f0d708a14f6)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:32:13 +00:00
Yash Shinde
3970a48885 rust: reproducibility issue fix with v1.75
With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibiluty issues.
This change will fix the path name format back to '/rust/$hash' as in earlier versions.

Below are the links for detailed bug description & discusssion with upstream rust.
https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219
https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656

(From OE-Core rev: a80ce6e3c023809d1ec13d19e8acb25770b54737)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:31:11 +00:00
Yash Shinde
694b85a217 rust: Revert PGO to it's default
The rust profiler PGO (Profile-guided Optimization) options was disabled as a part rustdoc reproducibility fix.
https://git.yoctoproject.org/poky/commit/meta/recipes-devtools/rust?id=321aebfa281bd28e368c684ece57867f6bd0cbe7

But, other applications (such as to build chromium with poky) requires PGO enabled (https://github.com/OSSystems/meta-browser/issues/786).

For reproducibility issue fix only "rust-demangler" change is sufficient in commit#321aebfa281. The PGO is reverted to it's default.

(From OE-Core rev: 83bd5e12e069a60a870a7c7ed046a2827eb777a1)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:31:10 +00:00
Yash Shinde
a62cee4479 rust: Upgrade 1.74.1 -> 1.75.0
* Drop backported musl fixes.

* Set `change-id` rather than `changelog-seen`
to fix build warning.

* Add fixes for 4b7e0a0b56aa24 ("Handle vendored sources
when remapping paths") which otherwise cause build failures:

| thread 'main' panicked at src/core/builder.rs:1795:26:
| std::fs::read_dir(registry_src) failed with No such file or directory (os=
 error 2)

https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html

(From OE-Core rev: 9aec2c6c777388bb3129aa4c4f27a40f912522b4)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:31:10 +00:00
Ross Burton
423d7f208d linux-firmware: split out more firmware pieces
Split _most_ of the rtl_nic drivers to a subpackage. Notably this does
not include rtl8168 as this is already split into a separate package.
These drivers are fairly common so this lets people install the essential
firmware easier.

Also split out some large firmware collections into subpackages:
- Mellanox (82M)
- Marvell Prestera (72M)
- QLogic 4xxxx (21M)

(From OE-Core rev: fce06a1632484c9001541df1ac27ffca7d1d8b4b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:31:10 +00:00
Khem Raj
6cb1824717 llvm: Update to 18.1.0 RC4
This is last milestone before final release

(From OE-Core rev: db3bf550a372c0b3fd07095c38ce63764ad5a2e8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:31:10 +00:00
Yoann Congal
140edb96aa waf: Improve version parsing to avoid failing on warnings
waf uses an inline tar file extracted by the tarfile module. The tarfile
module may print a warning when used with default 'filter' argument[0].

When called to get the version, the first time after unpack, the output
may look like:
  # output from lower modules (e.g: warnings from tarfile, ...)
  waf X.Y.Z ...

This patch makes the version parsing more precise by looking at the
first line matching "waf ".

[0]: https://docs.python.org/3.12/library/tarfile.html#extraction-filters

(From OE-Core rev: 643b799a0c11d82907dd82991c19b003fe20a8b0)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:31:10 +00:00
Wang Mingyu
deef6a87b5 xprop: upgrade 1.2.6 -> 1.2.7
Changelog:
 Fix C23 build by renaming variable 'true'

(From OE-Core rev: a741be42bde1624dcd49bb914dfa8b3c00fbe38a)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
da62874de4 xkeyboard-config: upgrade 2.40 -> 2.41
Changelog:
===========
Translations updated

(From OE-Core rev: 3ae80d187056a7085a75f6553ea12d80803d7a9c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
91a8079a3c xkbcomp: upgrade 1.4.6 -> 1.4.7
(From OE-Core rev: c0aad6acc4acaa7f04110aa91fa2498be4655218)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
31aa9a3bff swig: upgrade 4.2.0 -> 4.2.1
0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch
determinism.patch
refreshed for 4.2.1

Changelog:
============
-Correctly ignore duplicate template instantiation (when the
 duplicate contains typedef'd template parameters).
-Fix segfault shrinking STL containers.
-Fix -Wundef warning about testing the value of __cplusplus when compiling
 SWIG-generated C code.  Warning introduced by a change in SWIG 4.2.0.
-Fix memory leak when getting or setting a PHP attribute which wraps a C++
 member variable.
-Fix for wrapping STL containers that are static member variables or global
 variables (most scripting languages).

(From OE-Core rev: 2f4fb72a3318edcc463f9e9491c7ecc14347c655)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
c394463bc7 python3-yamllint: upgrade 1.33.0 -> 1.35.1
Changelog:
============
-Restore ignoration of files passed as command-line arguments
-Fix failure on broken symlinks that should be ignored
-Docs: Restore official Read the Docs theme
-Config: validate ignore-from-file inside rules
-Rule quoted-strings: fix only-when-needed in flow maps and sequences
-Rule key-duplicates: add forbid-duplicated-merge-keys option
-Rule quoted-strings: add check-keys option
-Docs: add GitLab CI example
-Rule truthy: adapt forbidden values based on YAML version

(From OE-Core rev: dc3f5c4e04c3eafd23a3188deaf6fb170d2969c5)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
114c0a6c37 python3-urllib3: upgrade 2.1.0 -> 2.2.1
Changelog:
===========
-Fixed issue where "InsecureRequestWarning" was emitted for HTTPS connections
 when using Emscripten.
-Fixed "HTTPConnectionPool.urlopen" to stop automatically casting non-proxy
 headers to "HTTPHeaderDict".
-Changed "InvalidChunkLength" to "ProtocolError" when response terminates
 before the chunk length is sent.
-Changed "ProtocolError" to be more verbose on incomplete reads with excess
 content.
-Added support for 'Emscripten and Pyodide
-Added support for "HTTPResponse.read1()" method.
-Added rudimentary support for HTTP/2.
-Fixed issue where requests against urls with trailing dots were failing due to
 SSL errors when using proxy.
-Fixed "HTTPConnection.proxy_is_verified" and
 "HTTPSConnection.proxy_is_verified" to be always set to a boolean after
 connecting to a proxy. It could be "None" in some cases previously.
-Fixed an issue where "headers" passed in a request with "json=" would be
 mutated
-Fixed "HTTPSConnection.is_verified" to be set to "False" when connecting
 from a HTTPS proxy to an HTTP target. It was set to "True" previously.
-Fixed handling of new error message from OpenSSL 3.2.0 when configuring an
 HTTP proxy as HTTPS
-Fixed TLS 1.3 post-handshake auth when the server certificate validation is
 disabled
-Note for downstream distributors: To run integration tests, you now need to run
 the tests a second time with the "--integration" pytest flag.

(From OE-Core rev: c1968ceeddbad57bc86aaa23a705093c353d3bc9)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
2aa2b6b987 python3: upgrade 3.12.1 -> 3.12.2
0001-Avoid-shebang-overflow-on-python-config.py.patch
0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch
0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch
0001-gh-114492-Initialize-struct-termios-before-calling-t.patch
0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch
0001-skip-no_stdout_fileno-test-due-to-load-variability.patch
0001-test_xml_etree.py-Fix-for-Expat-2.6.0-with-reparse-d.patch
0020-configure.ac-setup.py-do-not-add-a-c
refreshed for 3.12.2

Changelog:
 https://docs.python.org/3.12/whatsnew/3.12.html

(From OE-Core rev: 288bdc342035f18451509b6c27e3b88b546dc984)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
df8f6f4978 python3-typing-extensions: upgrade 4.9.0 -> 4.10.0
Changelog:
============
-Add support for PEP 728, supporting the closed keyword argument and the special
 __extra_items__ key for TypedDict.
-Add support for PEP 742, adding typing_extensions.TypeIs.
-Drop runtime error when a read-only TypedDict item overrides a mutable one.
 Type checkers should still flag this as an error.
-Speedup issubclass() checks against simple runtime-checkable protocols by
 around 6% (backporting python/cpython#112717
-Fix a regression in the implementation of protocols where typing.Protocol
 classes that were not marked as @runtime_checkable would be unnecessarily
 introspected, potentially causing exceptions to be raised if the protocol had
 problematic members.

(From OE-Core rev: 91dd6f2878bcdbb6f9ba65927f6c6f981b0b3f1a)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
a00cd89f21 python3-trove-classifiers: upgrade 2024.1.8 -> 2024.2.23
Changelog:
==========
*Add classifier: 'License :: OSI Approved :: Educational Community License'
*PR for Issue #170
*fix spurious line
*Update src/trove_classifiers/__init__.py

(From OE-Core rev: 0174e7c4d1f3d3a7458d357b0d7be63b5d748572)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
c002b02b93 python3-setuptools-rust: upgrade 1.8.1 -> 1.9.0
Changelog:
-Deprecate py_limited_api option to RustExtension in favour of always using
 "auto" to configure this from bdist_wheel.

(From OE-Core rev: 2ba36c4ebfc223111c055a6b521b7a2b9981b368)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
376dc30276 python3-pytz: upgrade 2023.4 -> 2024.1
(From OE-Core rev: 17b6104583bb6122ca051dcc004120c24b5579cf)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
9a5c2f900e python3-pytest: upgrade 8.0.0 -> 8.0.2
Changelog:
============
-Fix collection on Windows where initial paths contain the short version
 of a path (for example c:\PROGRA~1\tests).
-Fix an IndexError crash raising from getstatementrange_ast.
-Reverted a fix to --maxfail handling in pytest 8.0.0 because it caused a
 regression in pytest-xdist whereby session fixture teardowns may get executed
 multiple times when the max-fails is reached.
-Correctly handle errors from getpass.getuser() in Python 3.13.
-Fix an edge case where ExceptionInfo._stringify_exception could crash
 pytest.raises().
-Fix regression with pytest.warns() using custom warning subclasses which
 have more than one parameter in their __init__.
-Fix a regression in pytest 8.0.0 whereby calling pytest.skip() and similar
 control-flow exceptions within a pytest.warns() block would get suppressed
 instead of propagating.
-Fix a regression in pytest 8.0.0 whereby autouse fixtures defined in a module
 get ignored by the doctests in the module.
-Fix a regression in pytest 8.0.0 whereby items would be collected in reverse
 order in some circumstances.

(From OE-Core rev: 0a6824bc920bebfa019641f8134cb287c8564bef)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
00c9cfd712 python3-pycairo: upgrade 1.25.1 -> 1.26.0
Changelog:
============
* Bump minimum required meson version from 0.56.0 to 0.64.0
* Various meson related cleanups
* Fix header file being installed to the wrong location with meson on some systems
* Adds a new "wheel" meson build option as preparation for meson-python support
* Update dependencies (libpng, pixman, zlib) of the Windows wheels
* Various maintenance related updates

(From OE-Core rev: 1b8054fb175b46f21807c124f55d1c807e2c814f)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:52 +00:00
Wang Mingyu
f398ed7a3f python3-pip: upgrade 23.3.2 -> 24.0
no_shebang_mangling.patch
refreshed for 24.0

Changelog:
===========
-Retry on HTTP status code 502
-Automatically use the setuptools PEP 517 build backend when --config-settings
 is used for projects without pyproject.toml.
-Make pip freeze and pip uninstall of legacy editable installs of packages
 whose name contains _ compatible with setuptools>=69.0.3.
-Support per requirement --config-settings for editable installs.

(From OE-Core rev: 73040d2ed2a440d7497b448b8e81ee19bef5858b)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
87283099cd python3-hypothesis: upgrade 6.97.3 -> 6.98.12
Changelog:
 https://hypothesis.readthedocs.io/en/latest/changes.html

(From OE-Core rev: 755e27ebefb006e44e0f5dcce74d90d63f7e68f3)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
89240c68c3 python3-dbusmock: upgrade 0.30.2 -> 0.31.1
Changelog:
==========
-power_profiles_daemon: Move back to original D-Bus name to avoid breaking compatibility
-Add upower_power_profiles_daemon template for version 0.20 API with new D-Bus name

(From OE-Core rev: 7967c57f305e47f93ba0b27724ff3a077f1cc0c9)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
071b322b19 python3-certifi: upgrade 2023.11.17 -> 2024.2.2
(From OE-Core rev: d606655c7adef60a42ea346018d0e79c7c1832b5)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
72208b8705 python3-beartype: upgrade 0.17.0 -> 0.17.2
(From OE-Core rev: cc8cacb07d4ae03661e4a67513e17504de9ff16c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
31831d95bb pkgconf: upgrade 2.1.0 -> 2.1.1
Changelog:
==========
* Documentation fixes
* Fix --modversion with constraints.
* Reintroduce an optimization to the dependency graph walker which avoids
  revisiting already visited nodes.
* Add a regression test to check that the dependency flattener is working
  as expected.

(From OE-Core rev: 5a6d00328cbd5cff7408dba688d7117e46284e66)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
f7accf6941 pciutils: upgrade 3.10.0 -> 3.11.1
configure.patch
refreshed for 3.11.1

Changelog:
===========
* Fixed wrong API version in lib/pci.h.
* Updated README.Windows.
* Fix compilation on Windows.
* update-pciids now supports XZ compression. If libpci is configured
  with support for compression, all downloaded files are recompressed
  as gzip. Otherwise they are stored as plain text.
* update-pciids now sends itself as the User-Agent.
* Added a pcilmr utility for PCIe lane margining.
* Re-factored access to i386 ports on all relevant platforms.
* Added i386 port access on OpenBSD.
* Back-ends for Windows received many bug fixes and improvements.
* ECAM back-end now scans ACPI and BIOS memory faster.
* Linux systems without pread/pwrite are no longer supported
  as they are hopefully long gone. This helps avoid the tricky check
  for presence of pread which was found to fail on musl libc.
* Improved decoding of PCIe control and status registers.
* Decoding of CXL capabilities now supports up to CXL 3.0.
* lspci now displays interrupt message numbers consistently across
  different capabilities.
* Cache of IDs resolved via DNS, which was located in ~/.pci-ids
  by default, is now stored according to the XDG base directory
  specification in $XDG_CACHE_HOME/pci-ids.
* All source files now have SPDX license identifiers.
* Internal: The "aux" fields of structs pci_access and pci_dev
  reserved for use by back-ends were renamed to backend_data to better
  reflect their meaning.
* As usually, various minor bug fixes and updated pci.ids.

(From OE-Core rev: bbda388857284612190b58abe8d73c93e39d1574)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
036efd5a25 pango: upgrade 1.51.0 -> 1.52.0
Changelog:
=============
- Add pango_font_map_reload_font
- Improve formatting of font sizes

(From OE-Core rev: 3322ac8781e6c000691196c085e2e74b9e4eaf38)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
896fcf2ae6 ofono: upgrade 2.3 -> 2.4
Changelog:
============
-Add support for new provision database format.
-Add support for Quectel EG96 modem.

(From OE-Core rev: c24adeab8287bcedfd04dc67b08dd8b57cfa42ef)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
33e4e09df4 mpg123: upgrade 1.32.4 -> 1.32.5
Changelog:
============
- build:
-- CMake port uses CFLAGS for pulse/jack/tinyalsa properly now (bug 366).
-- CMake port links libsyn123 with libm now (bug 370).
- libmpg123:
-- Fix --enable-portable (no usage of LFS_WRAP_NONE, bug 368).
-- Fix dct36 wrapper usage for x86-64 and NEON. Stupid (bug 367) and
   also avoid returning void.
-- Make ARM builds work with nagging (missing feature macros for std=c99)

(From OE-Core rev: 038313876c68b4b2c71f869f09c0f831cebf2d29)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
b38448beef makedepend: upgrade 1.0.8 -> 1.0.9
(From OE-Core rev: e9507afad6fa21ccb7b2f5718087e90365662fc1)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
44aefa3d12 lighttpd: upgrade 1.4.73 -> 1.4.74
Changelog:
 http://www.lighttpd.net/2024/2/19/1.4.74/

(From OE-Core rev: 23e2aa465d3aa3fb4b61c53eb7b84249ed9b3c20)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
90da2369bf libxvmc: upgrade 1.0.13 -> 1.0.14
(From OE-Core rev: 872c3cb7ea8e9a55bf29d432f3fa02d6a51bb981)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
62292ca8a1 libxkbfile: upgrade 1.1.2 -> 1.1.3
Changelog:
===========
-configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
-Set close-on-exec when opening files
-_XkbMakeAtom: remove check for impossible case
-_XkbInitAtoms: check for malloc() failure
-XkbChangeAtomDisplay: stop leaking atom name
-XkbCFReportError: avoid -Wformat-nonliteral warning
-XkbWriteCFile: stop leaking header file ifdef name
-DefaultParser: avoid -Wimplicit-fallthrough warnings
-xkbtext.c: Add tbGetBufferString helper function
-XkbIndentText: Fix -Wsign-compare warning
-Fix -Wsign-compare warnings in xkbtext.c & xkmread.c
-Add a meson build system

(From OE-Core rev: 4129c497c2993812a6f8f1afb8e7a472bbd81a84)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
69f040889b libxext: upgrade 1.3.5 -> 1.3.6
Changelog:
===========
-Wrap Xext*CheckExtension() in do { ... } while(0)
-configure: raise minimum autoconf requirement to 2.70
-configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
-_xgeGetExtensionVersion should not free info on failure
-Check for malloc failure in _xgeGetExtensionVersion
-_xgeDpyClose: handle NULL return from _xgeFindDisplay
-XEVI: fix -Walloc-size

(From OE-Core rev: dc4bddeebbb54ec4f3f8662d282d6d7ef26303f1)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
fd8bd9113b liburi-perl: upgrade 5.25 -> 5.27
Changelog:
==========
- Add missing NAME section to POD of URI::geo
- Add URI::geo

(From OE-Core rev: 351d9c9b0681a2ab9ffc837e784ff417d01f1474)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
e9a3625c72 libunistring: upgrade 1.1 -> 1.2
License-Update:
===============
doc/libunistring.texi (Conventions):
 Explain the (resultbuf, lengthp) return value convention from the user's point of view.
doc/libunistring.texi (Include files):
 Fix documentation of _LIBUNISTRING_VERSION and _libunistring_version (incorrect since 2010-05-14).
 Add documentation of _libunistring_unicode_version.

Changelog:
=============
* The data tables and algorithms have been updated to Unicode version 15.1.0.
* New functions u8_pcpy, u16_pcpy, u32_pcpy, similar to mempcpy.
* New functions uc_indic_conjunct_break_name, uc_indic_conjunct_break_byname,
  uc_indic_conjunct_break.
* New functions
    uc_is_property_prepended_concatenation_mark,
    uc_is_property_id_compat_math_start, uc_is_property_id_compat_math_continue,
    uc_is_property_ids_unary_operator
  and new constants
    UC_PROPERTY_PREPENDED_CONCATENATION_MARK,
    UC_PROPERTY_ID_COMPAT_MATH_START, UC_PROPERTY_ID_COMPAT_MATH_CONTINUE,
    UC_PROPERTY_IDS_UNARY_OPERATOR.
* New constant _libunistring_unicode_version.
* The UTF-8 decoder functions, especially u8_mbtouc, are now more Unicode
  Standard compliant.
* The *printf functions no longer support the %n directive, for security
  reasons.
* Fixed a bug in the *printf functions: In the %U, %lU, %llU directives, a
  negative width given as an argument did not trigger left-justification.
* The functions u16_strstr and u32_strstr now operate in worst-case linear
  time.

(From OE-Core rev: f9be1e083df6b2621271a2683eddb84bdf34270a)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
4aebb67131 libsecret: upgrade 0.21.2 -> 0.21.4
Changelog:
==========
 * file-backend: Subscribe before calling dbus
 * meson: Fix crypto option being silently ignored
 * Updated translations
 * Port PAM module from gnome-keyring
 * secret-tool: Fix memory issues in lock command

(From OE-Core rev: b0494d7fa7e42ba9fe6b53bc698b72e6b3d82a16)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
d0bec8e41e libpng: upgrade 1.6.41 -> 1.6.42
Changelog:
 Fixed the implementation of the macro function png_check_sig().

(From OE-Core rev: b92fb50237f394cae663e4e88b1b85f30693439e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
3075f2d806 libmicrohttpd: upgrade 0.9.77 -> 1.0.1
Changelog:
  fixes and improves builds with non-default configure parameters.

(From OE-Core rev: e54693267151e54cdd0e80e1268210a8d43bfd0c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
95d47f4075 libksba: upgrade 1.6.5 -> 1.6.6
Changelog:
 Fix a possible wrong error return from the DER builder.

(From OE-Core rev: f476d845feb03e54c93df31291f11c82b9a07487)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
f7a76e6adf libhandy: upgrade 1.8.2 -> 1.8.3
Changelog:
==========
- HdyStyleManager
  - Support contrast setting in the settings portal
  - Remove an extra unref
- Translation updates
  - Catalan
  - Georgian
  - Romanian
  - Turkish

(From OE-Core rev: 3256d357dc30bc1c3b95fc190d367a42fa512f4b)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
09b6177b36 libgpg-error: upgrade 1.47 -> 1.48
0001-Do-not-fail-when-testing-config-scripts.patch
refreshed for 1.48

Changelog:
===========
 * New configure option --with-libtool-modification.
 * New option parser flag to detect commands given without a double
   dash.  There is also the new meta command "command-mode" to set
   this flag via a config file.
 * Added an es_fopen mode flag "sequential" with support on Windows.
 * Added an es_fopen mode flag "wipe" to cleanup internal buffers at
   close time.
 * New function gpgrt_wipememory.
 * Improvements to setenv on Windows.
 * Fixed call to estream-printf string filters.
 * Many improvements to the yat2m tool.
 * Updates to the build system.

(From OE-Core rev: e484b0dda40d00f6272970c9e8a5c9cd6b879301)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
c87da3d09f libffi: upgrade 3.4.5 -> 3.4.6
meta/recipes-support/libffi/libffi/not-win32.patch
refreshed for 3.4.6

Changelog:
===========
-chore: update version to 3.4.6 and fix long double regression on mips64 and alpha
-Update sparc64 host
-Update cfarm hostnames
-Always define long double types
-update copyright year in libffi.texi
-Update version, copyright and testsuite info
-Fix test filename reference

(From OE-Core rev: 0ea9b851f3d7ca568b536c7980730ea03333d037)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
a3f2b3eaf1 git: upgrade 2.43.0 -> 2.44.0
Changelog:
==========
https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.44.0.txt

(From OE-Core rev: 238ba27471fdbd2b22ab0812c4058ec43f19c4a7)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
37c744c2ba gcr: upgrade 4.1.0 -> 4.2.0
Changelog:
==========
- gcr-ssh-agent: add command line options to gcr-ssh-agent [GNOME/gcr!129]
- gcr-ssh-agent: Fix memory leak spotted by ASan [GNOME/gcr!133]
- gcr-ssh-agent: Port memory safety fixes from gnome-keyring ssh-agent [GNOME/gcr!128]
- Updated translations

(From OE-Core rev: 5084a7f8a0f369b06761bf7f1aa0091fd9698bc4)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
4564b777ff efivar: upgrade 38 -> 39
Changelog:
==========
-Add -T workaround for GNU ld 2.36
-Add extern "C" to headers for easier use by C++
-Avoid format error on i686
-Fix the -march issue for riscv64
-Fix musl build
-Fix invalid free in main()
-Remove deprecated --add-needed linker flag
-src/Makefile: build util.c separately for makeguids
-Adjust dependency for libefivar and libefiboot objects
-Set LC_ALL=C to force English output from ld
-LLD: fix detection and remove not needed workarounds
-Fix glibc 2.36 build (mount.h conflicts)
-File device paths: don't print "File(" or ")"
-Use off_t instead of off64_t
-Revamp efi_well_known_* variable handling
-Allow overriding PKG_CONFIG
-Allow passing of hex values to -A
-Allow -a to create a non-existent variable
-make: add option to disable building/installing the docs
-esl-iter.h: fix type declaration of return value for gcc-13
-Minor code updates
-src/Makefile: do not override LIBS and CFLAGS for prerequisites
-linux: handle non-ACPI systems in device_get()
-Change set&append data to be const.
-dp.h: check _ucs2size in format_ucs2()
-Fix wrong if condition in efi_variable_get_data
-Make README statement match license
-Remove needless access() in efivarfs_probe()

(From OE-Core rev: d8fdd64d13d5598b16ddf7329d5ca283ec7da518)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
6fad567a42 ed: upgrade 1.20 -> 1.20.1
Changelog:
  io.c (write_file): Don't create missing intermediate directories.

(From OE-Core rev: 49b653577963cc31cd0b8d0823a24623e02f9ff7)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
467d2ec6d8 createrepo-c: upgrade 1.0.3 -> 1.0.4
(From OE-Core rev: 81316b98d21cbc63ce1c0cc7e05c231d5d8de56c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
0d7421e92b ccache: upgrade 4.9 -> 4.9.1
License-Update: Copyright year updated to 2024.

Changelog:
==========
- Improved detection of bad remote storage URLs gracefully. This also fixes
  crashes seen in ccache's own test suite. +
- Made caching completely disabled when modification of a source or include file
  is detected during ccache invocation. Previously this was only done for the
  direct mode. +
- Fixed a MSVC crash when using '/Zi' with many concurrent compilations. +
- Fixed a crash when '-arch' is the last compiler option. +

(From OE-Core rev: df17a0d5663af4f33a69b6fd8fd4bf079bcc6e36)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Wang Mingyu
425f30e512 bash-completion: upgrade 2.11 -> 2.12.0
License-Update:
 docs(COPYING): use unmodified upstream license file

Changelog:
 https://github.com/scop/bash-completion/releases/tag/2.12.0

(From OE-Core rev: 64c0587b69b7fbd2f758cc6907e8c2f226b4a8b3)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-01 09:28:51 +00:00
Richard Purdie
224417d162 mirrors: Switch llvm to use shallow cloning
The llvm github repo appears to see a lot of churn on branches we're not
interested in and is in general huge and unreliable to clone.

Switch to shallow clones to improve the user experience.

(From OE-Core rev: 6cf98a4954751977fb02fb2024ef842865352138)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Ross Burton
d9156c3be0 gstreamer1.0: skip a test that is known to be flaky
The aggregator testcase test_infinite_seek_50_src_live is known upstream
to be flaky[1] and when this fails in their CI they just ignore it.

It's failing often on our autobuilder, so disable the test case for now
until upstream have resolved this issue.

[ YOCTO #15054 ]

[1] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/410

(From OE-Core rev: c2c9cbc107e5428122ad26b5c478602f0c8c0fbe)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Alexis Lothoré
437c0721c5 oeqa/lib/utils/postactions: fix host disk usage stats retrieval
The recently introduced postactions module  can raise, on failing ptests,
the following warning:

WARNING: core-image-ptest-glib-2.0-1.0-r0 do_testimage: Can not get host
disk usage: [Errno 2] No such file or directory: '/usr/bin/df'

The issue is likely not happening because of df absence (to be confirmed
amongst the variety of workers) but because of the wrong path. Fix it by
letting subprocess search for df, passing only the binary name. To make it
work, we also have to reset the environment, otherwise the environment
configured before running bitbake will be used, and search will fail.

(From OE-Core rev: da7cc5def2839a0e15d07244f858847479c12caa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Tim Orling
af7d65adfb python3-cryptography{-vectors}: upgrade to 42.0.5
* Includes an upgrade to pyo3 from 0.20.0 to 0.20.3 which fixes ppc64
* Refresh -crates.inc

https://cryptography.io/en/latest/changelog/#v42-0-5
https://cryptography.io/en/latest/changelog/#v42-0-4
https://cryptography.io/en/latest/changelog/#v42-0-3

42.0.5 - 2024-02-23
* Limit the number of name constraint checks that will be performed in
  X.509 path validation to protect against denial of service attacks.
* Upgrade pyo3 version, which fixes building on PowerPC.

42.0.4 - 2024-02-20
* Fixed a null-pointer-dereference and segfault that could occur when
  creating a PKCS#12 bundle. Credit to Alexander-Programming for
  reporting the issue. CVE-2024-26130
* Fixed ASN.1 encoding for PKCS7/SMIME signed messages. The fields
  SMIMECapabilities and SignatureAlgorithmIdentifier should now be
  correctly encoded according to the definitions in RFC 2633 RFC 3370.

42.0.3 - 2024-02-15
* Fixed an initialization issue that caused key loading failures for
  some users.

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

(From OE-Core rev: 83dad4a93ff81c6c1e048443e0827d825670158b)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Xiangyu Chen
eb11e03c81 libc-locale: fix ASCII compatible warning cause build failure.
Some locales are not listed in glibc locales support list, but can be generated,
here using ja_JP.SHIFT_JIS as an example. We can add following line into local.conf
to enable and generate it:

GLIBC_GENERATE_LOCALES += "en_GB.UTF-8 en_US.UTF-8 ja_JP.UTF-8 ja_JP.SHIFT_JIS"
IMAGE_LINGUAS += "ja-jp en-us ja-jp.shift-jis"

The localedef tool would report a warning and exit with 1, that cause build failure,
error message as below:

[warning] character map `SHIFT_JIS' is not ASCII compatible, locale not ISO C compliant [--no-warnings=ascii]

So add a --no-warnings=ascii in libc-package.bbclass to fix build failure if someone needs those locale
in yocto.

(From OE-Core rev: 1048992c0d2a2bda3464185efdac5cc986a583d4)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Lei Maohui
930450926c rpm: Fix the following error when run nativesdk-rpm in nativesdk environment.
package busybox-inittab-1.36.1-r0.ubinux_x86_64 is intended for a different architecture
  package busybox-udhcpc-1.36.1-r0.core2_64 is intended for a different architecture
  package ldconfig-2.39+git0+312e159626-r0.core2_64 is intended for a different architecture
  ......

CMAKE_INSTALL_SYSCONFDIR is necessary. If not set
CMAKE_INSTALL_SYSCONFDIR, nativesdk-rpm will use the default setting:
/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-ubinuxsdk-linux/etc to find rpmrc file.

(From OE-Core rev: c9cb2eb2e662e19d68d27f2eec791986715c3abe)

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Nick Owens
90893b5e83 python3: dont disable readline module for editline
if we use editline, then the readline module must also be enabled for
python to build the readline module and link it against libedit.

(From OE-Core rev: e92d7dd55d16aa311a95c4e8bb4633e6ebb9900f)

Signed-off-by: Nick Owens <nick.owens@eero.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Khem Raj
78264a5c06 python3-maturin: Recognise riscv32 architecture
(From OE-Core rev: 728784e4df700af86d0f848142b0085813e49090)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Khem Raj
e5e6d6fe9a python3-bcrypt: Fix build break on arches without 64 bit atomics
bump pyo3 to 0.20.3, which brings the needed fixes for building for
architectures without 64bit atomics [1]

[1] https://github.com/pyca/bcrypt/pull/746

(From OE-Core rev: 33bd36308be828123a820c5eed2f1fa9e3a7c0f6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Trevor Gamblin
7bdf0d4869 python3-git: upgrade 3.1.41 -> 3.1.42
This release contains bugfixes, documentation updates, and changes to
metadata for build and CI.

Changelog: https://github.com/gitpython-developers/GitPython/releases/tag/3.1.42

(From OE-Core rev: b4dc9793f3196a774b19fbf4342ebcd42655d14e)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Claus Stovgaard
c2456e0eef wpa-supplicant: Fix CVE-2023-52160
PEAP client: Update Phase 2 authentication requirements. Also see
https://www.top10vpn.com/research/wifi-vulnerabilities/

(From OE-Core rev: 57b6a329df897de69ae8b90706d9fe37e0ed6d35)

Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Ross Burton
53b100562a libexif: remove unused version_underscore
This function hasn't been used since the upgrade to 0.6.23 in 2021[1]

[1] oe-core 65a54f72e15f59bdf9d8c4618f3ef8510541d134

(From OE-Core rev: 3f8da47b54ffa1b0a9feb971a7324a52a325b5e1)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-29 10:26:13 +00:00
Ulrich Ölmann
a32b45289b bitbake: taskexp_ncurses: fix execution example in introductory comment
Drop the ".py" file extension from the "-u" option's argument that has been
overlooked while applying the original patch (see [1]) to make the example work.
While at it sort the recipes' names consistently with respect to what is found
in the self-test examples below.

[1] https://lore.kernel.org/bitbake-devel/6f2645a7c4db2ae149d387544d2b94209cfed3f4.camel@linuxfoundation.org/

(Bitbake rev: 1f4d517b7a0389f78d1f791135f8dc9120e9912b)

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-28 09:21:48 +00:00
Bruce Ashfield
4945ca640b 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 25Feb24
        Date: Sun, 25 Feb 2024 07:03:08 -0500

    ]

(From OE-Core rev: efa1420085d1671c7e3c9daa1949b36cf1822ed1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
f1da242640 linux-yocto/6.6: update to v6.6.18
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    d8a27ea2c986 Linux 6.6.18
    9e083726d5e3 tracing: Fix a NULL vs IS_ERR() bug in event_subsystem_dir()
    9389eaaca7b9 tracing: Make system_callback() function static
    cec85aa54b12 Documentation/arch/ia64/features.rst: fix kernel-feat directive
    ccce12ecf2a7 x86/barrier: Do not serialize MSR accesses on AMD
    438d19492b7f dm: limit the number of targets and parameter size area
    2c3bdba00283 nilfs2: fix potential bug in end_buffer_async_write
    c20fc13082d1 of: property: Add in-ports/out-ports support to of_graph_get_port_parent()
    b6a2a9cbb675 sched/membarrier: reduce the ability to hammer on sys_membarrier
    0a962f2fbaa9 x86/efistub: Use 1:1 file:memory mapping for PE/COFF .compat section
    686b58ce5052 x86/boot: Increase section and file alignment to 4k/512
    f7eedad78068 x86/boot: Split off PE/COFF .data section
    476316bb48c1 x86/boot: Drop PE/COFF .reloc section
    0db81e8e20f6 x86/boot: Construct PE/COFF .text section from assembler
    0cf3d613a141 x86/boot: Derive file size from _edata symbol
    c731fbcfdbb6 x86/boot: Define setup size in linker script
    431b39e62594 x86/boot: Set EFI handover offset directly in header asm
    8e102324e743 x86/boot: Grab kernel_info offset from zoffset header directly
    a38801ba1875 x86/boot: Drop references to startup_64
    08796fc9bfe2 x86/boot: Drop redundant code setting the root device
    4bac079dba04 x86/boot: Omit compression buffer from PE/COFF image memory footprint
    d9b6b6e8d871 x86/boot: Remove the 'bugger off' message
    e17a8bf1fb5d x86/efi: Drop alignment flags from PE section headers
    8117961d98fb x86/efi: Disregard setup header of loaded image
    fa244085025f x86/efi: Drop EFI stub .bss from .data section
    940c919be813 nfsd: don't take fi_lock in nfsd_break_deleg_cb()
    a49e9c7267d0 eventfs: Keep all directory links at 1
    9bb8131a9ff9 eventfs: Remove fsnotify*() functions from lookup()
    ed823ca4bcf3 eventfs: Restructure eventfs_inode structure to be more condensed
    5c3ea7dfef17 eventfs: Warn if an eventfs_inode is freed without is_freed being set
    5dfb04100326 eventfs: Get rid of dentry pointers without refcounts
    c46192051c20 eventfs: Clean up dentry ops and add revalidate function
    ca2d3b2c260d eventfs: Remove unused d_parent pointer field
    21faa3de640d tracefs: dentry lookup crapectomy
    4928d0e32228 tracefs: Avoid using the ei->dentry pointer unnecessarily
    d1bcde94223e eventfs: Initialize the tracefs inode properly
    f0686a194549 tracefs: Zero out the tracefs_inode when allocating it
    35e219f7cd36 tracefs: remove stale update_gid code
    9a187657d681 eventfs: Save directory inodes in the eventfs_inode structure
    1f20155a724c eventfs: Use kcalloc() instead of kzalloc()
    c55d11ea8e07 eventfs: Do not create dentries nor inodes in iterate_shared
    4e8731d20fba eventfs: Have the inodes all for files and directories all be the same
    e638899f9963 eventfs: Shortcut eventfs_iterate() by skipping entries already read
    f3f41f444b32 eventfs: Read ei->entries before ei->children in eventfs_iterate()
    82820a2d76cc eventfs: Do ctx->pos update for all iterations in eventfs_iterate()
    98102764cca9 eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set
    628adb842bd5 tracefs/eventfs: Use root and instance inodes as default ownership
    1bfdd54adbb8 eventfs: Stop using dcache_readdir() for getdents()
    ee699b547b63 eventfs: Remove "lookup" parameter from create_dir/file_dentry()
    ee3bde693ee8 eventfs: Fix bitwise fields for "is_events"
    f6bf29570034 tracefs: Check for dentry->d_inode exists in set_gid()
    1b4dfdb3274a eventfs: Fix file and directory uid and gid ownership
    4d12a83ecdb6 eventfs: Have event files and directories default to parent uid and gid
    53cd8c57cc73 eventfs: Fix events beyond NAME_MAX blocking tasks
    6eee5c670861 eventfs: Make sure that parent->d_inode is locked in creating files/dirs
    29bb70cad668 eventfs: Do not allow NULL parent to eventfs_start_creating()
    43fbddf34c3c eventfs: Move taking of inode_lock into dcache_dir_open_wrapper()
    6586a12d3f02 eventfs: Use GFP_NOFS for allocation when eventfs_mutex is held
    7b4cb5d59f3e eventfs: Do not invalidate dentry in create_file/dir_dentry()
    b1391e3653f5 eventfs: Remove expectation that ei->is_freed means ei->dentry == NULL
    74a9e56b682f eventfs: Use simple_recursive_removal() to clean up dentries
    fb9b8eea5d21 eventfs: Remove special processing of dput() of events directory
    c58673cad4e9 eventfs: Delete eventfs_inode when the last dentry is freed
    1a6edfc7be2f eventfs: Hold eventfs_mutex when calling callback functions
    32f4c167cbef eventfs: Save ownership and mode
    d2a632aeecc4 eventfs: Test for ei->is_freed when accessing ei->dentry
    6e2a33522ee7 eventfs: Have a free_ei() that just frees the eventfs_inode
    4bb123ce29cd eventfs: Remove "is_freed" union with rcu head
    773cd7dfd092 eventfs: Fix kerneldoc of eventfs_remove_rec()
    810a957e343b eventfs: Remove extra dget() in eventfs_create_events_dir()
    7cac392f5640 eventfs: Fix typo in eventfs_inode union comment
    f7842e0617ff eventfs: Fix WARN_ON() in create_file_dentry()
    843879a6ddd9 tracefs/eventfs: Modify mismatched function name
    c99e5cfe77e5 eventfs: Fix failure path in eventfs_create_events_dir()
    17e4e4d2335c eventfs: Use ERR_CAST() in eventfs_create_events_dir()
    bceba0d35b43 eventfs: Use eventfs_remove_events_dir()
    35ee34c0f6d5 eventfs: Remove eventfs_file and just use eventfs_inode
    4015fc492774 Revert "eventfs: Remove "is_freed" union with rcu head"
    dc9ee9a8aef8 Revert "eventfs: Save ownership and mode"
    65a54d6dbf3b Revert "eventfs: Delete eventfs_inode when the last dentry is freed"
    601daf7e31d8 Revert "eventfs: Use simple_recursive_removal() to clean up dentries"
    5e9fb476196d Revert "eventfs: Check for NULL ef in eventfs_set_attr()"
    6fdc0bcd066d Revert "eventfs: Do not allow NULL parent to eventfs_start_creating()"
    fa69a8063f8b parisc: Fix random data corruption from exception handler
    4480ead69a3a netfilter: ipset: Missing gc cancellations fixed
    b93a6756a01f netfilter: ipset: fix performance regression in swap operation
    b2261c2e763e block: fix partial zone append completion handling in req_bio_endio()
    56f98598ddf0 md: bypass block throttle for superblock update
    49bca0710ebe tracing: Inform kmemleak of saved_cmdlines allocation
    ab94509051ea tracing: Fix HAVE_DYNAMIC_FTRACE_WITH_REGS ifdef
    5d858e2d3eca fs/proc: do_task_stat: move thread_group_cputime_adjusted() outside of lock_task_sighand()
    63e2bd10a89a pmdomain: core: Move the unused cleanup to a _sync initcall
    f84e7534457d can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
    26dfe112ec2e can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock
    6019c77391a6 can: netlink: Fix TDCO calculation using the old data bittiming
    23429e2c33dd of: property: fix typo in io-channels
    7366ff7ca1c7 docs: kernel_feat.py: fix build error for missing files
    601b5540c154 blk-wbt: Fix detection of dirty-throttled tasks
    496273439b3c LoongArch: Fix earlycon parameter if KASAN enabled
    4d850ed74740 mm: hugetlb pages should not be reserved by shmat() if SHM_NORESERVE
    13c5a9fb0710 fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_super
    ae20db45e482 ceph: prevent use-after-free in encode_cap_msg()
    a71302c86389 hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed
    9680b2ab54ba net: stmmac: protect updates of 64-bit statistics counters
    1b1631895e40 pmdomain: renesas: r8a77980-sysc: CR7 must be always on
    3dbf262ab0c1 net: ethernet: ti: cpsw_new: enable mac_managed_pm to fix mdio
    a1b4ed4125ca s390/qeth: Fix potential loss of L3-IP@ in case of network issues
    d59e1c2fbd76 net: ethernet: ti: cpsw: enable mac_managed_pm to fix mdio
    31f71f2d7a08 fs: relax mount_setattr() permission checks
    02afaeb6c52b tools/rtla: Fix Makefile compiler options for clang
    f0542eb7122e tools/rtla: Fix uninitialized bucket/data->bucket_size warning
    7c3611ca86f1 tools/rtla: Exit with EXIT_SUCCESS when help is invoked
    8a585914c266 tools/rtla: Fix clang warning about mount_point var size
    daa5e6a4a8b4 tools/rtla: Replace setting prio with nice for SCHED_OTHER
    a71597b4e5c7 tools/rtla: Remove unused sched_getattr() function
    828be9ff1770 tools/rv: Fix Makefile compiler options for clang
    2863f8cf9f56 tools/rv: Fix curr_reactor uninitialized variable
    62a1b9b6343e ASoC: amd: yc: Add DMI quirk for Lenovo Ideapad Pro 5 16ARP8
    eb06fca2c740 ASoC: tas2781: add module parameter to tascodec_init()
    1be2669565b3 ASoC: SOF: IPC3: fix message bounds on ipc ops
    19758688bd05 arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata
    60480c6bc160 arm64/signal: Don't assume that TIF_SVE means we saved SVE state
    4796a1a41300 mmc: sdhci-pci-o2micro: Fix a warm reboot issue that disk can't be detected by BIOS
    6d5eae9a95fe zonefs: Improve error handling
    3d16cebf0112 KVM: arm64: Fix circular locking dependency
    4145ccff546e smb: Fix regression in writes when non-standard maximum write size negotiated
    c2aa2718cda2 smb: client: set correct id, uid and cruid for multiuser automounts
    e5643b23cbb0 thunderbolt: Fix setting the CNS bit in ROUTER_CS_5
    65ac3a4fee03 irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
    91a80fff3eee irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
    5fcc75e44de5 irqchip/irq-brcmstb-l2: Add write memory barrier before exit
    00f4eb31b819 wifi: iwlwifi: mvm: fix a crash when we run out of stations
    e700e44fd2cc wifi: mac80211: reload info pointer in ieee80211_tx_dequeue()
    6585c74b4faa wifi: cfg80211: fix wiphy delayed work queueing
    ab9d4bb9a189 wifi: iwlwifi: fix double-free bug
    080da821b2c5 nfp: flower: prevent re-adding mac index for bonded port
    d194f1c73160 nfp: enable NETDEV_XDP_ACT_REDIRECT feature flag
    0bb84600c23c nfp: use correct macro for LengthSelect in BAR config
    9c82920359b7 crypto: algif_hash - Remove bogus SGL free on zero-length error path
    88aa493f393d crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked
    ea5ddbc11613 nilfs2: fix hang in nilfs_lookup_dirty_data_buffers()
    2e1480538ef6 nilfs2: fix data corruption in dsync block recovery for small block sizes
    af8625f713a4 ALSA: hda/realtek: add IDs for Dell dual spk platform
    53447b46a64e ALSA: hda/conexant: Add quirk for SWS JS201D
    027df06c2915 ALSA: hda/realtek: fix mute/micmute LED For HP mt645
    224378140269 mmc: slot-gpio: Allow non-sleeping GPIO ro
    13b01aedb585 io_uring/net: fix multishot accept overflow handling
    1dc09ca85871 x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
    b8525dced380 KVM: x86/pmu: Fix type length error when reading pmu->fixed_ctr_ctrl
    eea9b2e0d222 KVM: x86: make KVM_REQ_NMI request iff NMI pending for vcpu
    b2479ab426ce x86/fpu: Stop relying on userspace for info to fault in xsave buffer
    97b37ffbcebe x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6
    536006966678 serial: mxs-auart: fix tx
    ab288bbaedcc serial: core: introduce uart_port_tx_flags()
    760f0f9d85fe powerpc/pseries: fix accuracy of stolen time
    7fec35ffce05 powerpc/cputable: Add missing PPC_FEATURE_BOOKE on PPC64 Book-E
    1b5181cb4b30 powerpc/64: Set task pt_regs->link to the LR value on scv entry
    b1ac5b885cf3 ftrace: Fix DIRECT_CALLS to use SAVE_REGS by default
    24ea2c4d4864 serial: max310x: prevent infinite while() loop in port startup
    89992713f364 serial: max310x: fail probe if clock crystal is unstable
    2655f0892c04 serial: max310x: improve crystal stable clock detection
    8c6df38c7033 serial: max310x: set default value when reading clock ready bit
    8663564114d1 nfp: flower: fix hardware offload for the transfer layer port
    15392de705e7 nfp: flower: add hardware offload check for post ct entry
    0dc6bc63d9ec net: dsa: mv88e6xxx: Fix failed probe due to unsupported C45 reads
    f5f6332f1870 ring-buffer: Clean ring_buffer_poll_wait() error return
    22a77c0f5b82 hv_netvsc: Fix race condition between netvsc_probe and netvsc_remove
    482cda9e50de drm/amd/display: Preserve original aspect ratio in create stream
    7fc395f0f562 drm/amd/display: Increase frame-larger-than for all display_mode_vba files
    7407c61f43b6 drm/amd/display: Fix MST Null Ptr for RV
    b476ae1da136 drm/amdgpu/soc21: update VCN 4 max HEVC encoding resolution
    4ff8ec01a865 drm/prime: Support page array >= 4GB
    b9e373ed8d9c drm/amd/display: Add align done check
    c96a494c9b0f drm/msm: Wire up tlb ops
    6cef4e68777b ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails
    93136132d1b5 media: rc: bpf attach/detach requires write permission
    f83b9abee9fa pmdomain: mediatek: fix race conditions with genpd
    5894212f3abf iio: pressure: bmp280: Add missing bmp085 to SPI id table
    28639eea710c iio: imu: bno055: serdev requires REGMAP
    68f2bdcbd7db iio: imu: adis: ensure proper DMA alignment
    c0f2ab954b02 iio: adc: ad_sigma_delta: ensure proper DMA alignment
    54e67b77be3a iio: accel: bma400: Fix a compilation problem
    e0cb5cc558f0 iio: commom: st_sensors: ensure proper DMA alignment
    b90126c86d83 iio: core: fix memleak in iio_device_register_sysfs
    1d8c67e94e9e iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
    f83ec2ee91d0 staging: iio: ad5933: fix type mismatch regression
    5ad73e1056a6 Revert "workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()"
    d76792931185 tracing/probes: Fix to search structure fields correctly
    ebc1972c2c89 tracing/probes: Fix to set arg size and fmt after setting type from BTF
    d5889a68522c tracing/probes: Fix to show a parse error for bad type for $comm
    ac9a1c3bcd45 tracing/synthetic: Fix trace_string() return value
    6e48f4c61673 tracing: Fix wasted memory in saved_cmdlines logic
    5f703935fdb5 tracing/timerlat: Move hrtimer_init to timerlat_fd open()
    aafdc920d70d ext4: avoid bb_free and bb_fragments inconsistency in mb_free_blocks()
    2883940b19c3 ext4: fix double-free of blocks due to wrong extents moved_len
    e3c4e10e3a79 misc: fastrpc: Mark all sessions as invalid in cb_remove
    a7ae586f6f60 binder: signal epoll threads of self-work
    53953faf9180 ALSA: hda/realtek: fix mute/micmute LEDs for HP ZBook Power
    39ca594f8098 ALSA: hda/cs8409: Suppress vmaster control for Dolphin models
    4629bf52d952 ASoC: codecs: wcd938x: handle deferred probe
    ea102272ffa2 ALSA: hda/realtek - Add speaker pin verbtable for Dell dual speaker platform
    24a98774dc8d ALSA: hda/realtek: Enable headset mic on Vaio VJFE-ADL
    d83d6f66bb3a usb: typec: tpcm: Fix issues with power being removed during reset
    32bfb13db982 modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS
    6cddb7a4d78c linux/init: remove __memexit* annotations
    fd06e32ea464 um: Fix adding '-no-pie' for clang
    2dc2b0a42aaf xen-netback: properly sync TX responses
    54944f45470a parisc: BTLB: Fix crash when setting up BTLB at CPU bringup
    2524299b6106 net: stmmac: do not clear TBS enable bit on link up/down
    923dea2a7ea9 net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame()
    16d3f507b0fa nfc: nci: free rx_data_reassembly skb on NCI device cleanup
    04c0dbdba3b0 kbuild: Fix changing ELF file type for output of gen_btf for big endian
    0f48dea0926d ALSA: hda/realtek: Apply headset jack quirk for non-bass alc287 thinkpads
    1a2f08576e30 firewire: core: correct documentation of fw_csr_string() kernel API
    6d2a97b7b6f2 lsm: fix the logic in security_inode_getsecctx()
    8df43e53f2f7 lsm: fix default return value of the socket_getpeersec_*() hooks
    38fd4dfa2764 drm/amd: Don't init MEC2 firmware when it fails to load
    8983397951b4 drm/amdgpu: Reset IH OVERFLOW_CLEAR bit
    0b1d4187c2df drm/virtio: Set segment size for virtio_gpu device
    c99d215c0c0f connector/cn_proc: revert "connector: Fix proc_event_num_listeners count not cleared"
    56a19b790f57 Revert "drm/msm/gpu: Push gpu lock down past runpm"
    caa2565a2e13 Revert "drm/amd: flush any delayed gfxoff on suspend entry"
    2996c7e97ea7 scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock"
    889a5f329e47 media: Revert "media: rkisp1: Drop IRQF_SHARED"
    9978d5b744e0 Revert "powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add"
    4bfe217e075d mptcp: really cope with fastopen race
    ed34dfa19ddb mptcp: check addrs list in userspace_pm_get_local_id
    a2d743747e9e mptcp: fix rcv space initialization
    877a72e3b66c mptcp: drop the push_pending field
    1fdb37a673d2 selftests: mptcp: add mptcp_lib_kill_wait
    2decb7d94d34 selftests: mptcp: allow changing subtests prefix
    a4887b7aa676 selftests: mptcp: increase timeout to 30 min
    969afb521f6f selftests: mptcp: add missing kconfig for NF Mangle
    ecdb48c5f538 selftests: mptcp: add missing kconfig for NF Filter in v6
    2d60c017e448 selftests: mptcp: add missing kconfig for NF Filter
    b609c783c535 mptcp: fix data re-injection from stale subflow
    fa3866b67d5e kallsyms: ignore ARMv4 thunks along with others
    3a9d624593c5 modpost: trim leading spaces when processing source files list
    6be99c51829b i2c: i801: Fix block process call transactions
    a99ba46e8a20 i2c: pasemi: split driver into two separate modules
    4cc31fa07445 powerpc/kasan: Limit KASAN thread size increase to 32KB
    f7e84c8e196b irqchip/gic-v3-its: Handle non-coherent GICv4 redistributors
    fcb82e9739f2 irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
    0589dff4fbf4 i2c: qcom-geni: Correct I2C TRE sequence
    f7ff1c89fb6e cifs: fix underflow in parse_server_interfaces()
    e7f744f6f420 iio: adc: ad4130: only set GPIO_CTRL if pin is unused
    0e0dab377509 iio: adc: ad4130: zero-initialize clock init data
    63b1a3d9dd3b PCI: Fix active state requirement in PME polling
    7f414d306320 Revert "kobject: Remove redundant checks for whether ktype is NULL"
    0516c06b19dc powerpc/kasan: Fix addr error caused by page alignment
    8631837dbf8b powerpc/6xx: set High BAT Enable flag on G2_LE cores
    0040386b0b71 powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add
    22920e410234 driver core: fw_devlink: Improve detection of overlapping cycles
    7219a692ffc0 media: ir_toy: fix a memleak in irtoy_tx
    008cf5d1da7f interconnect: qcom: sm8550: Enable sync_state
    d8e36ff40cf9 interconnect: qcom: sc8180x: Mark CO0 BCM keepalive
    c7ebd8149ee5 usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend
    ed85777c640c usb: core: Prevent null pointer dereference in update_port_device_state
    84a13b97e8e2 usb: chipidea: core: handle power lost in workqueue
    0d179c570486 usb: f_mass_storage: forbid async queue when shutdown happen
    eafeda9ee9c0 USB: hub: check for alternate port before enabling A_ALT_HNP_SUPPORT
    ec68d8d25b84 usb: ucsi_acpi: Fix command completion handling
    330d22aba17a usb: ulpi: Fix debugfs directory leak
    d25f43a25794 usb: ucsi: Add missing ppm_lock
    ad42f8087146 iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
    fc41101a94b1 HID: wacom: Do not register input devices until after hid_hw_start
    04fa3e1387bf HID: wacom: generic: Avoid reporting a serial of '0' to userspace
    4cad91344a62 HID: i2c-hid-of: fix NULL-deref on failed power up
    467fce636a3a HID: bpf: actually free hdev memory after attaching a HID-BPF program
    d83a7e591d26 HID: bpf: remove double fdget()
    c34c01fba0f0 ALSA: hda/realtek: Enable Mute LED on HP Laptop 14-fq0xxx
    134c9f699c16 ALSA: hda/realtek: Fix the external mic not being recognised for Acer Swift 1 SF114-32
    63bc8a394083 parisc: Prevent hung tasks when printing inventory on serial console
    7f5375875e84 ASoC: amd: yc: Add DMI quirk for MSI Bravo 15 C7VF
    5735a2671ffb dm-crypt, dm-verity: disable tasklets
    cc0037fa592d nouveau: offload fence uevents work to workqueue
    acd2eda2b28f scsi: storvsc: Fix ring buffer size calculation
    2f61cb94def1 selftests: mm: fix map_hugetlb failure on 64K page size systems
    8f02931edb7d selftests/mm: Update va_high_addr_switch.sh to check CPU for la57 flag
    ec18ec230301 mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again
    85f052b55ce2 selftests/mm: switch to bash from sh
    6022c065c9ec tracing/trigger: Fix to return error if failed to alloc snapshot
    8b5a4fe34279 scs: add CONFIG_MMU dependency for vfree_atomic()
    d6a14d9ddbed selftests/mm: ksm_tests should only MADV_HUGEPAGE valid memory
    ee35363764d8 userfaultfd: fix mmap_changing checking in mfill_atomic_hugetlb
    38e6fede36bb i40e: Fix waiting for queues of all VSIs to be disabled
    be147926140a i40e: Do not allow untrusted VF to remove administratively set MAC
    94d34a6861a2 mm/memory: Use exception ip to search exception tables
    fdd12a80f64f ptrace: Introduce exception_ip arch hook
    2252913f156f MIPS: Add 'memory' clobber to csum_ipv6_magic() inline assembler
    61e1c101bacb nouveau/svm: fix kvcalloc() argument order
    d4053005d55a net: sysfs: Fix /sys/class/net/<iface> path for statistics
    050ad2ca0ac1 ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
    211db3da3f61 spi: ppc4xx: Drop write-only variable
    6a67bf10934c net: tls: fix returned read length with async decrypt
    d684763534b9 net: tls: fix use-after-free with partial reads and async decrypt
    13eca403876b net: tls: handle backlogging of crypto requests
    6db22d6c7a6d tls: fix race between tx work scheduling and socket close
    86dc27ee36f5 tls: fix race between async notify and socket close
    de31df6f8720 net: tls: factor out tls_*crypt_async_wait()
    5e01c54ebcaf tls: extract context alloc/initialization out of tls_set_sw_offload
    48fae67d8374 lan966x: Fix crash when adding interface under a lag
    5eeb2a9eaa5b net: openvswitch: limit the number of recursions from action sets
    65095912b0f3 selftests: forwarding: Fix bridge locked port test flakiness
    d8893ac849ba selftests: forwarding: Suppress grep warnings
    925fd1a0fb41 selftests: bridge_mdb: Use MDB get instead of dump
    c3e0cfe7d7cb selftests: forwarding: Fix bridge MDB test flakiness
    2fc52eb6369c selftests: forwarding: Fix layer 2 miss test flakiness
    dcaf06afaad8 selftests: net: Fix bridge backup port test flakiness
    30c59775a292 selftests/net: convert test_bridge_backup_port.sh to run it in unique namespace
    7512d7866640 perf: CXL: fix mismatched cpmu event opcode
    6e00027aef47 ALSA: hda/cs35l56: select intended config FW_CS_DSP
    c3dc7cb88815 of: property: Improve finding the supplier of a remote-endpoint property
    e0dce2c981ff of: property: Improve finding the consumer of a remote-endpoint property
    c1c50ca73e41 devlink: Fix command annotation documentation
    59d440ae52b5 bonding: do not report NETDEV_XDP_ACT_XSK_ZEROCOPY
    d74226e03df1 net/handshake: Fix handshake_req_destroy_test1
    cd16ed2e9417 ASoC: SOF: ipc3-topology: Fix pipeline tear down logic
    8723db10f063 wifi: iwlwifi: uninitialized variable in iwl_acpi_get_ppag_table()
    83f4bf711f30 wifi: iwlwifi: Fix some error codes
    9f9aff002a4d KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test
    04e01dc1fce1 spi: imx: fix the burst length at DMA mode and CPU mode
    52fe802f95f2 drm/msm/gem: Fix double resv lock aquire
    3b23d6512d49 of: unittest: Fix compile in the non-dynamic case
    267f7b04effa KVM: selftests: Avoid infinite loop in hyperv_features when invtsc is missing
    03aee9284d9b KVM: selftests: Delete superfluous, unused "stage" variable in AMX test
    854357db2f93 selftests/landlock: Fix fs_test build with old libc
    8f1903863219 driver core: Fix device_link_flag_is_sync_state_only()
    7bddf18f474f btrfs: don't drop extent_map for free space inode on write error
    2f2d90376924 btrfs: reject encoded write if inode has nodatasum flag set
    2dc6dbbddc18 btrfs: don't reserve space for checksums when writing to nocow files
    7efadbcb3200 btrfs: send: return EOPNOTSUPP on unknown flags
    92182dc179ec btrfs: forbid deleting live subvol qgroup
    833775656d44 btrfs: do not ASSERT() if the newly created subvolume already got read
    4f48ef7d97d5 btrfs: forbid creating subvol qgroups
    505a948d0555 btrfs: do not delete unused block group if it may be used soon
    e97ebc2a8c8e btrfs: add and use helper to check if block group is used
    f328d96d6b38 update workarounds for gcc "asm goto" issue
    aaff74d886d0 work around gcc bugs with 'asm goto' with outputs

(From OE-Core rev: 6815af6a5a6370207c842d0a389f208d37bf1553)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
42a020da70 linux-yocto/6.6: genericarm64 configuration/definition
Integrating the following commit(s) to linux-yocto/.:

1/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: features/numa: remove CONFIG_NEED_MULTIPLE_NODES
    Date: Mon, 26 Feb 2024 12:10:12 +0000

    This was removed in kernel a9ee6cf (5.14 onwards).

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

2/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: features/cgroups: remove trailing whitespace
    Date: Mon, 26 Feb 2024 12:10:13 +0000

    Otherwise the audit will notice that "y " was requested but "y" was set.

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

3/3 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: bsp: Add initial genericarm64 BSP
    Date: Mon, 26 Feb 2024 12:10:14 +0000

    Add the skeleton of an initial genericarm64 kernel.

    At present this has only been boot tested on a BeaglePlay and is missing
    some functionality, but it does boot via EFI from SD card successfully.

    Future work will organise the configuration fragments more neatly,
    move more options to modules, increase functionality, and add support
    for more boards.

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

(From OE-Core rev: c60bbcc73a5e623e5cf05339d42bc9d98a82b684)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
f7fa98cca8 kern-tools: depend on git-replacement-native
Konstantin Aladyshev <aladyshev22@gmail.com> reported that the
kern-tools require git functionality that was introduced in
git versions greater than the minimum project requirements.

In particular:

   commit 923a9de418b3ca8592c3 [kgit-s2q: don't run verication hooks]

uses the --no-verify flag to prevent local git hooks from
running and breaking patching or introducing security
issues from the host configuration.

To ensure that we have a new enough git available for the tools,
we update our DEPENDS to git-native-replacement, and the version
available in oe-core will be built and used instead of the
host provided version.

(From OE-Core rev: 6c2ae2346db061a37506b3b5dca20914a7b29fca)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
c95aa38d24 linux-yocto/6.6: config: x86 tidy & consolidation
Integrating the following commit(s) to linux-yocto/.:

1/3 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: BSP: remove from all - latencytop feature inclusion
    Date: Thu, 30 Nov 2023 14:07:48 -0500

    Consider this 5+ year old commit

        commit bcbc7bbc4f
        Author: Alexander Kanavin <alexander.kanavin@linux.intel.com>
        Date:   Thu Mar 1 16:00:41 2018 +0200

        latencytop: remove recipe

        Last commit and release were in 2009; website is down; it's a dead project.

        (From OE-Core rev: 36aae56e7f86a4d5ce93e4528e7dcc42f60c705e)

        Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
        Signed-off-by: Ross Burton <ross.burton@intel.com>
        Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

    Given that, it seems sensible to drop it from default inclusion across
    the BSPs.  I've left the feature itself, so anyone who still cares can
    easily manually add it still.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/3 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: x86-64: separate out the NUMA features to our existing NUMA scc/cfg
    Date: Thu, 30 Nov 2023 14:07:45 -0500

    A user reported getting NUMA warnings like the ones reported here:

    https://www.suse.com/support/kb/doc/?id=000021040

    "Fail to get numa node for CPU:0 bus:0 dev:0 fn:1"

    ...and repeated for every core on the platform.  Distracting.

    When I asked if it was a crazy big server system with multiple CPU
    sockets and localized RAM near each socket - the answer was "no".

    Turns out they didn't choose NUMA support - rather we did it for them.

    Yocto has been and still remains more "embedded leaning".  That is not
    to say we can't support NUMA.  We just shouldn't be enabling it by
    default in the base x86-64 config fragment that everyone uses.

    Move the two NUMA settings that were not in our existing numa.cfg
    feature out of the BSP and into the feature.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

3/3 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: x86-64: consolidate crypto options
    Date: Thu, 30 Nov 2023 14:07:44 -0500

    No functional change - just makes further reorganizations and
    refactoring more easy to review/parse.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: e8ffc63f3ed61cc31c3077741f3f96dae9baa3fb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:36 +00:00
Bruce Ashfield
eb54ef787d linux-yocto/6.6: enable squashfs for selftests
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Vyacheslav Yurkov
    Email: uvv.mail@gmail.com
    Subject: squashfs: Add initial support
    Date: Wed, 21 Feb 2024 07:15:31 +0100

    It's required at least in selftest to test read-only file systems.

    Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 5ec087fe143051c2b47aa4ee0ba0ad97dae39377)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:35 +00:00
Michael Halstead
f342b4c57b yocto-uninative: Update to 4.4 for glibc 2.39
(From OE-Core rev: 56fdd8b79e2f7ec30d2cdcfa0c399a6553efac1e)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:35 +00:00
Martin Jansa
bb4abe0e64 glib-2.0: backport a switch from distutils to packaging in codegen
* to fix build on hosts with python-3.12, now it fails with:

Traceback (most recent call last):
  File "recipe-sysroot-native/usr/bin/gdbus-codegen", line 53, in <module>
    from codegen import codegen_main
  File "recipe-sysroot-native/usr/share/glib-2.0/codegen/codegen_main.py", line 29, in <module>
    from . import dbustypes
  File "recipe-sysroot-native/usr/share/glib-2.0/codegen/dbustypes.py", line 22, in <module>
    from . import utils
  File "recipe-sysroot-native/usr/share/glib-2.0/codegen/utils.py", line 22, in <module>
    import distutils.version
ModuleNotFoundError: No module named 'distutils'
CMake Error at CMakeLists.txt:90 (message):
  Error in generating code for connman interface using gdbus-codegen

(From OE-Core rev: 258cb46f93af3249fb554a679af6222174bd2e95)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 14:31:35 +00:00
Adrian Freihofer
ea5a74cc67 oe-selftest devtool: ide-sdk tests
Improve the GDB related tests. Verify GDB finds the correct source
files.

(From OE-Core rev: 67eed460c0bf18d23f2c9180f195417895acfd55)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Adrian Freihofer
c82c57621b devtool: ide-sdk prefer sources from workspace
Improve the previous commit:
- log an error if some assumptions are not true
- Use TARGET_DBGSRC_DIR variable
- Do the same for ide none

Why the additional source mapping is required:

For example the cmake-example recipe refers to sources like this:
./recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-readelf \
  -wi image/usr/bin/cmake-example | grep -B1 DW_AT_comp_dir
    ...
    <560>   DW_AT_name        : (indirect line string, offset: 0x1da):
    /usr/src/debug/cmake-example/1.0/oe-local-files/cpp-example.cpp
    ...

Another example is powertop:
./recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-readelf \
  -wi image/usr/sbin/powertop | grep -B1 DW_AT_comp_dir
    ...
    <561>   DW_AT_name        : (indirect line string, offset: 0x1da):
    /usr/src/debug/powertop/2.15/src/devlist.cpp
    ...

For recipes with local files this works. The oe-local-files folder is
not available in the rootfs-dbg and therefore the sources are first
found in the workspace folder. GDB searches for source files in various
places:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Source-Path.html
However, for the powertop example the sources opened in the editor are
from the rootfs-dbg instead of from the workspace.

Bitbake calls the compiler with
  -fmacro-prefix-map=${S}=${TARGET_DBGSRC_DIR}
where TARGET_DBGSRC_DIR defaults to "/usr/src/debug/${PN}/${PV}".

A source map which maps the recipe specific path from TARGET_DBGSRC_DIR
to the workspace fixes this.
The already existing source map for /usr/src/debug applies for all other
recipes. It finds the sources (read only) in the rootfs-dbg folder.

(From OE-Core rev: 06601632c1879cb80276f9b36de91fb7808311a5)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Enguerrand de Ribaucourt
a5b75e29ff devtool: ide-sdk source mapping for vscode
When launching the debug configuration, the source files from the debug
rootfs were openened in the editor instead of the local workspace files.
We add an exception to properly map them to the file being developed and
compiled by the IDE integration. This also more closely matches what the
user would expect compared to native development.

This is also true for the devtool fallback mode.

(From OE-Core rev: 24db2b8d0d7104960c1cdb2c7ee5216c830a6754)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Adrian Freihofer
4c6f3bbc77 devtool: ide-sdk launch.json per recipe only
If multiple recipes are processed at once, the launch.json and the
tasks.json of the second recipe contains also the configurations for the
binaries of the first recipe.

Example:
  devtool ide-sdk powertop cmake-example oe-selftest-image
generated a launch and a tasks configuration for the cmake-example
recipe which also offers debugging the powertop binary.

(From OE-Core rev: 63986b2c40d90fe96cdc6a46aa649efcf17f6ac2)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:38:46 +00:00
Joshua Watt
be57fda542 bitbake: asyncrpc: Add support for server headers
Adds support for asyncrpc servers to send connection headers to clients
on connection. Since this is a breaking protocol change, clients must
opt-in to expect headers from the server, corresponding to a version
bump in the client protocol.

(Bitbake rev: 1cb2b8be6cc5269553f549285592e47b7d29db03)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:36:38 +00:00
Tim Orling
2841449527 bitbake: layerindexlib: fix missing layer branch backtrace
When a LayerBranch (a specific layer at a specific release) does not
exist in the layerindex database ("Layerindex Metadata"), the dependency
would throw a backtrace. Instead fail early and provide an error message.

Since layerindexlib will also check the local layers, inform the user that
a local checkout might resolve the situation. Recommend that they reach
out to the layer maintainers and layer index admins to properly fix it for
everyone.

While we are here, remove some trailing whitespace.

[YOCTO #15365]
[YOCTO #13954]

(Bitbake rev: 96cbe8f87209a927c157ebcf469f8b9d54fcf92e)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:36:38 +00:00
Enrico Jörns
54c27d84b6 wic: 'empty' plugin: fix typo in comment
(From OE-Core rev: 1a9013c3767d174a970d31e80748bc8d73af0dba)

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Xiaotian Wu
7b4d8e6b7f openssl: Match target name for loongarch64
This is updated in openssl [1] since opensssl 3.2.0-alpha1 onwards

[1] b625e21e67

(From OE-Core rev: 1e5b30d92da2e51e6a4ba75e2cc1e9ccebc8efe7)

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
5018d3a4b6 oeqa/utils/postactions: testimage: add host disk usage stat as post action
Since the target under test can be a virtualized guest, when some tests
fail because of disk usage (see [1]), also fetch disk usage statistics from
host to allow checking whether a host disk space saturation could affect
running tests.

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15220

(From OE-Core rev: 2ab3a0935b1e7a016402f149da1fc01b38d7af55)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
d4267a8dce oeqa/utils/postactions: add target disk usage stat as post action
In order to debug issues related to disk space (see [1]),  add a failed
tests post action to retrieve disk usage on the target. Rely on the test
context object to run the corresponding command onto the target

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15220

(From OE-Core rev: 637e216b0e5191571270aa07e1f50a6e41a8c08f)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
9a46657a25 oeqa/utils/postactions: isolate directory creation in dedicated action
In order to be able to create actions that could store new files during
failed test post actions, we need to split artifacts directory creation
from artifacts retrieval.

Create a new dedicated action to create artifacts main directory so we can
add actions creating files in this new directory, without worrying about
actions order if at least this action is set first.

(From OE-Core rev: 5d796586a9342f4f984494a5b493dbaf77af7026)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
3add7b301e testimage: create a list of failed test post actions
testimage is able to detect whenever a test run leads to some tests
failing, and execute some actions in this case. The only action currently
defined in such case is to retrieve artifacts from the target under test,
as listed in TESTIMAGE_FAILED_QA_ARTIFACTS

In order to be able to add multiple actions, define a central function to
gather all "post actions" to run whenever a test has failed
(run_failed_tests_post_actions). This function contains a table listing all
functions to be called whenever a test fails. Any function in this table
will be provided with bitbake internal data dictionary ("d") and the
current runtime testing context ("tc"). Isolate all this feature in a
dedicated postactions.py file inherited by testimage.
This patch does not bring any functional change.

(From OE-Core rev: c01aa8df0613a103859b4431d3cc5056b2fef1b8)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Alexis Lothoré
fec128bd62 lib/oeqa: share get_json_result_dir helper
Multiple places in oeqa need to get the log output path, and redefine a
small helper to accomplish this

Define this helper in lib/oeqa/utils/__init__.py and import it wherever
needed to allow using it.

(From OE-Core rev: 01b1a6a5a4e7cede4d23a981b5144ae9c8306274)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Xiaotian Wu
031099c417 loongarch64: change -march to loongarch64
Now both gcc and clang all support -march=loongarch64, so we can use it.

(From OE-Core rev: acc08582293709c73011083aa7d5c631a9ae8c8c)

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-27 11:35:43 +00:00
Michael Opdenacker
6b356b74d8 dev-manual: packages: need enough free space
Enough free storage space is needed to apply package upgrades.

(From yocto-docs rev: 6571eb02cbd5c2b96df0f279f25b63255ab7eac4)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Michael Opdenacker
ea5fa49bfc dev-manual: packages: clarify shared PR service constraint
Explicit the problems previous described as "obvious".

(From yocto-docs rev: ca939f9ceebbf9b5e82bb76abf1c4d20f039d68e)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Adrian Freihofer
1a2cf4c538 sdk-manual: extensible.rst: cover devtool ide-sdk
Cover the new devtool ide plugin in the extensible sdk section.

Many thanks to Enguerrand de Ribaucourt for his re-view and
contributions.

(From yocto-docs rev: d318cc41e0600ca8e18bc6789cac414ae0226a07)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Khem Raj
736ba6823d ref-manual: variables: remove PYTHON_PN
PYTHON_PN is on its way out, therefore it's good to remove it from
documentation so its use is not promoted anymore.

(From yocto-docs rev: 74180c0f6bcdeadbd6f9a69d26f733c716f420fd)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Lee Chee Yang
baa7f95aab migration-guide: add release notes for 4.3.3
(From yocto-docs rev: 89403af3fa49ecb00dfec04ac9c490b6dc031008)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:29 +00:00
Michael Opdenacker
025386d53c manuals: suppress excess use of "following" word
To simplify the style, replace "Following is" and "Following are"
by "here is" and "here are", sounding more natural.

In some cases, also go further by simplifying "Here are/is xxx"
by "xxx are/is" when the "are" or "is" are not two far at
the end of the sentence.

In some cases too, completely remove the sentence, when
it's redundant with the preceding title.

(From yocto-docs rev: 52ba6bb16c73cbc2c0e77496d5226c49bce786f5)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Michael Opdenacker
67efdd63c2 ref-manual: release-process: grammar fix
(From yocto-docs rev: e8a59c67a8719096f8b67942cec4f8a0656c410c)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Michael Opdenacker
8a3e233a37 ref-manual: system-requirements: update packages to build docs
- "git" is now required to run "set_versions.py"

- Fix Ubuntu / Debian packages.
  The previous instructions didn't run on Debian 12
  Tested on Ubuntu 22.04 and Debian 12.

  Reported on https://lists.yoctoproject.org/g/docs/message/4789

(From yocto-docs rev: cd0525f1a081567d5d8722d368511179655ca541)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: <mhagans@skyviewsat.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Simone Weiß
1f247f5451 dev-manual: Rephrase spdx creation
Make the options more clear by providing them in a list instead of plain prosa.
Also add a ref for a presentation wrt spdx 3.0 in the Yocto project.

Fixes [YOCTO 7476]

(From yocto-docs rev: a15e354f98607592a67d2df91dfa2bf0707d8f38)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:13:28 +00:00
Simone Weiß
296fdb6643 cve-check: Log if CVE_STATUS set but not reported for component
Log if the CVE_STATUS is set for a CVE, but the cve is not reported for a
component. This should hopefully help to clean up not needed CVE_STATUS
settings.

(From OE-Core rev: 013d531a84fa08b6ae8a47bdf3ba1fa8f18ba270)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
2bcd651a08 meta: Update CVE_STATUS for incorrect cpes
Set CVE_STATUS as none of the issues apply against the versions
used in the recipes.

(From OE-Core rev: cea8c8bf73e84133f566d1c2ca0637494f2d7afe)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
5e21c5d64e meta: Remove some not needed CVE_STATUS
CVE_STATUS was set for those components, but meanwhile databases are updated
with corrected information, so setting the CVE_STATUS is not needed anymore.

(From OE-Core rev: 5ec6057cfa66ceeb33bec013e320f8e3fa7d7ecf)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
e8ea8695e1 patchtest: Skip test for CVE_CHECK_IGNORE for older branches
Skip the test for checking if CVE_CHECK_IGNORE is not used.
It is deprecated now, but was not deprecated for kirkstone and dunfell.
Skip it therefore if a patch is intended for those branches.

(From OE-Core rev: e9b04664b1b2ba6aa1fa7318e3d4174b9cdb19da)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Simone Weiß
8a3f025b3a patchtest: provide further guidance for failed testcases
Cross-reference the wiki page on patchtest now that it is updated and contains
more information how to address failed testcases. Adding it in patchtest only
is enough as patchtest-send-result already points to the wikipage for failures.

(From OE-Core rev: 51267f3c5d647fc6483ce6b597ed9e25c14bd425)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Munehisa Kamata
79191f8590 kernel.bbclass: Set pkg-config variables for building modules
The pkg-config workaround has been applied for kernel image building, but
not for module building. So pkg-config variables are different between
do_compile and do_compile_kernelmodules tasks. It may unnecessary trigger
rebuilding of a few host tools at the later task.

Especially when CONFIG_DEBUG_INFO_BTF is enabled in the kernel, it may even
trigger rebuilding vmlinux at do_compile_kernelmodules due to the rebuilt
host tools such as certs/extract-cert or objtool (on x86). This eventually
creates an inconsistent set of kernel binaries.

Here is the repro steps:

 - Check out nanbield on x86
   - The unexpected rebuild happens on kirkstone or possibly earlier

 - Ensure that pahole is available (e.g. via meta-oe)

 - Set KERNEL_DEBUG to "True" to properly set up PAHOLE
   e.g.
   $ export KERNEL_DEBUG="True"
   $ export BB_ENV_PASSTHROUGH_ADDITIONS="${BB_ENV_PASSTHROUGH_ADDITIONS} KERNEL_DEBUG"

 - Enable CONFIG_DEBUG_INFO_BTF=y
   e.g.
   $ bitbake -c menuconfig virtual/kernel
    -> Kernel hacking
      -> Compile-time checks and compiler options
        -> Generate BTF typeinfo

 - Build the kernel
   e.g.
   $ bitbake virtual/kernel

The BTF information in the resulting bzImage and kernel modules are
inconsistent, because the module's BTF information is generated using the
"second" vmlinux that doesn't have the identical BTF to the "first" vmlinux.
These modules can't be loaded at runtime due to the BTF mismatch.

This also leads to a build-id mismatch between the installed bzImage and
vmlinux since the bzImage is created from the first vmlinux, but the
installed vmlinux is the second one.

  $ eu-readelf -n tmp/work/qemux86_64-poky-linux/linux-yocto/6.5.13+git/image/boot/{bzImage*,vmlinux*} | grep "Build ID"
   Build ID: 4a0d62ee7fef0244950f0f604253729875bea493
   Build ID: fb99b3d91399dbe42bf67ddee59e0f5a0c7f74d9

To avoid the unexpected rebuilding that results in such inconsistency, set
the same pkg-config variables when building kernel and modules. For kernel
5.19 and above, simply set the HOSTPKG_CONFIG in the make command line.

(From OE-Core rev: cd2072e5d953af981339427028e19083257e6a92)

Signed-off-by: Munehisa Kamata <kamatam@amazon.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Jose Quaresma
47c5f1f1c5 go: update 1.20.13 -> 1.20.14
Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.13..go1.20.14
90a870f1dc (tag: go1.20.14, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.14
a2f4a5a6e7 [release-branch.go1.20] Revert "crypto/internal/boring: upgrade module to fips-20220613" +1
746a072791 [release-branch.go1.20] crypto/x509: properly gate test on macos version
d7df7f4fa0 [release-branch.go1.20] runtime: properly model rwmutex in lock ranking

$ git log --oneline go1.20.13..go1.20.14

[1] https://github.com/golang/go/compare/go1.20.13...go1.20.14

(From OE-Core rev: 44f81b6239f0f08877ccd6507c2a81f3650f193b)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Adrian Freihofer
4e3b6c24d5 devtool: ide-sdk python 3.12 escaping
scripts/lib/devtool/ide_sdk.py:709: SyntaxWarning: invalid escape sequence '\.'
  re_so = re.compile('.*\.so[.0-9]*$')

scripts/lib/devtool/ide_plugins/__init__.py:87: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "test -f \$TEMP_DIR/pid && exit 0; "

scripts/lib/devtool/ide_plugins/__init__.py:88: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "mkdir -p \$TEMP_DIR; "

scripts/lib/devtool/ide_plugins/__init__.py:89: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "%s --multi :%s > \$TEMP_DIR/log 2>&1 & " % (

scripts/lib/devtool/ide_plugins/__init__.py:91: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_start += "echo \$! > \$TEMP_DIR/pid;"

scripts/lib/devtool/ide_plugins/__init__.py:94: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_stop += "test -f \$TEMP_DIR/pid && kill \$(cat \$TEMP_DIR/pid); "

scripts/lib/devtool/ide_plugins/__init__.py:95: SyntaxWarning: invalid escape sequence '\$'
  gdbserver_cmd_stop += "rm -rf \$TEMP_DIR; "

(From OE-Core rev: e8c64921de7206bf617fc42433286867ae3c931d)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Emil Kronborg
5569259122 bluez5: remove configuration files from install task
Since be0e796299b0 ("build: ship all config files with
--enable-datafiles") in bluez, installing input.conf and network.conf
has been redundant, as the bluez5 recipe already includes
--enable-datafiles.

(From OE-Core rev: 49391fdcf71b32c5fd3c7b134c1d1c45cc1db388)

Signed-off-by: Emil Kronborg <emil.kronborg@protonmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Soumya Sambu
9efcdbc0ae bind: Upgrade 9.18.21 -> 9.18.24
Changelog:
=========
9.18.24:
	- Fix case insensitive setting for isc_ht hashtable.
	[GL #4568]

9.18.23:
	- Specific DNS answers could cause a denial-of-service
	condition due to DNS validation taking a long time.
	(CVE-2023-50387) [GL #4424]
	- Change 6315 inadvertently introduced regressions that
	could cause named to crash. [GL #4234]
	- Under some circumstances, the DoT code in client
	mode could process more than one message at a time when
	that was not expected. That has been fixed. [GL #4487]

9.18.22:
	- Limit isc_task_send() overhead for RBTDB tree pruning.
	[GL #4383]
	- Restore DNS64 state when handling a serve-stale timeout.
	(CVE-2023-5679) [GL #4334]
	- Specific queries could trigger an assertion check with
	nxdomain-redirect enabled. (CVE-2023-5517) [GL #4281]
	- Speed up parsing of DNS messages with many different
	names. (CVE-2023-4408) [GL #4234]
	- Address race conditions in dns_tsigkey_find().
	[GL #4182]
	- Conversion from NSEC3 signed to NSEC signed could
	temporarily put the zone into a state where it was
	treated as unsigned until the NSEC chain was built.
	Additionally conversion from one set of NSEC3 parameters
	to another could also temporarily put the zone into a
	state where it was treated as unsigned until the new
	NSEC3 chain was built. [GL #1794] [GL #4495]
	- Memory leak in zone.c:sign_zone. When named signed a
	zone it could leak dst_keys due to a misplaced
	'continue'. [GL #4488]
	- Log more details about the cause of "not exact" errors.
	[GL #4500]
	- The wrong time was being used to determine what RRSIGs
	where to be generated when dnssec-policy was in use.
	[GL #4494]
	- The "trust-anchor-telemetry" statement is no longer
	marked as experimental. This silences a relevant log
	message that was emitted even when the feature was
	explicitly disabled. [GL #4497]
	- Fix statistics export to use full 64 bit signed numbers
	instead of truncating values to unsigned 32 bits.
	[GL #4467]
	- NetBSD has added 'hmac' to libc which collides with our
	use of 'hmac'. [GL #4478]

(From OE-Core rev: d7f31aba343948dbaadafc8c0c66f78e6ffb46e3)

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Trevor Woerner
ee014ca524 wic: allow imager-specific filename extensions
Currently there is only one defined imager as part of oe-core's wic
implementation: 'direct'. However, having a highly plugin-based design,
wic allows users to define their own imagers (and sources).

Therefore don't hard-code the filename extension of the imager output to
be 'direct' (i.e. the default imager). Allow the extension to follow the
name of the imager being used.

A user can specify a custom imager via the WIC_CREATE_EXTRA_ARGS variable.
If the user does not specify an imager, then 'direct' is assumed.

(From OE-Core rev: dc5a7c76761ed47e0456228956de900d806063bb)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:23 +00:00
Jonathan GUILLOT
a75218da7a glibc-locale: add an explicit dedicated package for locale.alias file
Until now, ${datadir}/locale/locale.alias file were automatically added
to a weird glibc-locale-locale.alias package by split_locales() during
do_package task.
Create an explicit package name in recipe for this file.

(From OE-Core rev: 405c5b6f04b531c968d0f8348c2dafe363011898)

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:22 +00:00
Jonathan GUILLOT
ca25926d07 lib/oe/package: fix LOCALE_PATHS scan to create locale packages
split_locales() must only check subdirectories in paths added to
LOCALE_PATHS to avoid creating weird packages based on filenames also
present in paths.

Without such a filter, cups recipe adding ${datadir}/cups/templates to
LOCALE_PATHS creates the following incorrect packages:
- cups-locale-add-class.tmpl
- cups-locale-add-printer.tmpl
- cups-locale-admin.tmpl

(From OE-Core rev: ba3aee0d516bd066829d6edaa8d7bacdd75dd6ef)

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:22 +00:00
Eilís 'pidge' Ní Fhlannagáin
396bc832b7 selftest-users: Convoluted selftest for USERADD_DEPENDS
This adds a test for 13904's fix by creating a convoluted set of recipes
with USERADD_DEPENDS in non-alpha order.

(From OE-Core rev: bfff81195cb9ba2493e366022470b2e0051d8071)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:22 +00:00
Piotr Łobacz
f6daeba2e9 useradd.bbclass: Fix order of postinst-useradd-*
postinst-useradd-* haven't been running in order of dependency.

This patch is reworked from Piotr Łobacz's patch and fixes:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=15084
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13904

basepasswd_sysroot_postinst in base-passwd can install postinst-useradd-*
scripts with any order. Sometimes this means, for example a useradd postinst
will attempt to run without the corresponding group postinst causing errors.
This patch ensures that we first run groupadd, then useradd and then
group membership.

[RP: Tweaked to avoid removing previous fixes and for whitespace/style issues
     Also ensure the scripts are changed to execute with -e to highlight errors]

(From OE-Core rev: 322ef726132a47d977d2c6ee41de5358f1e85994)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Piotr Łobacz <p.lobacz@welotec.com>
Signed-off-by: Jan Górski <j.gorski@welotec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24 16:10:22 +00:00
Philip Lorenz
0e3bcc5103 bitbake: fetch2: Ensure that git LFS objects are available
The current implementation only performs a git lfs fetch alongside of a
regular git fetch. This causes issues when the downloaded revision is
already part of the fetched repository (e.g. because of moving back in
history or the updated revision already being part of the repository at
the time of the initial clone).

Fix this by explicitly checking whether the required LFS objects are
available in the downloade directory before confirming that a downloaded
repository is up-to-date.

This issue previously went unnoticed as git lfs would silently fetch the
missing objects during the `unpack` task. With network isolation turned
on, this no longer works, and unpacking fails.

(Bitbake rev: cfae1556bf671acec119a6c8bbc4b667a856b9ae)

Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:34:05 +00:00
Enguerrand de Ribaucourt
fff242b5d2 bitbake: bitbake: progressbar: accept value over initial maxval
There is a very rare case where the maxval is improperly computed
initially for cache loading progress, and the value will go over.

Explanation from bitbake/lib/bb/cache.py:736 in MulticonfigCache:__init__:progress()
    # we might have calculated incorrect total size because a file
    # might've been written out just after we checked its size

In that case, progressbar will receive a value over the initial maxval.
This results in a ValueError stack trace as well as bitbake returning 1.
    Traceback (most recent call last):
    File ".../poky/bitbake/lib/bb/ui/knotty.py", line 736, in main
        cacheprogress.update(event.current)
    File ".../poky/bitbake/lib/progressbar/progressbar.py", line 256, in update
        raise ValueError('Value out of range')
    ValueError: Value out of range

This fix mirrors the behavior of MulticonfigCache and accepts the new
value as the new maxval. This is also what the percentage printout
is doing in bitbake/lib/progressbar/progressbar.py:191 in ProgressBar:percentage()

I encountered this issue randomly while working on a project with
VSCode saving files while commands where fired.

Note: This file is a fork from python-progressbar. It hasn't been
refreshed in 8 years. We did only two commits, 5 years ago with minor
modifications. This new change is also not how the upstream project is
behaving.

(Bitbake rev: 7cea7f7a87da041fc1ad370c5c3d15aabad3a0d4)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:34:05 +00:00
Richard Purdie
08aa69a1fd bitbake: runqueue: Add support for BB_LOADFACTOR_MAX
Some ditros don't enable /proc/pressure and it tends to be those which we
see bitbake timeout issues on, seemingly as load gets too high and the bitbake
processes don't get scheduled in for minutes at a time.

Add support for stopping running extra tasks if the system load average goes
above a certain threshold by setting BB_LOADFACTOR_MAX.

The value used is scaled by CPU number, so a value of 1 would be when
the load average equals the number of cpu cores of the system, under one
only starts tasks when the load average is below the number of cores.

This means you can centrally set a value such as 1.5 which will then
scale correctly to different sized machines with differing numbers
of CPUs.

The pressure regulation is probably more accurate and responsive, however
our graphs do show singificant load spikes on some workers and this
patch is aimed at trying to avoid those.

Pressure regulation is used where available in preference to this load
factor regulation when both are set.

(Bitbake rev: 14a27306f6dceb4999c2804ccae5a09cc3d8dd49)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:34:05 +00:00
Tobias Hagelborn
42242fb9ef bitbake: hashserv: Re-enable connection pooling with psycopg 3 driver
Re-enable connection pooling in case `postgresql+psygopg` driver
is used. Async connection pooling is supported in psycopg 3 [psycopg]
driver in SQLAlchemy. Allow the connection pool to grow to
arbitrary size.

(Bitbake rev: 4fe05513b5314c201725e3f8ad54f58d70c56258)

Signed-off-by: Tobias Hagelborn <tobiasha@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:34:05 +00:00
Ross Burton
a226865c86 base-files: add usage warning to motd
The Poky distro is explicitly a _reference_ distribution for _testing_
and _development_ purposes.  It enables most hardware and software
features so that they can be tested, but this also means that
from a security point of view the attack surface is very large.

We encourage anyone using OpenEmbedded for production use to create their
own distribution and not use Poky.  To encourage this behaviour further,
add a warning to /etc/motd when Poky is used so the developer will see it
when they log in.

(From meta-yocto rev: 2e0cec1e9d97f78ba015da8812fd1888c47debcb)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:31:30 +00:00
Richard Purdie
4dba026177 recipetool: Fix errors with meta-poky bbappend
When a new base-files bbappend was added to meta-poky, it causes selftest
failures. Whilst this isn't ideal, workaround that issue for now since
the append is being added for security visibility and changing the tests
to support this more generically looks invasive.

(From OE-Core rev: 7cf85204f0943bf741ffce5c4105340197c714df)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:31:30 +00:00
Eilís 'pidge' Ní Fhlannagáin
6913454ffa creategroup*: Remove coreutils-native as a DEPENDS
There isn't any reason for coreutils-native as a DEPENDS, so
remove it to speed up tests.

(From OE-Core rev: 1aa91868094e8d4e3991cd3faebc17fdf6931907)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:29:03 +00:00
Enguerrand de Ribaucourt
211c303461 Revert "meson: use absolute cross-compiler paths"
This reverts commit fc8e5d7c13.

We need to use the absolute path to the compiler so that the VSCode
configuration generated by devtool ide-sdk could lint meson projects.

A feature was just added to vscode-cpptools to support conveying the
compilerPath in addition to the compile_commands.json. The next
commits adds the necessary configuration. We can revert this one and
keep the meson paths as they were.

(From OE-Core rev: 9c2faa835bd7af3e6f6bd7cc08495bd4b3ca9d0b)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:29:03 +00:00
Enguerrand de Ribaucourt
e2f8ed72dd devtool: ide: define compilerPath for meson projects
The compile_commands.json file output by meson uses the compiler as if
present in the $PATH. However, when using an IDE, the $PATH used by
bitbake is not there.

The vscode-cpptools now allows to define the compilerPath in addition
to replace the one from compile_commands.json.

(From OE-Core rev: d9f5c27c8beee07c7cbbed11f5d45058e7315846)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:29:03 +00:00
Khem Raj
82312b2fc1 linux-yocto: Remove unused patch
This patch remained after bumping from 6.1 to 6.6

(From OE-Core rev: 3083c9cc3c117b6284fee6926da2200cef509e6f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:29:03 +00:00
Richard Purdie
c59d570024 oeqa/selftest/rust: Simplify the rust testsuite output gathering/processing
The rust testsuite was redirecting command output to a file, which made it
hard to debug failure cases since the logs were not available to print to
the console.

Rework the code so it uses the existing popen logging and hence allows us
to improve the error logging situation and make debugging failures easier.

(From OE-Core rev: ac82dc43b8151ed34c4ad51e9ab7f4a612990486)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-23 14:29:03 +00:00
Xiangyu Chen
e31be0b0e6 systemd-systemctl: fix dead loop when multi services enable each other
libvirt has added a feature that all sockets for a service being enabled when a single
one of them is enabled since 9.9.x[1], it likes serviceA enable serviceB, serviceB enable
serviceA, that cause our systemctl script trap into a dead loop in postinstall stage,
the error message as below:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 722, in __str__
    return self._str
AttributeError: _str

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "recipe-sysroot-native/usr/bin/systemctl", line 255, in enable
    SystemdUnit(self.root, also).enable(unit)
  File "recipe-sysroot-native/usr/bin/systemctl", line 255, in enable
    SystemdUnit(self.root, also).enable(unit)
  File "recipe-sysroot-native/usr/bin/systemctl", line 255, in enable
    SystemdUnit(self.root, also).enable(unit)
  [Previous line repeated 988 more times]
......
RecursionError: maximum recursion depth exceeded while calling a Python object

Here using an array to record the services which has been enabled to filter the duplicates.

Ref:
[1] 826931e95a

(From OE-Core rev: 4c45f975310184a773b25b8e7d7ef50fba2f7bd6)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Khem Raj
8112d61720 ncurses: Always pass -D_GNU_SOURCE
So far it was assumed that it was detected ok for target recipe but
actually it ends up with warnings and build moves on, however with
gcc-14 these warnings are treated as errors and we see the problem even
with target recipes.

(From OE-Core rev: da381fb3d9dcd0e66bc3b48bdfde95cd29f0c654)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Joe Slater
c2e742e2be qemuboot: predictable network interface names
Allow interface renaming if 'pni-names' is a distro
feature.

We do not add QB_NO_PNI to QB_CMDLINE_IP_SLIRP because
renaming was never suppressed for slirp.

(From OE-Core rev: d8d92ad46273a4e305f690f2820a475e4d7f6701)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Alexander Kanavin
82ef31b255 dbus: disable assertions and enable only modular tests
There was a report that enabling assertions and all tests results in
notices in log.do_configure:

NOTE: building with unit tests increases the size of the installed library and renders it insecure.
NOTE: building with assertions increases library size and decreases performance.

This was overlooked when dbus and dbus-tests recipes were merged;
enabling all tests and assertions still requires a special, separate
build of dbus. If those tests are useful this could be revisited.
Until then, we should use productions settings for the main recipe.

Buildhistory-diff:
packages/core2-64-poky-linux/dbus/dbus-dbg: PKGSIZE changed from 9958176 to 8627824 (-13%)
packages/core2-64-poky-linux/dbus/dbus-lib: PKGSIZE changed from 544347 to 346339 (-36%)
packages/core2-64-poky-linux/dbus/dbus-ptest: PKGSIZE changed from 3524983 to 3116951 (-12%)
packages/core2-64-poky-linux/dbus/dbus-ptest: FILELIST: removed "/usr/share/installed-tests/dbus/test-dbus-launch-eval.sh_with_config.test /usr/share/installed-tests/dbus/test-counter_with_config.test /usr/libexec/installed-tests/dbus/test-dbus-launch-eval.sh /usr/libexec/installed-tests/dbus/test-dbus-launch-x11.sh /usr/share/installed-tests/dbus/test-counter.test /usr/libexec/installed-tests/dbus/test-counter /usr/share/installed-tests/dbus/test-dbus-launch-x11.sh.test /usr/share/installed-tests/dbus/test-dbus-launch-x11.sh_with_config.test /usr/share/installed-tests/dbus/test-dbus-launch-eval.sh.test"
packages/core2-64-poky-linux/dbus/dbus: PKGSIZE changed from 510939 to 350331 (-31%)

(From OE-Core rev: 054ce01ae84eb10e055a41ec8dd85ebce9ea23c8)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Bruce Ashfield
6ed6db154e 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 9Feb24
        Date: Fri, 9 Feb 2024 18:02:45 -0500

    ]

(From OE-Core rev: ed23f800e84e04badfe88b062a16a8b0f51d5aee)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Bruce Ashfield
f097775704 linux-yocto/6.6: update to v6.6.17
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    b2c9bf06474e Linux 6.6.17
    b734f7a47aeb netfilter: nft_set_rbtree: skip end interval element from gc
    d850a1f8dbbe net: stmmac: xgmac: fix a typo of register name in DPP safety handling
    2fbdc116640f ALSA: usb-audio: Sort quirk table entries
    460951a8e502 net: stmmac: xgmac: use #define for string constants
    22ccf61c336e io_uring/net: limit inline multishot retries
    7cbd3aa59db5 io_uring/poll: add requeue return code from poll multishot handling
    eac52bfe2333 io_uring/net: un-indent mshot retry path in io_recv_finish()
    0848bf7e539a io_uring/poll: move poll execution helpers higher up
    0ceb7a9230d6 io_uring/net: fix sr->len for IORING_OP_RECV with MSG_WAITALL and buffers
    7a62d444a252 media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c)
    d41ba25cb8b6 Revert "ASoC: amd: Add new dmi entries for acp5x platform"
    ac589a37bc0c Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID
    38d4dfeb0a8d Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU
    4abccba26f63 hrtimer: Report offline hrtimer enqueue
    f0b1398669a3 usb: dwc3: pci: add support for the Intel Arrow Lake-H
    f5e7ffa9269a xhci: handle isoc Babble and Buffer Overrun events properly
    b5595a07ce1b xhci: process isoc TD properly when there was a transaction error mid TD.
    a78f36f39a76 usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
    b3e8e687d2db usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK
    2aed1b6c33af x86/lib: Revert to _ASM_EXTABLE_UA() for {get,put}_user() fixups
    7add0db9543e Revert "usb: typec: tcpm: fix cc role at port reset"
    2d744a0cf852 USB: serial: cp210x: add ID for IMST iM871A-USB
    4d53c5124b82 USB: serial: option: add Fibocom FM101-GL variant
    1f2c1cf43e88 USB: serial: qcserial: add new usb-id for Dell Wireless DW5826e
    dbeb9bf62c95 ALSA: usb-audio: add quirk for RODE NT-USB+
    49ab71ba24b3 ALSA: usb-audio: Add a quirk for Yamaha YIT-W12TX transmitter
    790053c73394 ALSA: usb-audio: Add delay quirk for MOTU M Series 2nd revision
    27b216130e64 blk-iocost: Fix an UBSAN shift-out-of-bounds warning
    89b00dc3d6bb riscv: declare overflow_stack as exported from traps.c
    bc401f796061 riscv: Fix arch_hugetlb_migration_supported() for NAPOT
    da9c33a70f09 libceph: just wait for more data to be available on the socket
    90731f99f8c1 libceph: rename read_sparse_msg_*() to read_partial_sparse_msg_*()
    f4b69db0efca riscv: Flush the tlb when a page directory is freed
    aceb4ab9689b scsi: core: Move scsi_host_busy() out of host lock if it is for per-command
    d0d1f9a9b937 riscv: Fix hugetlb_mask_last_page() when NAPOT is enabled
    21dba4e4f071 riscv: Fix set_huge_pte_at() for NAPOT mapping
    d37708448b13 riscv: mm: execute local TLB flush after populating vmemmap
    c4a05cf0ed78 mm: Introduce flush_cache_vmap_early()
    9bf829def8cf riscv: Improve flush_tlb_kernel_range()
    53a38f8f75ec riscv: Make __flush_tlb_range() loop over pte instead of flushing the whole tlb
    72afe05d6265 riscv: Improve tlb_flush()
    fb7bcd1722bc fs/ntfs3: Fix an NULL dereference bug
    bab2fb9d6b67 netfilter: nft_set_pipapo: remove scratch_aligned pointer
    9af9079ca1fd netfilter: nft_set_pipapo: add helper to release pcpu scratch area
    e96795240aec netfilter: nft_set_pipapo: store index in scratch maps
    28c5407cd2e4 netfilter: nft_ct: reject direction for ct id
    cd9bd10c59e3 drm/amd/display: Implement bounds check for stream encoder creation in DCN301
    3f3c237a7065 drm/amd/display: Add NULL test for 'timing generator' in 'dcn21_set_pipe()'
    2e150ccea131 drm/amd/display: Fix 'panel_cntl' could be null in 'dcn21_set_backlight_level()'
    a600c1ebc464 netfilter: nft_compat: restrict match/target protocol to u16
    b3f2e143eb30 netfilter: nft_compat: reject unused compat flag
    6a64b8293506 netfilter: nft_compat: narrow down revision to unsigned 8-bits
    84bfcb7774b6 selftests: cmsg_ipv6: repeat the exact packet
    7e5ef4967076 ppp_async: limit MRU to 64K
    b74aa9ce13d0 af_unix: Call kfree_skb() for dead unix_(sk)->oob_skb in GC.
    888e3524be87 tipc: Check the bearer type before calling tipc_udp_nl_bearer_add()
    94cac7da5889 selftests: net: let big_tcp test cope with slow env
    024b25117511 rxrpc: Fix counting of new acks and nacks
    2868b8e45a89 rxrpc: Fix response to PING RESPONSE ACKs to a dead call
    200cb50b9e15 rxrpc: Fix delayed ACKs to not set the reference serial number
    2c9dc472e66f rxrpc: Fix generation of serial numbers to skip zero
    41d5340cb01e drm/i915/gvt: Fix uninitialized variable in handle_mmio()
    4a5e31bdd3c1 inet: read sk->sk_family once in inet_recv_error()
    2109eb2d6aaa hwmon: (coretemp) Fix bogus core_id to attr name mapping
    853a6503c586 hwmon: (coretemp) Fix out-of-bounds memory access
    c9b0d253f1ab hwmon: (aspeed-pwm-tacho) mutex for tach reading
    76ce07eb215d octeontx2-pf: Fix a memleak otx2_sq_init
    f9d5410d8f1b atm: idt77252: fix a memleak in open_card_ubr0
    510c869ffa40 tunnels: fix out of bounds access when building IPv6 PMTU error
    10db3a7e54e2 tsnep: Fix mapping for zero copy XDP_TX action
    9ecd0d78ead2 selftests: net: avoid just another constant wait
    4bd05772c7dc selftests: net: fix tcp listener handling in pmtu.sh
    1000bd0afca1 selftests/net: change shebang to bash to support "source"
    9cf2d6d71bee selftests/net: convert pmtu.sh to run it in unique namespace
    7be281a41111 selftests/net: convert unicast_extensions.sh to run it in unique namespace
    104ab0e82134 selftests: net: cut more slack for gro fwd tests.
    004fe5b7f592 net: atlantic: Fix DMA mapping for PTP hwts ring
    6eecddd9c3c8 netdevsim: avoid potential loop in nsim_dev_trap_report_work()
    4571767d66d6 wifi: brcmfmac: Adjust n_channels usage for __counted_by
    3da5fdb61ae9 wifi: iwlwifi: exit eSR only after the FW does
    733031cd485c wifi: mac80211: fix waiting for beacons logic
    fc3432ae8232 wifi: mac80211: fix RCU use in TDLS fast-xmit
    7e0ff50131e9 net: stmmac: xgmac: fix handling of DPP safety error for DMA channels
    0e7ca435c574 x86/efistub: Avoid placing the kernel below LOAD_PHYSICAL_ADDR
    c756fd5d460b x86/efistub: Give up if memory attribute protocol returns an error
    79592a6e7bdc drm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup
    1449c75720e8 drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case
    1506145c2cd5 drm/msms/dp: fixed link clock divider bits be over written in BPC unknown case
    05955a703b75 xfs: respect the stable writes flag on the RT device
    d7d5ed65364c xfs: clean up FS_XFLAG_REALTIME handling in xfs_ioctl_setattr_xflags
    3581868f51a2 xfs: dquot recovery does not validate the recovered dquot
    d744e578802a xfs: clean up dqblk extraction
    b28b234276a8 xfs: inode recovery does not validate the recovered inode
    5411625f8dde xfs: fix again select in kconfig XFS_ONLINE_SCRUB_STATS
    0838177b012b xfs: fix internal error from AGFL exhaustion
    c86562e6918a xfs: up(ic_sema) if flushing data device fails
    767a94d81616 xfs: only remap the written blocks in xfs_reflink_end_cow_extent
    005be6684225 xfs: abort intent items when recovery intents fail
    23f3d79fc983 xfs: factor out xfs_defer_pending_abort
    d7d84772c3f0 xfs: allow read IO and FICLONE to run concurrently
    d4eba134c509 xfs: handle nimaps=0 from xfs_bmapi_write in xfs_alloc_file_space
    47b07e51d0c2 xfs: introduce protection for drop nlink
    0fbbfe5fbfbe xfs: make sure maxlen is still congruent with prod when rounding down
    e3aca4536b6b xfs: fix units conversion error in xfs_bmap_del_extent_delay
    fe327b8234d4 xfs: rt stubs should return negative errnos when rt disabled
    6a6bb41b31df xfs: prevent rt growfs when quota is enabled
    e820b13ba866 xfs: hoist freeing of rt data fork extent mappings
    195f22386e19 xfs: bump max fsgeom struct version
    c778631b4abc MAINTAINERS: add Catherine as xfs maintainer for 6.6.y
    73596f5ab35f rust: upgrade to Rust 1.73.0
    aacae44644fb rust: print: use explicit link in documentation
    e8e7a528220a rust: task: remove redundant explicit link
    9b33bb254d1b rust: upgrade to Rust 1.72.1
    31a254f6920a rust: arc: add explicit `drop()` around `Box::from_raw()`
    cff97d683a08 cifs: failure to add channel on iface should bump up weight
    fb708025b1f1 cifs: avoid redundant calls to disable multichannel
    14ef61594a5a phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP
    9851389b1c39 dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV
    f7799ecf30be perf evlist: Fix evlist__new_default() for > 1 core PMU
    6f67140cf7e1 phy: renesas: rcar-gen3-usb2: Fix returning wrong error code
    5cd8a51517ce dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA
    df6a1dc71c1d dmaengine: fsl-qdma: Fix a memory leak related to the status queue DMA
    43ad9840c123 dmaengine: ti: k3-udma: Report short packet errors
    f24ba6f9f741 dmaengine: fsl-dpaa2-qdma: Fix the size of dma pools
    ea42d6cffb0d ext4: regenerate buddy after block freeing failed if under fc replay

(From OE-Core rev: ee0d0c43b3e682dfe4c3e75e395b042dda9793a1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Alexis Lothoré
0f216dd0fa testimage: log exception when failing to retrieve artifacts
Despite managing to retrieve the failed ptests artifacts, testimage seems
to dump some retrieval errors like the following one:

WARNING: core-image-ptest-valgrind-1.0-r0 do_testimage: Can not retrieve
/usr/lib/valgrind/ptest from test target

Log the corresponding exception to help analyzing such issue

(From OE-Core rev: 12873e5b1620414a76e4a0e87cc2c806a0513cfe)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Richard Purdie
6f4ca08aa3 lttng-ust: Upgrade 2.13.6 -> 2.13.7
Update one of the patches to account for upstream changes.

(From OE-Core rev: e0ec2f9358be0e8b5979e534ae3a266b138cc172)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Richard Purdie
dd52201fd3 numactl: Upgrade 2.0.17 -> 2.0.18
(From OE-Core rev: 6e59ddccd728b50aa0503cd262dcefde25946ae4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Christoph Vogtländer
48f2d03183 overlayfs: add missing vardeps
Fixes [YOCTO #15120]

Consider OVERLAYFS_WRITABLE_PATHS as dependecy of do_create_overlayfs_units() in
order to rebuild the recipe when changing the used mount point.

Tested in a local recipe by changing the used mount point and verified that the
recipe was re-build: passed

(From OE-Core rev: 65423847ac843682d4670d41a94d509f18ce8735)

Signed-off-by: Christoph Vogtländer <christoph.vogtlaender@loewensteinmedical.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
Enguerrand de Ribaucourt
fc8e5d7c13 meson: use absolute cross-compiler paths
Among the files generated by meson is compile_commands.json. It is not
used by bitbake during the build. However, if the devtool workspace is
opened inside an IDE, that IDE can use compile_commands.json to
configure linting and code completion. This is notably relied on by the
new devtool ide-sdk command.

The problem is that the IDE using compile_commands.json does not know
the $PATH set-up by bitbake, so it won't find the compiler. This results
in linting errors, like missing headers. We can fix this by expliciting
the absolute compiler paths in meson.cross.

The compile_commands.json specification expressly states:
"All paths specified in the command or file fields must be either
absolute or relative to this directory."
Link: https://clang.llvm.org/docs/JSONCompilationDatabase.html

An alternative way to implement this is to directly change CXX inside
bitbake.conf to make all recipes use absolute compiler paths.Since this
would affect all recipes, so I would like to have the maintainers'
opinion on this. It could make sense to use absolute compiler paths for
all toolchain binaries, we already do so for the sysroot
TOOLCHAIN_OPTIONS.

Discussions have been opened with meson/ninja maintainers to implement
this at their level:
 - https://github.com/ninja-build/ninja/issues/2383
 - https://github.com/mesonbuild/meson/issues/12834
These tools have even less information on the environment so it makes
sense for Yocto to provide the absolute paths.

(From OE-Core rev: b4e00248049c2627b05eafa9313a48cf253623fa)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 12:58:41 +00:00
Enguerrand de Ribaucourt
c0d340c52e devtool: ide: vscode: Configure read-only files
When debugging or browsing files, the user may fall into external
sources from other packages in the sysroot or dbg-rootfs. Modifying them
will only lead to confusion since they will be overwritten by Yocto. The
user should open them in a separate devtool modify session if they want
to make changes. Meanwhile, we should prevent write access to them.

(From OE-Core rev: 8a95ad9aecb81732c865e00a987bb8bd3d6cb91d)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 12:58:41 +00:00
Enguerrand de Ribaucourt
8e84fbba72 devtool: ide_sdk: Use bitbake's python3 for generated scripts
The generated scripts use the sys.path configuration found inside
bitbake. It can be a different python version than the one used on the
host through the IDE.

For instance, when running the generated script
deploy_target_cmake-example-core2-64 from an eSDK generated on another
machine, I got the following exception:
    AssertionError: SRE module mismatch

We need to match the sys.executable to the sys.path.

(From OE-Core rev: 45704319661570b45ef69fddd6b4b4fa22ca80d1)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 12:58:41 +00:00
Alexander Kanavin
730bd999d6 bitbake: Revert "bitbake: wget.py: always use the custom user agent"
This reverts commit 987ab2a446.

There's been a report that this breaks downloads from Jfrog Artifactory
as self.user_agent is set to 'Mozilla Firefox', and when Artifactory
sees that, it sends a response tailored for showing in an interactive browser
(which in my opinion it has every right to).

If we're using wget, we should say so via wget's default; handling uncooperative
servers should be done on per-recipe basis, and ideally with tickets
to admins of those servers.

(Bitbake rev: feef5cd12e877f42ffcace168d44b0e6eb80a907)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 12:56:40 +00:00
Xiangyu Chen
468e550692 bash: rebase the patch to fix ptest failure
This fix commit oe-core: 1b69769b -- bash: changes to SIGINT handler while waiting for a child

Due to the patch adjust and drop some codes to be applicable the tree,
the line number has been changed, that cause test case "run-type" fail.

(From OE-Core rev: ecb698ca5b4f76937dd3bee927465b17866d50be)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Yi Zhao
fb69758164 libsdl2: upgrade 2.28.5 -> 2.30.0
License-Update: Copyright year updated to 2024.

ChangeLog (https://github.com/libsdl-org/SDL/releases/tag/release-2.30.0):
* Added support for 2 bits-per-pixel indexed surface formats
* Added the function SDL_GameControllerGetSteamHandle() to get the Steam
  API handle for a controller, if available
* Added the event SDL_CONTROLLERSTEAMHANDLEUPDATED which is sent when
  the Steam API handle for a controller changes. This could also change
  the name, VID, and PID of the controller.
* Added the environment variable SDL_LOGGING to control default log
  output

(From OE-Core rev: 7aef0ee68b612203fe5e0788c57642c4cabea1b4)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Peter Kjellerstedt
1648d0e8f7 insane.bbclass: Allow the warning about virtual/ to be disabled
Commit f673d3d239799fb1ab50f4aa5d44187666aa0cd7 introduced a warning for
virtual/ being used in RPROVIDES and RDEPENDS. Make it possible to
disable the warning by removing "virtual-slash from WARN_QA.

(From OE-Core rev: 968ffdb9fee5017eecce36ce878ea604c869ce95)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Tim Orling
9f7475b4e5 recipetool; add support for python_mesonpy class
* Add support to detect the "mesonpy" build-backend for recipetool create.
* Add oe-selftest case for creating a recipe for "siphash24" from pypi.
  https://pypi.org/project/siphash24/

This is by far the simplest recipe using the mesonpy build backend.

Upstream does not provide LICENSE file(s) and we do not detect the
LICENSE so don't check for that result in the test. Likewise, upstream
does not define HOMEPAGE, so skip that result.

(From OE-Core rev: 256749322671d2f4ea994db671d73c4de10e1723)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Tim Orling
a7484a66b4 python_mesonpy.bbclass: move from meta-python
Move the PEP-517 back-end bbclass from meta-python to support:

[build-system]
build-backend = "mesonpy"

This is the declared backend in python3-numpy since:
942fb8caf3

(From OE-Core rev: f0d3478913b092a01eceafe0c20378cf9117f429)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Tim Orling
c0a2e3a966 python3-meson-python: move from meta-python
meson-python is a Python build backend built on top of the Meson
build-system. It enables you to use Meson for your Python packages.

https://meson-python.readthedocs.io/en/latest/

It is used as the PEP-517 build-backend for python3-numpy and python3-scipy.

For other projects using the backend, see:
https://meson-python.readthedocs.io/en/latest/projects-using-meson-python.html

(From OE-Core rev: 57df1e3fd77a412fb7d585362a7263a4f847fe07)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Tim Orling
3e808c075f python3-pyproject-metadata: HOMEPAGE; DESCRIPTION
Add HOMEPAGE and DESCRIPTION that were missing in
the original recipe in meta-python

(From OE-Core rev: c29a906c510627c5f4598511c34de20230bb230d)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Tim Orling
03f3aa643a python3-pyproject-metadata: move from meta-python
This is a dependency for python3-meson-python.

(From OE-Core rev: b8c8d384b4622de7b5a4748e6e06665615674ba8)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Richard Purdie
0b33104a97 python: Drop ${PYTHON_PN}
python 2 is gone and we don't need the abstraction now, drop the remaining usage
of this variable.

The definition in python3-dir.bbclass is left for now for other layers.

(From OE-Core rev: b566b1e32c7993d1ab7795562f648e52ce186a70)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-20 11:39:45 +00:00
Peter Kjellerstedt
4cfd0f7e4e lib/oe/patch: Use git notes to store the filenames for the patches
The old way of keeping track of the filenames for the patches that
correspond to the commits was to add a special comment line to the end
of the commit message, e.g., "%% original patch: <filename>", using a
temporary git hook. This method had some drawbacks, e.g.:

* It caused problems if one wanted to push the commits upstream as the
  comment line had to be manually removed.
* The comment line would end up in patches if someone used git
  format-path rather than devtool finish to generate the patches.
* The comment line could interfere with global Git hooks used to
  validate the format of the Git commit message.
* When regenerating patches with `devtool finish --force-patch-refresh`,
  the process typically resulted in adding empty lines to the end of the
  commit messages in the updated patches.

A better way of keeping track of the patch filenames is to use Git
notes. This way the commit messages remain unaffected, but the
information is still shown when, e.g., doing `git log`. A special Git
notes space, refs/notes/devtool, is used to not intefere with the
default Git notes. It is configured to be shown in, e.g., `git log` and
to survive rewrites (i.e., `git commit --amend` and `git rebase`).

Since there is no longer any need for a temporary Git hook, the code
that manipulated the .git/hooks directory has also been removed. To
avoid potential problems due to global Git hooks, --no-verify was added
to the `git commit` command.

To not cause troubles for those who have done `devtool modify` for a
recipe with the old solution and then do `devtool finish` with the new
solution, the code will fall back to look for the old strings in the
commit message if no Git note can be found.

While not technically motivated like above, the way to keep track of
ignored commits is also changed to use Git notes to avoid having
different methods to store similar information.

(From OE-Core rev: f5e6183b9557477bef74024a587de0bfcc2b7c0d)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 16:03:22 +00:00
Peter Kjellerstedt
dc2e09417d patch.bbclass: Make use of oe.patch.GitApplyTree.commitIgnored()
This makes use of the oe.patch.GitApplyTree.commitIgnored() function to
create commits that shall be ignored by `devtool finish`.

(From OE-Core rev: 2393dc35a93546eccee0dd313a6927c7d1512c3b)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 16:03:22 +00:00
Peter Kjellerstedt
85b5e87c7d devtool: Make use of oe.patch.GitApplyTree.commitIgnored()
This makes use of the oe.patch.GitApplyTree.commitIgnored() function to
create commits that shall be ignored by `devtool finish`.

(From OE-Core rev: 4e1b9289450b5e7946bd5999c95a3ee214aab8a5)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 16:03:22 +00:00
Peter Kjellerstedt
ff63bc403d lib/oe/patch: Add GitApplyTree.commitIgnored()
This function can be used to create a commit that devtool will ignore
when creating/updating the patches.

(From OE-Core rev: 94f0838b9223b7ece7affaa707e54a5d784da25e)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 16:03:22 +00:00
Peter Kjellerstedt
24433ce8f9 lib/oe/patch: Make extractPatches() not extract ignored commits
If a commit is marked with "%% ignore" it means it is used by devtool to
keep track of changes to the source code that are not the result of
running do_patch(). These changes need to actually be ignored when
extracting the patches as they typically make no sense as actual patches
in a recipe.

This also adds a new test for oe-selftest that verifies that there are
no patches generated from ignored commits.

(From OE-Core rev: c3d43de7e54189bf09fbe8e87ddb976e42ebf531)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 16:03:22 +00:00
Anuj Mittal
1e6565402f swig: upgrade 4.1.1 -> 4.2.0
(From OE-Core rev: 93cf900c697685d0749c3269806213f89fb6526e)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:21:14 +00:00
baruch@tkos.co.il
6f32769afb overlayfs-etc: add option to skip creation of mount dirs
The 'preinit' script can't create mount directories when rootfs is
read-only. Add an option to skip this step. The user must make sure that
all required directories are already in the rootfs directory layout.

Cc: Vyacheslav Yurkov <uvv.mail@gmail.com>
(From OE-Core rev: 3d433d8559467d255bd19af2d0999c65ea24a48d)

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:21:14 +00:00
Peter Kjellerstedt
d25f6b970f bitbake: fetch2/git: Make latest_versionstring extract tags with slashes correctly
Before, everything up to the last slash was removed when extracting the
names of the tags. This would lead to that a tag such as "agent/11.0.0"
would be incorrectly identified as "11.0.0", which would then be treated
as a correct version matching "^(?P<pver>\d+(\.\d+)+)".

(Bitbake rev: 8b21024b9966d5158ac4a77e87ffb935c2a57764)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:08:30 +00:00
Peter Kjellerstedt
9694fe1d68 bitbake: fetch2/git: A bit of clean-up of latest_versionstring()
This is mostly preparations for the next commit.

(Bitbake rev: dcd2abfde55cc59d9869a7c97620b6fc30a52047)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:08:30 +00:00
Peter Kjellerstedt
21603031df bitbake: tests/fetch: Make test_git_latest_versionstring support a max version
In some cases, the version found by latest_versionstring() may be higher
than the real version. Make it possible to specify a maximum version so
that this case can be detected.

(Bitbake rev: 9134d4777109bc78410c3e641420d9a78b485e33)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:08:30 +00:00
Chen Qi
272d5ae098 bitbake: fetch2/git.py: add comment in try_premirrors
The purpose of ensuring 'incremental fetch' is not easy to see from
the codes. So add comments to explain this.

(Bitbake rev: 8b890b87e30cd05ec92ed71ee3691a47b4d77253)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:08:30 +00:00
Chen Qi
09ecbcd307 bitbake: tests/fetch.py: add test case for using premirror in restricted network
We had issue when BB_ALLOWED_NETWORKS is set and `bitbake grpc-native -c fetch'
failed even with all contents available in PREMIRRORS.

Add a test case to ensure no regression in the future.

(Bitbake rev: 80c91ceb81b1cae203067af58d3f1fe9c619ae83)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:08:30 +00:00
Chen Qi
c984b03f02 bitbake: fetch2/git.py: fix a corner case in try_premirror
For gitsm recipes, it's possible that some URL is used more than once.
e.g.,
A -> B:rev1 (B is a submodule of A)
A -> C (C is a submodule of A)
C -> B:rev2 (B is a submodule of C)
A anc C are both using B as submodules, but on different revs.
Now if we have:
B:rev1 -> D
B:rev2 -> E
Then, the mirror will not be fully used.
Say we have all repo mirrors for A, B, C, D, E, then in theory it's not
necessary to reach out to any network for downloading. But it's not the
case. After downloading B(rev1) and its submodule D from mirrors, the fetch
process continues to download C, thus B(rev2) and E. Now it finds that B
needs an update because its submodule E needs an update. Of course this is
true because E is not downloaded yet. Now the problem comes to whether to
use mirror or not. The git.py defines try_premirror to return 'False' when
the ud.clonedir exists. As B has been cloned, the ud.clonedir exists and
try_mirror returns False, resulting in not using mirror and going to upstream
directly.

We can see that the mirrors are not fully used. This is usually not problem,
as the cost is only some network download. But in case the following two
settings are there, we get errors.
BB_NO_NETWORK = "0"
BB_ALLOWED_NETWORKS = "*.some.allowed.domain"
In such case, the gitsm recipe A will fail to fetch. Note that all contents
that A needs are in mirrors and now it's failing to fetch. This is unexpected.

Note that the different revs of the same repo in gitsm recipe is not the only
way to reveal this problem. For example, there might be a recipe call B that
uses B:rev3. Check the protobuf and grpc recipes as an example.

For now, we can use the following steps to reproduce this issue. To be clear,
the grpc recipe in meta-oe is now 1.60.0.
1. Add in local.conf:
   DL_DIR = "${TOPDIR}/downloads-premirror"
   bitbake grpc -c fetch
2. Comment out the DL_DIR setting in local.conf and add the following lines:
   PREMIRRORS:append = " \
     git://.*/.* git://${TOPDIR}/downloads-premirror/git2/MIRRORNAME;protocol=file \n \
     gitsm://.*/.* gitsm://${TOPDIR}/downloads-premirror/git2/MIRRORNAME;protocol=file \n \
   "
3. Set BB_NO_NETWORK = "1" and then 'bitbake grpc -c fetch'.
   This command succeeds and this shows that the premirror holds everything we need.
4. Add the following lines and then 'bitbake grpc -c fetch'.
   BB_NO_NETWORK = "0"
   BB_ALLOWED_NETWORKS = "*.some.domain"

After step 4, the error message is as below:
ERROR: grpc-1.60.0-r0 do_fetch: The URL: 'gitsm://github.com/protocolbuffers/protobuf.git;protocol=https;name=third_party/protobuf;subpath=third_party/protobuf;nobranch=1;lfs=True;bareclone=1;nobranch=1' is not trusted and cannot be used

This patch fixes this problem by handling this corner case, that is, if the URL is
not trusted from the settings of BB_NO_NETWORK and BB_ALLOWED_NETWORKS, then we should
try premirrors because trying to reach upstream is destined to fail.

(Bitbake rev: e1be272ad105b47d3131b77168d9172386993fcb)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:08:30 +00:00
Markus Volk
6cddb77eee ell: update 0.61 -> 0.62
ver 0.62:
	Add support for cleanup functions and macros.
	Add support for setting DHCP max attempts.

(From OE-Core rev: ae84d13b6c4f33a56cc36715a118a9f938ceb2c4)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 15:07:53 +00:00
Johannes Schneider
e6047ee5e8 initramfs-framework: overlayroot: align bootparams with module name
Renaming the 'rootrw' kernel commandline parameter to
'overlayrootrwdev' to both align better with this modules name, and
point out the usage of the variable.

This patch also includes an if block to migrate the old 'rootrw'
block, should it be already used by someone.

(From OE-Core rev: a52b7f5c8ff3e50707b55843d9996983ab8efae2)

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 14:56:23 +00:00
Johannes Schneider
8a531d1990 initramfs-framework: overlayroot: fix kernel commandline clash
The initramfs-framwork takes kernel commandline options and converts
them for internal use to variables following the 'bootparam_name'
pattern. The overlayroot module uses 'bootparam_rootfstype' and
'bootparam_rootfsflags' which both collide with linux kernel
parameters 'rootfstype' and 'rootfsflags'.  This collision is solved
by putting the variables in the namespace of the initramfs-framework
module.

(From OE-Core rev: ef20ef719c699b94fc52b81c520faa0b3714efeb)

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 14:56:23 +00:00
Pavel Zhukov
de27ecd228 bitbake: tests/fetch.py: add multiple fetches test
Fetch from premirror few times to emulate multiple machines sharing same
clonedir or few rebuilds of the package from (pre)mirror
Regression test for [Yocto #15369]

(Bitbake rev: 7fcbac574c68f16b95ab7abb2874931d168d3c9e)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 12:52:30 +00:00
Pavel Zhukov
b2d0f31d24 bitbake: fetch2/git.py: Fetch mirror into HEAD
Fix the issue with using of (pre)mirror in case if clonedir exists but
outdated.
Previous version of the code fetched new mirror content into FETCH_HEAD
instead of branch which caused refetch from the upstream. Add new remote
add fetch from it instead so the ref can be found by "_contains_ref"

Fixes [Yocto #15369]

(Bitbake rev: 69588e2a5c7c200e47b02b2391498dcb72388bd2)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 12:52:30 +00:00
André Draszik
e6892bc47a bitbake: git-make-shallow: support git's safe.bareRepository
When git is configured with safe.bareRepository=explicit [1], the
git-make-shallow fails miserably. LWN has an article about the
problem that this configuration option addresses and why it is useful
in [2].

It also seems that it is being rolled out in some environments as a
default for users.

In order to allow having this configuration turned on for a user's
environment in general, the fetcher has to be tought to use --git-dir=
for all relevent git operations.

The alternative, implemented here, is to forcibly turn off that option
for all git operations. In the future, we could look into converting
these to using the --git-dir= command line argument instead.

Link: https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/config/safe.txt#n1 [1]
Link: https://lwn.net/Articles/892755/ [2]
(Bitbake rev: 7c63989db4590564516ed150930f4e2fa503e98f)

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 12:00:59 +00:00
André Draszik
577e73606a bitbake: tests/fetch: support git's safe.bareRepository
When git is configured with safe.bareRepository=explicit [1], the
bitbake selftests fail miserably. LWN has an article about the
problem that this configuration option addresses and why it is useful
in [2].

It also seems that it is being rolled out in some environments as a
default for users.

In order to allow having this configuration turned on for a user's
environment in general, the fetcher has to be tought to use --git-dir=
for all relevent git operations.

The alternative, implemented here, is to forcibly turn off that option
for all git operations. In the future, we could look into converting
these to using the --git-dir= command line argument instead.

Link: https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/config/safe.txt#n1 [1]
Link: https://lwn.net/Articles/892755/ [2]
(Bitbake rev: a45e14a7343e36101e45639931322e5649587f57)

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 12:00:59 +00:00
André Draszik
b3d9663817 bitbake: fetch/git2: support git's safe.bareRepository
When git is configured with safe.bareRepository=explicit [1], the
bitbake git fetcher fails miserably. LWN has an article about the
problem that this configuration option addresses and why it is useful
in [2].

It also seems that it is being rolled out in some environments as a
default for users.

In order to allow having this configuration turned on for a user's
environment in general, the fetcher has to be tought to use --git-dir=
for all relevent git operations.

The alternative, implemented here, is to forcibly turn off that option
for all git operations. In the future, we could look into converting
these to using the --git-dir= command line argument instead.

While at it, fix one open-coded invocation of git that wasn't using
ud.basecmd

Link: https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/config/safe.txt#n1 [1]
Link: https://lwn.net/Articles/892755/ [2]
(Bitbake rev: 5f3b1d8dc9ee70e707536bd75ee845b547440c97)

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 12:00:59 +00:00
Richard Purdie
a5b2336553 sanity.conf: Require bitbake 2.7.3
Due to hashserv API changes in siggen, we need bitbake 2.7.3.

(From OE-Core rev: 7172fd527fde440f26dd6cc371cde2720dbaa366)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
ba68f3132d sstatesig: Implement new siggen API
Implements the new API required for querying unihashes in parallel

(From OE-Core rev: 0c66d07238d20dc1b34355e4c472aa7457d2e5fe)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Richard Purdie
eca5708b87 bitbake: bitbake: Bump version to 2.7.3 for hashserv changes
(Bitbake rev: c1e0a0b6ddc9667c9d62319bd9ccd4eb8c64c2a6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Tobias Hagelborn
4e673ccb00 bitbake: bitbake: hashserv: Postgres adaptations for ignoring duplicate inserts
Hash Equivalence server performs unconditional insert also of duplicate
hash entries. This causes excessive error log entries in Postgres.
Rather ignore the duplicate inserts.

The alternate behavior should be isolated to the postgres
engine type.

(Bitbake rev: e8d2d178d0fe96f9d6031c97328e8be17d752716)

Signed-off-by: Tobias Hagelborn <tobiasha@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
61e184b3ed bitbake: siggen: Add parallel unihash exist API
Adds API to query if unihashes are known to the server in parallel

(Bitbake rev: 7e2479109b40ce82507f73b4f935903f7f79fb06)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
e5056394e0 bitbake: siggen: Add parallel query API
Implements a new API called get_unihashes() that allows for querying
multiple unihashes in parallel.

The API is also reworked to make it easier for derived classes to
interface with the new API in a consistent manner. Instead of overriding
get_unihash() to add custom handling for local hash calculating (e.g.
caches) derived classes should now override get_cached_unihash(), and
return the local unihash or None if there isn't one.

(Bitbake rev: 6faf48c09a4003a31b32e450779fb8ac9cc5e946)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
37b4d7e493 bitbake: hashserv: Add Client Pool
Implements a Client Pool derived from the AsyncRPC client pool that
allows querying for multiple equivalent hashes in parallel

(Bitbake rev: ba4c764d8061c7b88cd4985ca493d6ea6e317106)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
2406bd1055 bitbake: asyncrpc: Add Client Pool object
Adds an abstract base class that can be used to implement a pool of
client connections. The class implements a thread that runs an async
event loop, and allows derived classes to schedule work on the loop and
wait for the work to be finished.

(Bitbake rev: f113456417f9ac0a4b44b291a6e22ea8219c3a5f)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
3bd2c69e70 bitbake: hashserv: Add unihash-exists API
Adds API to check if the server is aware of the existence of a given
unihash. This can be used as an optimization for sstate where a client
can query the hash equivalence server to check if a unihash exists
before querying the sstate cache. If the hash server isn't aware of the
existence of a unihash, then there is very likely not a matching sstate
object, so this should be able to significantly cut down on the number
of negative hits on the sstate cache.

(Bitbake rev: cfe0ac071cfb998e4a1dd263f8860b140843361a)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
be909636c6 bitbake: hashserv: sqlalchemy: Use _execute() helper
Use the _execute() helper to execute queries. This helper does the
logging of the statement that was being done manually everywhere.

(Bitbake rev: 0409a00d62f45afb1b172acbcea17bf17942e846)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Joshua Watt
1effd1014d bitbake: hashserv: Add Unihash Garbage Collection
Adds support for removing unused unihashes from the database. This is
done using a "mark and sweep" style of garbage collection where a
collection is started by marking which unihashes should be kept in the
database, then performing a sweep to remove any unmarked hashes.

(Bitbake rev: 433d4a075a1acfbd2a2913061739353a84bb01ed)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Paul Gortmaker
324c9fd666 bitbake: hashserv: improve the loglevel error message to be more helpful
Coming from a kernel background, I was thinking along the lines of

	dmesg -n <integer>

for loglevel adjustments.  So I tried various large and small and
even zero number values with no luck before getting frustrated and
opening up the python.

Let us save others the frustration and give a hint what the args it
expects should look like.

(Bitbake rev: df184b2a4e80fca847cfe90644110b74a1af613e)

Signed-off-by: Paul Gortmaker <paulg@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:58:12 +00:00
Alexander Kanavin
fd600728ff meta-poky/conf/templates/default/conf-summary.txt: add a template summary
Existing conf-notes.txt is not adequate in situations where the user
needs to select a config template from several, or get an overview of them and
is interested only in a brief explanation of what the template is for,
but not extended multi-paragraph instructions for how to use it.

Such summaries can be provided via conf-summary.txt and
this patch adds such a summary for the poky default template.

Updates to the tools and a tool for selecting templates which
will make specific use of the summary will follow.

(From meta-yocto rev: 5f404da45021caa09c796dee015ff735d36fa4c0)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Jermain Horsman
0fba76e5ad bitbake-layers: Add test case layers setup for custom references
This includes a simple test which creates a layer setup using
custom references, and subsequently modifies the resulting layers
setup using a different custom reference.

(From OE-Core rev: 36701e78cf239261ad21cf58db2934c3c8a5e3e6)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Jermain Horsman
dd2ed0c363 bitbake-layers: Add ability to update the reference of repositories
This creates a new layers setup with, or, modifies an existing layers
setup using, one or more repositories where the references are provided
by the user.

This is a very minimal implementation, no validation of any reference
is done and it is left to the user to provide a valid value.

(From OE-Core rev: e69444de713e1ec7959c71f9cdf965d3b5a1c6be)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Alexander Kanavin
c390b2e615 oe-setup-build: add a tool for discovering config templates and setting up builds
This is another piece of the puzzle in setting up builds from nothing
without having to write custom scripts or use external tools.

After layers have been fetched and placed into their respective locations by
oe-setup-layers, one would surely want to proceed to the actual build, and here's how:

1. Without arguments the tool reads available layers
from .oe-layers.json file (written out by oe-setup-layers or a fallback under scripts/),
prints what templates it has found, and asks the user to select one, as seen below.
This will land the user in a shell ready to run bitbake:

=============================================
alex@Zen2:/srv/work/alex$ ./setup-build
Available build configurations:

1. alex-configuration-gadget
This configuration will set up a build for the purposes of supporting gadget.

2. alex-configuration-gizmo
This configuration allows building a gizmo.

3. poky-default
This is the default build configuration for the Poky reference distribution.

Re-run with 'list -v' to see additional information.
Please choose a configuration by its number: 1
Running: TEMPLATECONF=/srv/work/alex/meta-alex/conf/templates/configuration-gadget . /srv/work/alex/poky/oe-init-build-env /srv/work/alex/build-alex-configuration-gadget && /bin/bash
You had no conf/local.conf file. This configuration file has therefore been
created for you from /srv/work/alex/meta-alex/conf/templates/configuration-gadget/local.conf.sample
You may wish to edit it to, for example, select a different MACHINE (target
hardware).

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you from /srv/work/alex/meta-alex/conf/templates/configuration-gadget/bblayers.conf.sample
To add additional metadata layers into your configuration please add entries
to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    https://docs.yoctoproject.org

For more information about OpenEmbedded see the website:
    https://www.openembedded.org/

This configuration will set up a build for the purposes of supporting gadget.
Please refer to meta-alex/README for additional details and available bitbake targets.
==============================================

2. It is also possible to list available configurations without selecting one using
'setup-build list' or to select and setup one non-interactively with 'setup-build setup'.

3. The full set of command line options is:

$ ./setup-build --help
usage: setup-build [-h] [--layerlist LAYERLIST] {list,setup} ...

A script that discovers available build configurations and sets up a build environment based on one of them. Run without arguments to choose one interactively.

positional arguments:
  {list,setup}
    list                List available configurations
    setup               Set up a build environment and open a shell session with it, ready to run builds.

optional arguments:
  -h, --help            show this help message and exit
  --layerlist LAYERLIST
                        Where to look for available layers (as written out by setup-layers script) (default is /srv/work/alex/.oe-layers.json).

$ ./setup-build list --help
usage: setup-build list [-h] [-v]

optional arguments:
  -h, --help  show this help message and exit
  -v          Print detailed information and usage notes for each available build configuration.

$ ./setup-build setup --help
usage: setup-build setup [-h] [-c configuration_name] [-b build_path] [--no-shell]

optional arguments:
  -h, --help            show this help message and exit
  -c configuration_name
                        Use a build configuration configuration_name to set up a build environment (run this script with 'list' to see what is available)
  -b build_path         Set up a build directory in build_path (run this script with 'list -v' to see where it would be by default)
  --no-shell            Create a build directory but do not start a shell session with the build environment from it.

4. There's an an added hint in oe-setup-layers about how to proceed (as it is really not user-friendly
to fetch the layer repos successfully and then exit without a word), and a symlink to the script
from the top level layer checkout directory.

5. The selftest to check layer setup has been adjusted to run a basic check for template
discovery and build setup. The revision of poky to be cloned has been bumped to 4.1,
as that's the first version with a default template in a standard location.

(From OE-Core rev: 1360b64e88cda7dddfb0eca6a64f70c13dafb890)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Alexander Kanavin
01d0ee1b83 scripts/oe-setup-builddir: add support for configuration summaries
They are handled exactly same as conf-notes.txt.

(From OE-Core rev: 6fd2eb619693da4cb918b421f3e31072b48fa85a)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Alexander Kanavin
f6f50200c9 meta/lib/bblayers/buildconf.py: add support for configuration summaries
(From OE-Core rev: 7117e3d08570202c79d618d4fb6a67895b1df564)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Alexander Kanavin
6f29e2319c meta/conf/templates/default/conf-summary.txt: add a template summary
Existing conf-notes.txt is not adequate in situations where the user
needs to select a config template from several, or get an overview of them and
is interested only in a brief explanation of what the template is for,
but not extended multi-paragraph instructions for how to use it.

Such summaries can be provided via conf-summary.txt and
this patch adds such a summary for the oe-core default template.

Updates to the tools and a tool for selecting templates which
will make specific use of the summary will follow.

(From OE-Core rev: aa96c2064a874714cfe4bac2fa622690e4c27ee4)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:47:53 +00:00
Simone Weiß
0ba7038c09 patchtest: add stronger indication for failed tests
Do not only log that there has been an issue but add WARNING before for local
runs. Hopefully this helps to avoid that people reading the log to quickly miss
issues.

Fixes [YOCTO #15389]

(From OE-Core rev: 661c0a8fd8fe7bff61cea82778c25cf24d791267)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:39:08 +00:00
Simone Weiß
728b9ba88e patchtest: Add selftest for test cve_check_ignore
Add a selftest for the recently introduced check for CVE_CHECK_IGNORE.

(From OE-Core rev: dc6ebbbb94b162d8aa68e46d5a166606ace5e39c)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:39:08 +00:00
Alexander Kanavin
a4b5a2d5b7 scripts/oe-setup-layers: write a list of layer paths into the checkout's top dir
This is beneficial for setting up builds, as this list can be used
to determine reliably where the actual layers are, and discover
available configurations from them.

Also adjust the selftest to check the presence of that file rather
than any specific layer in a hardcoded location.

Sample output (paths are written relative to the file for relocatability
and ease of reading):

{
    "layers": [
        "meta-openembedded/meta-filesystems",
        "meta-openembedded/meta-gnome",
        "meta-openembedded/meta-initramfs",
        "meta-openembedded/meta-multimedia",
        "meta-openembedded/meta-networking",
        "meta-openembedded/meta-oe",
        "meta-openembedded/meta-perl",
        "meta-openembedded/meta-python",
        "meta-openembedded/meta-webserver",
        "meta-openembedded/meta-xfce",
        "poky/bitbake/lib/layerindexlib/tests/testdata/layer1",
        "poky/bitbake/lib/layerindexlib/tests/testdata/layer2",
        "poky/bitbake/lib/layerindexlib/tests/testdata/layer3",
        "poky/bitbake/lib/layerindexlib/tests/testdata/layer4",
        "poky/meta-poky",
        "poky/meta-selftest",
        "poky/meta-skeleton",
        "poky/meta-yocto-bsp",
        "poky/meta"
    ],
    "version": "1.0"
}

(From OE-Core rev: 82743f4f767f8016564be0d9d6c0d8fe9e067740)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:39:08 +00:00
Siong W.LIM
9813515ff2 useradd.bbclass: Fix missing space when appending vardeps.
(From OE-Core rev: c4658401f1331026dc47a859dd665aab74918bba)

Signed-off-by: Siong <wslim87@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:34:33 +00:00
Simone Weiß
378bc2f8e3 qemu: Set CVE_STATUS for wrong CVEs
All are already fixed in 8.2.1, NVD was informed that cpes are wrong.

(From OE-Core rev: a975960baffd341cd07cb093bef107c031c9b956)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:34:33 +00:00
Markus Volk
f25849c768 wayland-protocols: update 1.32 -> 1.33
(From OE-Core rev: 2a4cad037973a2277db60bf729ef4836c226142e)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:34:33 +00:00
Simone Weiß
3b69f7b079 libuv: Upgrade 1.47.0 -> 1.48.0
Upgrade libuv to pull in the fix for CVE-2024-24806

Changes:
* misc: remove deprecated stalebot file (Jameson Nash)
* build: disable windows asan buildbot (Ben Noordhuis)
* test: don't run tcp_writealot under msan (Ben Noordhuis)
* build,win: remove extraneous -lshell32 (Ben Noordhuis)
* unix: ignore ifaddrs with NULL ifa_addr (Stephen Gallagher)
* unix,win: utility for setting priority for thread (Hao Hu)
* pipe: add back error handling to connect / bind (Jameson Nash)
* test: check if ipv6 link-local traffic is routable (Ben Noordhuis)
* win: remove check for UV_PIPE_NO_TRUNCATE (Jameson Nash)
* linux: disable io_uring on hppa below kernel 6.1.51 (matoro)
* unix,win: fix read past end of pipe name buffer (Ben Noordhuis)
* unix: unbreak macOS < 10.14 (Sergey Fedorov)
* aix: disable ipv6 link local (Abdirahim Musse)
* doc: move cjihrig to emeriti (cjihrig)
* unix: correct pwritev conditional (Bo Anderson)
* test_fs.c: Fix issue on 32-bit systems using btrfs (Stephen Gallagher)
* misc: ignore libuv-release-tool files (Jameson Nash)
* win: honor NoDefaultCurrentDirectoryInExePath env var (Ardi Nugraha)
* idna: fix compilation warning (Saúl Ibarra Corretgé)
* linux: remove HAVE_IFADDRS_H macro (Ben Noordhuis)
* test: skip tcp-write-in-a-row on IBM i (Abdirahim Musse)
* build,win: work around missing uuid.dll on MinGW (Anton Bachin)
* win: stop using deprecated names (Matheus Izvekov)
* unix,win: fix busy loop with zero timeout timers (Matheus Izvekov)
* aix,ibmi: use uv_interface_addresses instead of getifaddrs (Abdirahim
  Musse)
* linux: fix bind/connect for abstract sockets (Santiago Gimeno)
* win: replace c99 comments with c89 comments (Trevor Flynn)
* build: add .cache clangd folder to .gitignore (Juan José Arboleda)
* unix: support full TCP keep-alive on Solaris (Andy Pan)
* freebsd: fix F_KINFO file path handling (David Carlier)
* linux: retry fs op if unsupported by io_uring (Santiago Gimeno)
* freebsd: fix build on non-intel archs (David Carlier)
* unix: optimize uv__tcp_keepalive cpp directives (Andy Pan)
* linux: disable io_uring on ppc64 and ppc64le (Brad King)
* doc: add very basic Security Policy document (Santiago Gimeno)
* build: re-enable msvc-asan job on CI (Jameson Nash)
* win/spawn: optionally run executable paths with no file extension
  (Brad King)
* win: fix ESRCH implementation (Jameson Nash)
* unix,win: reset the timer queue on stop (Santiago Gimeno)
* fix: always zero-terminate idna output (Ben Noordhuis)
* fix: reject zero-length idna inputs (Ben Noordhuis)
* test: empty strings are not valid IDNA (Santiago Gimeno)
* Merge pull request from GHSA-f74f-cvh7-c6q6 (Ben Noordhuis)

(From OE-Core rev: 15110dc982bd65a6165693568b57c91c662812b4)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:34:33 +00:00
Adrian Freihofer
dfe9871372 oe-init-build-env: generate .vscode from template
Provide a reasonable default configuration for VSCode and the
yocto.bitbake extension.
The generated default configuration is generic and minimal. It's mostly
supposed to prevent VSCode from OOM exceptions if the build directory is
in the scope of the indexer plugins of VSCode.
But it also configures the yocto-bitbake plugin to just work without
manual user interaction.

The configuration is only generated if VSCode is installed. Currently,
VSCode is one of many popular editors for Yocto/OE. Removing the check
would mean that the configuration would be generated by e.g. oe-selftest
or for users not using VSCode. If it should prove useful, the check can
be removed later.

Customization for other layers is possible. A layer might provide it's
own oe-setup-build-env script which calls the oe-setup-vscode script
from poky with different folders. But it's also possible to override the
oe-setup-vscode script by another layer with a custom implementation.

(From OE-Core rev: 48829be7ab2edcbc2e4473f81cdaf35889d63f9c)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:34:33 +00:00
Adrian Freihofer
a510d455d3 vscode: drop .vscode folder
There is a new official bitbake plugin:
https://marketplace.visualstudio.com/items?itemName=yocto-project.yocto-bitbake

This plugin automatically updates the .vscode/settings.json file.
Having the settings.json file in git and a plugin which modifies this
file is not ideal. It can lead to anoying situations especially when
working with git. For example a git stash reverts the settings which are
automatically applied by the plugin. While git stashed the settings.json
file the plugin immediately changes the file again and tries to run
bitbake based on the newly generated settings. When git does a stash pop
the restored settings.json file conflicts with the new settigns.json
file which has been generated while the git stash took place.

Therefore this patch removes the .vscode folder from git.

Removing the settings.json leads to other issues as already described
in the commit message of 5ff688fe29. But we still need another solution
where the settings.json file is not in Git.

Discussion is here:
https://github.com/yoctoproject/vscode-bitbake/issues/95

(From OE-Core rev: f36771e155b9e0cf24a885bf3340d59036aa42c5)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-19 11:34:33 +00:00
Peter Kjellerstedt
09839f6a8a devtool: _extract_source: Correct the removal of an old backup directory
Also correct the comment describing what is happening.

(From OE-Core rev: 7d867753fba8d536bef4c72c7bea3f4ed26a1a95)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 22:02:40 +00:00
Chen Qi
33216d08f7 gnupg: disable tests to avoid running target binaries at build time
By default, the tests are built and run at do_compile and we can see
errors like below in log.do_compile:

  gnupg-2.4.4/tests/cms/inittests: line 99: ../../sm/gpgsm: cannot execute binary file: Exec format error

Note that the do_compile process still succeeds. However, we'd better avoid
executing these target binaries at build time.

(From OE-Core rev: 74d48497470ce209bc6bdf49c2e2cfda67dce6ae)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 22:02:40 +00:00
Tim Orling
3f9e81af21 vim: upgrade from 9.0.2130 -> 9.1.0114
https://www.vim.org/vim-9.1-released.php

Vim 9.1 is available

The Vim project is happy to announce that Vim 9.1 has finally been released.
This release is dedicated to Bram Moolenaar, Vim's lead developer for more
than 30 years, who passed away half a year ago. The Vim project wouldn't
exist without his work!

Vim 9.1 is mainly a bug fix release, it contains hundreds of bug fixes, a
few new features and there are many minor improvements.

Changes:
https://github.com/vim/vim/compare/v9.0.2130...v9.1.0114

CVE: CVE-2024-22667
(includes commit b39b240c38)

(From OE-Core rev: 9f7e9c0f4360469b9775372272e0a442c7cc06c8)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 22:02:40 +00:00
Simone Weiß
591406e756 libgit2: update 1.7.1 -> 1.7.2
Update libgit2 to pull in securtiy fixes.

Changelog summary:
- A bug in git_revparse_single is fixed that could cause a Denial of
  Service attack. This fixes CVE-2024-24575

 - A bug in git_index_add is fixed that could lead to arbitrary code execution.
   This fixes CVE-2024-24577

 - A bug in the smart transport negotiation could have caused an out-of-bounds
   read.

(From OE-Core rev: 7191dcae3853728dbb95c4901c2fdb73f9066a66)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 22:02:40 +00:00
Simone Weiß
dc87dcffd3 grub2: ignore CVE-2024-1048, Redhat only issue
Redhat/Fedora specific as it affects the grub2-set-bootflag extension
added by Redhat to grub.

(From OE-Core rev: 40cd768368167f81de5bb55e9ff0584035f4c1b4)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 22:02:40 +00:00
Richard Purdie
c754218614 oeqa/selftest/rust: Exclude failing riscv tests
The rust tests nearly pass for qemurisv64, add the remaining ones to the
exclusion list so it matches everythig else in exlcuding all the know
to break cases.

(From OE-Core rev: 1d6c6e4418c9865a4aeae627e0f130b2181d3657)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 17:38:47 +00:00
David Reyna
f62e4d81ec bitbake: taskexp_ncurses: ncurses version of taskexp.py
* Create an ncurses version of the GTK app "taskexp.py".
* Add these additional features:
  - Sort tasks in recipes by their dependency order
  - Print individual and/or recipe-wide dependencies to a file
  - Add a wild card filter
  - Show the target recipes on BOLD
* Provide a GUI self test
* Provide a non-ncurses self test for ptest

(Bitbake rev: f49bec66ad51c8cddeceafbbe2445c46e396ee8b)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 17:38:47 +00:00
Richard Purdie
3c08950557 testsdk: Avoid PATH contamination
The autobuilder has been seeing increasing numbers of testsdk failures
where xz was 'missing':

ERROR: core-image-sato-1.0-r0 do_testsdk: Couldn't install the SDK:
Error: xz is required for installation of this SDK, please install it first

This is probably due to xz and it's libraries not being in the sysroots
in a way which works without races.

Since the SDK should be using the host, fix this. The eSDK already does
this to solve a similar problem so copy the code from there.

(From OE-Core rev: 39ac3439dfdf2afa67abed4bd32aeb3c14979ded)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 07:34:42 +00:00
Peter Kjellerstedt
890446392b devtool: standard: Add some missing whitespace
Makes it a little bit easier when reading the code.

(From OE-Core rev: 6a757f9648685448fd18507f6aaf4eed0a57579f)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 07:34:42 +00:00
Adrian Freihofer
539c880126 devtool: ide-sdk make deploy-target quicker
(From OE-Core rev: 3b63e7adb5596739b846396304ff815859ce6a74)

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>
2024-02-18 07:34:42 +00:00
Adrian Freihofer
946cac328a oe-selftest devtool: ide-sdk tests
Add some oe-selftests for the new devtool ide-sdk plugin. Most of the
workflows are covered.

Many thanks to Enguerrand de Ribaucourt for testing and bug fixing.

(From OE-Core rev: 458fa66b117ccad690720931f912de09655691dc)

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>
2024-02-18 07:34:42 +00:00
Adrian Freihofer
3ccb4d8ab1 devtool: new ide-sdk plugin
The new devtool ide plugin provides the eSDK and configures an IDE to
work with the eSDK. In doing so, bitbake should be used to generate the
IDE configuration and update the SDK, but it should no longer play a
role when working on the source code. The work on the source code should
take place exclusively with the IDE, which, for example, calls cmake
directly to compile the code and execute the unit tests from the IDE.

The plugin works for recipes inheriting the cmake or the meson bbclass.
Support for more programming languages and build tools may be added in
the future.

There are various IDEs that can be used for the development of embedded
Linux applications. Therefore, devtool ide-sdk, like devtool itself,
supports plugins to support IDEs.
VSCode is the default IDE for this first implementation. Additionally,
some generic helper scripts can be generated with --ide none instead of
a specific IDE configuration. This can be used for any IDE that
supports calling some scripts.

There are two different modes supported:

- devtool modify mode (default):
  devtool ide-sdk configures the IDE to manage the build-tool used by the
  recipe (e.g. cmake or meson). The workflow looks like:
    $ devtool modify a-recipe
    $ devtool ide-sdk a-recipe a-image
    $ code "$BUILDDIR/workspace/sources/a-recipe"
    Work in VSCode, after installing the proposed plugins

  Deploying the artifacts to the target device and running a remote
  debugging session is supported as well.
  This first implementation still calls bitbake and devtool to copy the
  binary artifacts to the target device. In contrast to compiling,
  installation and copying must be performed with the file rights of the
  target device. The pseudo tool must be used for this. Therefore
  bitbake -c install a-recipe && devtool deploy-target a-recipe
  are called by the IDE for the deployment. This might be improved later
  on.

  Executing the unit tests out of the IDE is supported via Qemu user if
  the build tool supports that. CMake (if cmake-qemu.bbclass is
  inherited) and Meson support Qemu usermode.

- Shared sysroots mode: bootstraps the eSDK with shared sysroots for
  all the recipes passed to devtool ide-sdk. This is basically a wrapper
  for bitbake meta-ide-support && bitbake build-sysroots. The workflow
  looks like:
    $ devtool ide-sdk --share-sysroots a-recipe another-recipe
    vscode where/the/sources/are
  If the IDE and the build tool support it, the IDE gets configured to
  offer the cross tool-chain provided by the eSDK. In case of VSCode and
  cmake a cmake-kit is generated. This offers to use the cross
  tool-chain from the UI of the IDE.

Many thanks to Enguerrand de Ribaucourt for testing and bug fixing.

(From OE-Core rev: 3f8af7a36589cd05fd07d16cbdd03d6b3dff1f82)

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>
2024-02-18 07:34:42 +00:00
Tobias Hagelborn
f909d235c9 sstate.bbclass: Only sign packages at the time of their creation
The purpose of the change is to never sign a package not created by
the build itself.

sstate_create_package is refactored into Python and re-designed
to handle signing inside the function. Thus, the signing should never apply
to existing sstate packages. The function is therefore renamed into
sstate_create_and_sign_package.
The creation of the archive remains in a separate shellscript function.

Co-authored-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
(From OE-Core rev: ba223f8fff19ea59440d56cf3fe46200f3f71e22)

Signed-off-by: Tobias Hagelborn <tobias.hagelborn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-18 07:34:42 +00:00
Anuj Mittal
a277d1f7a0 gstreamer1.0: upgrade 1.22.9 -> 1.22.10
(From OE-Core rev: d0a546e21760004897f814981445433a5d5e69a6)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Anuj Mittal
ee3541ca8a libcap-ng: fix build with swig 4.2.0
Backport an upstream patch to remove Python exception handler which is
deprecated and also removed from swig.

736c052d7d

(From OE-Core rev: 970db363039ab1c9d3cc5eb33eb834865ac340c4)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Anuj Mittal
e61afce99e stress-ng: upgrade 0.17.04 -> 0.17.05
(From OE-Core rev: 0a4c9943043004e5d8b67bfedea861227484790a)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Anuj Mittal
cf08dfaf27 orc: upgrade 0.4.36 -> 0.4.37
(From OE-Core rev: 249efcd827b038ccdf7b96e558dc8a950f4b5f35)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Anuj Mittal
86351a1e89 sqlite3: upgrade 3.44.2 -> 3.45.1
(From OE-Core rev: 9b24e44c4906ec205857526a181f5f6054e92dc6)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Anuj Mittal
c7557f29ab libproxy: upgrade 0.5.3 -> 0.5.4
This includes a fix to include complete library version. Release notes:

https://github.com/libproxy/libproxy/releases/tag/0.5.4

(From OE-Core rev: 0eb3a44f1e47da65a7cecb8ed812ce42c99130af)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Anuj Mittal
a6236e44fc enchant2: upgrade 2.6.5 -> 2.6.7
(From OE-Core rev: c2159b9c689454d24071331de088b990039799a8)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Ross Burton
65da465410 libffi: upgrade to 3.4.5
Drop the clang/VFP patch, merged in 00116b6.

Drop the FILES for ${libdir}/libffi-${PV}, this file isn't installed.

License-Update: Copyright year updated to 2024.

(From OE-Core rev: e3ea7c0ae99171ebaa273f0a1f6d4fa49ed1b257)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Markus Volk
00811a3926 libadwaita: update 1.4.2 -> 1.4.3
=============
Version 1.4.3
=============

- AdwAboutWindow
  - Don't pre-select the first section on the Legal page
- AdwHeaderBar
  - Fix visibility after changing :show-back-button
- AdwPreferencesWindow
  - Fix :visible-page and :visible-page-name docs
- AdwViewSwitcherBar
  - Fix a warning when empty
- Translation updates
  - French
  - Greek
  - Norwegian Bokmål

(From OE-Core rev: 2ecb3e4550caab6fd0c43e862635520e1e2aee4d)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Fabien Mahot
6088f280db ldconfig-native: Fix to point correctly on the DT_NEEDED entries in an ELF file
When ldconfig-native reads an ELF file, it computes an offset from a LOAD
segment, to point on DT NEEDED entries of dynstr section.
Without this patch, ldconfig-native uses only the first LOAD segment, even if
the offset is incorrect.
This patch adds conditions to compute the offset by parsing all LOAD segments,
one by one.

This is a backport from [0], ported to support endianness and 32/64 bits.

[0]: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=58e8f5fd2ba47b6dc47fd4d0a35e4175c7c87aaa

(From OE-Core rev: 22e35ccf3731164722e3cda9de1802d7326cb507)

Signed-off-by: Fabien Mahot <fabien.mahot@external.desouttertools.com>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Khem Raj
53dd45d573 binutils: Update to tip of 2.42 release branch
Brings following fixes.

* 553c7f61b74 x86: Display -msse-check= default as none
* 4f7d1d2d5ec PowerPC: Add support for Power11 options
* 3c1f1c35784 x86-64: Add R_X86_64_CODE_6_GOTTPOFF
* c426c8e307a x86/APX: VROUND{P,S}{S,D} encodings require AVX512{F,VL}
* 78f9e9faaa4 PR31208, strip can break ELF alignment requirements
* e19278f72bd PR 31283 windmc: Parse input correctly on big endian hosts
* b76b8983116 Link x86-64 mark-plt-1.so with --no-as-needed
* e92e2d654bf LoongArch: gas: Fix the types of symbols referred with %le_*_r in the symtab

(From OE-Core rev: 1e24197070abbeabfca1883975b9996f29898745)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Tim Orling
3b9dbfb5c6 python3-attrs: skip test failing with pytest-8
tests/test_funcs.py test_unknown test case is failing with
pytest 8. Skip it for now until upstream has a fix.

https://github.com/python-attrs/attrs/issues/1233

(From OE-Core rev: 5af87eda524bb0affe207c006f67b4191f6ce746)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Wang Mingyu
327930552e python3-pytest: upgrade 7.4.4 -> 8.0.0
Changelog:
=============
#11842: Properly escape the reason of a skip mark when writing JUnit XML files.
#11861: Avoid microsecond exceeds 1_000_000 when using log-date-format with
 %f specifier, which might cause the test suite to crash.

(From OE-Core rev: a2dab7d231a235b668f639c0060362cb83ea68ab)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Ross Burton
6588224092 meson: set the sysroot in the cross files
When cross compiling we have a sysroot, so by telling Meson where it is
explicitly it can do the right thing.

Currently this means it just sets PKG_CONFIG_SYSROOT_DIR to the value
that we already set it to, but in the future this can be used to stop
Meson looking directly in /usr when it shouldn't.

(From OE-Core rev: 62d4fd215a0886056d64e926f722cd07e9986118)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Bruce Ashfield
1aa0279aa4 linux-yocto/6.6: qemuriscv: enable goldfish RTC
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Khem Raj
    Email: raj.khem@gmail.com
    Subject: qemuriscv32/qemuriscv64: Enable Goldfish RTC
    Date: Fri, 16 Feb 2024 01:05:51 -0800

    This is required for the qemu based riscv system to set system time
    correctly. Otherwise, it falls back to defaults in /etc/timestamp which
    is set at image build time and is not current.

    Fixes
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Fri Mar  9 12:34:56 UTC 2018
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    hwclock: can't open '/dev/misc/rtc': No such file or directory

    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: d198cd6bca370306515d5e0e8507babf05a193eb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Bruce Ashfield
f9739740a4 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 9Feb24
        Date: Fri, 9 Feb 2024 18:02:45 -0500

    ]

(From OE-Core rev: 06ec9cea78e15fb2e6b14fedf5a44a0bbd2ab90c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Bruce Ashfield
ab0c12e9ea linux-yocto/6.6: update to v6.6.16
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    eb3e299184cc Linux 6.6.16
    bd8740928aac pds_core: Prevent health thread from running during reset/remove
    7110e98840ee drm/amdgpu: Fix missing error code in 'gmc_v6/7/8/9_0_hw_init()'
    4f89186790fe ASoC: codecs: wsa883x: fix PA volume control
    a499a67685af ASoC: codecs: lpass-wsa-macro: fix compander volume hack
    9e0454cc9252 ASoC: codecs: wcd938x: fix headphones volume controls
    d821cbe902f4 ASoC: qcom: sc8280xp: limit speaker volumes
    c9ac947693f5 bonding: remove print in bond_verify_device_path
    4caf54817650 selftests/bpf: Remove flaky test_btf_id test
    46e35a506538 LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init()
    78a1eb102c7f drm/msm/dsi: Enable runtime PM
    18e7ab59b755 Revert "drm/amd/display: Disable PSR-SU on Parade 0803 TCON again"
    6335c0cdb2ea mm, kmsan: fix infinite recursion due to RCU critical section
    e50c55c295d4 arm64: irq: set the correct node for shadow call stack
    4f3341db4ea7 selftests: net: enable some more knobs
    97d9d1fdde25 selftests: net: add missing config for NF_TARGET_TTL
    eb0b6fc85ca9 selftests: bonding: Check initial state
    83146efc8d14 selftests: team: Add missing config options
    6af17316df51 net: sysfs: Fix /sys/class/net/<iface> path
    e7a36b563bbd octeontx2-pf: Remove xdp queues on program detach
    cb0ef63e5e67 selftests: net: don't access /dev/stdout in pmtu.sh
    d99f772f6371 selftests: net: fix available tunnels detection
    eb43e8d5e059 selftests: net: add missing config for pmtu.sh tests
    fd0e57cb5f74 selftests: net: add missing config for nftables-backed iptables
    2bbf2b1c20f9 pds_core: Rework teardown/setup flow to be more common
    f6ec6ac94329 pds_core: Clear BARs on reset
    22cd6046eb21 pds_core: Prevent race issues involving the adminq
    699f5416c33e pds_core: implement pci reset handlers
    10839a1892dd pds_core: Use struct pdsc for the pdsc_adminq_isr private data
    b26628142b99 pds_core: Cancel AQ work on teardown
    5e7f3e0381c0 af_unix: fix lockdep positive in sk_diag_dump_icons()
    8160eb9a0102 net: ipv4: fix a memleak in ip_setup_cork
    cfe3550ea5df netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations
    25621b53377d netfilter: nf_log: replace BUG_ON by WARN_ON_ONCE when putting logger
    ce76746a1cd2 netfilter: nf_tables: restrict tunnel object to NFPROTO_NETDEV
    6edc89300b31 netfilter: conntrack: correct window scaling with retransmitted SYN
    2d608870718f selftests: net: add missing config for GENEVE
    ef3d6ed3c8b3 devlink: Fix referring to hw_addr attribute during state validation
    d99971ec1b3a bridge: mcast: fix disabled snooping after long uptime
    48129d4f967e selftests: net: Add missing matchall classifier
    3151051b787f llc: call sock_orphan() at release time
    13806fc09040 ipv6: Ensure natural alignment of const ipv6 loopback and router addresses
    4785948b213f net: dsa: qca8k: fix illegal usage of GPIO
    a4b6f9de6a78 ixgbe: Fix an error handling path in ixgbe_read_iosf_sb_reg_x550()
    09943985ac58 ixgbe: Refactor overtemp event handling
    03c5b6d41744 ixgbe: Refactor returning internal error codes
    e9ad7a8060fa e1000e: correct maximum frequency adjustment values
    d15cc0f66884 tcp: add sanity checks to rx zerocopy
    f0025c92b1ba net: lan966x: Fix port configuration when using SGMII interface
    dcaafdba6c61 ipmr: fix kernel panic when forwarding mcast packets
    f9ae3a437b1f net: dsa: mt7530: fix 10M/100M speed on MT7988 switch
    350a6640fac4 ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()
    2d0bfd36e547 selftests: net: give more time for GRO aggregation
    d3ccd4f0e158 selftests: net: add missing required classifier
    e5d6247d7ffd selftests: net: add missing config for big tcp tests
    0c2c97aa7706 net: phy: mediatek-ge-soc: sync driver with MediaTek SDK
    01b4ae7e15df net: ethernet: mtk_eth_soc: set DMA coherent mask to get PPE working
    f08daa806ba7 gve: Fix skb truesize underestimation
    baa3f8b28185 selftests: net: explicitly wait for listener ready
    31a6e0a87ba7 selftests: net: remove dependency on ebpf tests
    54a55b632206 HID: hidraw: fix a problem of memory leak in hidraw_release()
    65ead8468c21 scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
    92f0eca1fcf7 regulator: ti-abb: don't use devm_platform_ioremap_resource_byname for shared interrupt register
    8e4319a4e9fd kunit: run test suites only after module initialization completes
    6f8277017dfb scsi: isci: Fix an error code problem in isci_io_request_build()
    b73ffafa0121 riscv: Fix build error on rv32 + XIP
    3c0a7eac9e78 drm/amdkfd: only flush mes process context if mes support is there
    8de8f000ffe1 drm: using mul_u32_u32() requires linux/math64.h
    8a67b8d2ad04 wifi: cfg80211: fix RCU dereference in __cfg80211_bss_update
    2d5228be5e03 perf: Fix the nr_addr_filters fix
    250cfafb3e9d i2c: rk3x: Adjust mask/value offset for i2c2 on rv1126
    5ea4007636b2 drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'
    25c2de1fbd8e drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()'
    b02831b8a5b6 drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'
    0ee4c5829fb3 drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
    d0bc6be623ba drm/amdgpu: fix avg vs input power reporting on smu7
    d8fedfb4be52 ceph: fix invalid pointer access if get_quota_realm return ERR_PTR
    196b87e5c00c ceph: fix deadlock or deadcode of misusing dget()
    987219b377cc ceph: reinitialize mds feature bit even when session in open
    6d8b01624a25 blk-mq: fix IO hang from sbitmap wakeup race
    20e81d2c4e44 virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings
    752312f6a794 drm/amdkfd: Fix lock dependency warning with srcu
    28d2d623d2fb drm/amdkfd: Fix lock dependency warning
    6757fd72312b libsubcmd: Fix memory leak in uniq()
    1229ce1c4acd misc: lis3lv02d_i2c: Add missing setting of the reg_ctrl callback
    04644c18fc35 usb: xhci-plat: fix usb disconnect issue after s4
    11a93a73836e 9p: Fix initialisation of netfs_inode for 9p
    38d437d728bb PCI/AER: Decode Requester ID when no error info found
    7ec6e908ee17 PCI: Fix 64GT/s effective data rate calculation
    f8dcafcb5463 spmi: mediatek: Fix UAF on device remove
    952d0cbd1f68 fs/kernfs/dir: obey S_ISGID
    d3b08e2537bb tty: allow TIOCSLCKTRMIOS with CAP_CHECKPOINT_RESTORE
    10800685fd7d selftests/sgx: Fix linker script asserts
    915d900f6d0f usb: hub: Add quirk to decrease IN-ep poll interval for Microchip USB491x hub
    cd72da00e6a0 usb: hub: Replace hardcoded quirk value with BIT() macro
    8b755fc728cd extcon: fix possible name leak in extcon_dev_register()
    7c5276c44dd5 perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present
    0233b836312e PCI: switchtec: Fix stdev_release() crash after surprise hot remove
    cc56867d3226 PCI: Only override AMD USB controller if required
    a71f8c0a1ba2 mailbox: arm_mhuv2: Fix a bug for mhuv2_sender_interrupt
    c27d9af41a19 mfd: ti_am335x_tscadc: Fix TI SoC dependencies
    9744be5e8952 xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import
    e792a03d06b3 riscv: Make XIP bootable again
    aca8d2587223 i3c: master: cdns: Update maximum prescaler value for i2c clock
    de3e9d8e8d1a um: time-travel: fix time corruption
    857710e1b11d um: net: Fix return type of uml_net_start_xmit()
    a4378abcbb8c um: Don't use vfprintf() for os_info()
    976c46e6964c um: Fix naming clash between UML and scheduler
    029479d4f1bb leds: trigger: panic: Don't register panic notifier if creating the trigger failed
    6eef17a3c687 pinctrl: baytrail: Fix types of config value in byt_pin_config_set()
    24d748413cc4 ALSA: hda/conexant: Fix headset auto detect fail in cx8070 and SN6140
    08dde830ab24 drm/amdgpu: apply the RV2 system aperture fix to RN/CZN as well
    583e0a336bfb drm/amdkfd: Fix iterator used outside loop in 'kfd_add_peer_prop()'
    ff5aefbbd82e drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
    aa1791b280ed drm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_request()'
    90df72694a5b Re-revert "drm/amd/display: Enable Replay for static screen use cases"
    0d35c8977be8 drm/amdgpu: Let KFD sync with VM fences
    cef7f96a0a4c drm/amd/display: Fix minor issues in BW Allocation Phase2
    0a8fc4e007b9 drm/amdgpu: Fix ecc irq enable/disable unpaired
    b9ecbaa6211f clk: imx: clk-imx8qxp: fix LVDS bypass, pixel and phy clocks
    49b4cab7bcbd drm/amd/display: Only clear symclk otg flag for HDMI
    4033887acddc drm/amd/display: make flip_timestamp_in_us a 64-bit variable
    9aa2cba7a275 accel/habanalabs: add support for Gaudi2C device
    3075d01e2719 watchdog: it87_wdt: Keep WDTCTRL bit 3 unmodified for IT8784/IT8786
    1a63d7f8aa39 watchdog: starfive: add lock annotations to fix context imbalances
    b9359c3a4278 clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
    1cda2870d5b4 clk: hi3620: Fix memory leak in hi3620_mmc_clk_init()
    e7a0ee45c653 drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heap
    1f2b0ec25103 drm/msm/dpu: fix writeback programming for YUV cases
    828282829d5a drm/msm/dpu: Ratelimit framedone timeout msgs
    ec2c3d3438a8 drm/msm/dpu: enable writeback on SM8450
    50fc3d2199ef drm/msm/dpu: enable writeback on SM8350
    3a950c56dea1 drm/amdkfd: fix mes set shader debugger process management
    e9ca61a7e6b0 drm/amd/display: Force p-state disallow if leaving no plane config
    6750d1de747f drm/amd/display: For prefetch mode > 0, extend prefetch if possible
    777ab143a0c2 media: i2c: imx335: Fix hblank min/max values
    7190073513ca media: ddbridge: fix an error code problem in ddb_probe
    7c180bf2967c media: amphion: remove mutext lock in condition of wait_event
    342258fb46d6 IB/ipoib: Fix mcast list locking
    7a9696dbad6b drm/exynos: Call drm_atomic_helper_shutdown() at shutdown/unbind time
    417b8a91f4e8 f2fs: fix to tag gcing flag on page during block migration
    f9902f92ce53 hwmon: (hp-wmi-sensors) Fix failure to load on EliteDesk 800 G6
    6f86bbf92cc5 hwmon: (nct6775) Fix fan speed set failure in automatic mode
    8a315206425b media: rkisp1: resizer: Stop manual allocation of v4l2_subdev_state
    fab483438342 media: rkisp1: Fix IRQ disable race issue
    e28e80cda429 media: rkisp1: Store IRQ lines
    a32c20cf933b media: rkisp1: Fix IRQ handler return values
    e08195de19c8 media: rkisp1: Drop IRQF_SHARED
    5193d26a706e media: uvcvideo: Fix power line control for SunplusIT camera
    051400c305af media: uvcvideo: Fix power line control for a Chicony camera
    6c0f21f86958 drm/msm/dp: Add DisplayPort controller for SM8650
    70cb71c9a887 ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL
    0f04f8d6168b ALSA: hda: Intel: add HDA_ARL PCI ID support
    c964e3b277da PCI: add INTEL_HDA_ARL to pci_ids.h
    6ca8d2c068bb media: rockchip: rga: fix swizzling for RGB formats
    df16808b1627 media: stk1160: Fixed high volume of stk1160_dbg messages
    daf57c5ce16e drm/mipi-dsi: Fix detach call without attach
    9b3fbff86a62 drm/framebuffer: Fix use of uninitialized variable
    2cde325e185b drm/drm_file: fix use of uninitialized variable
    01e7578c7cd3 drm/amd/display: Fix MST PBN/X.Y value calculations
    c87011986fad ASoC: amd: Add new dmi entries for acp5x platform
    8b981e78d033 f2fs: fix write pointers on zoned device after roll forward
    1c563c045090 drm/amd/display: Fix tiled display misalignment
    1e0635bcda5b drm/bridge: anx7625: Fix Set HPD irq detect window to 2ms
    8c67a27e7774 drm/panel-edp: Add override_edid_mode quirk for generic edp
    02ca47143bc0 RDMA/IPoIB: Fix error code return in ipoib_mcast_join
    17e1361cb91d reiserfs: Avoid touching renamed directory if parent does not change
    408f4c8efddc fast_dput(): handle underflows gracefully
    1b7eb3a2044b ASoC: doc: Fix undefined SND_SOC_DAPM_NOPM argument
    32a600b8f6f4 ALSA: hda: Refer to correct stream index at loops
    2a7b12d4705b f2fs: fix to check return value of f2fs_reserve_new_block()
    9916fdd8a29a net: dsa: qca8k: put MDIO bus OF node on qca8k_mdio_register() failure
    45d201c4335b net: kcm: fix direct access to bv_len
    225b254911ef octeontx2-af: Fix max NPC MCAM entry check while validating ref_entry
    d973bf8ec3e8 i40e: Fix VF disable behavior to block all traffic
    e54c52ee07b9 arm64: dts: sprd: Change UMS512 idle-state nodename to match bindings
    8c700bed9b69 arm64: dts: sprd: Add clock reference for pll2 on UMS512
    daa24d2065d0 bridge: cfm: fix enum typo in br_cc_ccm_tx_parse
    d1f1e11b3d30 net/smc: disable SEID on non-s390 archs where virtual ISM may be used
    100089a1ec70 Bluetooth: L2CAP: Fix possible multiple reject send
    e266b7b2d4b5 Bluetooth: hci_sync: fix BR/EDR wakeup bug
    1441054443cb Bluetooth: ISO: Avoid creating child socket if PA sync is terminating
    f2719ecc4637 Bluetooth: qca: Set both WIDEBAND_SPEECH and LE_STATES quirks for QCA2066
    0dc97f76d670 wifi: cfg80211: free beacon_ies when overridden from hidden BSS
    9940160d12bd wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift()
    5f3e436832e8 libbpf: Fix NULL pointer dereference in bpf_object__collect_prog_relos
    84ff6a960730 wifi: rtw89: coex: Fix wrong Wi-Fi role info and FDDT parameter members
    85b4f7523873 wifi: rtl8xxxu: Add additional USB IDs for RTL8192EU devices
    0112d7f6c6f8 arm64: dts: amlogic: fix format for s4 uart node
    6bc0e112759b ice: fix pre-shifted bit usage
    cdb7f0e9ad25 arm64: dts: qcom: Fix coresight warnings in in-ports and out-ports
    f127a0b64c2d arm64: dts: qcom: msm8998: Fix 'out-ports' is a required property
    73cb930505d2 arm64: dts: qcom: msm8996: Fix 'in-ports' is a required property
    c9851c6445e5 md: Whenassemble the array, consult the superblock of the freshest device
    85f24d72b5a8 block: prevent an integer overflow in bvec_try_merge_hw_page
    f6791424f6f2 net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
    c11a870a73a3 net: atlantic: eliminate double free in error handling logic
    334a12270c7a ice: fix ICE_AQ_VSI_Q_OPT_RSS_* register values
    4b8672726d04 scsi: hisi_sas: Set .phy_attached before notifing phyup event HISI_PHYE_PHY_UP_PM
    f92ee7113bb7 scsi: lpfc: Move determination of vmid_flag after VMID reinitialization completes
    6d38434f427c scsi: lpfc: Reinitialize an NPIV's VMID data structures after FDISC
    40ac9c17b6ab ARM: dts: imx23/28: Fix the DMA controller node name
    3866310a77c6 ARM: dts: imx23-sansa: Use preferred i2c-gpios properties
    20b1881800a1 ARM: dts: imx27-apf27dev: Fix LED name
    8b9b3d9dd3cb ARM: dts: imx25/27: Pass timing0
    7eadf1ff3299 ARM: dts: imx25: Fix the iim compatible string
    afe022417b93 selftests/bpf: fix compiler warnings in RELEASE=1 mode
    03ca1747949f arm64: zynqmp: Fix clock node name in kv260 cards
    b00eedb225ae arm64: zynqmp: Move fixed clock to / for kv260
    5b9ea86e6620 block/rnbd-srv: Check for unlikely string overflow
    5e7213ca7815 ionic: bypass firmware cmds when stuck in reset
    fdc2e7ad7ab3 ionic: pass opcode to devcmd_wait
    243749271dbc net: phy: at803x: fix passing the wrong reference for config_intr
    509c223966f0 ARM: dts: imx1: Fix sram node
    cc1568568a31 ARM: dts: imx27: Fix sram node
    28743cc68694 ARM: dts: imx: Use flash@0,0 pattern
    34335be2414d ARM: dts: imx25/27-eukrea: Fix RTC node name
    9e5e41f63a32 ARM: dts: rockchip: fix rk3036 hdmi ports node
    23a0cdd96b01 wifi: ath12k: fix the issue that the multicast/broadcast indicator is not read correctly for WCN7850
    9ab224744a47 wifi: wfx: fix possible NULL pointer dereference in wfx_set_mfp_ap()
    702f1ed48e39 bpf: Set uattr->batch.count as zero before batched update or deletion
    20d7686331a5 wifi: mt76: mt7996: add PCI IDs for mt7992
    c4139d2faedf wifi: mt76: connac: fix EHT phy mode check
    d03363072251 arm64: dts: qcom: sm8350: Fix remoteproc interrupt type
    03d23f7d6e9b arm64: dts: qcom: sm8450: fix soundwire controllers node name
    cd7d1971c4c7 arm64: dts: qcom: sm8550: fix soundwire controllers node name
    bd4b6397faa0 net: mvmdio: Avoid excessive sleeps in polled mode
    9487d93f172a minmax: relax check to allow comparison between unsigned arguments and signed constants
    701405f53d1b minmax: allow comparisons of 'int' against 'unsigned char/short'
    b0c7fd162fa4 minmax: fix indentation of __cmp_once() and __clamp_once()
    204c653d5d0c minmax: allow min()/max()/clamp() if the arguments have the same signedness.
    56dcff99005a minmax: add umin(a, b) and umax(a, b)
    d89ae99530d0 minmax: fix header inclusions
    b65b93f3dbca minmax: deduplicate __unconst_integer_typeof()
    268515e9ddc6 scsi: libfc: Fix up timeout error in fc_fcp_rec_error()
    01d91d66a48d scsi: libfc: Don't schedule abort twice
    1f4fd12d2a0d wifi: ath12k: fix and enable AP mode for WCN7850
    a9bf3a490e6a bpf: Set need_defer as false when clearing fd array during map free
    483cb92334cd bpf: Check rcu_read_lock_trace_held() before calling bpf map helpers
    d8bfb29484d5 wifi: rtw89: fix misbehavior of TX beacon in concurrent mode
    5b34e76bbaab wifi: ath11k: fix race due to setting ATH11K_FLAG_EXT_IRQ_ENABLED too early
    e4f4bac7d3b6 wifi: ath9k: Fix potential array-index-out-of-bounds read in ath9k_htc_txstatus()
    e02851adca4e bpf: Fix a few selftest failures due to llvm18 change
    401e139c1565 ARM: dts: imx7s: Fix nand-controller #size-cells
    aeefe740c85c ARM: dts: imx7s: Fix lcdif compatible
    62b5830762a4 ARM: dts: imx7d: Fix coresight funnel ports
    58b9d491afe2 scsi: arcmsr: Support new PCI device IDs 1883 and 1886
    6e1613da0a9a scsi: mpi3mr: Add PCI checks where SAS5116 diverges from SAS4116
    177fe2a728fc scsi: mpi3mr: Add support for SAS5116 PCI IDs
    d7a319889498 net: usb: ax88179_178a: avoid two consecutive device resets
    a5bea3ae3eaf bonding: return -ENOMEM instead of BUG in alb_upper_dev_walk
    b59bc7017252 PCI: Add no PM reset quirk for NVIDIA Spectrum devices
    d06b88b01fc1 net: phy: micrel: fix ts_info value in case of no phc
    94d045510143 ARM: dts: samsung: s5pv210: fix camera unit addresses/ranges
    6f7e8d3952f2 ARM: dts: samsung: exynos4: fix camera unit addresses/ranges
    5b94b3a8e339 scsi: lpfc: Fix possible file string name overflow when updating firmware
    61cc78be359d soc: xilinx: fix unhandled SGI warning message
    4722924e7a62 soc: xilinx: Fix for call trace due to the usage of smp_processor_id()
    b01dbb6cfdb4 ARM: dts: qcom: msm8660: fix PMIC node labels
    198bba9b9d4b ARM: dts: qcom: mdm9615: fix PMIC node labels
    9d004cda161a ARM: dts: qcom: strip prefix from PMIC files
    ae81c559f11f selftests/bpf: Fix issues in setup_classid_environment()
    e54656ed6452 wifi: rt2x00: correct wrong BBP register in RxDCOC calibration
    d14ea4b0d85f selftests/bpf: Fix pyperf180 compilation failure with clang18
    aec8c7b1334b libbpf: Fix potential uninitialized tail padding with LIBBPF_OPTS_RESET
    a4c79e7969af selftests/bpf: satisfy compiler by having explicit return in btf test
    9e1913382b47 selftests/bpf: fix RELEASE=1 build for tc_opts
    04cfe4a5da57 wifi: rt2x00: restart beacon queue when hardware reset
    7b1bb9a40b38 wifi: rtw89: fix timeout calculation in rtw89_roc_end()
    8b1413dbfe49 ext4: avoid online resizing failures due to oversized flex bg
    04cf95f7a77a ext4: remove unnecessary check from alloc_flex_gd()
    903547ea2498 ext4: unify the type of flexbg_size to unsigned int
    c1eacba3b77c ext4: fix inconsistent between segment fstrim and full fstrim
    d08534ebc347 ecryptfs: Reject casefold directory inodes
    8c944f8a4139 smb: client: fix hardlinking of reparse points
    c586b0c7466e smb: client: fix renaming of reparse points
    d91ecb894aed ext4: treat end of range as exclusive in ext4_zero_range()
    69c7eeb4f622 SUNRPC: Fix a suspicious RCU usage warning
    15893975e9e3 sysctl: Fix out of bounds access for empty sysctl registers
    c87d7d910775 KVM: s390: fix setting of fpc register
    02c6bbfb08ba s390/ptrace: handle setting of fpc register correctly
    06dfeba8a8b8 s390/vfio-ap: fix sysfs status attribute for AP queue devices
    64e7f102c301 arch: consolidate arch_irq_work_raise prototypes
    05a8ba5c1e59 s390/boot: always align vmalloc area on segment boundary
    6996d43b1448 jfs: fix array-index-out-of-bounds in diNewExt
    0cb7eafed540 rxrpc_find_service_conn_rcu: fix the usage of read_seqbegin_or_lock()
    08ade0fa6103 afs: fix the usage of read_seqbegin_or_lock() in afs_find_server*()
    8d742c4a8b2b afs: fix the usage of read_seqbegin_or_lock() in afs_lookup_volume_rcu()
    464a0ca0f05a crypto: stm32/crc32 - fix parsing list of devices
    d48760461aeb erofs: fix ztailpacking for subpage compressed blocks
    8b18d5f5454e crypto: octeontx2 - Fix cptvf driver cleanup
    c7ff77b7db34 crypto: starfive - Fix dev_err_probe return error
    3f691aa676f2 erofs: fix up compacted indexes for block size < 4096
    0593cfd321df pstore/ram: Fix crash when setting number of cpus to an odd number
    af8bdab2adb8 crypto: p10-aes-gcm - Avoid -Wstringop-overflow warnings
    b0af4adaedc6 hwrng: starfive - Fix dev_err_probe return error
    1696d6d7d4a1 jfs: fix uaf in jfs_evict_inode
    2e16a1389b5a jfs: fix array-index-out-of-bounds in dbAdjTree
    7110650b85dd jfs: fix slab-out-of-bounds Read in dtSearch
    edff092a5926 UBSAN: array-index-out-of-bounds in dtSplitRoot
    6a44065dd604 FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree
    fcecef9a84f6 thermal: core: Fix thermal zone suspend-resume synchronization
    410063c9e100 ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events
    0aedb319ef3e PM / devfreq: Synchronize devfreq_monitor_[start/stop]
    29482da8ffa1 kunit: tool: fix parsing of test attributes
    f6bda2950122 ACPI: NUMA: Fix the logic of getting the fake_pxm value
    a95c77f93606 selftests/nolibc: fix testcase status alignment
    f066171de33d ACPI: extlog: fix NULL pointer dereference check
    3bbbe5902229 PNP: ACPI: fix fortify warning
    abd97ccfb3d3 ACPI: video: Add quirk for the Colorful X15 AT 23 Laptop
    129db2ded6e6 audit: Send netlink ACK before setting connection in auditd_set
    3023b44a304e regulator: core: Only increment use_count when enable_count changes
    d396f97648bf debugobjects: Stop accessing objects after releasing hash bucket lock
    814173380135 perf/core: Fix narrow startup race when creating the perf nr_addr_filters sysfs file
    04c6948db0ff x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel
    28b8ba8eebf2 powerpc/lib: Validate size for vector operations
    39ba91d29fdb powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE
    f77cb0471ec0 x86/boot: Ignore NMIs during very early boot
    2074271ac73c powerpc/64s: Fix CONFIG_NUMA=n build due to create_section_mapping()
    82e40455715f powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()
    641c67d59fd0 powerpc: Fix build error due to is_valid_bugaddr()
    fabdc0422cc5 drivers/perf: pmuv3: don't expose SW_INCR event in sysfs
    40a5dce893f0 arm64: irq: set the correct node for VMAP stack
    145febd85c3b powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
    c918aac94262 asm-generic: make sparse happy with odd-sized put_unaligned_*()
    55ae38ffa0f4 Documentation/sphinx: fix Python string escapes

(From OE-Core rev: 897d2d843d9e734f60fb39150d656ee54838b9ba)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
André Draszik
0684f971c3 sstate-cache-management: fix regex for 'sigdata' stamp files
Given file names like
    6.4.do_fetch.sigdata.821b6c62f9f2bd8b7e1378656b8319697a21f6f6e4a351f98dc325a18ef7ed0f,
I'm pretty sure we want to match the dot here, not any character.

Fixes: 2fa1b25d7485 ("sstate-cache-management: Rewrite in python") in oe-core
Fixes: b723fcaac5 ("sstate-cache-management: Rewrite in python") in poky
(From OE-Core rev: 64281de7e352aaf48aa8c60b68633c54471fe353)

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Richard Purdie
2cdeadd1ff u-boot: Pass in prefix mapping variables to the compiler
Avoid:

u-boot-1_2024.01-r0 do_package_qa: QA Issue: File /boot/u-boot-qemuriscv64-2024.01-r0.elf in package u-boot contains reference to TMPDIR [buildpaths]

by ensuring the compiler has the prefix mapping options passed in to it
to correctly remap the source paths and avoid the warning.

(From OE-Core rev: 85c6b06da641fdaf09f2cfe7066e0cf1185c7969)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Richard Purdie
353fb8f18f kernel-devsrc: Improve vdso-offsets handling for qemuriscv64
Fix:

kernel-devsrc-1.0-r0 do_package_qa: QA Issue: File /lib/modules/6.6.15-yocto-standard/build/include/generated/.compat_vdso-offsets.h.cmd in package kernel-devsrc contains reference to TMPDIR [buildpaths]

by adding to the list of files we do this with. Also drop the
conditional since rm -f handles this.

This only apppears for qemurisc*.

(From OE-Core rev: a8fde81958fef39589e0df3f57c1dffd028d1631)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-17 18:19:19 +00:00
Alexander Kanavin
a4fd595a2b meta/conf/templates/default/conf-notes.txt: remove
This is present in the poky repository, even though it should
not be:
https://git.yoctoproject.org/poky/tree/meta/conf/templates/default

I couldn't find which tool leaves the file in place when combining
oe-core/bitbake/meta-yocto repos into poky, so this patch is rather
a request to point me to where it happens (or just fix it directly there).

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 23:17:13 +00:00
Khem Raj
33255c6af0 llvm: Upgrade to LLVM-18 RC2
Final Release is coming in first week of March

(From OE-Core rev: 25b093a30566ad6fd6dc0fdfdd413db7020559bb)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Yoann Congal
e898f65b33 waf.bbclass: Print waf output on unparsable version
On AB runs of reproducible-meta-oe/Repro meta-oe/meta-oe,
"waf --version" does not seem to contain the version but an error
message with "RuntimeWarning: <something>" [0].

Since the actual output is not saved anywhere, it is quite hard to
debug.

This patch detects the problematic case and send it to the log where it
will be seen and fixed. As a side-effect, this error will now only be a
warning.

Here is a partial backtrace for this (full back trace visible in [0]):
  NOTE: recipe mpv-0.35.1-r0: task do_configure: Started
  ERROR: mpv-0.35.1-r0 do_configure: 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>
   *** 0002:waf_preconfigure(d)
  File: '$TOP/meta/classes-recipe/waf.bbclass', lineno: 58, function: waf_preconfigure
       0056:        result = subprocess.check_output([python, wafbin, '--version'], cwd=subsrcdir, stderr=subprocess.STDOUT)
       0057:        version = result.decode('utf-8').split()[1]
   *** 0058:        if bb.utils.vercmp_string_op(version, "1.8.7", ">="):
  [...]
  File: '$TOP/bitbake/lib/bb/utils.py', lineno: 91, function: split_version
   *** 0091:        e = int(s.split(":")[0])
  Exception: ValueError: invalid literal for int() with base 10: 'RuntimeWarning'

[0]: https://autobuilder.yoctoproject.org/typhoon/#/builders/155/builds/11/steps/32/logs/stdio line 31883

(From OE-Core rev: 4a82c7ca74075b4c22be94891eecc24238bd0e65)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Trevor Gamblin
122401ce48 patchtest-send-results: add --debug option
Add a -d/--debug option to patchtest-send-results so that the contents
of the constructed raw email can be checked without actually sending
anything to the list or patch author.

(From OE-Core rev: e50827d23fd3789e7a13df6918a06b198bbf4f95)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Trevor Gamblin
6d6a924718 patchtest: Fix grammar in log output
(From OE-Core rev: ded6eb17dc423988cc975d72c36fe9ba6f28eab8)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Denys Dmytriyenko
1e0cf2db7c xz: upgrade 5.4.5 -> 5.4.6
Project has made changes to the site structure: https://tukaani.org/
| The XZ projects were moved to their own website on xz.tukaani.org in
| January 2024. The old links will be kept working via redirections.

While old release tarballs are still being accesible on the site via
redirects, new releases are no longer hosted on the site and point
directly to github - update SRC_URI.

The website change was mentioned in the COPYING file, changing its hash.

Full Changelog:
https://github.com/tukaani-project/xz/releases/tag/v5.4.6

License-Update: new URL due to website restructure

(From OE-Core rev: 9cc6c809c154019afe3bf6e6d617eab640faa4d0)

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Denys Dmytriyenko
c3b895e943 zlib: upgrade 1.3 -> 1.3.1
Refresh local patch.

Changelog:
https://github.com/madler/zlib/releases/tag/v1.3.1

(From OE-Core rev: 186475e244d9622817b5a50e83cbfe1e4ed78e34)

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Peter Kjellerstedt
37aa0e077a devtool: modify: Correct appending of type=git-dependency to URIs
A missing space when using :append would lead to run-on URIs if there
was no whitespace at the end of the original SRC_URI.

(From OE-Core rev: 4de0c679e4b1a3cb394f348d625b97ad73f1efe7)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Tim Orling
f3a72a2862 python3-poetry-core: upgrade 1.8.1 -> 1.9.0
This version deprecates "poetry.core.masonry.builder", but we detect
"poetry.core.masonry.api" in recipetool and nothing has broken our
build of wheels.

Thanks to Ross for noticing that the
"from poetry.core.masonry.builders.wheel import WheelBuilder"
is not a massive change in practice.

Changes:

1.9.0 - 2024-02-02

Added
* Add a to key in tool.poetry.packages to allow custom subpackage names (#672).
* Add support for path dependencies that do not define a build system (#675).
* Add a tool.poetry.package-mode key to support non-package mode (#661).

Changed
* Update list of supported licenses (#659, #669, #678, #694).
* Improve support for PEP 691 JSON-based Simple API (#664).
* Establish zipapp compatibility (#670).
* Rework list of files included in build artifacts (#666).
* Improve performance by treating collections in packages as immutable (#663).
* Deprecate poetry.core.masonry.builder (#682).
* Deprecate scripts that depend on extras (#690).

Fixed
* Fix an issue where insignificant errors were printed if the working
  directory is not inside a git repository (#684).
* Fix an issue where the project's directory was not recognized as git
  repository on Windows due to an encoding issue (#685).

Vendoring
* fastjsonschema==2.19.1
* lark==1.1.8

https://github.com/python-poetry/poetry-core/blob/main/CHANGELOG.md#190---2024-02-02

(From OE-Core rev: 651fc15e1403268aca19bd1453b3796d1effa559)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Richard Purdie
2774954f7e openssh: Add a work around for ICE on mips/mips64
Unfortunately the new openssh version has an ICE on mips. This looks similar to:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104817
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104820

Given how long these have been open, workaround the issue by disabling the compiler
hardening options on mips.

It is likely better to do this than have the open CVEs for everyone
as we can't upgrade.

An example:

| during RTL pass: zero_call_used_regs
| clientloop.c: In function 'client_loop':
| clientloop.c:1699:1: internal compiler error: in int_mode_for_mode, at stor-layout.cc:407
|  1699 | }
|       | ^
| 0x14d0acc internal_error(char const*, ...)
| 	???:0
| 0x5cf765 fancy_abort(char const*, int, char const*)
| 	???:0
| 0x826f1f emit_move_insn_1(rtx_def*, rtx_def*)
| 	???:0
| 0x8270c5 emit_move_insn(rtx_def*, rtx_def*)
| 	???:0
| 0xb7b994 default_zero_call_used_regs(HARD_REG_SET)
| 	???:0
| Please submit a full bug report, with preprocessed source (by using -freport-bug).
| Please include the complete backtrace with any bug report.

(From OE-Core rev: 5b290566519a87c563945a033cb49863317ad63d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Tim Orling
0de05c35bd openssh: upgrade 9.5p1 -> 9.6p1
* Relocate Upstream-Status in 0001-regress-banner.sh-log-input-and-output-files-on-erro.patch
  so it will not throw an error in AUH

https://www.openssh.com/txt/release-9.6
https://github.com/openssh/openssh-portable/compare/V_9_5_P1...V_9_6_P1

https://nvd.nist.gov/vuln/detail/CVE-2023-48795
https://nvd.nist.gov/vuln/detail/CVE-2023-51384
https://nvd.nist.gov/vuln/detail/CVE-2023-51385

CVE: CVE-2023-48795
CVE: CVE-2023-51384
CVE: CVE-2023-51385

(From OE-Core rev: 8416c8d1b57dd6c9c7890aac962feb63bac6429b)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Markus Volk
896a480758 mesa: update 24.0.0 -> 24.0.1
(From OE-Core rev: 4c846cef03c6d56b2dc26d5edb50d2498205a549)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-16 15:14:26 +00:00
Anibal Limon
5a93a3728e ptest-runner: Bump to 2.4.3 (92c1b97)
Pull small fixed related to secure builds, handling of rc in every ptest
and better tests output when timeout.

Changes,

92c1b97 Do not reset error counter before each test
7de7e2b utils: run_child fix security flags build
6a9fba2 utils.c: get_available_ptests fix security flags compilation
5b8ad9a tests: Ensure that timeouts still print ERROR
d939217 SECURITY.md: Add file

(From OE-Core rev: 1d8a8487d300332c796a7555644bb370fc858f6f)

Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 22:15:24 +00:00
Trevor Gamblin
5c8e1e9955 patchtest-send-results: use Message-ID directly
There's no need to use regex for extracting the Message-ID field from
the patch email and mangle it by removing the angle brackets in the
process. Pull it directly from the mbox so that Patchtest's replies have
even fewer differences when compared to other replies. Also add a TODO
so that it's clear this needs adjustment when full series support is
added.

(From OE-Core rev: 1ce51580a23869a9c0f409446ff717d471fb60db)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 21:41:10 +00:00
Randy MacLeod
29c9b86162 valgrind: Skip 22 arm64 ptests
With the 3.22 upgrade 21 additional tests fail on qemuarm64.
Skip them until the problems are resolved. Tracked by:
   https://bugzilla.yoctoproject.org/show_bug.cgi?id=15399

(From OE-Core rev: 2fe9097c8c3944ab89d12fd29bcd0fc2d0d195e3)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 21:30:14 +00:00
Randy MacLeod
00c328db4d valgrind: skip 14 ptests in 3.22
Sort the ptest depenencies into a somewhat alpahbetical order.
Add python3-compile for ptests.

Add softlinks for cachegrind to eliminate a warning seen in those tests.

The folowing tests fail after the 3.22 update:
   memcheck/tests/linux/dlclose_leak-no-keep
   memcheck/tests/linux/dlclose_leak
   memcheck/tests/wrap1
   memcheck/tests/wrap2
   ...
   memcheck/tests/wrap8
   cachegrind/tests/wrap5
   massif/tests/bug469146
   massif/tests/new-cpp
   massif/tests/overloaded-new

Omit these tests until they are fixed.
Tracked by: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15399

=== Test Summary ===
TOTAL: 778
PASSED: 759
FAILED: 0
SKIPPED: 19

(From OE-Core rev: 8203bfac493226c26f0d6db0f653868605433b6f)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 21:30:14 +00:00
Randy MacLeod
04625c92a1 valgrind: update from 3.21.0 to 3.22.0
Full release notes: https://valgrind.org/docs/manual/dist.news.html

In summary, there is a new configure option: --with-gdbscripts-dir
that lets you install the gdb valgrind python monitor scripts in a specific location.
It's not used in the valgrind recipe yet. Also, there were a few Memcheck and Cachegrind
improvements made and many bugs fixed.

The update required removing the patch:
   0001-none-tests-x86-linux-seg_override.c-add-missing-incl.patch
as it's dealt with by these commits:
   f7e4bb4af Bug 382034 - Testcases build fixes for musl
   306232d40 musl: another fix for building testcases
as described on: https://bugs.kde.org/show_bug.cgi?id=382034

Drop: 002-context-APIs-are-not-available-on-musl.patch
since this is handled in a different way by the following
upstream commits:
   c9e88f345 configure, drd: Only build the swapcontext test if swapcontext() is available
   7cd4d7816 memcheck/tests/linux/stack_changes: Only run this test if setcontext() is available
And the that tracked the error:
   https://bugs.kde.org/show_bug.cgi?id=434775
is closed.
No regression in musl qemux86-64/kvm ptest results.

Drop: 0001-fix-opcode-not-supported-on-mips32-linux.patch
The resolved (works for me) upstream defect rejected this patch:
   https://bugs.kde.org/show_bug.cgi?id=396905
and suggested using CFLAGS="-mips32". With this patch dropped, the
qemumips build succeeds perhaps due to using -march=mips32r2

Drop: 0001-Make-local-functions-static-to-avoid-assembler-error.patch
since this was fixed upstream by commit:
   d6da48fe5 mips: use local labels for do_acasW()
Confirmed with:
   MACHINE=qemumips TCLIBC=musl bitbake valgrind

Ptest Resutls for qemux86-64/kvm

glibc:
=== Test Summary ===
TOTAL: 792
PASSED: 759
FAILED: 14
SKIPPED: 19

musl:
=== Test Summary ===
TOTAL: 792
PASSED: 559
FAILED: 211
SKIPPED: 22

(From OE-Core rev: a04c7714e9f69b7a3fc36adecf7e55c0fcfaa891)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 21:30:14 +00:00
Randy MacLeod
b1aaadb828 valgrind: make ptest depend on all components
When the helper scripts were split into separate packages, they
weren't added as ptest dependencies. Fix that.

(From OE-Core rev: 81c15142889ccb6cc2f2a00e7cdb92bcb36ca12c)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 21:30:14 +00:00
Maanya Goenka
9382d731bd bash: nativesdk-bash does not provide /bin/bash so don't claim to
The package nativesdk-sdk-provides-dummy already provides /bin/sh and /bin/bash and
nativesdk-bash does not provide them, it provides them in ${nativesdk_bindir}. Tweak
the definition to class-target only to avoid this.

[RP: Tweaked wording to clarify]

(From OE-Core rev: 4362867cc21a0b8ec6a780258859ce8b7c13ae02)

Signed-off-by: Maanya Goenka <maanyagoenka@microsoft.com>
Signed-off-by : Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 15:15:05 +00:00
Aleksey Smirnov
0fe85ce0c6 busybox: Explicitly specify tty device for serial consoles
Description: In case of two or more consoles are in inittab,
and not specified tty device for first one, some keys works improperly,
ex: arrows, backspace, pgup/pgdown; The patch is fixes this issue.

(From OE-Core rev: 7eea4ef84d74e618fb00fa73c773acdf775d052a)

Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:34:34 +00:00
Priyal Doshi
b554ea9e36 tzdata : Upgrade to 2024a
(From OE-Core rev: 5abbd0abf992ce8d11f3ae31fb1d83d97f5319fa)

Signed-off-by: Priyal Doshi <pdoshi@mvista.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:29:15 +00:00
Ross Burton
746bebb8dd meson: remove TMPDIR workaround
We had to export TMPDIR because Meson was writing temporary files into
/tmp and then trying to run them, but some systems had /tmp mounted
noexec.

This is now solved upstream as of meson commit 1e182b5 (which was part of
Meson 0.52.0), and these temporary files are written to the build tree
instead.

(From OE-Core rev: 1809d20f92dc0e4eff19cf081ca78a9f30deb611)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:29:15 +00:00
Markus Volk
3a5e5742fc mesa: update 23.3.5 -> 24.0.0
- refresh 0001-meson.build-check-for-all-linux-host_os-combinations.patch
- rework VIDEO_CODECS. mesa now provides options for 'all' and 'all_free'
  Adjust accordingly.
  Free codecs are built by default:
    Codecs                       : av1dec av1enc vp9dec
  If LICENSE_FLAGS_ACCEPTED contains 'commercial' all supported codecs are built:
    Codecs                       : vc1dec h264dec h264enc h265dec h265enc
                                   av1dec av1enc vp9dec

(From OE-Core rev: 8975bf600de8a3faa8d222f50beb1e2b02fb2870)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:18:10 +00:00
Simone Weiß
b83bd953da patchtest: log errors and failures at end
At the moment, running patchtest locally will only print failures and errors
to the log when the not passing test case is executed. This might lead to
people overlooking issues with their patches, so print a log line at the
end if testcases showed issues. This should make it more easy to spot then
before.

Fixes [YOCTO #15389]

(From OE-Core rev: 84ca5a5f5a44de6ed4551ab08e58087aaa7e1369)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:18:10 +00:00
Ross Burton
0d12162071 python3-unittest-automake-output: upgrade to 0.2
Specifically this fixes the issue where if a pytest test suite fails
during collection then the errors are hidden.

(From OE-Core rev: db0e82135ce73d0d6d55b2c2ac17a3fdec8aca99)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:18:09 +00:00
Jose Quaresma
46fb0082dd qemu: disbale AF_XDP network backend support
This fix some host contaminations issues:
| /poky/build/tmp/hosttools/ld.bfd: libcommon.fa.p/net_af-xdp.c.o: undefined reference to symbol 'bpf_xdp_detach@@LIBBPF_0.7.0'
| /poky/build/tmp/hosttools/ld.bfd: /usr/lib/libbpf.so.1: error adding symbols: DSO missing from command line
| collect2: error: ld returned 1 exit status

The AF_XDP network backend support [1] requires the libxdp that is not
available in any layer, otherwise you can configure this option:
| PACKAGECONFIG[af-xdp] = "--enable-af-xdp,--disable-af-xdp,libxdp"

[1] cb039ef3d9

(From OE-Core rev: c2524614e49aee95b23d7bc162b1a30dee8cf59c)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:18:09 +00:00
Ross Burton
54f660a5f6 python3: move dataclasses to python3-core
For some reason dataclasses was being packaged in the -profile subpackage,
which doesn't make sense as this is a core piece of the runtime support.

(From OE-Core rev: bc17d33b30a6d5d970f390becf726e852fd0cc16)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:18:09 +00:00
Tim Orling
a332f47bdb python3-cryptography: upgrade 41.0.7 to 42.0.2
* Also upgrade python3-cryptography-vectors
* Drop patch for 9129, fixed upstream
* Refresh pyproject.toml --benchmark-disable patch
* Refresh -crates.inc

Changes:
https://cryptography.io/en/latest/changelog/#v42-0-2
https://cryptography.io/en/latest/changelog/#v42-0-1
https://cryptography.io/en/latest/changelog/#v42-0-0
https://github.com/pyca/cryptography/compare/41.0.7...42.0.2

RP: Add new REPENDS on python3-mmap for ptest
RP: Increase memory in ptest image to avoid test failures

(From OE-Core rev: 45ee8ae2f6173a11e6d004c8eeba138073b84d18)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-15 09:18:09 +00:00
Ross Burton
393da961be glib-2.0: backport memory monitor test fixes
We've been seeing the memory-monitor-dbus test case fail occasionally
on the autobuilder.  Luckily there have been a series of fixes upstream
to fix races in the test case, so backport these and hopefully they
fix the issue.

[ YOCTO #15362 ]

(From OE-Core rev: 311d2606a70528e14093dd93178a2c7170718333)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Jonathan GUILLOT
8da6bd69dc cups: use LOCALE_PATHS to split localized HTML templates
Localized HTML templates in /usr/share/cups/templates are now part of
locale packages.

(From OE-Core rev: beb21ac92e95b6f4bf64e4932b154f78e2c6c2ef)

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Jonathan GUILLOT
c2a7c008e1 lib/oe/package: add LOCALE_PATHS to add define all locations for locales
Some packages may contain localized files not located in default path
${datadir}/locale. Add the new variable LOCALE_PATHS to allow a recipe
to define extra paths or even fully override the scanned directories.
LOCALE_PATHS is set at ${datadir}/locale by default to keep the exact
same behavior for the recipes which did not need modification.

(From OE-Core rev: 0ffc7cf01225743789ac30dd325fca05b9203be1)

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Jonathan GUILLOT
c381ca7243 lib/oe/package: replace in place PN-locale-* packages in PACKAGES
split_locales() removes PN-locale from PACKAGES and adds PN-locale-* to the end.
As the PN-locale package typically appears before PN base package, it may result
in paths not installed in PN-locale-* packages if already catched by PN. Now
insert PN-locale-* exactly where PN-locale was existing in list to avoid such
an issue.

(From OE-Core rev: 108bc167ed0d43505af3140947a0ab79c89f0a7b)

Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Enrico Jörns
8f855f1e84 rootfs-postcommands: remove make_zimage_symlink_relative()
This does not seem to have any purpose anymore since the pkg_postinst
from kernel.bbclass always creates relative symlinks from zImage to
zImage-${KERNEL_VERSION}.

(From OE-Core rev: 24ce7e5445962b9b3143036ecb3d44945082ce44)

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Yoann Congal
f441e63de9 kexec-tools: Replace a submitted patch by the backported one
This replaces "kexec-tools: purgatory: fix build on `binutils-2.42`"
(Submitted upstream) by "Fix building on x86_64 with binutils 2.41"
(which was actually merged).

Upstream maintainers found the second patch more complete [0].

[0]: https://lore.kernel.org/all/ZbopWV9qrxMME2hU@MiWiFi-R3L-srv/T/

(From OE-Core rev: 704523a383d6a7f5fa46348010e9676b4e828331)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Khem Raj
1523bba26f piglit: Fix build with musl
(From OE-Core rev: 62885b6943763bf093dbb3c4b9ea1b30d0f51966)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Khem Raj
b080cecd05 glibc: Update to bring mips32/clone3 fix
This patch is the only change applied with this update

* 312e159626 mips: FIx clone3 implementation (BZ 31325)

(From OE-Core rev: c100c709e746e7b7301c5e01cbf43572a225f00e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Wang Mingyu
5007bd98ce python3-pytz: upgrade 2023.3 -> 2023.4
(From OE-Core rev: 74ccdbd29e967192d57e9eb05a0f5b4e1d78a50a)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Wang Mingyu
b02c9ed25d python3-pyopenssl: upgrade 23.3.0 -> 24.0.0
Changelog:
-Added OpenSSL.SSL.Connection.get_selected_srtp_profile to determine which SRTP
 profile was negotiated.

(From OE-Core rev: fc93e8cfe0dde7dd17bd55bccc8a64011b26f1b1)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Wang Mingyu
913d2891bc python3-psutil: upgrade 5.9.7 -> 5.9.8
(From OE-Core rev: f8968579816453c8bd4af819e93f5ad210da0305)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Wang Mingyu
b4265fa163 python3-pluggy: upgrade 1.3.0 -> 1.4.0
Changelog:
============
-A warning :class:'~pluggy.PluggyTeardownRaisedWarning' is now issued when an
 old-style hookwrapper raises an exception during teardown. See the warning
 documentation for more details.
-Add :func:'PluginManager.unblock <pluggy.PluginManager.unblock>' method to
 unblock a plugin by plugin name.
-Fix :func:'~pluggy.HookCaller.call_extra()' extra methods getting ordered
 before everything else in some circumstances. Regressed in pluggy 1.1.0.
-Fix plugins registering other plugins in a hook when the other plugins
 implement the same hook itself. Regressed in pluggy 1.1.0.

(From OE-Core rev: 1bc326d5228e90bd3cd19d7f3f10b2f74a39d06e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:36 +00:00
Wang Mingyu
92d3e56e26 python3-hypothesis: upgrade 6.92.9 -> 6.97.3
Changelog:
 https://hypothesis.readthedocs.io/en/latest/changes.html

(From OE-Core rev: 4fd3ee9e8504af687c966e85c944854c509e4cc7)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:35 +00:00
Wang Mingyu
c60748947c python3-hatchling: upgrade 1.21.0 -> 1.21.1
Changelog:
 Fix loading of local plugins to account for newly released versions of a dependency

(From OE-Core rev: f372bcf6d530bb0627fe2ed49e52e7ae279bf77f)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:35 +00:00
Wang Mingyu
43161365c5 python3-mako: upgrade 1.3.0 -> 1.3.2
Bugfix:
---------
Fixed parsing issue where attempting to render a single percent sign %
using an escaped percent %% would not function correctly if the escaped
percent were not the first character on a line.

License-Update: Copyright year updated to 2024.

(From OE-Core rev: 6cc0e19da1259b4461e6b9c7014ab041b9d60fa4)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:35 +00:00
Wang Mingyu
6daa62c124 python3-beartype: upgrade 0.16.4 -> 0.17.0
License-Update: Copyright year updated to 2024.

(From OE-Core rev: 3752a33ce9490d8fc9d59a0e952faa47c0abba71)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-14 13:53:35 +00:00
Richard Purdie
cdb1cb2ed8 bitbake: runqueue: Improve setcene performance when encoutering many 'hard' dependencies
"bitbake world -n --setscene-only" shows poor performance as the numbers of tasks
increases. Analysys shows this is due to the "deferred" hard dependencies being
repeatedly processed which doesn't allow much forward progress in overall task
execution.

To avoid this, mark when it has been done and don't reprocess until dependencies
are updated. We have to be careful as we've seen bugs where these dependencies
aren't processed at the right time. They also have to be reproceseed during task
migration/rehashing so the code has to "self heal" the data structures.

(Bitbake rev: e5609bac06c17dabcf6286b47b1a3f19f5a1160f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:52:10 +00:00
Richard Purdie
71f55957f0 bitbake: runqueue: Optimise taskname lookups in next_buildable_task
A quick profile of bitbake world showed 147 million calls to taskname_from_tid().
The next_buildable_task function is performance senstive so move the call
inside the if block to reduce the number of calls and speed the code up.

(Bitbake rev: 8b332c16a7b6b85c5cbe1919dd8cae45fda6adf9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:52:10 +00:00
Richard Purdie
a7bbb105d3 bitbake: runqueue: Improve performance for executing tasks
Now that runqueue performance profiling works again we can see a lot
of time is lost in build_taskdepdata. Whilst we can't compute that
in advance, we can compute the individual entries.

Therefore put a cache in place to compute those and save overhead in
starting up tasks.

(Bitbake rev: c4519b542702ba25023e53d77b275a6fa571ec50)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:52:10 +00:00
Adrian Freihofer
1a3f01cad4 bitbake: bitbake/lib/bs4/tests/test_tree.py: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.

(Bitbake rev: a5f1bc69ef2e456bd163303a07cfb73825b01576)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:52:10 +00:00
Ross Burton
7b7a5f596f libpam: remove redundant PTEST_ENABLED conditional
do_install_ptest is only called if ptest is enabled, so don't guard it
again.

(From OE-Core rev: 7f9d0f331ce5b5292117b3d8c23f747a369cfde6)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Ross Burton
1698249fc3 xz: remove redundant PTEST_ENABLED conditional
There's no need to conditionally include run-ptest in the SRC_URI.

(From OE-Core rev: 74bd5ea29c8e2c607e9b982028c103abebcd0b27)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Philip Lorenz
87798f82db ipk: Remove temporary package lists during SDK creation
The temporary package lists used during SDK creation should not be
shipped as part of the SDK (in particular because due to the opkg local
file download optimization they are actually symlinks into the build
directory). Remove them by calling the respective helper method during
the SDK build.

(From OE-Core rev: c18ba66da3c77f247170efd2cb350686010bef57)

Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Vikas Katariya
5f449575be bmap-tools: Add missing runtime dependency
Python3 module netrc is required by bmap-tools (v3.7), therefore add
`python3-misc` as runtime dependency.

(From OE-Core rev: a1cf354c7978be8f1869eb83ed814823b373a8c8)

Signed-off-by: Vikas Katariya <vikas.katariya@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Khem Raj
f6d6f1af1d glibc: Update to latest on 2.39
Brings this bugfix for arm

63295e4fda arm: Remove wrong ldr from _dl_start_user (BZ 31339)

(From OE-Core rev: 109c14a3d6ebe0a7162bc275f4f8ae8adf91196d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Wang Mingyu
900dc520ca python3-sphinxcontrib-serializinghtml: upgrade 1.1.9 -> 1.1.10
(From OE-Core rev: 5de0d7b3342bd8ba700966396a0be4e3ff4a2348)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Wang Mingyu
c84590f0b0 python3-sphinxcontrib-qthelp: upgrade 1.0.6 -> 1.0.7
(From OE-Core rev: 7c9606bd80e7ea405c931af0059a4d920caa6e3c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Wang Mingyu
484f3c295e python3-sphinxcontrib-htmlhelp: upgrade 2.0.4 -> 2.0.5
(From OE-Core rev: a47a29cafd2c36aa905682bc0c6d5491ecba93c4)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Wang Mingyu
0f8aa8c5f8 python3-sphinxcontrib-devhelp: upgrade 1.0.5 -> 1.0.6
(From OE-Core rev: 16fc314aa345a4726fefe322548466d5bc5a5ab4)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Wang Mingyu
cceb802102 python3-sphinxcontrib-applehelp: upgrade 1.0.7 -> 1.0.8
Changelog:
===========
-  Remove Sphinx as a required dependency, as circular dependencies may cause
  failure with package managers that expect a directed acyclic graph (DAG)
  of dependencies.

(From OE-Core rev: d82e4f1f571e90adc2290eb819f4c8b6ebaa3d1a)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Khem Raj
7879964391 tcmode-default: Do not define LLVMVERSION
There is a single version of llvm in core these days, furthermore the
version is no longer asked for by recipes such as mesa, which would use
llvm-config tool according to version of llvm found.

(From OE-Core rev: 15d09b02b2632ab1cabc3b1bd9f521e6d3d3b83f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Acked-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Michal Sieron
80396cc72a sanity.bbclass: raise_sanity_error if /tmp is noexec
Older meson versions save temporary scripts in /tmp.
Similarly some recipies also do that (e.g. ccan in sbsigntool).

As this can lead to unexpected build failures with no simple way
to workaround, make such setup a fatal error.

(From OE-Core rev: ee93a8e89322143252040bd5bc99259c5efff831)

Signed-off-by: Michal Sieron <michalwsieron@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Adrian Freihofer
83d5c123d3 meta/recipes: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.

(From OE-Core rev: f2d80817baea298b953d6e14daad65087b3b50c9)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Adrian Freihofer
fe58da1393 meta/lib/patchtest: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.

(From OE-Core rev: 329a555f7b8f00c648c44b01f423e6da33a46245)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Adrian Freihofer
7f2755daca meta/lib/oeqa: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.

(From OE-Core rev: 9002850f0c2e409d3bc629e36bb360b96326bb64)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Adrian Freihofer
6685094495 feature-microblaze-versions.inc: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.

(From OE-Core rev: 662f52f1713c9f070550fc0c874eb62312218ea4)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>

feature-microblaze-versions.inc#

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Adrian Freihofer
605ef6f5a2 scripts: python 3.12 regex
All the regexes throw a warning like this:

WARNING: scripts/lib/recipetool/create_buildsys.py:140:
      SyntaxWarning: invalid escape sequence '\s'
      proj_re = re.compile('project\s*\(([^)]*)\)', re.IGNORECASE)

Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.

(From OE-Core rev: 24b0ba00d4f0b4d9834f7693ecb6032dfc534a80)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Adrian Freihofer
97eebe59d7 oeqa/selftest/oelib/buildhistory: git default branch
On hosts with git defaulting to main branch the following exception
occures:

File .../buildhistory.py", line 99, in test_compare_dict_blobs_default
  blob1 = self.repo.heads.master.commit.tree.blobs[0]
          ^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/git/util.py", line 1114, in __getattr__
  return list.__getattribute__(self, attr)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'IterableList' object has no attribute 'master'

Support main and master branch for these test cases.

Note: setting the default branch with --initial-branch requires git
version 2.28 or later. Some of the still supported host distros do not
provide this feature yet.

(From OE-Core rev: 7df99843d8f31d8e0c2872ff625f4a5abf28f740)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Richard Purdie
9b5b628799 insane: Clarify runtime/ warning
We should be pointing people at VIRTUAL-RUNTIME, not virtual so tweak
the warning. Try and make it clear the difference between the build
dependencies and the runtime ones.

(From OE-Core rev: 01d815aa2c0bea113fb79b51bf67c0ff90d57dd2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Richard Purdie
598e1db8e6 kernel-arch: Simplify strip support
I think these options to strip were added to mirror the other kernel commandline
options. In the strip case, it breaks code such as runstrip() in package.py
since only a single command with no options is supported.

For that reason I find it unlikely anyone is using this. Drop the problematic
variables.

(From OE-Core rev: 0d1c5971cafc1b65c000a10f7620e6ba22b53c91)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-13 13:51:41 +00:00
Richard Purdie
babd5fea4a bitbake: process/server: Fix typo
Ensure the message matches the filenames the code actually uses.

(Bitbake rev: deb7db2e2b125c6a6732db4f185f4de5926494fd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 15:25:22 +00:00
Michael Opdenacker
0ac07ddf71 bitbake: doc: README: simpler link to contributor guide
(Bitbake rev: 57d2f54e00374fe7452e123ec3c6e7ac27afb024)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:51 +00:00
Thomas Perrot
987ab2a446 bitbake: wget.py: always use the custom user agent
Add the "--user-agent" paramater in the wget base command to
perform all wget commands with this parameter, because a few
HTTP servers block requests with the default wget user agent.

For example, "hg.openjdk.org" never send a response to requests
have been sent with wget:
wget https://hg.openjdk.org/jdk8u/jdk8u/archive/jdk8u272-ga.tar.bz2
https://hg.openjdk.org/jdk8u/jdk8u/archive/jdk8u272-ga.tar.bz2
Resolving hg.openjdk.org (hg.openjdk.org)... 23.54.129.73
Connecting to hg.openjdk.org (hg.openjdk.org)|23.54.129.73|:443... connected.
HTTP request sent, awaiting response...

(Bitbake rev: d6fa261a9603677f0b3abbd309c1ca6073b63f4c)

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:51 +00:00
Richard Purdie
0f50f21151 bitbake: process: Add profile logging for main loop
When the idle/main loop was added, we didn't include profiling information
for it. There is a performance issue in there, add logging for it.

(Bitbake rev: d8d5cd43a60560f67e86f4f625113b0f73b944c0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:51 +00:00
Tim Orling
38657590e7 python3-pyyaml: enable ptest
Upstream is in the process of migrating testing to pytest, backport
test_dump_load.py (the legacy_tests were throwing Errors and Failures).
We don't really need to run upstream's test suite, but we do need to verify
that our runtime is functional.

a98fd6088e

(From OE-Core rev: b0fdf0688109ba6b87840a0837bebee3d9a27089)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:24 +00:00
Tim Orling
21be9d1a4b python3-pyyaml: add PACKAGECONFIG for libyaml
For some time now, we have probably been susceptible to host contamination
or at least non-deterministic behavior when libyaml was available in the
build environment.

The symptom is:
ERROR: python3-pyyaml-6.0-r0 do_package_qa: QA Issue:
/usr/lib/python3.11/site-packages/yaml/_yaml.cpython-311-aarch64-linux-gnu.so
contained in package python3-pyyaml requires libyaml-0.so.2()(64bit), but no
providers found in RDEPENDS:python3-pyyaml? [file-rdeps]

>From the documentation:
"""
By default, the setup.py script checks whether LibYAML is installed and
if so, builds and installs LibYAML bindings. To skip the check and force
installation of LibYAML bindings, use the option --with-libyaml:
python setup.py --with-libyaml install

To disable the check and skip building and installing LibYAML bindings,
use --without-libyaml:
python setup.py --without-libyaml install
"""

Instead of leaving this to chance, add PACKAGECONFIG and by default build
with the faster libyaml bindings.

(From OE-Core rev: dfde9526f9183907b2bc47fde4f59ab3a5848d90)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:24 +00:00
Pavel Zhukov
0010d9fbd2 systemd.bbclass: Check for existence of the symlink too
If the packages' service file is a link to parameterized service file
provided by different package [1] then link is dangling link at
do_package stage and os.path.exists(path) returns False even if the link
exists. Replace os.path.exists with lexists to fix this issue.

[1]
An example:
  Package A provides myservice@.service

  Package B depends and rdepends on A and provides:
  myservice@B.service -> myservice@.service

(From OE-Core rev: e2b638dcd6b7c51f7ee2cd4bc051d6b12e642d6c)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:24 +00:00
Randolph Sapp
9e6e34210a mirrors.bbclass: add infraroot as an https mirror
Add the new infraroot.at mirror to the MIRRORS string for https sources
since infradead.org does not support https and certain proxy configs
cause this fetch to fail.

Mirror info fetched from the following announcement:
https://lists.infradead.org/pipermail/linux-mtd/2023-August/100922.html

(From OE-Core rev: ce8f7bb81598aecafe486a461c94254b97518832)

Signed-off-by: Randolph Sapp <rs@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:24 +00:00
Trevor Gamblin
465c25ce2d patchtest-send-results: Add 'References' header
Based on https://www.rfc-editor.org/rfc/rfc2822#section-3.6.4, to get
proper threading there should be a 'References' field defined in
Patchtest's response headers if its replies are going to thread properly
on Patchwork. This wasn't there before, hence why were were seeing the
responses in the right place on the mailing list but not Patchwork.

Since we only want Patchtest to reply directly to the tested patch,
the 'References' field should only need to contain the same ID as the
'In-Reply-To' one.

(From OE-Core rev: f8a2af973d829c3c7f2dce39ce452daf74f31f52)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:24 +00:00
Ross Burton
c472b4ce59 recipetool: don't dump stack traces if a toml parser can't be found
If we can't find tomllib or tomli then we can just tell the user politely
that we can't parse the pyproject.toml file, there's no need to dump
exception stack traces.

Move the parser exception handler to catch the actual parse, as otherwise
it will never be used.

Whilst here, also add some debug statements to make it clear what of the
handlers is being called.

(From OE-Core rev: 1a3ba4c312844d80ae382912b319e60ad8b30737)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:24 +00:00
Ross Burton
398f27cc0b oeqa/selftest/recipetool: downgrade meson version to not use pyproject.toml
recipetool's pyproject.toml parsing needs tomllib (python 3.11+) or
tomli (not a hard dependency), so is prone to failing depending on the
host configuration.

Downgrade the Meson release used for the checks to 0.52.1, which was the
last release before moving to pyproject.toml.

(From OE-Core rev: 6dfe573d83687e5431841f062442b54b9fa22ff3)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-10 14:13:23 +00:00
Khem Raj
19687ca10c core-image-ptest: Increase disk size to 1.5G for strace ptest image
Autobuilder sees and intermittent failure on strace tests and it occurs
quite often therefore bump the size of image as the space requirement is
more now with parallel execution enabled.

[YOCTO #15370]

(From OE-Core rev: 02d31355b20f8f3e7bd1b71c9412988eca9ec4b4)

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>
2024-02-09 18:16:53 +00:00
Marek Vasut
07006c4867 Revert "lzop: remove recipe from oe-core"
This reverts commit dea5e8863792dc7bb3324b543e04da4c94a060aa.

The original commit claims that lzop is unused in OE-core.
That is not correct, the following places still use it and
became unbuildable now:
"
meta/classes-recipe/image_types.bbclass:CONVERSION_CMD:lzo = "lzop -9 ${IMAGE_NAME}.${type}"
meta/classes-recipe/image_types.bbclass:CONVERSION_DEPENDS_lzo = "lzop-native"
meta/classes-recipe/kernel-uboot.bbclass:                       lzop -9 linux.bin
meta/classes-recipe/kernel.bbclass:DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lzo", "lzop-native", "", d)}"
meta/classes-recipe/kernel.bbclass:                             lzop -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img
"

Furthermore, LZO is the best compromise between kernel decompression
time and size on low end ARM systems, that is why it is often used
with e.g.:
FIT_KERNEL_COMP_ALG = "lzo"
FIT_KERNEL_COMP_ALG_EXTENSION = ".lzo"

Reinstate the package to avoid breaking this use case.

[RP: For me, the real reason to justify this is fact that several SoC/BSP
layers do want this as a dependency]

(From OE-Core rev: 6e8a0d66e05387d55c49a275faa7f4aa2bf6f2ac)

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 16:18:05 +00:00
Michael Opdenacker
6a9aab5654 oeqa/runtime/cases: fix typo in information message
(From OE-Core rev: 901ff496b97119add792912fbb2f1efb1152e7c2)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 15:55:58 +00:00
Toni Lammi
e834e8ee91 bitbake: support temporary AWS credentials
Support AWS_SESSION_TOKEN which is used in temporary
AWS credentials.

Fixes [YOCTO #15384].

(Bitbake rev: ae1e4c90bbc2002cb2728c64649c095c00220ceb)

Signed-off-by: Toni Lammi <toni.lammi@kone.com>
Reported-by: Toni Lammi <toni.lammi@tl-software.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 14:06:16 +00:00
Richard Purdie
76575e760a layer.conf: Update for the scarthgap release series
Prepare for the scarthgap release.

(From meta-yocto rev: 5be4f867a3fba39103a569eb4ecf10c39eca3742)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 14:00:03 +00:00
Richard Purdie
95cebcae00 layer.conf: Update for the scarthgap release series
Prepare for the scarthgap release.

(From OE-Core rev: b1835e657575c29da43a15a37c673dc37044fd85)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:58:18 +00:00
Richard Purdie
fcabbccd5f selftest/recipetool: Improve test failure output
When the test fails, it simply says the file doesn't exist. This isn't helpful
so improve the output.

(From OE-Core rev: ea6b42485696c6981157a28da2dc9a67f2f3f9c6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Richard Purdie
f9ed2bdfdb selftest/recipetool: Factor tomllib test to a function
As more tests start to need this codeblock, factor it into a common function.

(From OE-Core rev: c154eba9aa8e7d780ce2c5a18cbc0756a30850d1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Alexander Kanavin
df0a2575ec shadow: add a packageconfig for logind support
This was causing host contamination in particular, where
libsystemd was installed on the host.

(From OE-Core rev: fda06b441655cfa4e5f93e8f5587f27aa3610bb8)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Alex Stewart
a6136110b0 opkg-arch-config: update recipe HOMEPAGE
The opkg-utils HOMEPAGE value should follow the yocto opkg fork - which
has been moved off of Google Code and is now centralized on yocto git
infrastructure.

(From OE-Core rev: 6ff8b43e08840582ee8d88261cbaffd33c2304f9)

Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Alex Stewart
64ed7fdb53 opkg: add deprecation warning for internal solver
The opkg internal sat-solver is marked for deprecation in a future
release.

Add a recipe QA check to warn users who have the internal solver
configured.

(From OE-Core rev: c8405b86c6c3f9054810914105de5d70c4b7800b)

Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Alex Stewart
3536981691 opkg: upgrade to 0.6.3
Release Notes for opkg-0.6.3
====

- [Added](https://git.yoctoproject.org/opkg/commit/?id=ef743b75745939df210a9e6a70a44d69181ef05a) new configuration options to enable preserving ACLs and XAttrs when extracting IPKs.

- [Fixed](https://git.yoctoproject.org/opkg/commit/?id=9e62a38a4a52974007e9ea174504c42069da1a02) a bug where some library locales might mismatch the user environment. Opkg will now consistently honor the environment's locale.

(From OE-Core rev: cec2d4b32f7f1b24ecc358e2fc6e5fe6003274e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Clément Péron
54baffd407 libpcap: extend with nativesdk
libpcap is requirements to other recipes that could be integrated in
a SDK.

Add nativesdk to BBCLASSEXTEND.

(From OE-Core rev: c085ddaa1d4a508470f9a9b37352d62a4587bc7f)

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Trevor Gamblin
3296f9a13d python3-numpy: upgrade 1.26.3 -> 1.26.4
Changelog: https://github.com/numpy/numpy/releases/tag/v1.26.4

Upgrade to pull in a variety of bug fixes.

The same number of ptests (6) fail as in 1.26.3, so no regression there.

(From OE-Core rev: 0314d2b43701984b5648bce9ca9aaeba5f768b78)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Alex Kiernan
11ed2d14f9 wireless-regdb: Upgrade 2023.09.01 -> 2024.01.23
Upstream maintainer has changed to Chen-Yu Tsai <wens@kernel.org>:

https://lore.kernel.org/all/CAGb2v657baNMPKU3QADijx7hZa=GUcSv2LEDdn6N=QQaFX8r-g@mail.gmail.com/

Note that fb768d3b13ff ("wifi: cfg80211: Add my certificate") and
3c2a8ebe3fe6 ("wifi: cfg80211: fix certs build to not depend on file
order") are required if you are using kernel signature verification.

(From OE-Core rev: abf169fbbf8bab13224adf4c8bfa2e26607f360c)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Aleksey Smirnov
92d790f5c1 conf/machine: Add Power8 tune to PowerPC architecture
Description: now we can tune our build only for power7 or power9
processor for PowerPC arch, this patch add posibility to choose power8 tune.

(From OE-Core rev: 10f7eeafd16c8b825b3c9b96b8433311f122df1e)

Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:55:06 +00:00
Khem Raj
e1f6910727 gcc-runtime: Move gdb pretty printer file to auto-load location
When debugging a C++ program on target using libcstdc++, gdb does not
find the pretty printer python support, this is because the init file is
installed into /usr/lib which is excluded from gdb's default list of
directories to load config's from, where as defaults to load from
datadir is still on, it therefore does not load this file

warning: File "/usr/lib/libstdc++.so.6.0.33-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

This leaves the libstdc++ pretty-printers disabled even though added via
IMAGE_INSTALL += "gcc-runtime-dbg"

Comment on adding missing runtime dependency on datetime python module for the pretty
printer to work/load successfully.

Once the pretty-printer gdb file is moved out of libdir, it may become
empty therefore delete it if its empty.

(From OE-Core rev: d24e16d192f21aa68b5274496efaba1d913f37c2)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-09 13:45:02 +00:00
Bruce Ashfield
71ac318a83 yocto-bsp: update reference boards to v6.6.15
51f354b815c4 Linux 6.6.15
    ee82479f5d74 thermal: trip: Drop lockdep assertion from thermal_zone_trip_id()
    0e9999661575 serial: core: fix kernel-doc for uart_port_unlock_irqrestore()
    de66d97add11 x86/entry/ia32: Ensure s32 is sign extended to s64
    500ad5da1df3 tick/sched: Preserve number of idle sleeps across CPU hotplug events
    af7ab5da390e clocksource: Skip watchdog check for large watchdog intervals
    5966ed9caae3 genirq: Initialize resend_node hlist for all interrupt descriptors
    33f49a68352d mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan
    40cb184ec84e cxl/region:Fix overflow issue in alloc_hpa()
    099fee35bb09 drm: bridge: samsung-dsim: Don't use FORCE_STOP_STATE
    d21fbe290c33 MIPS: lantiq: register smp_ops on non-smp platforms
    0232a19a0e21 spi: fix finalize message on error return
    d69a84cbbc30 cifs: fix stray unlock in cifs_chan_skip_or_disable
    1bd81374bc2f spi: spi-cadence: Reverse the order of interleaved write and read operations
    26e85f7b0a16 spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
    9f30ab3bec2e cpufreq/amd-pstate: Fix setting scaling max/min freq values
    ee4a2ef15153 drm/bridge: anx7625: Ensure bridge is suspended in disable()
    1539adf760c3 block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
    902a4aab0e04 spi: intel-pci: Remove Meteor Lake-S SoC PCI ID from the list
    cd6f39f7df66 ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd
    16b70a75daa7 gpio: eic-sprd: Clear interrupt after set the interrupt type
    a1703748bbaf firmware: arm_scmi: Use xa_insert() when saving raw queues
    1c6d42e55d6c firmware: arm_scmi: Use xa_insert() to store opps
    dea5460b09eb drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume
    38a31370ba4d drm/exynos: fix accidental on-stack copy of exynos_drm_plane
    e791a345fa73 memblock: fix crash when reserved memory is not added to memory
    0b2e0fea95af drm/bridge: parade-ps8640: Make sure we drop the AUX mutex in the error case
    52044fb2abe8 drm/bridge: parade-ps8640: Ensure bridge is suspended in .post_disable()
    4f59acbe0837 drm/bridge: sii902x: Fix audio codec unregistration
    56f96cf6eb11 drm/bridge: sii902x: Fix probing race issue
    7ed0974c1648 drm/panel: samsung-s6d7aa0: drop DRM_BUS_FLAG_DE_HIGH for lsl080al02
    0ae3437f4185 drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33]
    b2ca364dc531 drm/bridge: parade-ps8640: Wait for HPD when doing an AUX transfer
    5ff487d180dc drm/amdgpu/gfx11: set UNORD_DISPATCH in compute MQDs
    b59ea95e72e0 drm/amdgpu/gfx10: set UNORD_DISPATCH in compute MQDs
    5ff670093596 drm/panel-edp: drm/panel-edp: Fix AUO B116XTN02 name
    8aa99aa455be drm/panel-edp: drm/panel-edp: Fix AUO B116XAK01 name and timing
    6a0c7eb466db drm/panel-edp: Add AUO B116XTN02, BOE NT116WHM-N21,836X2, NV116WHM-N49 V8.0
    02cfae7d6278 drm/i915/psr: Only allow PSR in LPSP mode on HSW non-ULT
    e017ec3807d4 drm/i915/lnl: Remove watchdog timers for PSR
    46ac4e1f9a9d btrfs: zoned: optimize hint byte for zoned allocator
    b1e30e2ff6eb btrfs: zoned: factor out prepare_allocation_zoned()
    4739a8a989db serial: sc16is7xx: fix unconditional activation of THRI interrupt
    a38e80d02eba serial: sc16is7xx: Use port lock wrappers
    984095ad73f5 serial: core: Provide port lock wrappers
    9128bfbc5c80 mm: migrate: fix getting incorrect page mapping during page migration
    9d23fab89ace mm: migrate: record the mlocked page status to remove unnecessary lru drain
    d10ff0b3eaf6 thermal: gov_power_allocator: avoid inability to reset a cdev
    77451ef587aa thermal: core: Store trip pointer in struct thermal_instance
    3a3bbc6911f5 thermal: trip: Drop redundant trips check from for_each_thermal_trip()
    cca763863768 media: i2c: imx290: Properly encode registers as little-endian
    8798fdc28463 media: v4l2-cci: Add support for little-endian encoded registers
    8d2cd1724e80 media: v4l: cci: Add macros to obtain register width and address
    36bf2a8fb0ae media: v4l: cci: Include linux/bits.h
    68e51bdb1194 pipe: wakeup wr_wait after setting max_usage
    67f457955ba8 fs/pipe: move check to pipe_has_watch_queue()
    019ccc66d56a thermal: intel: hfi: Add syscore callbacks for system-wide PM
    0caf5dd01adf thermal: intel: hfi: Disable an HFI instance when all its CPUs go offline
    de791353675f thermal: intel: hfi: Refactor enabling code into helper functions
    4690558e756c net/bpf: Avoid unused "sin_addr_len" warning when CONFIG_CGROUP_BPF is not set
    b565f41b9f20 drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions
    dcda362dc5b4 drm/amdgpu/pm: Fix the power source flag error
    6aa5ede66651 drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'
    d3af41be094a drm/amd/display: Align the returned error code with legacy DP
    fbc4ee5ca79b drm/amd/display: Port DENTIST hang and TDR fixes to OTG disable W/A
    22ae604aea14 drm/amd/display: Fix variable deferencing before NULL check in edp_setup_replay()
    b788696f9ed0 drm/amdgpu: correct the cu count for gfx v11
    7510670bb46a drm/bridge: nxp-ptn3460: simplify some error checking
    6266b3a312b7 Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"
    107a11637f43 drm/amd/display: Disable PSR-SU on Parade 0803 TCON again
    50eb6bf4aca2 drm/amd/display: fix bandwidth validation failure on DCN 2.1
    45aafb507575 drm: Allow drivers to indicate the damage helpers to ignore damage clips
    1055077473e3 drm/virtio: Disable damage clipping if FB changed since last page-flip
    87b3b45ce7b4 drm: Disable the cursor plane on atomic contexts with virtualized drivers
    adc0787f0c0e drm/tidss: Fix atomic_flush check
    080f932a35d5 drm: Fix TODO list mentioning non-KMS drivers
    c1074ae81805 drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
    d7afdf360f4a drm: Don't unref the same fb many times by mistake due to deadlock handling
    0d87d67f447d Revert "drm/i915/dsi: Do display on sequence later on icl+"
    212b686863b4 cpufreq: intel_pstate: Refine computation of P-state for given frequency
    c9c63d6a4541 gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04
    a0ebcdab1951 xfs: read only mounts with fsopen mount API are busted
    8b5bacce2d13 drm/amdgpu: Fix the null pointer when load rlc firmware
    e256f6d36496 Revert "drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync"
    9b5e1b93c83e firmware: arm_scmi: Check mailbox/SMT channel for consistency
    9863a53100f4 ksmbd: fix global oob in ksmbd_nl_policy
    847e1eb30e26 platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe
    ace6fb9da63e platform/x86: intel-uncore-freq: Fix types in sysfs callbacks
    6653118b176a netfilter: nf_tables: reject QUEUE/DROP verdict parameters
    e5888acbf1a3 netfilter: nft_chain_filter: handle NETDEV_UNREGISTER for inet/ingress basechain
    4d53556d87cd hv_netvsc: Calculate correct ring size when PAGE_SIZE is not 4 Kbytes
    b7d2eee1f538 nfsd: fix RELEASE_LOCKOWNER
    870171899d75 wifi: iwlwifi: fix a memory corruption
    841460c14f88 exec: Fix error handling in begin_new_exec()
    801474eac6f9 rbd: don't move requests to the running list on errors
    ec794a752819 btrfs: don't abort filesystem when attempting to snapshot deleted subvolume
    5556a872e9e9 btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
    be725b06a4c3 btrfs: don't warn if discard range is not aligned to sector
    ad854a86da15 btrfs: tree-checker: fix inline ref size in error messages
    2b772a75963f btrfs: ref-verify: free ref cache before clearing mount opt
    3eaf00d2f81f btrfs: avoid copying BTRFS_ROOT_SUBVOL_DEAD flag to snapshot of subvolume being deleted
    6f74989f5909 btrfs: zoned: fix lock ordering in btrfs_zone_activate()
    642b9c520ef2 btrfs: scrub: avoid use-after-free when chunk length is not 64K aligned
    d60ff1d313e6 tsnep: Fix XDP_RING_NEED_WAKEUP for empty fill ring
    3fc1e534993b tsnep: Remove FCS for XDP data path
    a7be76ca102c net: fec: fix the unhandled context fault from smmu
    09d60387d8c1 selftests: bonding: do not test arp/ns target with mode balance-alb/tlb
    20b98e3c493a fjes: fix memleaks in fjes_hw_setup
    31e5a8cdc8c9 i40e: update xdp_rxq_info::frag_size for ZC enabled Rx queue
    f95b542f3a81 i40e: set xdp_rxq_info::frag_size
    6ae1d209c6a5 xdp: reflect tail increase for MEM_TYPE_XSK_BUFF_POOL
    c61f2bf87065 ice: update xdp_rxq_info::frag_size for ZC enabled Rx queue
    e1ae4a6b3ad7 intel: xsk: initialize skb_frag_t::bv_offset in ZC drivers
    339a48b0564c ice: remove redundant xdp_rxq_info registration
    8a7dffa16bb3 i40e: handle multi-buffer packets that are shrunk by xdp prog
    728e112df761 ice: work on pre-XDP prog frag count
    82ee4781b820 xsk: fix usage of multi-buffer BPF helpers for ZC XDP
    1474a8aff1d3 bpf: Add bpf_sock_addr_set_sun_path() to allow writing unix sockaddr from bpf
    6d71331eb044 bpf: Propagate modified uaddrlen from cgroup sockaddr programs
    b6e1a1b3b270 xsk: make xsk_buff_pool responsible for clearing xdp_buff::flags
    cce713664548 xsk: recycle buffer in case Rx queue was full
    bf47ffc1a527 selftests: netdevsim: fix the udp_tunnel_nic test
    8c63896d993c selftests: net: fix rps_default_mask with >32 CPUs
    938729484cfa net: mvpp2: clear BM pool before initialization
    6264994be8f2 net: stmmac: Wait a bit for the reset to take effect
    c1be9784f3ad netfilter: nf_tables: validate NFPROTO_* family
    2989f1c4c2c7 netfilter: nf_tables: restrict anonymous set and map names to 16 bytes
    9882495d02ec netfilter: nft_limit: reject configurations that cause integer overflow
    0d58883c3c60 rcu: Defer RCU kthreads wakeup when CPU is dying
    2897c981ee63 net/mlx5e: fix a potential double-free in fs_any_create_groups
    b21db3f1ab79 net/mlx5e: fix a double-free in arfs_create_groups
    5fe8c422eb05 net/mlx5e: Ignore IPsec replay window values on sender side
    268353082293 net/mlx5e: Allow software parsing when IPsec crypto is enabled
    ee8ad3d2f34e net/mlx5: Use mlx5 device constant for selecting CQ period mode for ASO
    5deca3981243 net/mlx5: DR, Can't go to uplink vport on RX rule
    fc56e47ca071 net/mlx5: DR, Use the right GVMI number for drop action
    5160ae8da385 net/mlx5: Bridge, fix multicast packets sent to uplink
    63a77caa1d72 net/mlx5: Bridge, Enable mcast in smfs steering mode
    5d3f7d302008 net/mlx5: Fix a WARN upon a callback command failure
    74cec142f89b net/mlx5e: Fix peer flow lists handling
    40e0d0746390 net/mlx5e: Fix operation precedence bug in port timestamping napi_poll context
    9ed46144cff3 net/sched: flower: Fix chain template offload
    d42566f50090 selftests: fill in some missing configs for net
    050855e311ab ipv6: init the accept_queue's spinlocks in inet6_create
    b17ca9a469f8 netlink: fix potential sleeping issue in mqueue_flush_file
    ff149e92ee90 selftest: Don't reuse port for SO_INCOMING_CPU test.
    74b85edb206f tcp: Add memory barrier to tcp_push()
    a53411e805e0 afs: Hide silly-rename files from userspace
    a1eebe76e187 tracing: Ensure visibility when inserting an element into tracing_map
    1c45256e5990 netfs, fscache: Prevent Oops in fscache_put_cache()
    7a73190ea557 net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv
    784207bd2ed1 net: micrel: Fix PTP frame parsing for lan8814
    34ffe229f7a6 tun: add missing rx stats accounting in tun_xdp_act
    33a8980008c4 tun: fix missing dropped counter in tun_xdp_act
    e855dded4b70 net: fix removing a namespace with conflicting altnames
    ef8ad3071dfa udp: fix busy polling
    f1f34a515fb1 llc: Drop support for ETH_P_TR_802_2.
    cafd3ad3fe03 llc: make llc_ui_sendmsg() more robust against bonding changes
    da2d1d362754 vlan: skip nested type that is not IFLA_VLAN_QOS_MAPPING
    7cf36993f805 bnxt_en: Prevent kernel warning when running offline self test
    55830bded231 bnxt_en: Wait for FLR to complete during probe
    168e7e599860 tcp: make sure init the accept_queue's spinlocks once
    8590162a455b selftests: bonding: Increase timeout to 1200s
    a164c2922675 net/smc: fix illegal rmb_desc access in SMC-D connection dump
    587c58929761 wifi: mac80211: fix potential sta-link leak
    3f5aab7efd40 SUNRPC: use request size to initialize bio_vec in svc_udp_sendto()
    14bafd198066 cifs: after disabling multichannel, mark tcon for reconnect
    fe8c187fc22f cifs: fix a pending undercount of srv_count
    30b1d56452ec cifs: fix lock ordering while disabling multichannel
    f56fc61bb531 Revert "drm/amd: Enable PCIe PME from D3"
    c7890937cf36 selftests/bpf: check if max number of bpf_loop iterations is tracked
    bfc5c19b4b48 bpf: keep track of max number of bpf_loop callback iterations
    5cac3cb678ba selftests/bpf: test widening for iterating callbacks
    1a5a03617bb9 bpf: widening for callback iterators
    6b99fe48f515 selftests/bpf: tests for iterating callbacks
    b43550d7d58e bpf: verify callbacks as if they are called unknown number of times
    f661df8fe0b5 bpf: extract setup_func_entry() utility function
    bb8bf2d3caf5 bpf: extract __check_reg_arg() utility function
    e030da5f517c selftests/bpf: track string payload offset as scalar in strobemeta
    d9631d0d8c93 selftests/bpf: track tcp payload offset as scalar in xdp_synproxy
    ae5e9c3ced95 bpf: print full verifier states on infinite loop detection
    00808be797c1 selftests/bpf: test if state loops are detected in a tricky case
    c8f6d285825f bpf: correct loop detection for iterators convergence
    7f764ea0c8e6 selftests/bpf: tests with delayed read/precision makrs in loop body
    ab470fefce28 bpf: exact states comparison for iterator convergence checks
    b8615d7ff2b3 bpf: extract same_callsites() as utility function
    4c6352f35eb2 bpf: move explored_state() closer to the beginning of verifier.c
    364366f5bbd9 dt-bindings: net: snps,dwmac: Tx coe unsupported
    4c78c771f3aa ksmbd: Add missing set_freezable() for freezable kthread
    f5ef78c4ab44 ksmbd: send lease break notification on FILE_RENAME_INFORMATION
    9554d4934b81 ksmbd: don't increment epoch if current state and request state are same
    e9ec6665de8f ksmbd: fix potential circular locking issue in smb2_set_ea()
    fc0db77b182b ksmbd: set v2 lease version on lease upgrade
    90b8cbd90abb serial: Do not hold the port lock when setting rx-during-tx GPIO
    26c3817cc8ff mm: page_alloc: unreserve highatomic page blocks before oom
    4e32f5998f44 LoongArch/smp: Call rcutree_report_cpu_starting() earlier
    5c0471daa8c7 serial: sc16is7xx: improve do/while loop in sc16is7xx_irq()
    8ed85bdd1f2f serial: sc16is7xx: remove obsolete loop in sc16is7xx_port_irq()
    fbce37f616ba serial: sc16is7xx: fix invalid sc16is7xx_lines bitfield in case of probe error
    084c24e788d9 serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO
    9879e1bec3c0 serial: sc16is7xx: change EFR lock to operate on each channels
    2f6ae16a5874 serial: sc16is7xx: remove unused line structure member
    fc3de570cb30 serial: sc16is7xx: remove global regmap from struct sc16is7xx_port
    f769407d0194 serial: sc16is7xx: remove wasteful static buffer in sc16is7xx_regmap_name()
    452ed2b218b1 serial: sc16is7xx: improve regmap debugfs by using one regmap per port
    1db06b3d7d4b rename(): fix the locking of subdirectories
    70064241f222 mm/sparsemem: fix race in accessing memory_section->usage
    62efb1e656f4 mm/rmap: fix misplaced parenthesis of a likely()
    e6cdfb699ebf selftests: mm: hugepage-vmemmap fails on 64K page size systems
    ff8cb8bc46ca kexec: do syscore_shutdown() in kernel_kexec
    17be0ede8a6d ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
    6c4c57669de4 efi: disable mirror feature during crashkernel
    ce51369287dd nouveau/vmm: don't set addr on the fail path to avoid warning
    49a76c08bcfc rtc: Extend timeout for waiting for UIP to clear to 1s
    9d20185601a0 rtc: Add support for configuring the UIP timeout for RTC reads
    d2d8ceb74834 rtc: mc146818-lib: Adjust failure return code for mc146818_get_time()
    905d9e1c69b2 rtc: Adjust failure return code for cmos_set_alarm()
    484514580275 rtc: cmos: Use ACPI alarm for non-Intel x86 systems too
    58eb5c07f417 arm64: entry: fix ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
    569156e4fa34 arm64/sme: Always exit sme_alloc() early with existing storage
    f5da59f2bbce arm64: errata: Add Cortex-A510 speculative unprivileged load workaround
    236a9bf2a7ec arm64: Rename ARM64_WORKAROUND_2966298
    eab6917e1016 riscv: mm: Fixup compat mode boot failure
    724103429a2d riscv: mm: Fixup compat arch_get_mmap_end
    8254d54d00eb media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run
    26f3ae1aa854 media: mtk-jpeg: Fix timeout schedule error in mtk_jpegdec_worker.
    9399d61bf561 media: i2c: st-mipid02: correct format propagation
    095cb607f146 mmc: mmc_spi: remove custom DMA mapped buffers
    1653a8102868 mmc: core: Use mrq.sbc in close-ended ffu
    72a28c92839c media: videobuf2-dma-sg: fix vmap callback
    7af40dfdbd30 scripts/get_abi: fix source path leak
    1d64a1029884 docs: kernel_abi.py: fix command injection
    c018ab3e31b1 dlm: use kernel_connect() and kernel_bind()
    820831de220c lsm: new security_file_ioctl_compat() hook
    8b901f4f46bd ARM: dts: qcom: sdx55: fix USB SS wakeup
    42edeeb3da5c arm64: dts: qcom: sdm670: fix USB SS wakeup
    40fb94eb9805 arm64: dts: qcom: sdm670: fix USB DP/DM HS PHY interrupts
    30d15a0d16f1 arm64: dts: qcom: sc8180x: fix USB SS wakeup
    7553301a2ae9 arm64: dts: qcom: sc8180x: fix USB DP/DM HS PHY interrupts
    00804fab7c62 arm64: dts: qcom: sm8150: fix USB SS wakeup
    b0a9aec35033 arm64: dts: qcom: sm8150: fix USB DP/DM HS PHY interrupts
    8936cca43946 arm64: dts: qcom: sdm845: fix USB SS wakeup
    07859a93fc14 arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts
    551d4f3776af ARM: dts: qcom: sdx55: fix USB DP/DM HS PHY interrupts
    8c80b6c37038 arm64: dts: qcom: Add missing vio-supply for AW2013
    02f867d270e4 arm64: dts: qcom: sc7280: fix usb_1 wakeup interrupt types
    9e1951a81455 arm64: dts: qcom: sc8180x: fix USB wakeup interrupt types
    e0e55b6ec189 arm64: dts: qcom: sm8150: fix USB wakeup interrupt types
    0b6f48245b50 arm64: dts: qcom: sdm670: fix USB wakeup interrupt types
    353463dfcb71 arm64: dts: qcom: sdm845: fix USB wakeup interrupt types
    cc16b9cd186f arm64: dts: qcom: sc7180: fix USB wakeup interrupt types
    54435ef291e1 arm64: dts: qcom: msm8939: Make blsp_dma controlled-remotely
    ebd09d8143fd arm64: dts: qcom: msm8916: Make blsp_dma controlled-remotely
    0eecce600714 arm64: dts: rockchip: Fix rk3588 USB power-domain clocks
    dc2e88e05d12 arm64: dts: rockchip: configure eth pad driver strength for orangepi r1 plus lts
    68c2defafaaa arm64: dts: sprd: fix the cpu node for UMS512
    6d86a53d8409 ARM: dts: qcom: sdx55: fix pdc '#interrupt-cells'
    bc81ecbd2a4e ARM: dts: samsung: exynos4210-i9100: Unconditionally enable LDO12
    ee9c5e0f9528 ARM: dts: qcom: sdx55: fix USB wakeup interrupt types
    ed3fe21f74c0 arm64: dts: qcom: sc8280xp-crd: fix eDP phy compatible
    664aaf12edc2 ARM: dts: imx6q-apalis: add can power-up delay on ixora board
    46942efb9e87 parisc/power: Fix power soft-off button emulation on qemu
    3583edd4d786 parisc/firmware: Fix F-extend for PDC addresses
    ce16274a6b8d bus: mhi: host: Add spinlock to protect WP access when queueing TREs
    eaefb9464031 bus: mhi: host: Drop chan lock before queuing buffers
    a9ebfc405fe1 bus: mhi: host: Add alignment check for event ring read pointer
    4a5a77c92bac mips: Fix max_mapnr being uninitialized on early stages
    1960f2b534da nbd: always initialize struct msghdr completely
    582014b08cb8 s390/vfio-ap: do not reset queue removed from host config
    f5b218ecc860 s390/vfio-ap: reset queues associated with adapter for queue unbound from driver
    60ad66fe639f s390/vfio-ap: reset queues filtered from the guest's AP config
    556efad373cb s390/vfio-ap: let on_scan_complete() callback filter matrix and update guest's APCB
    dabc0fe4a98e s390/vfio-ap: loop over the shadow APCB when filtering guest's AP configuration
    c69d82119761 s390/vfio-ap: always filter entire AP matrix
    075c01f60bee soc: fsl: cpm1: qmc: Fix rx channel reset
    07d45e912521 soc: fsl: cpm1: qmc: Fix __iomem addresses declaration
    d0160e74e943 soc: fsl: cpm1: tsa: Fix __iomem addresses declaration
    240fd0215d3f media: ov01a10: Enable runtime PM before registering async sub-device
    000339cb5d27 media: ov13b10: Enable runtime PM before registering async sub-device
    92d25e02ee16 media: ov9734: Enable runtime PM before registering async sub-device
    4e6cef3fae5c rpmsg: virtio: Free driver_override when rpmsg_remove()
    252ae106eacf media: imx355: Enable runtime PM before registering async sub-device
    532a5557da68 soc: qcom: pmic_glink_altmode: fix port sanity check
    f7190b6101e6 mtd: rawnand: Clarify conditions to enable continuous reads
    c376f862ecca mtd: rawnand: Prevent sequential reads with on-die ECC engines
    b1dca19b105c mtd: rawnand: Fix core interference with sequential reads
    f813840066ca mtd: rawnand: Prevent crossing LUN boundaries during sequential reads
    38c12f10990a mtd: maps: vmu-flash: Fix the (mtd core) switch to ref counters
    a979f56aa4b9 PM / devfreq: Fix buffer overflow in trans_stat_show
    c1f525a1470f s390/vfio-ap: unpin pages on gisc registration failure
    d68ac38895e8 crypto: s390/aes - Fix buffer overread in CTR mode
    ecabe8cd456d hwrng: core - Fix page fault dead lock on mmap-ed hwrng
    7692e29d191c PM: hibernate: Enforce ordering during image compression/decompression
    b1a67a0d1ace crypto: api - Disallow identical driver names
    f36d200a80a3 erofs: fix lz4 inplace decompression
    7ebf812b7019 crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
    5e570e600b24 btrfs: sysfs: validate scrub_speed_max value
    3da8706499cc OPP: Pass rounded rate to _set_opp()
    1107f0ecc9ff arm64: properly install vmlinuz.efi
    e681e29d1f59 PM: sleep: Fix possible deadlocks in core system-wide PM code
    e400343c6eb2 async: Introduce async_schedule_dev_nocall()
    a40683bb7bcd async: Split async_schedule_node_domain()
    da9008da9640 ext4: allow for the last group to be marked as trimmed
    f70557d48215 powerpc/ps3_defconfig: Disable PPC64_BIG_ENDIAN_ELF_ABI_V2
    cc29591dacdf cifs: update iface_last_update on each query-and-update
    50e8363ecc85 cifs: handle servers that still advertise multichannel after disabling
    07e864089a0e cifs: reconnect worker should take reference on server struct unconditionally
    3a0ef868fb8a Revert "cifs: reconnect work should have reference on server struct"
    3e1615361b6f cifs: handle when server stops supporting multichannel
    5075e9f4e046 cifs: handle when server starts supporting multichannel
    173ddac64b47 cifs: reconnect work should have reference on server struct
    c395f798a7f2 cifs: handle cases where a channel is closed
    38298acb7899 smb: client: fix parsing of SMB3.1.1 POSIX create context
    5157319fc52e sh: ecovec24: Rename missed backlight field from fbdev to dev
    3b4b35d7cd63 scsi: core: Kick the requeue list after inserting when flushing
    a720833e6b8a riscv: Fix an off-by-one in get_early_cmdline()
    cf4669c30a8a scsi: ufs: core: Remove the ufshcd_hba_exit() call from ufshcd_async_scan()
    e23d6ba5029b dmaengine: idxd: Move dma_free_coherent() out of spinlocked context
    7f0ccfad2031 dmaengine: fix NULL pointer in channel unregistration function
    3dc9e1c7e00f dmaengine: fsl-edma: fix eDMAv4 channel allocation issue
    e4e845c8ddd2 iio: adc: ad7091r: Enable internal vref if external vref is not supplied
    89c4e63324e2 iio: adc: ad7091r: Allow users to configure device events
    c70a7684b1a5 iio: adc: ad7091r: Set alert bit in config register
    97d574fce644 net: stmmac: Prevent DSA tags from breaking COE
    b643b836c639 net: stmmac: Tx coe sw fallback
    cfaa04a3ab50 soundwire: fix initializing sysfs for same devices on different buses
    154cfc3d2738 soundwire: bus: introduce controller_id
    9744575e6955 serial: core: set missing supported flag for RX during TX GPIO
    28c85cd0a671 serial: core: Simplify uart_get_rs485_mode()
    e961f8c6966a docs: kernel_feat.py: fix potential command injection
    db6e7e5fd442 docs: sparse: add sparse.rst to toctree
    a4bc5da72eae docs: sparse: move TW sparse.txt to TW dev-tools
    98817289bcec Linux 6.6.14
    aab69ef76970 Revert "Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d""
    9860938cff26 arm64: dts: armada-3720-turris-mox: set irq type for RTC
    6cb583c4e18b Revert "KEYS: encrypted: Add check for strsep"
    93d357caf7e7 riscv: Fix wrong usage of lm_alias() when splitting a huge linear mapping
    e6611cb236e0 i2c: s3c24xx: fix transferring more than one message in polling mode
    b7fd4552a67d i2c: s3c24xx: fix read transfers in polling mode
    3cc283fd16fb ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work
    a991cd35c477 selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes
    7788f557e2f7 mlxsw: spectrum_router: Register netdevice notifier before nexthop
    2f5e15657404 mlxsw: spectrum_acl_tcam: Fix stack corruption
    817840d125a3 mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path
    b1f0207078a5 mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure
    96e84339ddf8 loop: fix the the direct I/O support check when used on top of block devices
    2ae2e7cf658d ethtool: netlink: Add missing ethnl_ops_begin/complete
    53cea04da861 arm64/ptrace: Don't flush ZA/ZT storage when writing ZA via ptrace
    99719bb0c281 kdb: Fix a potential buffer overflow in kdb_local()
    8836df02124f io_uring: adjust defer tw counting
    b019406e5ad9 ipvs: avoid stat macros calls from preemptible context
    bf6b3b6d110f netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
    87e5fb6d1cc2 netfilter: nf_tables: skip dead set elements in netlink dump
    dc45bb00e66a netfilter: nf_tables: do not allow mismatch field size and set key length
    9325e3188a9c netfilter: bridge: replace physindev with physinif in nf_bridge_info
    96c510a53181 netfilter: propagate net to nf_bridge_get_physindev
    075dcb3caba9 netfilter: nf_queue: remove excess nf_bridge variable
    4979db9bc52e netfilter: nfnetlink_log: use proper helper for fetching physinif
    295de7fb5a61 netfilter: nft_limit: do not ignore unsupported flags
    a016aacadfde netfilter: nf_tables: reject invalid set policy
    08aca65997fb net: netdevsim: don't try to destroy PHC on VFs
    72b45857b724 mptcp: relax check on MPC passive fallback
    9aeb09f4d85a LoongArch: BPF: Prevent out-of-bounds memory access
    e9ed74393c09 net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
    e8d3872b617c bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS
    fed034d23ebc net: stmmac: ethtool: Fixed calltrace caused by unbalanced disable_irq_wake calls
    e6acd12ffcd0 selftests: bonding: Change script interpreter
    836e236b878a drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
    1515db19c4a3 drm/amdkfd: fixes for HMM mem allocation
    0d15f6d75c2f ASoC: SOF: ipc4-loader: remove the CPC check warnings
    52acfebcea00 gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe
    fd526aa39f04 dt-bindings: gpio: xilinx: Fix node address in gpio
    f9071d939f20 net: ravb: Fix dma_addr_t truncation in error case
    02e368eb1444 net: tls, fix WARNIING in __sk_msg_free
    7dc290d787ae bpf: Avoid iter->offset making backward progress in bpf_iter_udp
    2a62beb0f59f bpf: iter_udp: Retry with a larger batch size without going back to the previous bucket
    9eb6088560e3 net: netdev_queue: netdev_txq_completed_mb(): fix wake condition
    342c88f406c2 net: add more sanity check in virtio_net_hdr_to_skb()
    823ba1d21060 erofs: fix inconsistent per-file compression format
    586814ed68f7 erofs: simplify compression configuration parser
    d2e919b6e66b udp: annotate data-races around up->pending
    3a7517c53eab net: stmmac: Fix ethool link settings ops for integrated PCS
    8b6075046470 block: ensure we hold a queue reference when using queue limits
    d4368227ba9c mptcp: refine opt_mp_capable determination
    c119bcd94693 mptcp: use OPTION_MPTCP_MPJ_SYN in subflow_check_req()
    ad3e8f5c3d5c mptcp: use OPTION_MPTCP_MPJ_SYNACK in subflow_finish_connect()
    4701d3282359 mptcp: strict validation before using mp_opt->hmac
    4029820677b2 mptcp: mptcp_parse_option() fix for MPTCPOPT_MP_JOIN
    0048a13b19f6 ALSA: hda: Properly setup HDMI stream
    7770a4387576 net: phy: micrel: populate .soft_reset for KSZ9131
    1cb0cd1eff8d net: micrel: Fix PTP frame parsing for lan8841
    05f7e34647d2 amt: do not use overwrapped cb area
    80a7a98b315d net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames
    fcaa3a2c12d6 octeontx2-af: CN10KB: Fix FIFO length calculation for RPM2
    5c4017a25260 rxrpc: Fix use of Don't Fragment flag
    c47345350346 net: qualcomm: rmnet: fix global oob in rmnet_policy
    930ce7a5c0a8 s390/pci: fix max size calculation in zpci_memcpy_toio()
    b1d3db6740d0 ASoC: mediatek: sof-common: Add NULL check for normal_link string
    a765609f22d7 PCI: mediatek-gen3: Fix translation window size calculation
    423de3f3844c PCI: keystone: Fix race condition when initializing PHYs
    2ed3d3532890 nvmet-tcp: Fix the H2C expected PDU len calculation
    79e9dfd7f89a nvme: trace: avoid memcpy overflow warning
    4652eb817623 nvmet: re-fix tracing strncpy() warning
    45f80b2f230d hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume
    0b6f0be074fd spi: coldfire-qspi: Remove an erroneous clk_disable_unprepare() from the remove function
    1a5369728c2d cxl/port: Fix missing target list lock
    4e0d6791935e perf db-export: Fix missing reference count get in call_path_from_sample()
    5ed4d3e6ad40 serial: apbuart: fix console prompt on qemu
    05ba3df0e405 serial: imx: Correct clock error message in function probe()
    821ad0089c69 usb: xhci-mtk: fix a short packet issue of gen1 isoc-in transfer
    5c0392fdafb0 apparmor: avoid crash when parsed profile name is empty
    337c86dc8af9 apparmor: fix possible memory leak in unpack_trans_table
    a2b2b3011878 cxl/region: fix x9 interleave typo
    8fdeaf400823 perf stat: Fix hard coded LL miss units
    35bcf6bf324d perf env: Avoid recursively taking env->bpf_progs.lock
    2f00fd8d50a7 nvmet-tcp: fix a crash in nvmet_req_complete()
    24e05760186d nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length
    790321e4ae6e apparmor: Fix ref count leak in task_kill
    5125a3029965 vdpa: Fix an error handling path in eni_vdpa_probe()
    e2717302fbc2 power: supply: Fix null pointer dereference in smb2_probe
    98b8a550da83 iommu: Don't reserve 0-length IOVA region
    fd83ff901d69 usb: gadget: webcam: Make g_webcam loadable again
    915fb4043c5e spmi: mtk-pmif: Serialize PMIF status check and command submission
    19e321c3eedd usb: cdc-acm: return correct error code on unsupported break
    2433f050d31a tty: use 'if' in send_break() instead of 'goto'
    eefdb1be0c8b tty: don't check for signal_pending() in send_break()
    ecf27e476587 tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAK
    96227df8462d PCI: epf-mhi: Fix the DMA data direction of dma_unmap_single()
    ad671dfce2d9 bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs
    bd4f6f1f8948 bus: mhi: ep: Use slab allocator where applicable
    23bab2b8e099 bus: mhi: ep: Do not allocate event ring element on stack
    46bd939d85ed perf unwind-libunwind: Fix base address for .eh_frame
    c05c54f0cdff perf unwind-libdw: Handle JIT-generated DSOs properly
    c8d6d5d080b0 perf genelf: Set ELF program header addresses properly
    2f4c1c3580e4 perf hisi-ptt: Fix one memory leakage in hisi_ptt_process_auxtrace_event()
    f8d47ca6785c perf header: Fix one memory leakage in perf_event__fprintf_event_update()
    2c664df0b201 iio: adc: ad9467: fix scale setting
    a98f6c657c60 iio: adc: ad9467: add mutex to struct ad9467_state
    0c7b8f883159 iio: adc: ad9467: don't ignore error codes
    8690cd46c86b iio: adc: ad9467: fix reset gpio handling
    1075fafe8d3c selftests/sgx: Skip non X86_64 platform
    88fe67d40044 selftests/sgx: Include memory clobber for inline asm in test enclave
    5a734a0ec4e3 selftests/sgx: Fix uninitialized pointer dereferences in encl_get_entry
    c4aee34ea772 selftests/sgx: Fix uninitialized pointer dereference in error path
    763cd6874631 serial: imx: fix tx statemachine deadlock
    2b327d0fe0d2 software node: Let args be NULL in software_node_get_reference_args
    afc7dd4e03b7 acpi: property: Let args be NULL in __acpi_node_get_property_reference
    a5e1c3fe5764 base/node.c: initialize the accessor list before registering
    ac95df46de7f perf stat: Exit perf stat if parse groups fails
    9cc93a61cd79 perf mem: Fix error on hybrid related to availability of mem event in a PMU
    f54149b92083 perf vendor events arm64 AmpereOne: Rename BPU_FLUSH_MEM_FAULT to GPC_FLUSH_MEM_FAULT
    358b1c992ec0 vfio/pds: Fix calculations in pds_vfio_dirty_sync
    c7e8c0e61da5 perf test record user-regs: Fix mask for vg register
    e9b7b8b3ac2c libapi: Add missing linux/types.h header to get the __u64 type on io.h
    bee4ceb8ea40 perf header: Fix segfault on build_mem_topology() error path
    cd8dd51d5986 perf test: Remove atomics from test_loop to avoid test failures
    28d8fe6641e7 iommu: Map reserved memory as cacheable if device is coherent
    887a558d0298 serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed
    5b3e25efe16e PCI: Avoid potential out-of-bounds read in pci_dev_for_each_resource()
    b450e335fb18 power: supply: bq256xx: fix some problem in bq256xx_hw_init
    eb45e4bb14d3 power: supply: cw2015: correct time_to_empty units in sysfs
    69bec5f534ca MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
    b6e72854e019 MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
    9b2f64ba99bf riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro
    e1e1058828ed riscv: Fix set_direct_map_default_noflush() to reset _PAGE_EXEC
    5254434a8cf2 riscv: Fix set_memory_XX() and set_direct_map_XX() by splitting huge linear mappings
    8633e74002cd riscv: Fix module_alloc() that did not reset the linear mapping permissions
    8db56df4a954 riscv: Check if the code to patch lies in the exit section
    e111d2319a44 um: virt-pci: fix platform map offset
    66c8b147fe04 mips: Fix incorrect max_low_pfn adjustment
    6ea50107247c mips: dmi: Fix early remap on MIPS32
    ac0de86fa7f5 srcu: Use try-lock lockdep annotation for NMI-safe access.
    fa1a1bad0f1c mfd: intel-lpss: Fix the fractional clock divider flags
    f53d8c6c6ecc mfd: tps6594: Add null pointer check to tps6594_device_init()
    bd4d5b6fe15d leds: aw200xx: Fix write to DIM parameter
    ab27da1edb56 leds: aw2013: Select missing dependency REGMAP_I2C
    3ef1130deee9 mfd: syscon: Fix null pointer dereference in of_syscon_register()
    9fc58cb20765 mfd: cs42l43: Correct SoundWire port list
    3c90b3b0436e mfd: rk8xx: fixup devices registration with PLATFORM_DEVID_AUTO
    df633f4c964a ARM: 9330/1: davinci: also select PINCTRL
    7ce742553789 serial: sc16is7xx: set safe default SPI clock frequency
    9d528a81df2f serial: sc16is7xx: add check for unsupported SPI modes during probe
    53956bf45e68 HID: wacom: Correct behavior when processing some confidence == false touches
    41199d2dbd00 HID: sensor-hub: Enable hid core report processing for all devices
    7faef79764d2 iio: adc: ad7091r: Pass iio_dev to event handler
    7c7ddf45868a KVM: x86/pmu: Reset the PMU, i.e. stop counters, before refreshing
    57bbd59ae013 KVM: x86/pmu: Move PMU reset logic to common x86 code
    65b201bf3e9a KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
    42604bd5e49d KVM: arm64: vgic-v4: Restore pending state on host userspace write
    db448ac982e4 x86/kvm: Do not try to disable kvmclock if it was not enabled
    3206a188cfe1 PCI: mediatek: Clear interrupt status before dispatching handler
    43501b6c5abf PCI: dwc: endpoint: Fix dw_pcie_ep_raise_msix_irq() alignment support
    eaf6412618f5 x86/pci: Reserve ECAM if BIOS didn't include it in PNP0C02 _CRS
    e54c4dd4137c PCI/P2PDMA: Remove reference to pci_p2pdma_map_sg()
    5a473e32088c cxl/port: Fix decoder initialization when nr_targets > interleave_ways
    0dfcefc97300 Revert "nSVM: Check for reserved encodings of TLB_CONTROL in nested VMCB"
    68325c8c1aeb Revert "net: rtnetlink: Enslave device before bringing it up"
    ed00d917056b net: stmmac: fix ethtool per-queue statistics
    c84a711ad622 wifi: mwifiex: fix uninitialized firmware_stat
    2b3d7e12ec90 wifi: mwifiex: configure BSSID consistently when starting AP
    60220f0a551d wifi: mwifiex: add extra delay for firmware ready
    516ec80072c4 wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors
    1f018dfa3725 wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code
    c30d0fcb5d68 wifi: mt76: fix broken precal loading from MTD for mt7915
    509b9e745148 iommu/dma: Trace bounce buffer usage when mapping buffers
    979dc1cbd865 iommu/arm-smmu-qcom: Add missing GMU entry to match table
    8c8bcd45e9b1 bpf: Fix re-attachment branch in bpf_tracing_prog_attach
    f56e715ef1c1 Bluetooth: Fix atomicity violation in {min,max}_key_size_set
    2e54968baba3 rootfs: Fix support for rootfstype= when root= is given
    6dcd88460747 md/raid1: Use blk_opf_t for read and write operations
    e5f2b4b62977 pwm: Fix out-of-bounds access in of_pwm_single_xlate()
    080d2c608bce pwm: jz4740: Don't use dev_err_probe() in .request()
    7baa33837ee2 netfilter: nf_tables: check if catch-all set element is active in next generation
    a6bd8182137a block: Fix iterating over an empty bio with bio_for_each_folio_all
    8955324cc9f9 block: Remove special-casing of compound pages
    cb16cc1abda1 block: add check that partition length needs to be aligned with block size
    847e6947afd3 drm/amd: Enable PCIe PME from D3
    d37dbde71112 scsi: mpi3mr: Block PEL Enable Command on Controller Reset and Unrecoverable State
    fc6742c16be9 scsi: mpi3mr: Clean up block devices post controller reset
    3ddc8b84f657 scsi: mpi3mr: Refresh sdev queue depth after controller reset
    ca8e1a5d55ce scsi: target: core: add missing file_{start,end}_write()
    af50048fc351 scsi: ufs: core: Simplify power management during async scan
    2db6388d8a7f fbdev: flush deferred IO before closing
    1e3b051e9714 fbdev: flush deferred work in fb_deferred_io_fsync()
    2aceb3a8262c fbdev/acornfb: Fix name of fb_ops initializer macro
    0241f4c2caad io_uring: ensure local task_work is run on wait timeout
    c239b77ea4d6 io_uring/rw: ensure io->bytes_done is always initialized
    2c487fbf2230 io_uring: don't check iopoll if request completes
    d15de929f066 LoongArch: Fix and simplify fcsr initialization on execve()
    a8b91a92d4d6 ceph: select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
    08e6c8230051 ksmbd: only v2 leases handle the directory
    24290ba94cd0 ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
    a2b21ef1ea4c ksmbd: validate mech token in session setup
    3b2291360cce ALSA: hda/realtek: Enable headset mic on Lenovo M70 Gen5
    2e59001eadde ALSA: hda/realtek: Enable mute/micmute LEDs and limit mic boost on HP ZBook
    0979e180845d ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq2xxx
    0d7b0c4a70e8 ALSA: oxygen: Fix right channel of capture volume mixer
    57886e83d190 serial: omap: do not override settings for RS485 support
    f9a7caccf21e serial: 8250_exar: Set missing rs485_supported flag
    45d709f3970e serial: imx: Ensure that imx_uart_rs485_config() is called with enabled clock
    67043c0a6ed5 serial: core, imx: do not set RS485 enabled if it is not supported
    bd4a210c09e4 serial: 8250_bcm2835aux: Restore clock error handling
    9a965fba11f3 serial: core: make sure RS485 cannot be enabled when it is not supported
    cd1508c80dab serial: core: fix sanitizing check for RTS settings
    b68581313078 dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: fix path to header
    c8e0fb0da88f usb: mon: Fix atomicity violation in mon_bin_vma_fault
    da4e9d5cc567 usb: typec: class: fix typec_altmode_put_partner to put plugs
    745a4b352724 Revert "usb: typec: class: fix typec_altmode_put_partner to put plugs"
    9f8b94b93ca5 usb: cdns3: Fix uvc fail when DMA cross 4k boundery since sg enabled
    2e56239b8e1d usb: cdns3: fix iso transfer error when mult is not zero
    0153e32b3cc1 usb: cdns3: fix uvc failure work since sg support enabled
    420fa3cb092f usb: chipidea: wait controller resume finished for wakeup irq
    61a06c5bb603 Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only"
    e8d48c2282a9 Revert "usb: dwc3: Soft reset phy on probe for host"
    334bdf3351d9 usb: dwc3: gadget: Queue PM runtime idle on disconnect event
    e9deab5be0c4 usb: dwc3: gadget: Handle EP0 request dequeuing properly
    73e20c2f48f8 usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart
    f09cfc753944 usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host()
    53eea0d939e3 Revert "usb: gadget: f_uvc: change endpoint allocation in uvc_function_bind()"
    7fc3dd358aa0 tick-sched: Fix idle and iowait sleeptime accounting vs CPU hotplug
    b38014874530 powerpc/64s: Increase default stack size to 32KB
    c5c1ff390400 clocksource/drivers/timer-ti-dm: Fix make W=n kerneldoc warnings
    67f16bf2cc16 binder: fix race between mmput() and do_exit()
    78376d441560 xen-netback: don't produce zero-size SKB frags
    3a99f15ce9d0 Revert "drm/amdkfd: Relocate TBA/TMA to opposite side of VM hole"
    9853f1307efe rust: Ignore preserve-most functions
    881720dcf6df Input: atkbd - use ab83 as id when skipping the getid command
    9da397e5d48d mips/smp: Call rcutree_report_cpu_starting() earlier
    1f714a0373ac binder: fix unused alloc->free_async_space
    fda6e06e01a9 binder: fix async space check for 0-sized buffers
    06173edfc770 keys, dns: Fix size check of V1 server-list header
    3db79d21cf9c selftests/bpf: Add assert for user stacks in test_task_stack
    5f93225dc925 Revert "kernfs: convert kernfs_idr_lock to an irq safe raw spinlock"
    3058183333a5 kernfs: convert kernfs_idr_lock to an irq safe raw spinlock
    b57196a5ec5e class: fix use-after-free in class_register()
    aea1965c5de5 of: unittest: Fix of_count_phandle_with_args() expected value message
    71ec48abc549 fbdev: imxfb: fix left margin setting
    b64d09a4e859 of: Fix double free in of_parse_phandle_with_args_map
    acf50ff9360e ksmbd: validate the zero field of packet header
    d998ade03ef2 kselftest/alsa - conf: Stringify the printed errno in sysfs_get()
    efd7d5e1e6e2 kselftest/alsa - mixer-test: Fix the print format specifier warning
    45cbaa25b331 kselftest/alsa - mixer-test: fix the number of parameters to ksft_exit_fail_msg()
    ecfaeb66b1f0 drm/amd/display: avoid stringop-overflow warnings for dp_decide_lane_settings()
    ae7cbf935b9a drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init
    5024cce888e1 drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c
    2d8f9e4e1d9f IB/iser: Prevent invalidating wrong MR
    4147d76f988a gpio: sysfs: drop the mention of gpiochip_find() from sysfs code
    ba3f1a346bf1 gpiolib: provide gpio_device_find()
    799233ad1eb8 gpiolib: make gpio_device_get() and gpio_device_put() public
    9b0cc30d26c3 drm/amdkfd: Fix type of 'dbg_flags' in 'struct kfd_process'
    37d1757808b0 mmc: sdhci_omap: Fix TI SoC dependencies
    3e6319ca61c1 mmc: sdhci_am654: Fix TI SoC dependencies
    03035872e178 ALSA: scarlett2: Add clamp() in scarlett2_mixer_ctl_put()
    821fbaeaaae2 ALSA: scarlett2: Add missing error checks to *_ctl_get()
    66fb87fac545 ALSA: scarlett2: Allow passing any output to line_out_remap()
    996fde492ad9 ALSA: scarlett2: Add missing error check to scarlett2_usb_set_config()
    43a9b3f6e6ef ALSA: scarlett2: Add missing error check to scarlett2_config_save()
    bf4599610ef6 ASoC: rt5645: Drop double EF20 entry from dmi_platform_data[]
    c17134d3aea9 pwm: stm32: Fix enable count for clk in .probe()
    5eb8da9b3ef7 pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
    f1da0b7a092a clk: fixed-rate: fix clk_hw_register_fixed_rate_with_accuracy_parent_hw
    a3fb4404e3d4 clk: qcom: dispcc-sm8550: Update disp PLL settings
    053f354733aa clk: qcom: gcc-sm8550: Mark RCGs shared where applicable
    a7a5ec56a012 clk: qcom: gcc-sm8550: use collapse-voting for PCIe GDSCs
    62f53fe9e8c2 clk: qcom: gcc-sm8550: Mark the PCIe GDSCs votable
    b5782964b08f clk: qcom: gcc-sm8550: Add the missing RETAIN_FF_ENABLE GDSC flag
    975aaaddc226 accel/habanalabs: fix information leak in sec_attest_info()
    5ada13fb6770 drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency
    5a316acb135b ASoC: tas2781: add support for FW version 0x0503
    18e58248b2aa ASoC: amd: vangogh: Drop conflicting ACPI-based probing
    1e6132acba6a clk: si5341: fix an error code problem in si5341_output_clk_set_rate
    2e4806d2b78f clk: rs9: Fix DIF OEn bit placement on 9FGV0241
    f2c13661c2a6 watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused
    57b39f0b07cd watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
    04ec5525479b watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO
    1ee2762cf0fb watchdog: set cdev owner before adding
    37b67480609f drivers: clk: zynqmp: update divider round rate logic
    9b2dcd1b38c2 drivers: clk: zynqmp: calculate closest mux rate
    f35668e633e9 clk: sp7021: fix return value check in sp7021_clk_probe()
    2aea9c0498ca clk: qcom: videocc-sm8150: Add missing PLL config property
    9fcf47d8f909 clk: qcom: videocc-sm8150: Update the videocc resets
    07b4cf396c34 dt-bindings: clock: Update the videocc resets for sm8150
    cf8a10d41f13 f2fs: fix to check return value of f2fs_recover_xattr_data
    0c5d08b1c98e drm/amd/pm: fix a double-free in amdgpu_parse_extended_power_table
    4c9a96dd6d4a gpu/drm/radeon: fix two memleaks in radeon_vm_init
    95084632a65d drivers/amd/pm: fix a use-after-free in kv_parse_power_table
    fb1936cb5872 drm/amd/pm: fix a double-free in si_dpm_init
    5bc4f16118c5 drm/amdgpu/debugfs: fix error code when smc register accessors are NULL
    37e452306ae2 drm/mediatek: Fix underrun in VDO1 when switches off the layer
    f3e63240003e drm/mediatek: Remove the redundant driver data for DPI
    3aa7196bcd3b drm/mediatek: Return error if MDP RDMA failed to enable the clock
    173b247231bb drm/msm/dpu: Drop enable and frame_count parameters from dpu_hw_setup_misr()
    4ae0cd31688f drm/msm/dpu: Set input_sel bit for INTF
    0afe652a69d8 clk: renesas: rzg2l: Check reset monitor registers
    fc61c3c5e0f6 clk: renesas: rzg2l-cpg: Reuse code in rzg2l_cpg_reset()
    ee3e64d1dac6 media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()
    de28d63ad35c media: dvbdev: drop refcount on error path in dvb_device_open()
    7bf0cba7f7e8 f2fs: fix to update iostat correctly in f2fs_filemap_fault()
    412eee2c894a f2fs: fix to check compress file in f2fs_move_file_range()
    4535be487804 f2fs: fix to wait on block writeback for post_read case
    fa08600a6c0b drm/panel: st7701: Fix AVCL calculation
    6ce256eab4d4 drm/msm/adreno: Fix A680 chip id
    f2295f176989 media: rkisp1: Fix media device memory leak
    0e09b6dd83b1 media: dt-bindings: media: rkisp1: Fix the port description for the parallel interface
    c9354bffaa5b media: imx-mipi-csis: Drop extra clock enable at probe()
    0e3535ee779f media: imx-mipi-csis: Fix clock handling in remove()
    54ce93d7e66e media: bttv: add back vbi hack
    e8fa30fa7157 media: bttv: start_streaming should return a proper error code
    5e00f6c3a350 clk: qcom: gpucc-sm8150: Update the gpu_cc_pll1 config
    e785018a7f06 RDMA/hns: Fix memory leak in free_mr_init()
    1e2c9e741824 media: cx231xx: fix a memleak in cx231xx_init_isoc
    3258bc1f8cc8 drm/bridge: tc358767: Fix return value on error case
    99705f3f345f drm/bridge: cdns-mhdp8546: Fix use of uninitialized variable
    0564e8a42791 drm/radeon/trinity_dpm: fix a memleak in trinity_parse_power_table
    a26634b3ce21 drm/radeon/dpm: fix a memleak in sumo_parse_power_table
    0b813a6a0087 drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
    3bbef34ea819 drm/msm/dpu: correct clk bit for WB2 block
    4687cb57578a drm/panfrost: Ignore core_mask for poweroff and disable PWRTRANS irq
    61dfc4317425 ASoC: SOF: topology: Use partial match for disconnecting DAI link and DAI widget
    a410d58117d6 ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL
    3fbfbea3eeb0 ASoC: Intel: glk_rt5682_max98357a: fix board id mismatch
    b7062628caea media: v4l: async: Fix duplicated list deletion
    af9d39677c91 drm/drv: propagate errors from drm_modeset_register_all()
    ae795abe7b3e drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks
    ff9f375c21d9 drm/msm/dpu: Add missing safe_lut_tbl in sc8180x catalog
    3925b83c3586 drm/msm/mdp4: flush vblank event on disable
    13bb7bfc2580 ASoC: cs35l33: Fix GPIO name and drop legacy include
    9c010be07fd9 drm/imx/lcdc: Fix double-free of driver data
    417d134e72f5 drm/tidss: Fix dss reset
    11e2dc2ff842 drm/tidss: Check for K2G in in dispc_softreset()
    4fcfe757860b drm/tidss: Return error value from from softreset
    d44143cdd0d1 drm/tidss: Move reset to the end of dispc_init()
    18bd4d184675 drm/radeon: check return value of radeon_ring_lock()
    056484916a13 drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check()
    0413e8869171 drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()
    d3c0b49aaa12 f2fs: fix to avoid dirent corruption
    c111350d673a drm/bridge: Fix typo in post_disable() description
    c082791b6a46 media: amphion: Fix VPU core alias name
    251743c4065c media: rkvdec: Hook the (TRY_)DECODER_CMD stateless ioctls
    682588d38ad9 media: verisilicon: Hook the (TRY_)DECODER_CMD stateless ioctls
    f581023e3207 media: visl: Hook the (TRY_)DECODER_CMD stateless ioctls
    2cb808af7746 media: mtk-jpeg: Remove cancel worker in mtk_jpeg_remove to avoid the crash of multi-core JPEG devices
    2cf0005d3155 media: pvrusb2: fix use after free on context disconnection
    c56a4ad4068d drm/tilcdc: Fix irq free on unload
    a8657406e12a drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function
    9f91aa1ef918 drm/nouveau/fence:: fix warning directly dereferencing a rcu pointer
    a23571137dd1 drm/panel-elida-kd35t133: hold panel in reset for unprepare
    e9c9fd317ab0 drm/panel: nv3051d: Hold panel in reset for unprepare
    ada27426b0d6 RDMA/hns: Fix inappropriate err code for unsupported operations
    fff32018b025 RDMA/usnic: Silence uninitialized symbol smatch warnings
    305f1f46d738 drm/panfrost: Really power off GPU cores in panfrost_gpu_power_off()
    4e042f022255 drm/dp_mst: Fix fractional DSC bpp handling
    16af1e7f5ea6 Revert "drm/omapdrm: Annotate dma-fence critical section in commit path"
    9ab5837f77a1 Revert "drm/tidss: Annotate dma-fence critical section in commit path"
    c5d4224a4d16 ARM: davinci: always select CONFIG_CPU_ARM926T
    687c5d52fe53 ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
    2968901d72b9 rxrpc: Fix skbuff cleanup of call's recvmsg_queue and rx_oos_queue
    04c1f0f2505a mlxbf_gige: Enable the GigE port in mlxbf_gige_open
    42b242c62bc1 mlxbf_gige: Fix intermittent no ip issue
    73f7da5fd124 net/sched: act_ct: fix skb leak and crash on ooo frags
    a33c741ca699 blk-cgroup: fix rcu lockdep warning in blkg_lookup()
    63c3c44ff4c5 sctp: fix busy polling
    9702e7fb6399 sctp: support MSG_ERRQUEUE flag in recvmsg()
    b54d78d57985 bpf: sockmap, fix proto update hook to avoid dup calls
    3d81183a5b9c wifi: cfg80211: parse all ML elements in an ML probe response
    6b3946813382 wifi: cfg80211: correct comment about MLD ID
    08a8ae5a8018 arm64: dts: rockchip: Fix led pinctrl of lubancat 1
    eeeb228c5f23 null_blk: don't cap max_hw_sectors to BLK_DEF_MAX_SECTORS
    0f37a5c9d366 Bluetooth: btmtkuart: fix recv_buf() return value
    8cd6c0600725 Bluetooth: btnxpuart: fix recv_buf() return value
    f8a5c402ae34 Bluetooth: Fix bogus check for re-auth no supported with non-ssp
    f1ee0ffbc024 netfilter: nf_tables: validate chain type update if available
    f5ab4e73c9e1 netfilter: nf_tables: mark newset as dead on transaction abort
    e6f3f39676a5 wifi: iwlwifi: assign phy_ctxt before eSR activation
    a2a4bb509b78 wifi: iwlwifi: fix out of bound copy_from_user
    076ca7429666 wifi: iwlwifi: mvm: send TX path flush in rfkill
    c3e1a02a8ab2 wifi: iwlwifi: mvm: set siso/mimo chains to 1 in FW SMPS request
    df14b372030c wifi: rtlwifi: rtl8192se: using calculate_bit_shift()
    076d81a78371 wifi: rtlwifi: rtl8192ee: using calculate_bit_shift()
    6bbaf100a355 wifi: rtlwifi: rtl8192de: using calculate_bit_shift()
    4342f9646953 wifi: rtlwifi: rtl8192ce: using calculate_bit_shift()
    96cd7b10e949 wifi: rtlwifi: rtl8192cu: using calculate_bit_shift()
    b2127790622c wifi: rtlwifi: rtl8192c: using calculate_bit_shift()
    2293d95f8765 wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift()
    1b2260bc3403 wifi: rtlwifi: add calculate_bit_shift()
    3bc29c780aca bpf: Use c->unit_size to select target cache during free
    63ddf081e111 bpf: Use pcpu_alloc_size() in bpf_mem_free{_rcu}()
    62752b673247 bpf: Re-enable unit_size checking for global per-cpu allocator
    2e5181afb329 arm64: dts: qcom: sc8180x: Fix up PCIe nodes
    8f1b6d23fec4 arm64: dts: qcom: sc8180x: switch PCIe QMP PHY to new style of bindings
    8d0c268ffcb3 arm64: dts: qcom: sc8180x: Mark PCIe hosts cache-coherent
    c811f0246b2c arm64: dts: qcom: sm8550: Update idle state time requirements
    ff8434b61cbb arm64: dts: qcom: sm8550: Separate out X3 idle state
    55c87e64a3c0 arm64: dts: qcom: ipq6018: fix clock rates for GCC_USB0_MOCK_UTMI_CLK
    afea6ffbed36 arm64: dts: qcom: sc7280: Mark SDHCI hosts as cache-coherent
    ed49fd2d46a4 block: add check of 'minors' and 'first_minor' in device_add_disk()
    004e05c28c57 soc: qcom: llcc: Fix LLCC_TRP_ATTR2_CFGn offset
    11b4803210af arm64: dts: qcom: sm8150-hdk: fix SS USB regulators
    2d1cd59a34d1 arm64: dts: qcom: sm8150: make dispcc cast minimal vote on MMCX
    0f5532bd692f arm64: dts: qcom: sm6375: Hook up MPM
    4a208efdf54d arm64: dts: qcom: sm6375: fix USB wakeup interrupt types
    19e578b69968 soc: qcom: llcc: Fix dis_cap_alloc and retain_on_pc configuration
    793ca465722a arm64: dts: qcom: acer-aspire1: Correct audio codec definition
    3d83b820bff9 bpf: Limit the number of kprobes when attaching program to multiple kprobes
    5735054af3d3 bpf: Limit the number of uprobes when attaching program to multiple uprobes
    849ca053beb0 dma-mapping: clear dev->dma_mem to NULL after freeing it
    94e5f64283a1 virtio/vsock: send credit update during setting SO_RCVLOWAT
    925c22d43835 virtio/vsock: fix logic which reduces credit update messages
    7b32e63f8814 ipmr: support IP_PKTINFO on cache report IGMP msg
    d01b4a9296ec selftests/net: fix grep checking for fib_nexthop_multiprefix
    d048dced8ea5 bpf: Fix a race condition between btf_put() and map_free()
    42357465a069 ARM: dts: stm32: don't mix SCMI and non-SCMI board compatibles
    d4a84572bcb1 scsi: hisi_sas: Correct the number of global debugfs registers
    d1932df3c4ba scsi: hisi_sas: Rollback some operations if FLR failed
    9e1986cd8a93 scsi: hisi_sas: Check before using pointer variables
    ec2499b80e1c scsi: hisi_sas: Replace with standard error code return value
    8d8f671e45de scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails
    8f67e87e1602 scsi: ufs: qcom: Fix the return value of ufs_qcom_ice_program_key()
    95fff86aa8d2 arm64: dts: imx8mm: Reduce GPU to nominal speed
    9cd79bc11ffa arm64: dts: renesas: white-hawk-cpu: Fix missing serial console pin control
    218c08c5b2bd arm64: dts: xilinx: Apply overlays to base dtbs
    89665b3daea4 block: Set memalloc_noio to false on device_add_disk() error path
    1e1fe2bd87ac selftests/bpf: Relax time_tai test for equal timestamps in tai_forward
    85e60760d255 wifi: iwlwifi: don't support triggered EHT CQI feedback
    15173a169723 wifi: mt76: mt7921: fix country count limitation for CLC
    f8fa25bf6654 arm64: dts: mediatek: mt8186: fix address warning for ADSP mailboxes
    9bd3a1881724 arm64: dts: mediatek: mt8186: Fix alias prefix for ovl_2l0
    11f272928e24 arm64: dts: mediatek: mt8195: revise VDOSYS RDMA node name
    4b0d8f4a68aa arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes
    64ebe7abc1c0 dt-bindings: media: mediatek: mdp3: correct RDMA and WROT node with generic names
    0954982db828 bpf: Fix accesses to uninit stack slots
    ad140fc856f0 bpf: Guard stack limits against 32bit overflow
    7f7bed74ba64 arm64: dts: hisilicon: hikey970-pmic: fix regulator cells properties
    08b91babccbb bpf: Fix verification of indirect var-off stack access
    e89d025d331c wifi: mt76: mt7921s: fix workqueue problem causes STA association fail
    88199cbc75fe wifi: mt76: mt7915: also MT7981 is 3T3R but nss2 on 5 GHz band
    a37cd935b586 wifi: mt76: mt7915: fix EEPROM offset of TSSI flag on MT7981
    d03559452a8a wifi: mt76: mt7996: fix rate usage of inband discovery frames
    041f75b38b1e wifi: mt76: mt7996: fix the size of struct bss_rate_tlv
    5e22c8a04173 wifi: mt76: mt7915: fallback to non-wed mode if platform_get_resource fails in mt7915_mmio_wed_init()
    b9b61d159006 wifi: mt76: fix typo in mt76_get_of_eeprom_from_nvmem function
    27aca54b0d14 arm64: dts: qcom: sm8550: fix USB wakeup interrupt types
    d7206c3bb4b5 arm64: dts: qcom: sc7280: fix usb_2 wakeup interrupt types
    22a31cc7a022 arm64: dts: qcom: sa8775p: fix USB wakeup interrupt types
    20455e11993b arm64: dts: qcom: sc7280: Mark Adreno SMMU as DMA coherent
    028a26553eb2 arm64: dts: qcom: sc7280: Fix up GPU SIDs
    52fafbe79b25 arm64: dts: qcom: sm8350: Fix DMA0 address
    9f3f5494456c arm64: dts: qcom: sm6125: add interrupts to DWC3 USB controller
    22817db3aa32 arm64: dts: qcom: sdm845-db845c: correct LED panic indicator
    747dee115c14 arm64: dts: qcom: qrb5165-rb5: correct LED panic indicator
    5ea916f16be3 arm64: dts: qcom: qrb2210-rb1: use USB host mode
    da58aea81a3b arm64: dts: qcom: qrb2210-rb1: Hook up USB3
    76fed8a4c507 scsi: fnic: Return error if vmalloc() failed
    8dc15b067059 bpf: fix check for attempt to corrupt spilled pointer
    25a17a269b44 selftests/net: specify the interface when do arping
    f91cd728b10c bpf: Defer the free of inner map when necessary
    1c40ec6b8e06 bpf: Add map and need_defer parameters to .map_fd_put_ptr()
    decc738819ea arm64: dts: qcom: sm6350: Make watchdog bark interrupt edge triggered
    b9a97215c346 arm64: dts: qcom: sc8280xp: Make watchdog bark interrupt edge triggered
    bc3400294110 arm64: dts: qcom: sa8775p: Make watchdog bark interrupt edge triggered
    a52f6d78ff65 arm64: dts: qcom: sm8250: Make watchdog bark interrupt edge triggered
    70d0d1bfe5e1 arm64: dts: qcom: sm8150: Make watchdog bark interrupt edge triggered
    b06a86234872 arm64: dts: qcom: sdm845: Make watchdog bark interrupt edge triggered
    940ce0fee709 arm64: dts: qcom: sc7280: Make watchdog bark interrupt edge triggered
    6252b33a3101 arm64: dts: qcom: sc7280: Mark some nodes as 'reserved'
    6157194e6400 arm64: dts: qcom: sc7180: Make watchdog bark interrupt edge triggered
    5fd1287784a2 arm64: dts: qcom: sm8550: correct TX Soundwire clock
    2eda1c797441 arm64: dts: qcom: sm8450: correct TX Soundwire clock
    9bdbc3a00a67 arm64: dts: qcom: sc8180x-primus: Fix HALL_INT polarity
    c961ca51345a dt-bindings: arm: qcom: Fix html link
    498e1c55baf7 ARM: dts: qcom: sdx65: correct SPMI node name
    4371540a33ca ARM: dts: qcom: sdx65: correct PCIe EP phy-names
    0866f6427b45 bpf: enforce precision of R0 on callback return
    530cec617f5a md: synchronize flush io with array reconfiguration
    3bb89deccac5 selftests/bpf: Fix erroneous bitmask operation
    5b5ddf21b978 wifi: rtw88: sdio: Honor the host max_req_size in the RX path
    c2d3b657c968 arm64: dts: ti: iot2050: Re-add aliases
    87e2d91d4cec arm64: dts: ti: k3-am65-main: Fix DSS irq trigger type
    92e2eaa44a7f arm64: dts: ti: k3-am62a-main: Fix GPIO pin count in DT nodes
    6aa025f6df94 wifi: rtlwifi: rtl8821ae: phy: fix an undefined bitwise shift behavior
    65d10f83acff scsi: bfa: Use the proper data type for BLIST flags
    7615536a3746 firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create()
    1c83c7089dea net/ncsi: Fix netlink major/minor version numbers
    50871569183e ARM: dts: qcom: apq8064: correct XOADC register address
    ba538ae4d709 wifi: libertas: stop selecting wext
    e9327c72bc77 wifi: ath11k: Defer on rproc_get failure
    a341738951bf bpf: Add crosstask check to __bpf_get_stack
    de0b27e6326e bpf, lpm: Fix check prefixlen before walking trie
    153267f9513f wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
    2ed15a3a3f4a wifi: plfxlc: check for allocation failure in plfxlc_usb_wreq_async()
    ddcb3b444659 ARM: dts: qcom: msm8226: provide dsi phy clocks to mmcc
    d5bc0233ddae arm64: dts: qcom: sc8280xp-x13s: add missing camera LED pin config
    47e3ec86cf6f arm64: dts: qcom: sc8280xp-x13s: Use the correct DP PHY compatible
    d579dfaa0908 arm64: dts: qcom: qrb4210-rb2: don't force usb peripheral mode
    6e007fac81cf asm-generic: Fix 32 bit __generic_cmpxchg_local
    75aa038d9f6e pNFS: Fix the pnfs block driver's calculation of layoutget size
    bcdb16220a58 SUNRPC: fix _xprt_switch_find_current_entry logic
    8d43b944cab0 NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT
    4ffac0013421 NFS: Use parent's objective cred in nfs_access_login_time()
    b4b7dd1cb608 blocklayoutdriver: Fix reference leak of pnfs_device_node
    060d799775f6 csky: fix arch_jump_label_transform_static override
    7d9e5bed036a crypto: scomp - fix req->dst buffer overflow
    c660aa7784b7 crypto: sahara - do not resize req->src when doing hash operations
    08489b1994cb crypto: sahara - fix processing hash requests with req->nbytes < sg->length
    3c3eb0f8bb26 crypto: sahara - improve error handling in sahara_sha_process()
    db6efd4da2ee crypto: sahara - fix wait_for_completion_timeout() error handling
    7593631a53c5 crypto: sahara - fix ahash reqsize
    b123af8beb89 crypto: sahara - handle zero-length aes requests
    326288412716 crypto: sahara - avoid skcipher fallback code duplication
    63cdfacb0a70 crypto: virtio - Wait for tasklet to complete on device remove
    528a422b94b3 dlm: fix format seq ops type 4
    4f234d5fcd82 gfs2: fix kernel BUG in gfs2_quota_cleanup
    067a7c48c2c7 gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
    5248b445a579 fs: indicate request originates from old mount API
    90219ce71683 erofs: fix memory leak on short-lived bounced pages
    a34946ec3de8 pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()
    52f0b4a30f20 crypto: hisilicon/zip - save capability registers in probe process
    b06a6d5e9d99 crypto: hisilicon/sec2 - save capability registers in probe process
    e8d4877e5c7f crypto: hisilicon/hpre - save capability registers in probe process
    1e8102e22c88 crypto: hisilicon/qm - add a function to set qm algs
    b7a03a0f15c2 crypto: hisilicon/zip - add zip comp high perf mode configuration
    eaf9954929e5 crypto: hisilicon/qm - save capability registers in qm init process
    dffc3483c84e crypto: sahara - fix error handling in sahara_hw_descriptor_create()
    4167eb9412d4 crypto: sahara - fix processing requests with cryptlen < sg->length
    ab82cb379a5a crypto: sahara - fix ahash selftest failure
    489bfd8f8a64 crypto: sahara - fix cbc selftest failure
    dd31964d9eca crypto: sahara - remove FLAGS_NEW_KEY logic
    8084b788c2fb crypto: safexcel - Add error handling for dma_map_sg() calls
    e136daaa10e4 crypto: af_alg - Disallow multiple in-flight AIO requests
    1e9d70723398 crypto: ccp - fix memleak in ccp_init_dm_workarea
    b94f7e34d6a2 crypto: sa2ul - Return crypto_aead_setkey to transfer the error
    c4c54fce9ec5 crypto: virtio - Handle dataq logic with tasklet
    6d9f17829eb6 crypto: jh7110 - Correct deferred probe return
    2831f4d3bfa6 crypto: rsa - add a check for allocation failure
    089ff0eeb785 selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
    70481755ed77 drivers/thermal/loongson2_thermal: Fix incorrect PTR_ERR() judgment
    628fb8986479 cpuidle: haltpoll: Do not enable interrupts when entering idle
    cfd7c9d260dc mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
    5e9908878034 kunit: debugfs: Fix unchecked dereference in debugfs_print_results()
    335176dd8eba thermal: core: Fix NULL pointer dereference in zone registration error path
    c4323f66f39e ACPI: extlog: Clear Extended Error Log status when RAS_CEC handled the error
    2920ac9d7e79 ACPI: LPSS: Fix the fractional clock divider flags
    ed492c4739e1 spi: sh-msiof: Enforce fixed DTDL for R-Car H3
    48be1364dd38 efivarfs: Free s_fs_info on unmount
    0049fe7e4a85 efivarfs: force RO when remounting if SetVariable is not supported
    408bbd1e1746 calipso: fix memory leak in netlbl_calipso_add_pass()
    5dd08ac0bc65 cpufreq: scmi: process the result of devm_of_clk_add_hw_provider()
    8271d397a9ff platform/x86/intel/vsec: Fix xa_alloc memory leak
    b1432249f169 spi: cadence-quadspi: add missing clk_disable_unprepare() in cqspi_probe()
    69c2d6e40d97 KEYS: encrypted: Add check for strsep
    d1ac288b2742 ACPI: LPIT: Avoid u32 multiplication overflow
    39af144b6d01 ACPI: video: check for error while searching for backlight device parent
    f58ec36850ae mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response
    d83b2b32ba0f spi: spi-zynqmp-gqspi: fix driver kconfig dependencies
    bf1bf09e6b59 perf/x86/intel/uncore: Fix NULL pointer dereference issue in upi_fill_topology()
    20c09814782b sched/fair: Update min_vruntime for reweight_entity() correctly
    024352f7928b powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
    69f95c5e9220 powerpc/powernv: Add a null pointer check in opal_powercap_init()
    a14c55eb461d powerpc/powernv: Add a null pointer check in opal_event_init()
    dd8422ff271c powerpc/powernv: Add a null pointer check to scom_debug_init_one()
    bc063bf0934b powerpc/rtas: Avoid warning on invalid token argument to sys_rtas()
    2b03b50d1d88 powerpc/hv-gpci: Add return value check in affinity_domain_via_partition_show function
    0a16df5beb82 selftests/powerpc: Fix error handling in FPU/VMX preemption tests
    01f0876efc26 KVM: PPC: Book3S HV: Handle pending exceptions on guest entry with MSR_EE
    267980ea1081 KVM: PPC: Book3S HV: Introduce low level MSR accessor
    abcaadd4ce4a KVM: PPC: Book3S HV: Use accessors for VCPU registers
    412acaf9e213 drivers/perf: hisi: Fix some event id for HiSilicon UC pmu
    b60f26de4ecf perf/arm-cmn: Fix HN-F class_occup_id events
    df16afba2378 powerpc/pseries/memhp: Fix access beyond end of drmem array
    c927d8aff942 powerpc/44x: select I2C for CURRITUCK
    08beb0d4362b x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram
    f7aac5fede0b powerpc: add crtsavres.o to always-y instead of extra-y
    e1c865112415 EDAC/thunderx: Fix possible out-of-bounds string access
    91e7cc27b896 x86/mce/inject: Clear test status value
    2de76cf01e57 x86/lib: Fix overflow when counting digits
    62b19b564504 Linux 6.6.13
    9584c8d658c0 mm/memory_hotplug: fix memmap_on_memory sysfs value retrieval
    f54708e4a26d scripts/decode_stacktrace.sh: optionally use LLVM utilities
    09f222d40fae coresight: etm4x: Fix width of CCITMIN field
    d6d19c3d1792 PCI: Add ACS quirk for more Zhaoxin Root Ports
    7db7504a3e41 leds: ledtrig-tty: Free allocated ttyname buffer on deactivate
    12786872b26a parport: parport_serial: Add Brainboxes device IDs and geometry
    03427e7f2a56 parport: parport_serial: Add Brainboxes BAR details
    35f102607054 uio: Fix use-after-free in uio_open
    f4d6dbaa4376 binder: fix comment on binder_alloc_new_buf() return value
    8040d704adce binder: fix trivial typo of binder_free_buf_locked()
    a49087ab9350 binder: fix use-after-free in shinker's callback
    802c61319ec2 binder: use EPOLLERR from eventpoll.h
    e16a0bbdb7e5 Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"
    76a10fc65ab9 ksmbd: free ppace array on error in parse_dacl
    ab5c25b6988f ksmbd: don't allow O_TRUNC open on read-only share
    71be0f674070 drm/amd/display: Pass pwrseq inst for backlight and ABM
    6d4295d61579 ASoC: SOF: Intel: hda-codec: Delay the codec device registration
    08a2ae1d0402 bus: moxtet: Add spi device table
    b0ce6ddc1ca2 bus: moxtet: Mark the irq as shared
    2cd4362faa9e ACPI: resource: Add another DMI match for the TongFang GMxXGxx
    3642b5a62496 ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP Envy X360 13-ay0xxx
    d86c51e95644 x86/microcode: do not cache microcode if it will not be used
    7e881af7fb3c drm/crtc: fix uninitialized variable use
    2f09679b8ac1 x86/csum: clean up `csum_partial' further
    1078f257eb3a x86/csum: Remove unnecessary odd handling
    f99b7b22c0af ARM: sun9i: smp: fix return code check of of_property_match_string
    1e6b9bc8cc36 connector: Fix proc_event_num_listeners count not cleared
    6a186b28c4fc net: qrtr: ns: Return 0 if server port is not present
    e79e7c3aa522 nfc: Do not send datagram if socket state isn't LLCP_BOUND
    79aa992c8038 virtio_blk: fix snprintf truncation compiler warning
    ffcaafdb8be6 ida: Fix crash in ida_free when the bitmap is empty
    766c6c1dd140 posix-timers: Get rid of [COMPAT_]SYS_NI() uses
    406cea6443b6 pinctrl: cy8c95x0: Fix get_pincfg
    5f0a16617f70 pinctrl: cy8c95x0: Fix regression
    3d5729d5cee2 pinctrl: cy8c95x0: Fix typo
    a5ba95c226b5 drm/amd/display: get dprefclk ss info from integration info table
    18562b1691e2 drm/amd/display: Add case for dcn35 to support usb4 dmub hpd event
    bd443910debf drm/amdkfd: svm range always mapped flag not working on APU
    5a358b978618 i2c: rk3x: fix potential spinlock recursion on poll
    c5e0ed716c52 smb: client: fix potential OOB in smb2_dump_detail()
    00e66f948abe HID: nintendo: Prevent divide-by-zero on code
    8d6bda0f95c1 dm audit: fix Kconfig so DM_AUDIT depends on BLK_DEV_DM
    5e0e2cb4a1ce ALSA: hda/realtek: Add quirks for ASUS Zenbook 2022 Models
    4818174fd58a ASoC: Intel: bytcr_rt5640: Add new swapped-speakers quirk
    ed1310b53b6f ASoC: Intel: bytcr_rt5640: Add quirk for the Medion Lifetab S10346
    1339559bb6dd platform/x86/amd/pmc: Disable keyboard wakeup on AMD Framework 13
    5b235bbc2706 platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks
    a7edb661bb85 platform/x86/amd/pmc: Only run IRQ1 firmware version check on Cezanne
    f4fb4b9f1364 platform/x86/amd/pmc: Move platform defines to header
    64954dd2eef1 platform/x86: thinkpad_acpi: fix for incorrect fan reporting on some ThinkPad systems
    8e2609cbdee2 HID: nintendo: fix initializer element is not constant error
    3e0e4a900fcb kselftest: alsa: fixed a print formatting warning
    60e916d4b838 driver core: Add a guard() definition for the device_lock()
    1488b369267e Input: xpad - add Razer Wolverine V2 support
    015cfa30b39c wifi: iwlwifi: pcie: avoid a NULL pointer dereference
    544ce65cb52a ARC: fix smatch warning
    358bca0bb1b4 ARC: fix spare error
    c754028a068f s390/scm: fix virtual vs physical address confusion
    4361e15ac24b ASoC: cs35l45: Prevents spinning during runtime suspend
    ab65d383a57b ASoC: cs35l45: Prevent IRQ handling when suspending/resuming
    296e487dd215 ASoC: cs35l45: Use modern pm_ops
    a2af708bb197 pinctrl: amd: Mask non-wake source pins with interrupt enabled at suspend
    0a4a682b502f Input: i8042 - add nomux quirk for Acer P459-G2-M
    274333f82597 Input: atkbd - skip ATKBD_CMD_GETID in translated mode
    88c38fd2f3e6 reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
    ad2347d78d7b Input: psmouse - enable Synaptics InterTouch for ThinkPad L14 G1
    33e42861eb95 ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
    d9a6029ddee5 tracing: Fix uaf issue when open the hist or hist_debug file
    0e73f1ba602d MIPS: dts: loongson: drop incorrect dwmac fallback compatible
    98707906c64e stmmac: dwmac-loongson: drop useless check for compatible fallback
    0df76142ca21 tracing: Add size check when printing trace_marker output
    f3dc260cd5f2 tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
    cd70be63167a jbd2: fix soft lockup in journal_finish_inode_data_buffers()
    6e567410d6d3 efi/loongarch: Use load address to calculate kernel entry address
    4dceffd823b7 platform/x86: intel-vbtn: Fix missing tablet-mode-switch events
    cdd8512a5574 neighbour: Don't let neigh_forced_gc() disable preemption for long
    ff89e507b231 drm/crtc: Fix uninit-value bug in drm_mode_setcrtc
    5c480a6966c5 jbd2: increase the journal IO's priority
    6459656095e4 jbd2: correct the printing of write_flags in jbd2_write_superblock()
    262853dc685b soundwire: intel_ace2x: fix AC timing setting for ACE2.x
    8c8343127735 clk: rockchip: rk3128: Fix HCLK_OTG gate register
    351bcf3a3772 clk: rockchip: rk3568: Add PLL rate for 292.5MHz
    4dd2d87c88fd LoongArch: Preserve syscall nr across execve()
    4d8121aa13fd LoongArch: Set unwind stack type to unknown rather than set error flag
    10d9f8ed6daf LoongArch: Apply dynamic relocations for LLD
    3584858bfd34 hwmon: (corsair-psu) Fix probe when built-in
    3f7109ec1fa5 ALSA: pcmtest: stop timer before buffer is released
    b92ad44a1b32 drm/exynos: fix a wrong error checking
    2debe511c1d2 drm/exynos: fix a potential error pointer dereference
    fb26de4a86e1 drm/amdgpu: Add NULL checks for function pointers
    7fc3d8ea1a67 drm/amd/display: Add monitor patch for specific eDP
    a0827b9172ee arm64: dts: rockchip: Fix PCI node addresses on rk3399-gru
    c52d545c1e31 nvme: fix deadlock between reset and scan
    946fd64ba361 nvme: prevent potential spectre v1 gadget
    8b2a6a3692e2 nvme-ioctl: move capable() admin check to the end
    8884a56d2154 nvme: ensure reset state check ordering
    cc5b051eeb48 nvme: introduce helper function to get ctrl state
    8392d3234721 ASoC: da7219: Support low DC impedance headset
    55aba82746bd net/tg3: fix race condition in tg3_reset_task()
    06cb2064b0bf pds_vdpa: set features order
    d3bb92beda4a pds_vdpa: clear config callback when status goes to 0
    53fff954e77c pds_vdpa: fix up format-truncation complaint
    3ad7bf5e57c9 ASoC: SOF: ipc4-topology: Correct data structures for the GAIN module
    330c0f19b393 ASoC: SOF: ipc4-topology: Correct data structures for the SRC module
    5713ab41ace4 ASoC: hdac_hda: Conditionally register dais for HDMI and Analog
    8fa621053995 ASoC: amd: yc: Add DMI entry to support System76 Pangolin 13
    fa60f8fac637 nouveau/tu102: flush all pdbs on vmm flush
    3c124f09b7ff ASoC: SOF: sof-audio: Modify logic for enabling/disabling topology cores
    e8879e7a7b4e ASoC: SOF: ipc4-topology: Add core_mask in struct snd_sof_pipeline
    e1d391310724 ASoC: Intel: skl_hda_dsp_generic: Drop HDMI routes when HDMI is not available
    f369cf7e94b4 ASoC: fsl_xcvr: refine the requested phy clock frequency
    8f82f2e4d9c4 ASoC: rt5650: add mutex to avoid the jack detection failure
    d568aed978da ASoC: fsl_xcvr: Enable 2 * TX bit clock for spdif only case
    193d4bbe81fe ASoC: cs43130: Fix incorrect frame delay configuration
    655e69056d09 ASoC: cs43130: Fix the position of const qualifier
    ab10ac262156 ASoC: Intel: Skylake: mem leak in skl register function
    d7368ad5313e ASoC: SOF: topology: Fix mem leak in sof_dai_load()
    5a8bceaeaad0 ASoC: nau8822: Fix incorrect type in assignment and cast to restricted __be16
    07c7fd07b531 ASoC: Intel: Skylake: Fix mem leak in few functions
    8dada1d452ca arm64: dts: rockchip: fix rk356x pcie msg interrupt name
    73ed4a6ea7d3 ASoC: wm8974: Correct boost mixer inputs
    3290bb89e74d ASoC: amd: yc: Add HP 255 G10 into quirk table
    bade0c1e7569 hwtracing: hisi_ptt: Don't try to attach a task
    5e67b92b8b2b hwtracing: hisi_ptt: Handle the interrupt in hardirq context
    a4848c45a3f0 nvme-core: check for too small lba shift
    511f602527ac blk-mq: don't count completed flush data request as inflight in case of quiesce
    379af079c427 Revert "drm/prime: Unexport helpers for fd/handle conversion"
    5ca518149d46 smb: client, common: fix fortify warnings
    941887dc5ed4 drm/amdgpu: Use another offset for GC 9.4.3 remap
    ccba04281640 drm/amdkfd: Free gang_ctx_bo and wptr_bo in pqm_uninit
    61dfdb779048 drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
    6396b551f286 drm/amd/display: update dcn315 lpddr pstate latency
    867ecd8970d3 drm/amdkfd: Use common function for IP version check
    541cb7618a15 drm/amdgpu: Do not issue gpu reset from nbio v7_9 bif interrupt
    da29e4012f41 block: warn once for each partition in bio_check_ro()
    0c7df8c241ff io_uring: use fget/fput consistently
    75cc56afb28b nvme-core: fix a memory leak in nvme_ns_info_from_identify()
    a47f3a83411f ALSA: hda: intel-nhlt: Ignore vbps when looking for DMIC 32 bps format
    c455b17aff82 debugfs: fix automount d_fsdata usage
    0e25eac37f7a wifi: mac80211: handle 320 MHz in ieee80211_ht_cap_ie_to_sta_ht_cap
    3f7af987d55b wifi: avoid offset calculation on NULL pointer
    35a59d349ab0 wifi: cfg80211: lock wiphy mutex for rfkill poll
    5814deb5a5b0 mptcp: fix uninit-value in mptcp_incoming_options
    948cb8b2d5d0 ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
    d273f33bb1e3 pinctrl: lochnagar: Don't build on MIPS
    b12a331178d4 kunit: Reset suite counter right before running tests
    858c0840ef02 kunit: Warn if tests are slow
    f88c602fd0ab pinctrl: s32cc: Avoid possible string truncation
    2525d1ba225b f2fs: explicitly null-terminate the xattr list

(From meta-yocto rev: 206939ac3b78ad078d5d7f3ff180e709726846b9)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:15:18 +00:00
Adrian Freihofer
5206056589 oeqa/selftest/recipetool: fix for python 3.12
test_recipetool_create_github and test_recipetool_create_github_tarball
fail because the old meson version used by these tests cases does not
run on Python 3.12. The issue is in the dependencies.py which comes with
meson:
ERROR: build/tmp/work/recipetool-3z4osyl7/source/git/mesonbuild/
       dependencies.py:777: SyntaxWarning: invalid escape sequence '\.'

Use meson 1.3.1 (what is currently also used on master) as a reference
for these tests.

With this version of meson, recipetool creates recipes named
meson_git.bb or meson_1.3.1.bb. Since this looks more reasonable than
e.g. python3-meson_git.bb the test gets adapted.

(From OE-Core rev: 7374a8a2810a6cf027bfefefe87691a3529123ff)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Adrian Freihofer
f58aedff02 oeqa: replace deprecated assertEquals
assertEquals is deprecated since Python 2.7:
https://docs.python.org/2/library/unittest.html#deprecated-aliases
It throws errors at least on Python 3.12. Replace it by assertEqual.

(From OE-Core rev: 68286d0b70cf09a0d2950b48945c9192fb8c8769)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Adrian Freihofer
233d2d8c0d recipetool: cleanup imports
- os is missing
- glob is not used

(From OE-Core rev: f560bc8972e97d2e497d7b976586e4a79ffc74ec)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Michael Opdenacker
be94979c69 alsa-utils: upgrade 1.2.10 -> 1.2.11
- Upstream release upgrade
  See https://www.alsa-project.org/wiki/Detailed_changes_v1.2.10_v1.2.11
- Remove merged patches

(From OE-Core rev: 877ab719495e0d6d228e355e81a52db4a1291b6e)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Michael Opdenacker
a8cf6842ed alsa-ucm-conf: upgrade 1.2.10 -> 1.2.11
- Upstream release update
  See https://www.alsa-project.org/wiki/Detailed_changes_v1.2.10_v1.2.11

(From OE-Core rev: c40625abc7b83582139fa9ce4f638dd2cf404ad5)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Michael Opdenacker
6464ece7bb alsa-tools: upgrade 1.2.5 -> 1.2.11
- Upstream release update
  See https://www.alsa-project.org/wiki/Detailed_changes_v1.2.10_v1.2.11

(From OE-Core rev: deef08ab66ed5983a962e59655d03c2549e1132c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Michael Opdenacker
1d1d8b3f57 alsa-lib: upgrade 1.2.10 -> 1.2.11
- Upstream release update
  See https://www.alsa-project.org/wiki/Detailed_changes_v1.2.10_v1.2.11
- Remove merged patch
- Add new patch merged after the release

(From OE-Core rev: 5260a5e2316bb8d20cfb20e345f7aefe936a0da5)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Ross Burton
6f2c3b7744 lib/oeqa: rename assertRaisesRegexp to assertRaisesRegex
TestCase.assertRaisesRegexp was renamed to assertRaisesRegex in Python
3.2, so rename to fix a warning during test execution.

(From OE-Core rev: 6df44a4b29487bf8ef51bb5ba6467a4056b749cc)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Richard Purdie
4a6a1a8c3c kernel-devsrc: Clean up whitespace
This file had a function full of mixed tabs and spaces. Our policy says
tabs, some layers use spaces but this function matched nothing.

It makes sense to clean this up, I'm torn between which to use. I've gone
with the lesser invasive change (despite what the diff looks like) and used
spaces as the code was clearly written with that partly in mind and tabs would
have changed every line. Hopefully this makes future patches a little less
weird looking.

(From OE-Core rev: 34f0b22978a81abe891b00f716a56533504161d7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Khem Raj
f2dcb4938e expat: Upgrade to 2.6.0
Package and run benchmark as part of ptest
This is a major release with following changes [1]

[1] https://github.com/libexpat/libexpat/blob/R_2_6_0/expat/Changes

(From OE-Core rev: 0f5a64aecec9d50b50e2ca70bb1a7e4b680bc4ce)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Khem Raj
277e65c3c8 python3: Fix ptests with expat 2.6+
(From OE-Core rev: a19af24fc910bbfc39c863e3252770aa9975de5b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 23:14:51 +00:00
Jamin Lin
06aab81591 u-boot-sign:uboot-config: support to verify signed FIT image
It does not verify the signed FIT image of kernel and uboot.
To catch the unexpected errors as far as possible at the build time,
add uboot-fit-check-sign tool which is provided by u-boot to
verify the signed FIT image.

(From OE-Core rev: 17d3c8315e7a7adbe27183e11e1b6d588c1a1784)

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:54:47 +00:00
Jamin Lin
338a96e7c3 uboot-sign: Fix to install nonexistent dtb file
Add to check dtb file exist, then install it.

(From OE-Core rev: d2d818534d9334213730c169f8b235af8a794b33)

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:54:47 +00:00
Jamin Lin
a3c69c088e uboot-sign: set load address and entrypoint
According to the design of uboot-sign.bbclass and kernel-fitimage.bbclass,
both of them use an UBOOT_LOADADDRESS variable to set the load address of
kernel and u-boot image and use an UBOOT_ENTRYPOINT variable to set the entry address of
kernel and u-boot image.

However, users may want to set the different load address of u-boot
and kernel image. Therefore, adds UBOOT_FIT_UBOOT_LOADADDRESS
and UBOOT_FIT_UBOOT_ENTRYPOINT variables to set the
load address and entry point of u-boot image, respectively.

The value of UBOOT_FIT_UBOOT_ENTRYPOINT is UBOOT_LOADADDRESS by default.
The value of UBOOT_FIT_UBOOT_ENTRYPOINT is UBOOT_ENTRYPOINT by default.

(From OE-Core rev: 2060691a56b45f746efdd04ccdae3fb74df60cb5)

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:54:47 +00:00
Peter Marko
20fd415a5a util-linux: add alternative link for scriptreplay
This utility conflicts with script from busybox with rich
configuration.

(From OE-Core rev: c30437939e0af6fa243cbe6a305491119726f1a1)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:12:54 +00:00
Trevor Gamblin
0c3818be26 cmake: upgrade 3.27.7 -> 3.28.3
Changelog: https://cmake.org/cmake/help/latest/release/3.28.html

The patch 0001-CMakeLists.txt-disable-USE_NGHTTP2.patch had to be
adjusted to apply cleanly on top of the new source version.

(From OE-Core rev: 64b3832c5c96ee44ccc3da633a065eef33e3e03d)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:12:54 +00:00
Alexander Kanavin
a380d6d137 selftest/SStateCacheManagement: pre-populate the cache
This is another source of the test slowness: for some configurations
(building x86 on x86) the cache items are pre-populated in other
builds. For others (building 32 bit x86 on arm), they're not. Without
this step, the test would build them, write them to a private
sstate, and then throw it away.

The code is un-pythonic: it follows the style of the rest of the test,
and fixing that is perhaps for some other time.

With these two changes the notoriously slow test_sstate_cache_management_script_using_machine
takes just under 6 minutes, on an arm worker:

https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/2820/steps/13/logs/stdio

(From OE-Core rev: b685c955289bf4d7d70bd0f4c1530b2bf13a30a6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:12:54 +00:00
Alexander Kanavin
5ae7c6268b selftest/SStateCacheManagement: do not manipulate ERROR_QA
This is no longer necessary as selftest enforces buildhistory disabling nowadays.

It is also a significant contributor to slowness of the tests:
they work by setting up private sstate and retaining autobuilder sstate
as a read-only mirror, and if the needed objects aren't in that
mirror (as particularly seen on arm hosts), then the whole build
stars from scratch - and then is thrown away.

(From OE-Core rev: 208c8bc0e168cd2fd5884882b892862c6303fdfe)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 17:12:54 +00:00
Khem Raj
18c4179d11 kernel-devsrc: Add needed fixes for 6.1+ kernel build on target on RISCV
(From OE-Core rev: 0b1e8df551d50331fc26048209b759a199bd964d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 11:07:38 +00:00
Martin Jansa
5276b7f548 bitbake: tests: fetch.py: use real subversion repository
* github no longer provides support for subversion clients:
  https://docs.github.com/en/enterprise-server@3.11/get-started/working-with-subversion-on-github/support-for-subversion-clients
  it was shut down on 2024-01-08:
  https://github.blog/2023-01-20-sunsetting-subversion-support/

  and this test was now failing with:

======================================================================
ERROR: test_external_svn (bb.tests.fetch.SVNTest.test_external_svn)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/OE/layers/bitbake/lib/bb/tests/fetch.py", line 1287, in test_external_svn
    fetcher.download()
  File "/OE/layers/bitbake/lib/bb/fetch2/__init__.py", line 1896, in download
    raise FetchError("Unable to fetch URL from any source.", u)
bb.fetch2.FetchError: Fetcher failure for URL: 'svn:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project;module=trunk;protocol=file;externals=allowed;rev=2'. Unable to fetch URL from any source.

Stdout:
Fetch svn:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project;module=trunk;protocol=file;externals=allowed;rev=2
Failed to fetch URL svn:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project;module=trunk;protocol=file;externals=allowed;rev=2, attempting MIRRORS if available
Fetcher failure: Fetch command export PSEUDO_DISABLED=1; /usr/bin/env svn --non-interactive --trust-server-cert co --no-auth-cache -r 2 file:///tmp/bitbake-fetch-zdvedqt_/svnfetch_localrepo_wup8mgn6/project/trunk@2 trunk failed with exit code 1, output:
A    trunk/README.md
 U   trunk
Checked out revision 2.

svn: warning: W205011: Error handling externals definition for 'trunk/bitbake':
svn: warning: W170013: Unable to connect to a repository at URL 'https://github.com/PhilipHazel/pcre2.git'
svn: E205011: Failure occurred processing one or more externals definitions

  in the rare cases where subversion was still installed on the host
  running bitbake-selftest :).

  to avoid this use still alive repository from https://svn.apache.org/
  and pick something rather small and only the trunk subdirectory which
  is fast to fetch:
  svn co https://svn.apache.org/repos/asf/serf/trunk
  takes just 2 sec here

  adjust expected dir/file to use "protocols/fcgi_buckets.h" instead of
  "trunk/README"

(Bitbake rev: a735898abcf056f897c9350bb128a5637e6b4617)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:32 +00:00
Martin Jansa
58155ea1a3 bitbake: bitbake-diffsigs: fix walking the task dependencies and show better error
* when comparing 2 tmp/stamps/*do_configure.sigdata* I got
  TypeError("filename must be a str or bytes object, or a file")
  but both files I was comparing were
  Zstandard compressed data (v0.8+), Dictionary ID: None
  according to "file"

  with TypeError catched to show which file it failed to open I got better
  error which shows it was trying to read "do_prepare_recipe_sysroot.sigdata"
  file now and after a while you might notice that it's not just the expected
  file, but a dict with 'path', 'sstate', 'time'.

  Fix that in bitbake-diffsigs but keep the TypeError and add OSError
  in case it will eventually walk on file which isn't zstd compressed
  pipecompress throws CompressionError.

ERROR: Failed to open {'path': '5.15.do_prepare_recipe_sysroot.sigdata.99b12a401341a0df7c3553cb00c87a7674295496bd5c25ed71764ee0d0fb8eb8', 'sstate': False, 'time': 1707136354.991718}: filename must be a str or bytes object, or a file
Traceback (most recent call last):
  File "bitbake/bin/bitbake-diffsigs", line 192, in <module>
    output = bb.siggen.compare_sigfiles(options.sigdatafile1, options.sigdatafile2, recursecb, color=color)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "bitbake/lib/bb/siggen.py", line 1039, in compare_sigfiles
    recout = recursecb(dep, a[dep], b[dep])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "bitbake/bin/bitbake-diffsigs", line 102, in recursecb
    out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb, color=color)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "bitbake/lib/bb/siggen.py", line 857, in compare_sigfiles
    raise err
  File "bitbake/lib/bb/siggen.py", line 853, in compare_sigfiles
    with bb.compress.zstd.open(a, "rt", encoding="utf-8", num_threads=1) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "bitbake/lib/bb/compress/zstd.py", line 12, in open
    return bb.compress._pipecompress.open_wrap(ZstdFile, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "bitbake/lib/bb/compress/_pipecompress.py", line 59, in open_wrap
    raise TypeError("filename must be a str or bytes object, or a file")
TypeError: filename must be a str or bytes object, or a file

* if I replace zstd file with just plaintext it fails with:
  $ echo foo > foo
  $ echo foo > bar
  $ bitbake-diffsigs foo bar
  zstd: /*stdin*\: unsupported format
  ERROR: Process died with 1
  sys:1: ResourceWarning: unclosed file <_io.BufferedReader name='foo'>

  with this change it shows the name of the file which it failed to uncompress:

  $ bitbake-diffsigs foo bar
  zstd: /*stdin*\: unsupported format
  ERROR: Failed to open sigdata file 'foo': Process died with 1
  ERROR: Process died with 1
  sys:1: ResourceWarning: unclosed file <_io.BufferedReader name='foo'>

(Bitbake rev: f3f843a4fd6e0a9e8f6edef5dd3cf1fce29c50ba)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:32 +00:00
Khem Raj
3ab7f0af56 ptest.bbclass: Handle the case when Makefile does not exist in do_install_ptest_base
Some recipes e.g. expant generate ninja files and no Makefile may exist,
therefore grep -q would fail on a non-existent file, we just need the
return code  to decide if intall-ptest target should be run or not.

Fixes errors like
| grep: Makefile: No such file or directory

(From OE-Core rev: 01f3966d6bf2442a28b460b67bfc02241cd9ddc2)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Kai Kang
2d4d362de1 ghostscript: correct LICENSE with AGPLv3
The license of ghostscript has switched to Affero GPL since version 9.07
via commit:

* 3cc5318 Switch Ghostscript/GhostPDL to Affero GPL

https://github.com/ArtifexSoftware/ghostpdl/commit/3cc5318

Correct it with `AGPL-3.0-or-later`.

(From OE-Core rev: 7dec33a8026d9aa96177060b13bb63d74eeb4855)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Khem Raj
bd7a3fd0f7 buildcpio.py: Switch to using cpio-2.15
This helps in getting it building with newer architectures like riscv32
since it has upgraded gnulib over 2.14 which has the needed fixes.

Drop the -fno-common workaround as it is already applied to cpio

drop --disable-maintainer-mode

Fixes
configure: WARNING: unrecognized options: --disable-maintainer-mode

(From OE-Core rev: 18d303497089d3a7a893ee0eec5b0f0c78cca06d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Khem Raj
f31fe0b5b5 rust/cargo: Build fixes to rust for rv32 target
(From OE-Core rev: 0b1666b921b99732798b62b900436ab79876a6a2)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
ac5f12517e 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 3Feb24
        Date: Sat, 3 Feb 2024 00:42:14 -0500

    ]

(From OE-Core rev: 20ceea5be17b64cbc95d36cc1afd5d41a2517500)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
6b052ffde3 linux-yocto/6.6: update to v6.6.15
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    51f354b815c4 Linux 6.6.15
    ee82479f5d74 thermal: trip: Drop lockdep assertion from thermal_zone_trip_id()
    0e9999661575 serial: core: fix kernel-doc for uart_port_unlock_irqrestore()
    de66d97add11 x86/entry/ia32: Ensure s32 is sign extended to s64
    500ad5da1df3 tick/sched: Preserve number of idle sleeps across CPU hotplug events
    af7ab5da390e clocksource: Skip watchdog check for large watchdog intervals
    5966ed9caae3 genirq: Initialize resend_node hlist for all interrupt descriptors
    33f49a68352d mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan
    40cb184ec84e cxl/region:Fix overflow issue in alloc_hpa()
    099fee35bb09 drm: bridge: samsung-dsim: Don't use FORCE_STOP_STATE
    d21fbe290c33 MIPS: lantiq: register smp_ops on non-smp platforms
    0232a19a0e21 spi: fix finalize message on error return
    d69a84cbbc30 cifs: fix stray unlock in cifs_chan_skip_or_disable
    1bd81374bc2f spi: spi-cadence: Reverse the order of interleaved write and read operations
    26e85f7b0a16 spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
    9f30ab3bec2e cpufreq/amd-pstate: Fix setting scaling max/min freq values
    ee4a2ef15153 drm/bridge: anx7625: Ensure bridge is suspended in disable()
    1539adf760c3 block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
    902a4aab0e04 spi: intel-pci: Remove Meteor Lake-S SoC PCI ID from the list
    cd6f39f7df66 ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd
    16b70a75daa7 gpio: eic-sprd: Clear interrupt after set the interrupt type
    a1703748bbaf firmware: arm_scmi: Use xa_insert() when saving raw queues
    1c6d42e55d6c firmware: arm_scmi: Use xa_insert() to store opps
    dea5460b09eb drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume
    38a31370ba4d drm/exynos: fix accidental on-stack copy of exynos_drm_plane
    e791a345fa73 memblock: fix crash when reserved memory is not added to memory
    0b2e0fea95af drm/bridge: parade-ps8640: Make sure we drop the AUX mutex in the error case
    52044fb2abe8 drm/bridge: parade-ps8640: Ensure bridge is suspended in .post_disable()
    4f59acbe0837 drm/bridge: sii902x: Fix audio codec unregistration
    56f96cf6eb11 drm/bridge: sii902x: Fix probing race issue
    7ed0974c1648 drm/panel: samsung-s6d7aa0: drop DRM_BUS_FLAG_DE_HIGH for lsl080al02
    0ae3437f4185 drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33]
    b2ca364dc531 drm/bridge: parade-ps8640: Wait for HPD when doing an AUX transfer
    5ff487d180dc drm/amdgpu/gfx11: set UNORD_DISPATCH in compute MQDs
    b59ea95e72e0 drm/amdgpu/gfx10: set UNORD_DISPATCH in compute MQDs
    5ff670093596 drm/panel-edp: drm/panel-edp: Fix AUO B116XTN02 name
    8aa99aa455be drm/panel-edp: drm/panel-edp: Fix AUO B116XAK01 name and timing
    6a0c7eb466db drm/panel-edp: Add AUO B116XTN02, BOE NT116WHM-N21,836X2, NV116WHM-N49 V8.0
    02cfae7d6278 drm/i915/psr: Only allow PSR in LPSP mode on HSW non-ULT
    e017ec3807d4 drm/i915/lnl: Remove watchdog timers for PSR
    46ac4e1f9a9d btrfs: zoned: optimize hint byte for zoned allocator
    b1e30e2ff6eb btrfs: zoned: factor out prepare_allocation_zoned()
    4739a8a989db serial: sc16is7xx: fix unconditional activation of THRI interrupt
    a38e80d02eba serial: sc16is7xx: Use port lock wrappers
    984095ad73f5 serial: core: Provide port lock wrappers
    9128bfbc5c80 mm: migrate: fix getting incorrect page mapping during page migration
    9d23fab89ace mm: migrate: record the mlocked page status to remove unnecessary lru drain
    d10ff0b3eaf6 thermal: gov_power_allocator: avoid inability to reset a cdev
    77451ef587aa thermal: core: Store trip pointer in struct thermal_instance
    3a3bbc6911f5 thermal: trip: Drop redundant trips check from for_each_thermal_trip()
    cca763863768 media: i2c: imx290: Properly encode registers as little-endian
    8798fdc28463 media: v4l2-cci: Add support for little-endian encoded registers
    8d2cd1724e80 media: v4l: cci: Add macros to obtain register width and address
    36bf2a8fb0ae media: v4l: cci: Include linux/bits.h
    68e51bdb1194 pipe: wakeup wr_wait after setting max_usage
    67f457955ba8 fs/pipe: move check to pipe_has_watch_queue()
    019ccc66d56a thermal: intel: hfi: Add syscore callbacks for system-wide PM
    0caf5dd01adf thermal: intel: hfi: Disable an HFI instance when all its CPUs go offline
    de791353675f thermal: intel: hfi: Refactor enabling code into helper functions
    4690558e756c net/bpf: Avoid unused "sin_addr_len" warning when CONFIG_CGROUP_BPF is not set
    b565f41b9f20 drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions
    dcda362dc5b4 drm/amdgpu/pm: Fix the power source flag error
    6aa5ede66651 drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'
    d3af41be094a drm/amd/display: Align the returned error code with legacy DP
    fbc4ee5ca79b drm/amd/display: Port DENTIST hang and TDR fixes to OTG disable W/A
    22ae604aea14 drm/amd/display: Fix variable deferencing before NULL check in edp_setup_replay()
    b788696f9ed0 drm/amdgpu: correct the cu count for gfx v11
    7510670bb46a drm/bridge: nxp-ptn3460: simplify some error checking
    6266b3a312b7 Revert "drm/amd/display: fix bandwidth validation failure on DCN 2.1"
    107a11637f43 drm/amd/display: Disable PSR-SU on Parade 0803 TCON again
    50eb6bf4aca2 drm/amd/display: fix bandwidth validation failure on DCN 2.1
    45aafb507575 drm: Allow drivers to indicate the damage helpers to ignore damage clips
    1055077473e3 drm/virtio: Disable damage clipping if FB changed since last page-flip
    87b3b45ce7b4 drm: Disable the cursor plane on atomic contexts with virtualized drivers
    adc0787f0c0e drm/tidss: Fix atomic_flush check
    080f932a35d5 drm: Fix TODO list mentioning non-KMS drivers
    c1074ae81805 drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
    d7afdf360f4a drm: Don't unref the same fb many times by mistake due to deadlock handling
    0d87d67f447d Revert "drm/i915/dsi: Do display on sequence later on icl+"
    212b686863b4 cpufreq: intel_pstate: Refine computation of P-state for given frequency
    c9c63d6a4541 gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04
    a0ebcdab1951 xfs: read only mounts with fsopen mount API are busted
    8b5bacce2d13 drm/amdgpu: Fix the null pointer when load rlc firmware
    e256f6d36496 Revert "drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync"
    9b5e1b93c83e firmware: arm_scmi: Check mailbox/SMT channel for consistency
    9863a53100f4 ksmbd: fix global oob in ksmbd_nl_policy
    847e1eb30e26 platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe
    ace6fb9da63e platform/x86: intel-uncore-freq: Fix types in sysfs callbacks
    6653118b176a netfilter: nf_tables: reject QUEUE/DROP verdict parameters
    e5888acbf1a3 netfilter: nft_chain_filter: handle NETDEV_UNREGISTER for inet/ingress basechain
    4d53556d87cd hv_netvsc: Calculate correct ring size when PAGE_SIZE is not 4 Kbytes
    b7d2eee1f538 nfsd: fix RELEASE_LOCKOWNER
    870171899d75 wifi: iwlwifi: fix a memory corruption
    841460c14f88 exec: Fix error handling in begin_new_exec()
    801474eac6f9 rbd: don't move requests to the running list on errors
    ec794a752819 btrfs: don't abort filesystem when attempting to snapshot deleted subvolume
    5556a872e9e9 btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
    be725b06a4c3 btrfs: don't warn if discard range is not aligned to sector
    ad854a86da15 btrfs: tree-checker: fix inline ref size in error messages
    2b772a75963f btrfs: ref-verify: free ref cache before clearing mount opt
    3eaf00d2f81f btrfs: avoid copying BTRFS_ROOT_SUBVOL_DEAD flag to snapshot of subvolume being deleted
    6f74989f5909 btrfs: zoned: fix lock ordering in btrfs_zone_activate()
    642b9c520ef2 btrfs: scrub: avoid use-after-free when chunk length is not 64K aligned
    d60ff1d313e6 tsnep: Fix XDP_RING_NEED_WAKEUP for empty fill ring
    3fc1e534993b tsnep: Remove FCS for XDP data path
    a7be76ca102c net: fec: fix the unhandled context fault from smmu
    09d60387d8c1 selftests: bonding: do not test arp/ns target with mode balance-alb/tlb
    20b98e3c493a fjes: fix memleaks in fjes_hw_setup
    31e5a8cdc8c9 i40e: update xdp_rxq_info::frag_size for ZC enabled Rx queue
    f95b542f3a81 i40e: set xdp_rxq_info::frag_size
    6ae1d209c6a5 xdp: reflect tail increase for MEM_TYPE_XSK_BUFF_POOL
    c61f2bf87065 ice: update xdp_rxq_info::frag_size for ZC enabled Rx queue
    e1ae4a6b3ad7 intel: xsk: initialize skb_frag_t::bv_offset in ZC drivers
    339a48b0564c ice: remove redundant xdp_rxq_info registration
    8a7dffa16bb3 i40e: handle multi-buffer packets that are shrunk by xdp prog
    728e112df761 ice: work on pre-XDP prog frag count
    82ee4781b820 xsk: fix usage of multi-buffer BPF helpers for ZC XDP
    1474a8aff1d3 bpf: Add bpf_sock_addr_set_sun_path() to allow writing unix sockaddr from bpf
    6d71331eb044 bpf: Propagate modified uaddrlen from cgroup sockaddr programs
    b6e1a1b3b270 xsk: make xsk_buff_pool responsible for clearing xdp_buff::flags
    cce713664548 xsk: recycle buffer in case Rx queue was full
    bf47ffc1a527 selftests: netdevsim: fix the udp_tunnel_nic test
    8c63896d993c selftests: net: fix rps_default_mask with >32 CPUs
    938729484cfa net: mvpp2: clear BM pool before initialization
    6264994be8f2 net: stmmac: Wait a bit for the reset to take effect
    c1be9784f3ad netfilter: nf_tables: validate NFPROTO_* family
    2989f1c4c2c7 netfilter: nf_tables: restrict anonymous set and map names to 16 bytes
    9882495d02ec netfilter: nft_limit: reject configurations that cause integer overflow
    0d58883c3c60 rcu: Defer RCU kthreads wakeup when CPU is dying
    2897c981ee63 net/mlx5e: fix a potential double-free in fs_any_create_groups
    b21db3f1ab79 net/mlx5e: fix a double-free in arfs_create_groups
    5fe8c422eb05 net/mlx5e: Ignore IPsec replay window values on sender side
    268353082293 net/mlx5e: Allow software parsing when IPsec crypto is enabled
    ee8ad3d2f34e net/mlx5: Use mlx5 device constant for selecting CQ period mode for ASO
    5deca3981243 net/mlx5: DR, Can't go to uplink vport on RX rule
    fc56e47ca071 net/mlx5: DR, Use the right GVMI number for drop action
    5160ae8da385 net/mlx5: Bridge, fix multicast packets sent to uplink
    63a77caa1d72 net/mlx5: Bridge, Enable mcast in smfs steering mode
    5d3f7d302008 net/mlx5: Fix a WARN upon a callback command failure
    74cec142f89b net/mlx5e: Fix peer flow lists handling
    40e0d0746390 net/mlx5e: Fix operation precedence bug in port timestamping napi_poll context
    9ed46144cff3 net/sched: flower: Fix chain template offload
    d42566f50090 selftests: fill in some missing configs for net
    050855e311ab ipv6: init the accept_queue's spinlocks in inet6_create
    b17ca9a469f8 netlink: fix potential sleeping issue in mqueue_flush_file
    ff149e92ee90 selftest: Don't reuse port for SO_INCOMING_CPU test.
    74b85edb206f tcp: Add memory barrier to tcp_push()
    a53411e805e0 afs: Hide silly-rename files from userspace
    a1eebe76e187 tracing: Ensure visibility when inserting an element into tracing_map
    1c45256e5990 netfs, fscache: Prevent Oops in fscache_put_cache()
    7a73190ea557 net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv
    784207bd2ed1 net: micrel: Fix PTP frame parsing for lan8814
    34ffe229f7a6 tun: add missing rx stats accounting in tun_xdp_act
    33a8980008c4 tun: fix missing dropped counter in tun_xdp_act
    e855dded4b70 net: fix removing a namespace with conflicting altnames
    ef8ad3071dfa udp: fix busy polling
    f1f34a515fb1 llc: Drop support for ETH_P_TR_802_2.
    cafd3ad3fe03 llc: make llc_ui_sendmsg() more robust against bonding changes
    da2d1d362754 vlan: skip nested type that is not IFLA_VLAN_QOS_MAPPING
    7cf36993f805 bnxt_en: Prevent kernel warning when running offline self test
    55830bded231 bnxt_en: Wait for FLR to complete during probe
    168e7e599860 tcp: make sure init the accept_queue's spinlocks once
    8590162a455b selftests: bonding: Increase timeout to 1200s
    a164c2922675 net/smc: fix illegal rmb_desc access in SMC-D connection dump
    587c58929761 wifi: mac80211: fix potential sta-link leak
    3f5aab7efd40 SUNRPC: use request size to initialize bio_vec in svc_udp_sendto()
    14bafd198066 cifs: after disabling multichannel, mark tcon for reconnect
    fe8c187fc22f cifs: fix a pending undercount of srv_count
    30b1d56452ec cifs: fix lock ordering while disabling multichannel
    f56fc61bb531 Revert "drm/amd: Enable PCIe PME from D3"
    c7890937cf36 selftests/bpf: check if max number of bpf_loop iterations is tracked
    bfc5c19b4b48 bpf: keep track of max number of bpf_loop callback iterations
    5cac3cb678ba selftests/bpf: test widening for iterating callbacks
    1a5a03617bb9 bpf: widening for callback iterators
    6b99fe48f515 selftests/bpf: tests for iterating callbacks
    b43550d7d58e bpf: verify callbacks as if they are called unknown number of times
    f661df8fe0b5 bpf: extract setup_func_entry() utility function
    bb8bf2d3caf5 bpf: extract __check_reg_arg() utility function
    e030da5f517c selftests/bpf: track string payload offset as scalar in strobemeta
    d9631d0d8c93 selftests/bpf: track tcp payload offset as scalar in xdp_synproxy
    ae5e9c3ced95 bpf: print full verifier states on infinite loop detection
    00808be797c1 selftests/bpf: test if state loops are detected in a tricky case
    c8f6d285825f bpf: correct loop detection for iterators convergence
    7f764ea0c8e6 selftests/bpf: tests with delayed read/precision makrs in loop body
    ab470fefce28 bpf: exact states comparison for iterator convergence checks
    b8615d7ff2b3 bpf: extract same_callsites() as utility function
    4c6352f35eb2 bpf: move explored_state() closer to the beginning of verifier.c
    364366f5bbd9 dt-bindings: net: snps,dwmac: Tx coe unsupported
    4c78c771f3aa ksmbd: Add missing set_freezable() for freezable kthread
    f5ef78c4ab44 ksmbd: send lease break notification on FILE_RENAME_INFORMATION
    9554d4934b81 ksmbd: don't increment epoch if current state and request state are same
    e9ec6665de8f ksmbd: fix potential circular locking issue in smb2_set_ea()
    fc0db77b182b ksmbd: set v2 lease version on lease upgrade
    90b8cbd90abb serial: Do not hold the port lock when setting rx-during-tx GPIO
    26c3817cc8ff mm: page_alloc: unreserve highatomic page blocks before oom
    4e32f5998f44 LoongArch/smp: Call rcutree_report_cpu_starting() earlier
    5c0471daa8c7 serial: sc16is7xx: improve do/while loop in sc16is7xx_irq()
    8ed85bdd1f2f serial: sc16is7xx: remove obsolete loop in sc16is7xx_port_irq()
    fbce37f616ba serial: sc16is7xx: fix invalid sc16is7xx_lines bitfield in case of probe error
    084c24e788d9 serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO
    9879e1bec3c0 serial: sc16is7xx: change EFR lock to operate on each channels
    2f6ae16a5874 serial: sc16is7xx: remove unused line structure member
    fc3de570cb30 serial: sc16is7xx: remove global regmap from struct sc16is7xx_port
    f769407d0194 serial: sc16is7xx: remove wasteful static buffer in sc16is7xx_regmap_name()
    452ed2b218b1 serial: sc16is7xx: improve regmap debugfs by using one regmap per port
    1db06b3d7d4b rename(): fix the locking of subdirectories
    70064241f222 mm/sparsemem: fix race in accessing memory_section->usage
    62efb1e656f4 mm/rmap: fix misplaced parenthesis of a likely()
    e6cdfb699ebf selftests: mm: hugepage-vmemmap fails on 64K page size systems
    ff8cb8bc46ca kexec: do syscore_shutdown() in kernel_kexec
    17be0ede8a6d ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
    6c4c57669de4 efi: disable mirror feature during crashkernel
    ce51369287dd nouveau/vmm: don't set addr on the fail path to avoid warning
    49a76c08bcfc rtc: Extend timeout for waiting for UIP to clear to 1s
    9d20185601a0 rtc: Add support for configuring the UIP timeout for RTC reads
    d2d8ceb74834 rtc: mc146818-lib: Adjust failure return code for mc146818_get_time()
    905d9e1c69b2 rtc: Adjust failure return code for cmos_set_alarm()
    484514580275 rtc: cmos: Use ACPI alarm for non-Intel x86 systems too
    58eb5c07f417 arm64: entry: fix ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD
    569156e4fa34 arm64/sme: Always exit sme_alloc() early with existing storage
    f5da59f2bbce arm64: errata: Add Cortex-A510 speculative unprivileged load workaround
    236a9bf2a7ec arm64: Rename ARM64_WORKAROUND_2966298
    eab6917e1016 riscv: mm: Fixup compat mode boot failure
    724103429a2d riscv: mm: Fixup compat arch_get_mmap_end
    8254d54d00eb media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run
    26f3ae1aa854 media: mtk-jpeg: Fix timeout schedule error in mtk_jpegdec_worker.
    9399d61bf561 media: i2c: st-mipid02: correct format propagation
    095cb607f146 mmc: mmc_spi: remove custom DMA mapped buffers
    1653a8102868 mmc: core: Use mrq.sbc in close-ended ffu
    72a28c92839c media: videobuf2-dma-sg: fix vmap callback
    7af40dfdbd30 scripts/get_abi: fix source path leak
    1d64a1029884 docs: kernel_abi.py: fix command injection
    c018ab3e31b1 dlm: use kernel_connect() and kernel_bind()
    820831de220c lsm: new security_file_ioctl_compat() hook
    8b901f4f46bd ARM: dts: qcom: sdx55: fix USB SS wakeup
    42edeeb3da5c arm64: dts: qcom: sdm670: fix USB SS wakeup
    40fb94eb9805 arm64: dts: qcom: sdm670: fix USB DP/DM HS PHY interrupts
    30d15a0d16f1 arm64: dts: qcom: sc8180x: fix USB SS wakeup
    7553301a2ae9 arm64: dts: qcom: sc8180x: fix USB DP/DM HS PHY interrupts
    00804fab7c62 arm64: dts: qcom: sm8150: fix USB SS wakeup
    b0a9aec35033 arm64: dts: qcom: sm8150: fix USB DP/DM HS PHY interrupts
    8936cca43946 arm64: dts: qcom: sdm845: fix USB SS wakeup
    07859a93fc14 arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts
    551d4f3776af ARM: dts: qcom: sdx55: fix USB DP/DM HS PHY interrupts
    8c80b6c37038 arm64: dts: qcom: Add missing vio-supply for AW2013
    02f867d270e4 arm64: dts: qcom: sc7280: fix usb_1 wakeup interrupt types
    9e1951a81455 arm64: dts: qcom: sc8180x: fix USB wakeup interrupt types
    e0e55b6ec189 arm64: dts: qcom: sm8150: fix USB wakeup interrupt types
    0b6f48245b50 arm64: dts: qcom: sdm670: fix USB wakeup interrupt types
    353463dfcb71 arm64: dts: qcom: sdm845: fix USB wakeup interrupt types
    cc16b9cd186f arm64: dts: qcom: sc7180: fix USB wakeup interrupt types
    54435ef291e1 arm64: dts: qcom: msm8939: Make blsp_dma controlled-remotely
    ebd09d8143fd arm64: dts: qcom: msm8916: Make blsp_dma controlled-remotely
    0eecce600714 arm64: dts: rockchip: Fix rk3588 USB power-domain clocks
    dc2e88e05d12 arm64: dts: rockchip: configure eth pad driver strength for orangepi r1 plus lts
    68c2defafaaa arm64: dts: sprd: fix the cpu node for UMS512
    6d86a53d8409 ARM: dts: qcom: sdx55: fix pdc '#interrupt-cells'
    bc81ecbd2a4e ARM: dts: samsung: exynos4210-i9100: Unconditionally enable LDO12
    ee9c5e0f9528 ARM: dts: qcom: sdx55: fix USB wakeup interrupt types
    ed3fe21f74c0 arm64: dts: qcom: sc8280xp-crd: fix eDP phy compatible
    664aaf12edc2 ARM: dts: imx6q-apalis: add can power-up delay on ixora board
    46942efb9e87 parisc/power: Fix power soft-off button emulation on qemu
    3583edd4d786 parisc/firmware: Fix F-extend for PDC addresses
    ce16274a6b8d bus: mhi: host: Add spinlock to protect WP access when queueing TREs
    eaefb9464031 bus: mhi: host: Drop chan lock before queuing buffers
    a9ebfc405fe1 bus: mhi: host: Add alignment check for event ring read pointer
    4a5a77c92bac mips: Fix max_mapnr being uninitialized on early stages
    1960f2b534da nbd: always initialize struct msghdr completely
    582014b08cb8 s390/vfio-ap: do not reset queue removed from host config
    f5b218ecc860 s390/vfio-ap: reset queues associated with adapter for queue unbound from driver
    60ad66fe639f s390/vfio-ap: reset queues filtered from the guest's AP config
    556efad373cb s390/vfio-ap: let on_scan_complete() callback filter matrix and update guest's APCB
    dabc0fe4a98e s390/vfio-ap: loop over the shadow APCB when filtering guest's AP configuration
    c69d82119761 s390/vfio-ap: always filter entire AP matrix
    075c01f60bee soc: fsl: cpm1: qmc: Fix rx channel reset
    07d45e912521 soc: fsl: cpm1: qmc: Fix __iomem addresses declaration
    d0160e74e943 soc: fsl: cpm1: tsa: Fix __iomem addresses declaration
    240fd0215d3f media: ov01a10: Enable runtime PM before registering async sub-device
    000339cb5d27 media: ov13b10: Enable runtime PM before registering async sub-device
    92d25e02ee16 media: ov9734: Enable runtime PM before registering async sub-device
    4e6cef3fae5c rpmsg: virtio: Free driver_override when rpmsg_remove()
    252ae106eacf media: imx355: Enable runtime PM before registering async sub-device
    532a5557da68 soc: qcom: pmic_glink_altmode: fix port sanity check
    f7190b6101e6 mtd: rawnand: Clarify conditions to enable continuous reads
    c376f862ecca mtd: rawnand: Prevent sequential reads with on-die ECC engines
    b1dca19b105c mtd: rawnand: Fix core interference with sequential reads
    f813840066ca mtd: rawnand: Prevent crossing LUN boundaries during sequential reads
    38c12f10990a mtd: maps: vmu-flash: Fix the (mtd core) switch to ref counters
    a979f56aa4b9 PM / devfreq: Fix buffer overflow in trans_stat_show
    c1f525a1470f s390/vfio-ap: unpin pages on gisc registration failure
    d68ac38895e8 crypto: s390/aes - Fix buffer overread in CTR mode
    ecabe8cd456d hwrng: core - Fix page fault dead lock on mmap-ed hwrng
    7692e29d191c PM: hibernate: Enforce ordering during image compression/decompression
    b1a67a0d1ace crypto: api - Disallow identical driver names
    f36d200a80a3 erofs: fix lz4 inplace decompression
    7ebf812b7019 crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
    5e570e600b24 btrfs: sysfs: validate scrub_speed_max value
    3da8706499cc OPP: Pass rounded rate to _set_opp()
    1107f0ecc9ff arm64: properly install vmlinuz.efi
    e681e29d1f59 PM: sleep: Fix possible deadlocks in core system-wide PM code
    e400343c6eb2 async: Introduce async_schedule_dev_nocall()
    a40683bb7bcd async: Split async_schedule_node_domain()
    da9008da9640 ext4: allow for the last group to be marked as trimmed
    f70557d48215 powerpc/ps3_defconfig: Disable PPC64_BIG_ENDIAN_ELF_ABI_V2
    cc29591dacdf cifs: update iface_last_update on each query-and-update
    50e8363ecc85 cifs: handle servers that still advertise multichannel after disabling
    07e864089a0e cifs: reconnect worker should take reference on server struct unconditionally
    3a0ef868fb8a Revert "cifs: reconnect work should have reference on server struct"
    3e1615361b6f cifs: handle when server stops supporting multichannel
    5075e9f4e046 cifs: handle when server starts supporting multichannel
    173ddac64b47 cifs: reconnect work should have reference on server struct
    c395f798a7f2 cifs: handle cases where a channel is closed
    38298acb7899 smb: client: fix parsing of SMB3.1.1 POSIX create context
    5157319fc52e sh: ecovec24: Rename missed backlight field from fbdev to dev
    3b4b35d7cd63 scsi: core: Kick the requeue list after inserting when flushing
    a720833e6b8a riscv: Fix an off-by-one in get_early_cmdline()
    cf4669c30a8a scsi: ufs: core: Remove the ufshcd_hba_exit() call from ufshcd_async_scan()
    e23d6ba5029b dmaengine: idxd: Move dma_free_coherent() out of spinlocked context
    7f0ccfad2031 dmaengine: fix NULL pointer in channel unregistration function
    3dc9e1c7e00f dmaengine: fsl-edma: fix eDMAv4 channel allocation issue
    e4e845c8ddd2 iio: adc: ad7091r: Enable internal vref if external vref is not supplied
    89c4e63324e2 iio: adc: ad7091r: Allow users to configure device events
    c70a7684b1a5 iio: adc: ad7091r: Set alert bit in config register
    97d574fce644 net: stmmac: Prevent DSA tags from breaking COE
    b643b836c639 net: stmmac: Tx coe sw fallback
    cfaa04a3ab50 soundwire: fix initializing sysfs for same devices on different buses
    154cfc3d2738 soundwire: bus: introduce controller_id
    9744575e6955 serial: core: set missing supported flag for RX during TX GPIO
    28c85cd0a671 serial: core: Simplify uart_get_rs485_mode()
    e961f8c6966a docs: kernel_feat.py: fix potential command injection
    db6e7e5fd442 docs: sparse: add sparse.rst to toctree
    a4bc5da72eae docs: sparse: move TW sparse.txt to TW dev-tools
    98817289bcec Linux 6.6.14
    aab69ef76970 Revert "Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d""
    9860938cff26 arm64: dts: armada-3720-turris-mox: set irq type for RTC
    6cb583c4e18b Revert "KEYS: encrypted: Add check for strsep"
    93d357caf7e7 riscv: Fix wrong usage of lm_alias() when splitting a huge linear mapping
    e6611cb236e0 i2c: s3c24xx: fix transferring more than one message in polling mode
    b7fd4552a67d i2c: s3c24xx: fix read transfers in polling mode
    3cc283fd16fb ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work
    a991cd35c477 selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes
    7788f557e2f7 mlxsw: spectrum_router: Register netdevice notifier before nexthop
    2f5e15657404 mlxsw: spectrum_acl_tcam: Fix stack corruption
    817840d125a3 mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path
    b1f0207078a5 mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure
    96e84339ddf8 loop: fix the the direct I/O support check when used on top of block devices
    2ae2e7cf658d ethtool: netlink: Add missing ethnl_ops_begin/complete
    53cea04da861 arm64/ptrace: Don't flush ZA/ZT storage when writing ZA via ptrace
    99719bb0c281 kdb: Fix a potential buffer overflow in kdb_local()
    8836df02124f io_uring: adjust defer tw counting
    b019406e5ad9 ipvs: avoid stat macros calls from preemptible context
    bf6b3b6d110f netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
    87e5fb6d1cc2 netfilter: nf_tables: skip dead set elements in netlink dump
    dc45bb00e66a netfilter: nf_tables: do not allow mismatch field size and set key length
    9325e3188a9c netfilter: bridge: replace physindev with physinif in nf_bridge_info
    96c510a53181 netfilter: propagate net to nf_bridge_get_physindev
    075dcb3caba9 netfilter: nf_queue: remove excess nf_bridge variable
    4979db9bc52e netfilter: nfnetlink_log: use proper helper for fetching physinif
    295de7fb5a61 netfilter: nft_limit: do not ignore unsupported flags
    a016aacadfde netfilter: nf_tables: reject invalid set policy
    08aca65997fb net: netdevsim: don't try to destroy PHC on VFs
    72b45857b724 mptcp: relax check on MPC passive fallback
    9aeb09f4d85a LoongArch: BPF: Prevent out-of-bounds memory access
    e9ed74393c09 net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
    e8d3872b617c bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS
    fed034d23ebc net: stmmac: ethtool: Fixed calltrace caused by unbalanced disable_irq_wake calls
    e6acd12ffcd0 selftests: bonding: Change script interpreter
    836e236b878a drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
    1515db19c4a3 drm/amdkfd: fixes for HMM mem allocation
    0d15f6d75c2f ASoC: SOF: ipc4-loader: remove the CPC check warnings
    52acfebcea00 gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe
    fd526aa39f04 dt-bindings: gpio: xilinx: Fix node address in gpio
    f9071d939f20 net: ravb: Fix dma_addr_t truncation in error case
    02e368eb1444 net: tls, fix WARNIING in __sk_msg_free
    7dc290d787ae bpf: Avoid iter->offset making backward progress in bpf_iter_udp
    2a62beb0f59f bpf: iter_udp: Retry with a larger batch size without going back to the previous bucket
    9eb6088560e3 net: netdev_queue: netdev_txq_completed_mb(): fix wake condition
    342c88f406c2 net: add more sanity check in virtio_net_hdr_to_skb()
    823ba1d21060 erofs: fix inconsistent per-file compression format
    586814ed68f7 erofs: simplify compression configuration parser
    d2e919b6e66b udp: annotate data-races around up->pending
    3a7517c53eab net: stmmac: Fix ethool link settings ops for integrated PCS
    8b6075046470 block: ensure we hold a queue reference when using queue limits
    d4368227ba9c mptcp: refine opt_mp_capable determination
    c119bcd94693 mptcp: use OPTION_MPTCP_MPJ_SYN in subflow_check_req()
    ad3e8f5c3d5c mptcp: use OPTION_MPTCP_MPJ_SYNACK in subflow_finish_connect()
    4701d3282359 mptcp: strict validation before using mp_opt->hmac
    4029820677b2 mptcp: mptcp_parse_option() fix for MPTCPOPT_MP_JOIN
    0048a13b19f6 ALSA: hda: Properly setup HDMI stream
    7770a4387576 net: phy: micrel: populate .soft_reset for KSZ9131
    1cb0cd1eff8d net: micrel: Fix PTP frame parsing for lan8841
    05f7e34647d2 amt: do not use overwrapped cb area
    80a7a98b315d net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames
    fcaa3a2c12d6 octeontx2-af: CN10KB: Fix FIFO length calculation for RPM2
    5c4017a25260 rxrpc: Fix use of Don't Fragment flag
    c47345350346 net: qualcomm: rmnet: fix global oob in rmnet_policy
    930ce7a5c0a8 s390/pci: fix max size calculation in zpci_memcpy_toio()
    b1d3db6740d0 ASoC: mediatek: sof-common: Add NULL check for normal_link string
    a765609f22d7 PCI: mediatek-gen3: Fix translation window size calculation
    423de3f3844c PCI: keystone: Fix race condition when initializing PHYs
    2ed3d3532890 nvmet-tcp: Fix the H2C expected PDU len calculation
    79e9dfd7f89a nvme: trace: avoid memcpy overflow warning
    4652eb817623 nvmet: re-fix tracing strncpy() warning
    45f80b2f230d hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume
    0b6f0be074fd spi: coldfire-qspi: Remove an erroneous clk_disable_unprepare() from the remove function
    1a5369728c2d cxl/port: Fix missing target list lock
    4e0d6791935e perf db-export: Fix missing reference count get in call_path_from_sample()
    5ed4d3e6ad40 serial: apbuart: fix console prompt on qemu
    05ba3df0e405 serial: imx: Correct clock error message in function probe()
    821ad0089c69 usb: xhci-mtk: fix a short packet issue of gen1 isoc-in transfer
    5c0392fdafb0 apparmor: avoid crash when parsed profile name is empty
    337c86dc8af9 apparmor: fix possible memory leak in unpack_trans_table
    a2b2b3011878 cxl/region: fix x9 interleave typo
    8fdeaf400823 perf stat: Fix hard coded LL miss units
    35bcf6bf324d perf env: Avoid recursively taking env->bpf_progs.lock
    2f00fd8d50a7 nvmet-tcp: fix a crash in nvmet_req_complete()
    24e05760186d nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length
    790321e4ae6e apparmor: Fix ref count leak in task_kill
    5125a3029965 vdpa: Fix an error handling path in eni_vdpa_probe()
    e2717302fbc2 power: supply: Fix null pointer dereference in smb2_probe
    98b8a550da83 iommu: Don't reserve 0-length IOVA region
    fd83ff901d69 usb: gadget: webcam: Make g_webcam loadable again
    915fb4043c5e spmi: mtk-pmif: Serialize PMIF status check and command submission
    19e321c3eedd usb: cdc-acm: return correct error code on unsupported break
    2433f050d31a tty: use 'if' in send_break() instead of 'goto'
    eefdb1be0c8b tty: don't check for signal_pending() in send_break()
    ecf27e476587 tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAK
    96227df8462d PCI: epf-mhi: Fix the DMA data direction of dma_unmap_single()
    ad671dfce2d9 bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs
    bd4f6f1f8948 bus: mhi: ep: Use slab allocator where applicable
    23bab2b8e099 bus: mhi: ep: Do not allocate event ring element on stack
    46bd939d85ed perf unwind-libunwind: Fix base address for .eh_frame
    c05c54f0cdff perf unwind-libdw: Handle JIT-generated DSOs properly
    c8d6d5d080b0 perf genelf: Set ELF program header addresses properly
    2f4c1c3580e4 perf hisi-ptt: Fix one memory leakage in hisi_ptt_process_auxtrace_event()
    f8d47ca6785c perf header: Fix one memory leakage in perf_event__fprintf_event_update()
    2c664df0b201 iio: adc: ad9467: fix scale setting
    a98f6c657c60 iio: adc: ad9467: add mutex to struct ad9467_state
    0c7b8f883159 iio: adc: ad9467: don't ignore error codes
    8690cd46c86b iio: adc: ad9467: fix reset gpio handling
    1075fafe8d3c selftests/sgx: Skip non X86_64 platform
    88fe67d40044 selftests/sgx: Include memory clobber for inline asm in test enclave
    5a734a0ec4e3 selftests/sgx: Fix uninitialized pointer dereferences in encl_get_entry
    c4aee34ea772 selftests/sgx: Fix uninitialized pointer dereference in error path
    763cd6874631 serial: imx: fix tx statemachine deadlock
    2b327d0fe0d2 software node: Let args be NULL in software_node_get_reference_args
    afc7dd4e03b7 acpi: property: Let args be NULL in __acpi_node_get_property_reference
    a5e1c3fe5764 base/node.c: initialize the accessor list before registering
    ac95df46de7f perf stat: Exit perf stat if parse groups fails
    9cc93a61cd79 perf mem: Fix error on hybrid related to availability of mem event in a PMU
    f54149b92083 perf vendor events arm64 AmpereOne: Rename BPU_FLUSH_MEM_FAULT to GPC_FLUSH_MEM_FAULT
    358b1c992ec0 vfio/pds: Fix calculations in pds_vfio_dirty_sync
    c7e8c0e61da5 perf test record user-regs: Fix mask for vg register
    e9b7b8b3ac2c libapi: Add missing linux/types.h header to get the __u64 type on io.h
    bee4ceb8ea40 perf header: Fix segfault on build_mem_topology() error path
    cd8dd51d5986 perf test: Remove atomics from test_loop to avoid test failures
    28d8fe6641e7 iommu: Map reserved memory as cacheable if device is coherent
    887a558d0298 serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed
    5b3e25efe16e PCI: Avoid potential out-of-bounds read in pci_dev_for_each_resource()
    b450e335fb18 power: supply: bq256xx: fix some problem in bq256xx_hw_init
    eb45e4bb14d3 power: supply: cw2015: correct time_to_empty units in sysfs
    69bec5f534ca MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
    b6e72854e019 MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
    9b2f64ba99bf riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro
    e1e1058828ed riscv: Fix set_direct_map_default_noflush() to reset _PAGE_EXEC
    5254434a8cf2 riscv: Fix set_memory_XX() and set_direct_map_XX() by splitting huge linear mappings
    8633e74002cd riscv: Fix module_alloc() that did not reset the linear mapping permissions
    8db56df4a954 riscv: Check if the code to patch lies in the exit section
    e111d2319a44 um: virt-pci: fix platform map offset
    66c8b147fe04 mips: Fix incorrect max_low_pfn adjustment
    6ea50107247c mips: dmi: Fix early remap on MIPS32
    ac0de86fa7f5 srcu: Use try-lock lockdep annotation for NMI-safe access.
    fa1a1bad0f1c mfd: intel-lpss: Fix the fractional clock divider flags
    f53d8c6c6ecc mfd: tps6594: Add null pointer check to tps6594_device_init()
    bd4d5b6fe15d leds: aw200xx: Fix write to DIM parameter
    ab27da1edb56 leds: aw2013: Select missing dependency REGMAP_I2C
    3ef1130deee9 mfd: syscon: Fix null pointer dereference in of_syscon_register()
    9fc58cb20765 mfd: cs42l43: Correct SoundWire port list
    3c90b3b0436e mfd: rk8xx: fixup devices registration with PLATFORM_DEVID_AUTO
    df633f4c964a ARM: 9330/1: davinci: also select PINCTRL
    7ce742553789 serial: sc16is7xx: set safe default SPI clock frequency
    9d528a81df2f serial: sc16is7xx: add check for unsupported SPI modes during probe
    53956bf45e68 HID: wacom: Correct behavior when processing some confidence == false touches
    41199d2dbd00 HID: sensor-hub: Enable hid core report processing for all devices
    7faef79764d2 iio: adc: ad7091r: Pass iio_dev to event handler
    7c7ddf45868a KVM: x86/pmu: Reset the PMU, i.e. stop counters, before refreshing
    57bbd59ae013 KVM: x86/pmu: Move PMU reset logic to common x86 code
    65b201bf3e9a KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
    42604bd5e49d KVM: arm64: vgic-v4: Restore pending state on host userspace write
    db448ac982e4 x86/kvm: Do not try to disable kvmclock if it was not enabled
    3206a188cfe1 PCI: mediatek: Clear interrupt status before dispatching handler
    43501b6c5abf PCI: dwc: endpoint: Fix dw_pcie_ep_raise_msix_irq() alignment support
    eaf6412618f5 x86/pci: Reserve ECAM if BIOS didn't include it in PNP0C02 _CRS
    e54c4dd4137c PCI/P2PDMA: Remove reference to pci_p2pdma_map_sg()
    5a473e32088c cxl/port: Fix decoder initialization when nr_targets > interleave_ways
    0dfcefc97300 Revert "nSVM: Check for reserved encodings of TLB_CONTROL in nested VMCB"
    68325c8c1aeb Revert "net: rtnetlink: Enslave device before bringing it up"
    ed00d917056b net: stmmac: fix ethtool per-queue statistics
    c84a711ad622 wifi: mwifiex: fix uninitialized firmware_stat
    2b3d7e12ec90 wifi: mwifiex: configure BSSID consistently when starting AP
    60220f0a551d wifi: mwifiex: add extra delay for firmware ready
    516ec80072c4 wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors
    1f018dfa3725 wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code
    c30d0fcb5d68 wifi: mt76: fix broken precal loading from MTD for mt7915
    509b9e745148 iommu/dma: Trace bounce buffer usage when mapping buffers
    979dc1cbd865 iommu/arm-smmu-qcom: Add missing GMU entry to match table
    8c8bcd45e9b1 bpf: Fix re-attachment branch in bpf_tracing_prog_attach
    f56e715ef1c1 Bluetooth: Fix atomicity violation in {min,max}_key_size_set
    2e54968baba3 rootfs: Fix support for rootfstype= when root= is given
    6dcd88460747 md/raid1: Use blk_opf_t for read and write operations
    e5f2b4b62977 pwm: Fix out-of-bounds access in of_pwm_single_xlate()
    080d2c608bce pwm: jz4740: Don't use dev_err_probe() in .request()
    7baa33837ee2 netfilter: nf_tables: check if catch-all set element is active in next generation
    a6bd8182137a block: Fix iterating over an empty bio with bio_for_each_folio_all
    8955324cc9f9 block: Remove special-casing of compound pages
    cb16cc1abda1 block: add check that partition length needs to be aligned with block size
    847e6947afd3 drm/amd: Enable PCIe PME from D3
    d37dbde71112 scsi: mpi3mr: Block PEL Enable Command on Controller Reset and Unrecoverable State
    fc6742c16be9 scsi: mpi3mr: Clean up block devices post controller reset
    3ddc8b84f657 scsi: mpi3mr: Refresh sdev queue depth after controller reset
    ca8e1a5d55ce scsi: target: core: add missing file_{start,end}_write()
    af50048fc351 scsi: ufs: core: Simplify power management during async scan
    2db6388d8a7f fbdev: flush deferred IO before closing
    1e3b051e9714 fbdev: flush deferred work in fb_deferred_io_fsync()
    2aceb3a8262c fbdev/acornfb: Fix name of fb_ops initializer macro
    0241f4c2caad io_uring: ensure local task_work is run on wait timeout
    c239b77ea4d6 io_uring/rw: ensure io->bytes_done is always initialized
    2c487fbf2230 io_uring: don't check iopoll if request completes
    d15de929f066 LoongArch: Fix and simplify fcsr initialization on execve()
    a8b91a92d4d6 ceph: select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
    08e6c8230051 ksmbd: only v2 leases handle the directory
    24290ba94cd0 ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
    a2b21ef1ea4c ksmbd: validate mech token in session setup
    3b2291360cce ALSA: hda/realtek: Enable headset mic on Lenovo M70 Gen5
    2e59001eadde ALSA: hda/realtek: Enable mute/micmute LEDs and limit mic boost on HP ZBook
    0979e180845d ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq2xxx
    0d7b0c4a70e8 ALSA: oxygen: Fix right channel of capture volume mixer
    57886e83d190 serial: omap: do not override settings for RS485 support
    f9a7caccf21e serial: 8250_exar: Set missing rs485_supported flag
    45d709f3970e serial: imx: Ensure that imx_uart_rs485_config() is called with enabled clock
    67043c0a6ed5 serial: core, imx: do not set RS485 enabled if it is not supported
    bd4a210c09e4 serial: 8250_bcm2835aux: Restore clock error handling
    9a965fba11f3 serial: core: make sure RS485 cannot be enabled when it is not supported
    cd1508c80dab serial: core: fix sanitizing check for RTS settings
    b68581313078 dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: fix path to header
    c8e0fb0da88f usb: mon: Fix atomicity violation in mon_bin_vma_fault
    da4e9d5cc567 usb: typec: class: fix typec_altmode_put_partner to put plugs
    745a4b352724 Revert "usb: typec: class: fix typec_altmode_put_partner to put plugs"
    9f8b94b93ca5 usb: cdns3: Fix uvc fail when DMA cross 4k boundery since sg enabled
    2e56239b8e1d usb: cdns3: fix iso transfer error when mult is not zero
    0153e32b3cc1 usb: cdns3: fix uvc failure work since sg support enabled
    420fa3cb092f usb: chipidea: wait controller resume finished for wakeup irq
    61a06c5bb603 Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only"
    e8d48c2282a9 Revert "usb: dwc3: Soft reset phy on probe for host"
    334bdf3351d9 usb: dwc3: gadget: Queue PM runtime idle on disconnect event
    e9deab5be0c4 usb: dwc3: gadget: Handle EP0 request dequeuing properly
    73e20c2f48f8 usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart
    f09cfc753944 usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host()
    53eea0d939e3 Revert "usb: gadget: f_uvc: change endpoint allocation in uvc_function_bind()"
    7fc3dd358aa0 tick-sched: Fix idle and iowait sleeptime accounting vs CPU hotplug
    b38014874530 powerpc/64s: Increase default stack size to 32KB
    c5c1ff390400 clocksource/drivers/timer-ti-dm: Fix make W=n kerneldoc warnings
    67f16bf2cc16 binder: fix race between mmput() and do_exit()
    78376d441560 xen-netback: don't produce zero-size SKB frags
    3a99f15ce9d0 Revert "drm/amdkfd: Relocate TBA/TMA to opposite side of VM hole"
    9853f1307efe rust: Ignore preserve-most functions
    881720dcf6df Input: atkbd - use ab83 as id when skipping the getid command
    9da397e5d48d mips/smp: Call rcutree_report_cpu_starting() earlier
    1f714a0373ac binder: fix unused alloc->free_async_space
    fda6e06e01a9 binder: fix async space check for 0-sized buffers
    06173edfc770 keys, dns: Fix size check of V1 server-list header
    3db79d21cf9c selftests/bpf: Add assert for user stacks in test_task_stack
    5f93225dc925 Revert "kernfs: convert kernfs_idr_lock to an irq safe raw spinlock"
    3058183333a5 kernfs: convert kernfs_idr_lock to an irq safe raw spinlock
    b57196a5ec5e class: fix use-after-free in class_register()
    aea1965c5de5 of: unittest: Fix of_count_phandle_with_args() expected value message
    71ec48abc549 fbdev: imxfb: fix left margin setting
    b64d09a4e859 of: Fix double free in of_parse_phandle_with_args_map
    acf50ff9360e ksmbd: validate the zero field of packet header
    d998ade03ef2 kselftest/alsa - conf: Stringify the printed errno in sysfs_get()
    efd7d5e1e6e2 kselftest/alsa - mixer-test: Fix the print format specifier warning
    45cbaa25b331 kselftest/alsa - mixer-test: fix the number of parameters to ksft_exit_fail_msg()
    ecfaeb66b1f0 drm/amd/display: avoid stringop-overflow warnings for dp_decide_lane_settings()
    ae7cbf935b9a drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init
    5024cce888e1 drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c
    2d8f9e4e1d9f IB/iser: Prevent invalidating wrong MR
    4147d76f988a gpio: sysfs: drop the mention of gpiochip_find() from sysfs code
    ba3f1a346bf1 gpiolib: provide gpio_device_find()
    799233ad1eb8 gpiolib: make gpio_device_get() and gpio_device_put() public
    9b0cc30d26c3 drm/amdkfd: Fix type of 'dbg_flags' in 'struct kfd_process'
    37d1757808b0 mmc: sdhci_omap: Fix TI SoC dependencies
    3e6319ca61c1 mmc: sdhci_am654: Fix TI SoC dependencies
    03035872e178 ALSA: scarlett2: Add clamp() in scarlett2_mixer_ctl_put()
    821fbaeaaae2 ALSA: scarlett2: Add missing error checks to *_ctl_get()
    66fb87fac545 ALSA: scarlett2: Allow passing any output to line_out_remap()
    996fde492ad9 ALSA: scarlett2: Add missing error check to scarlett2_usb_set_config()
    43a9b3f6e6ef ALSA: scarlett2: Add missing error check to scarlett2_config_save()
    bf4599610ef6 ASoC: rt5645: Drop double EF20 entry from dmi_platform_data[]
    c17134d3aea9 pwm: stm32: Fix enable count for clk in .probe()
    5eb8da9b3ef7 pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
    f1da0b7a092a clk: fixed-rate: fix clk_hw_register_fixed_rate_with_accuracy_parent_hw
    a3fb4404e3d4 clk: qcom: dispcc-sm8550: Update disp PLL settings
    053f354733aa clk: qcom: gcc-sm8550: Mark RCGs shared where applicable
    a7a5ec56a012 clk: qcom: gcc-sm8550: use collapse-voting for PCIe GDSCs
    62f53fe9e8c2 clk: qcom: gcc-sm8550: Mark the PCIe GDSCs votable
    b5782964b08f clk: qcom: gcc-sm8550: Add the missing RETAIN_FF_ENABLE GDSC flag
    975aaaddc226 accel/habanalabs: fix information leak in sec_attest_info()
    5ada13fb6770 drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency
    5a316acb135b ASoC: tas2781: add support for FW version 0x0503
    18e58248b2aa ASoC: amd: vangogh: Drop conflicting ACPI-based probing
    1e6132acba6a clk: si5341: fix an error code problem in si5341_output_clk_set_rate
    2e4806d2b78f clk: rs9: Fix DIF OEn bit placement on 9FGV0241
    f2c13661c2a6 watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused
    57b39f0b07cd watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
    04ec5525479b watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO
    1ee2762cf0fb watchdog: set cdev owner before adding
    37b67480609f drivers: clk: zynqmp: update divider round rate logic
    9b2dcd1b38c2 drivers: clk: zynqmp: calculate closest mux rate
    f35668e633e9 clk: sp7021: fix return value check in sp7021_clk_probe()
    2aea9c0498ca clk: qcom: videocc-sm8150: Add missing PLL config property
    9fcf47d8f909 clk: qcom: videocc-sm8150: Update the videocc resets
    07b4cf396c34 dt-bindings: clock: Update the videocc resets for sm8150
    cf8a10d41f13 f2fs: fix to check return value of f2fs_recover_xattr_data
    0c5d08b1c98e drm/amd/pm: fix a double-free in amdgpu_parse_extended_power_table
    4c9a96dd6d4a gpu/drm/radeon: fix two memleaks in radeon_vm_init
    95084632a65d drivers/amd/pm: fix a use-after-free in kv_parse_power_table
    fb1936cb5872 drm/amd/pm: fix a double-free in si_dpm_init
    5bc4f16118c5 drm/amdgpu/debugfs: fix error code when smc register accessors are NULL
    37e452306ae2 drm/mediatek: Fix underrun in VDO1 when switches off the layer
    f3e63240003e drm/mediatek: Remove the redundant driver data for DPI
    3aa7196bcd3b drm/mediatek: Return error if MDP RDMA failed to enable the clock
    173b247231bb drm/msm/dpu: Drop enable and frame_count parameters from dpu_hw_setup_misr()
    4ae0cd31688f drm/msm/dpu: Set input_sel bit for INTF
    0afe652a69d8 clk: renesas: rzg2l: Check reset monitor registers
    fc61c3c5e0f6 clk: renesas: rzg2l-cpg: Reuse code in rzg2l_cpg_reset()
    ee3e64d1dac6 media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()
    de28d63ad35c media: dvbdev: drop refcount on error path in dvb_device_open()
    7bf0cba7f7e8 f2fs: fix to update iostat correctly in f2fs_filemap_fault()
    412eee2c894a f2fs: fix to check compress file in f2fs_move_file_range()
    4535be487804 f2fs: fix to wait on block writeback for post_read case
    fa08600a6c0b drm/panel: st7701: Fix AVCL calculation
    6ce256eab4d4 drm/msm/adreno: Fix A680 chip id
    f2295f176989 media: rkisp1: Fix media device memory leak
    0e09b6dd83b1 media: dt-bindings: media: rkisp1: Fix the port description for the parallel interface
    c9354bffaa5b media: imx-mipi-csis: Drop extra clock enable at probe()
    0e3535ee779f media: imx-mipi-csis: Fix clock handling in remove()
    54ce93d7e66e media: bttv: add back vbi hack
    e8fa30fa7157 media: bttv: start_streaming should return a proper error code
    5e00f6c3a350 clk: qcom: gpucc-sm8150: Update the gpu_cc_pll1 config
    e785018a7f06 RDMA/hns: Fix memory leak in free_mr_init()
    1e2c9e741824 media: cx231xx: fix a memleak in cx231xx_init_isoc
    3258bc1f8cc8 drm/bridge: tc358767: Fix return value on error case
    99705f3f345f drm/bridge: cdns-mhdp8546: Fix use of uninitialized variable
    0564e8a42791 drm/radeon/trinity_dpm: fix a memleak in trinity_parse_power_table
    a26634b3ce21 drm/radeon/dpm: fix a memleak in sumo_parse_power_table
    0b813a6a0087 drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
    3bbef34ea819 drm/msm/dpu: correct clk bit for WB2 block
    4687cb57578a drm/panfrost: Ignore core_mask for poweroff and disable PWRTRANS irq
    61dfc4317425 ASoC: SOF: topology: Use partial match for disconnecting DAI link and DAI widget
    a410d58117d6 ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL
    3fbfbea3eeb0 ASoC: Intel: glk_rt5682_max98357a: fix board id mismatch
    b7062628caea media: v4l: async: Fix duplicated list deletion
    af9d39677c91 drm/drv: propagate errors from drm_modeset_register_all()
    ae795abe7b3e drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks
    ff9f375c21d9 drm/msm/dpu: Add missing safe_lut_tbl in sc8180x catalog
    3925b83c3586 drm/msm/mdp4: flush vblank event on disable
    13bb7bfc2580 ASoC: cs35l33: Fix GPIO name and drop legacy include
    9c010be07fd9 drm/imx/lcdc: Fix double-free of driver data
    417d134e72f5 drm/tidss: Fix dss reset
    11e2dc2ff842 drm/tidss: Check for K2G in in dispc_softreset()
    4fcfe757860b drm/tidss: Return error value from from softreset
    d44143cdd0d1 drm/tidss: Move reset to the end of dispc_init()
    18bd4d184675 drm/radeon: check return value of radeon_ring_lock()
    056484916a13 drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check()
    0413e8869171 drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()
    d3c0b49aaa12 f2fs: fix to avoid dirent corruption
    c111350d673a drm/bridge: Fix typo in post_disable() description
    c082791b6a46 media: amphion: Fix VPU core alias name
    251743c4065c media: rkvdec: Hook the (TRY_)DECODER_CMD stateless ioctls
    682588d38ad9 media: verisilicon: Hook the (TRY_)DECODER_CMD stateless ioctls
    f581023e3207 media: visl: Hook the (TRY_)DECODER_CMD stateless ioctls
    2cb808af7746 media: mtk-jpeg: Remove cancel worker in mtk_jpeg_remove to avoid the crash of multi-core JPEG devices
    2cf0005d3155 media: pvrusb2: fix use after free on context disconnection
    c56a4ad4068d drm/tilcdc: Fix irq free on unload
    a8657406e12a drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function
    9f91aa1ef918 drm/nouveau/fence:: fix warning directly dereferencing a rcu pointer
    a23571137dd1 drm/panel-elida-kd35t133: hold panel in reset for unprepare
    e9c9fd317ab0 drm/panel: nv3051d: Hold panel in reset for unprepare
    ada27426b0d6 RDMA/hns: Fix inappropriate err code for unsupported operations
    fff32018b025 RDMA/usnic: Silence uninitialized symbol smatch warnings
    305f1f46d738 drm/panfrost: Really power off GPU cores in panfrost_gpu_power_off()
    4e042f022255 drm/dp_mst: Fix fractional DSC bpp handling
    16af1e7f5ea6 Revert "drm/omapdrm: Annotate dma-fence critical section in commit path"
    9ab5837f77a1 Revert "drm/tidss: Annotate dma-fence critical section in commit path"
    c5d4224a4d16 ARM: davinci: always select CONFIG_CPU_ARM926T
    687c5d52fe53 ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
    2968901d72b9 rxrpc: Fix skbuff cleanup of call's recvmsg_queue and rx_oos_queue
    04c1f0f2505a mlxbf_gige: Enable the GigE port in mlxbf_gige_open
    42b242c62bc1 mlxbf_gige: Fix intermittent no ip issue
    73f7da5fd124 net/sched: act_ct: fix skb leak and crash on ooo frags
    a33c741ca699 blk-cgroup: fix rcu lockdep warning in blkg_lookup()
    63c3c44ff4c5 sctp: fix busy polling
    9702e7fb6399 sctp: support MSG_ERRQUEUE flag in recvmsg()
    b54d78d57985 bpf: sockmap, fix proto update hook to avoid dup calls
    3d81183a5b9c wifi: cfg80211: parse all ML elements in an ML probe response
    6b3946813382 wifi: cfg80211: correct comment about MLD ID
    08a8ae5a8018 arm64: dts: rockchip: Fix led pinctrl of lubancat 1
    eeeb228c5f23 null_blk: don't cap max_hw_sectors to BLK_DEF_MAX_SECTORS
    0f37a5c9d366 Bluetooth: btmtkuart: fix recv_buf() return value
    8cd6c0600725 Bluetooth: btnxpuart: fix recv_buf() return value
    f8a5c402ae34 Bluetooth: Fix bogus check for re-auth no supported with non-ssp
    f1ee0ffbc024 netfilter: nf_tables: validate chain type update if available
    f5ab4e73c9e1 netfilter: nf_tables: mark newset as dead on transaction abort
    e6f3f39676a5 wifi: iwlwifi: assign phy_ctxt before eSR activation
    a2a4bb509b78 wifi: iwlwifi: fix out of bound copy_from_user
    076ca7429666 wifi: iwlwifi: mvm: send TX path flush in rfkill
    c3e1a02a8ab2 wifi: iwlwifi: mvm: set siso/mimo chains to 1 in FW SMPS request
    df14b372030c wifi: rtlwifi: rtl8192se: using calculate_bit_shift()
    076d81a78371 wifi: rtlwifi: rtl8192ee: using calculate_bit_shift()
    6bbaf100a355 wifi: rtlwifi: rtl8192de: using calculate_bit_shift()
    4342f9646953 wifi: rtlwifi: rtl8192ce: using calculate_bit_shift()
    96cd7b10e949 wifi: rtlwifi: rtl8192cu: using calculate_bit_shift()
    b2127790622c wifi: rtlwifi: rtl8192c: using calculate_bit_shift()
    2293d95f8765 wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift()
    1b2260bc3403 wifi: rtlwifi: add calculate_bit_shift()
    3bc29c780aca bpf: Use c->unit_size to select target cache during free
    63ddf081e111 bpf: Use pcpu_alloc_size() in bpf_mem_free{_rcu}()
    62752b673247 bpf: Re-enable unit_size checking for global per-cpu allocator
    2e5181afb329 arm64: dts: qcom: sc8180x: Fix up PCIe nodes
    8f1b6d23fec4 arm64: dts: qcom: sc8180x: switch PCIe QMP PHY to new style of bindings
    8d0c268ffcb3 arm64: dts: qcom: sc8180x: Mark PCIe hosts cache-coherent
    c811f0246b2c arm64: dts: qcom: sm8550: Update idle state time requirements
    ff8434b61cbb arm64: dts: qcom: sm8550: Separate out X3 idle state
    55c87e64a3c0 arm64: dts: qcom: ipq6018: fix clock rates for GCC_USB0_MOCK_UTMI_CLK
    afea6ffbed36 arm64: dts: qcom: sc7280: Mark SDHCI hosts as cache-coherent
    ed49fd2d46a4 block: add check of 'minors' and 'first_minor' in device_add_disk()
    004e05c28c57 soc: qcom: llcc: Fix LLCC_TRP_ATTR2_CFGn offset
    11b4803210af arm64: dts: qcom: sm8150-hdk: fix SS USB regulators
    2d1cd59a34d1 arm64: dts: qcom: sm8150: make dispcc cast minimal vote on MMCX
    0f5532bd692f arm64: dts: qcom: sm6375: Hook up MPM
    4a208efdf54d arm64: dts: qcom: sm6375: fix USB wakeup interrupt types
    19e578b69968 soc: qcom: llcc: Fix dis_cap_alloc and retain_on_pc configuration
    793ca465722a arm64: dts: qcom: acer-aspire1: Correct audio codec definition
    3d83b820bff9 bpf: Limit the number of kprobes when attaching program to multiple kprobes
    5735054af3d3 bpf: Limit the number of uprobes when attaching program to multiple uprobes
    849ca053beb0 dma-mapping: clear dev->dma_mem to NULL after freeing it
    94e5f64283a1 virtio/vsock: send credit update during setting SO_RCVLOWAT
    925c22d43835 virtio/vsock: fix logic which reduces credit update messages
    7b32e63f8814 ipmr: support IP_PKTINFO on cache report IGMP msg
    d01b4a9296ec selftests/net: fix grep checking for fib_nexthop_multiprefix
    d048dced8ea5 bpf: Fix a race condition between btf_put() and map_free()
    42357465a069 ARM: dts: stm32: don't mix SCMI and non-SCMI board compatibles
    d4a84572bcb1 scsi: hisi_sas: Correct the number of global debugfs registers
    d1932df3c4ba scsi: hisi_sas: Rollback some operations if FLR failed
    9e1986cd8a93 scsi: hisi_sas: Check before using pointer variables
    ec2499b80e1c scsi: hisi_sas: Replace with standard error code return value
    8d8f671e45de scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails
    8f67e87e1602 scsi: ufs: qcom: Fix the return value of ufs_qcom_ice_program_key()
    95fff86aa8d2 arm64: dts: imx8mm: Reduce GPU to nominal speed
    9cd79bc11ffa arm64: dts: renesas: white-hawk-cpu: Fix missing serial console pin control
    218c08c5b2bd arm64: dts: xilinx: Apply overlays to base dtbs
    89665b3daea4 block: Set memalloc_noio to false on device_add_disk() error path
    1e1fe2bd87ac selftests/bpf: Relax time_tai test for equal timestamps in tai_forward
    85e60760d255 wifi: iwlwifi: don't support triggered EHT CQI feedback
    15173a169723 wifi: mt76: mt7921: fix country count limitation for CLC
    f8fa25bf6654 arm64: dts: mediatek: mt8186: fix address warning for ADSP mailboxes
    9bd3a1881724 arm64: dts: mediatek: mt8186: Fix alias prefix for ovl_2l0
    11f272928e24 arm64: dts: mediatek: mt8195: revise VDOSYS RDMA node name
    4b0d8f4a68aa arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes
    64ebe7abc1c0 dt-bindings: media: mediatek: mdp3: correct RDMA and WROT node with generic names
    0954982db828 bpf: Fix accesses to uninit stack slots
    ad140fc856f0 bpf: Guard stack limits against 32bit overflow
    7f7bed74ba64 arm64: dts: hisilicon: hikey970-pmic: fix regulator cells properties
    08b91babccbb bpf: Fix verification of indirect var-off stack access
    e89d025d331c wifi: mt76: mt7921s: fix workqueue problem causes STA association fail
    88199cbc75fe wifi: mt76: mt7915: also MT7981 is 3T3R but nss2 on 5 GHz band
    a37cd935b586 wifi: mt76: mt7915: fix EEPROM offset of TSSI flag on MT7981
    d03559452a8a wifi: mt76: mt7996: fix rate usage of inband discovery frames
    041f75b38b1e wifi: mt76: mt7996: fix the size of struct bss_rate_tlv
    5e22c8a04173 wifi: mt76: mt7915: fallback to non-wed mode if platform_get_resource fails in mt7915_mmio_wed_init()
    b9b61d159006 wifi: mt76: fix typo in mt76_get_of_eeprom_from_nvmem function
    27aca54b0d14 arm64: dts: qcom: sm8550: fix USB wakeup interrupt types
    d7206c3bb4b5 arm64: dts: qcom: sc7280: fix usb_2 wakeup interrupt types
    22a31cc7a022 arm64: dts: qcom: sa8775p: fix USB wakeup interrupt types
    20455e11993b arm64: dts: qcom: sc7280: Mark Adreno SMMU as DMA coherent
    028a26553eb2 arm64: dts: qcom: sc7280: Fix up GPU SIDs
    52fafbe79b25 arm64: dts: qcom: sm8350: Fix DMA0 address
    9f3f5494456c arm64: dts: qcom: sm6125: add interrupts to DWC3 USB controller
    22817db3aa32 arm64: dts: qcom: sdm845-db845c: correct LED panic indicator
    747dee115c14 arm64: dts: qcom: qrb5165-rb5: correct LED panic indicator
    5ea916f16be3 arm64: dts: qcom: qrb2210-rb1: use USB host mode
    da58aea81a3b arm64: dts: qcom: qrb2210-rb1: Hook up USB3
    76fed8a4c507 scsi: fnic: Return error if vmalloc() failed
    8dc15b067059 bpf: fix check for attempt to corrupt spilled pointer
    25a17a269b44 selftests/net: specify the interface when do arping
    f91cd728b10c bpf: Defer the free of inner map when necessary
    1c40ec6b8e06 bpf: Add map and need_defer parameters to .map_fd_put_ptr()
    decc738819ea arm64: dts: qcom: sm6350: Make watchdog bark interrupt edge triggered
    b9a97215c346 arm64: dts: qcom: sc8280xp: Make watchdog bark interrupt edge triggered
    bc3400294110 arm64: dts: qcom: sa8775p: Make watchdog bark interrupt edge triggered
    a52f6d78ff65 arm64: dts: qcom: sm8250: Make watchdog bark interrupt edge triggered
    70d0d1bfe5e1 arm64: dts: qcom: sm8150: Make watchdog bark interrupt edge triggered
    b06a86234872 arm64: dts: qcom: sdm845: Make watchdog bark interrupt edge triggered
    940ce0fee709 arm64: dts: qcom: sc7280: Make watchdog bark interrupt edge triggered
    6252b33a3101 arm64: dts: qcom: sc7280: Mark some nodes as 'reserved'
    6157194e6400 arm64: dts: qcom: sc7180: Make watchdog bark interrupt edge triggered
    5fd1287784a2 arm64: dts: qcom: sm8550: correct TX Soundwire clock
    2eda1c797441 arm64: dts: qcom: sm8450: correct TX Soundwire clock
    9bdbc3a00a67 arm64: dts: qcom: sc8180x-primus: Fix HALL_INT polarity
    c961ca51345a dt-bindings: arm: qcom: Fix html link
    498e1c55baf7 ARM: dts: qcom: sdx65: correct SPMI node name
    4371540a33ca ARM: dts: qcom: sdx65: correct PCIe EP phy-names
    0866f6427b45 bpf: enforce precision of R0 on callback return
    530cec617f5a md: synchronize flush io with array reconfiguration
    3bb89deccac5 selftests/bpf: Fix erroneous bitmask operation
    5b5ddf21b978 wifi: rtw88: sdio: Honor the host max_req_size in the RX path
    c2d3b657c968 arm64: dts: ti: iot2050: Re-add aliases
    87e2d91d4cec arm64: dts: ti: k3-am65-main: Fix DSS irq trigger type
    92e2eaa44a7f arm64: dts: ti: k3-am62a-main: Fix GPIO pin count in DT nodes
    6aa025f6df94 wifi: rtlwifi: rtl8821ae: phy: fix an undefined bitwise shift behavior
    65d10f83acff scsi: bfa: Use the proper data type for BLIST flags
    7615536a3746 firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create()
    1c83c7089dea net/ncsi: Fix netlink major/minor version numbers
    50871569183e ARM: dts: qcom: apq8064: correct XOADC register address
    ba538ae4d709 wifi: libertas: stop selecting wext
    e9327c72bc77 wifi: ath11k: Defer on rproc_get failure
    a341738951bf bpf: Add crosstask check to __bpf_get_stack
    de0b27e6326e bpf, lpm: Fix check prefixlen before walking trie
    153267f9513f wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
    2ed15a3a3f4a wifi: plfxlc: check for allocation failure in plfxlc_usb_wreq_async()
    ddcb3b444659 ARM: dts: qcom: msm8226: provide dsi phy clocks to mmcc
    d5bc0233ddae arm64: dts: qcom: sc8280xp-x13s: add missing camera LED pin config
    47e3ec86cf6f arm64: dts: qcom: sc8280xp-x13s: Use the correct DP PHY compatible
    d579dfaa0908 arm64: dts: qcom: qrb4210-rb2: don't force usb peripheral mode
    6e007fac81cf asm-generic: Fix 32 bit __generic_cmpxchg_local
    75aa038d9f6e pNFS: Fix the pnfs block driver's calculation of layoutget size
    bcdb16220a58 SUNRPC: fix _xprt_switch_find_current_entry logic
    8d43b944cab0 NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT
    4ffac0013421 NFS: Use parent's objective cred in nfs_access_login_time()
    b4b7dd1cb608 blocklayoutdriver: Fix reference leak of pnfs_device_node
    060d799775f6 csky: fix arch_jump_label_transform_static override
    7d9e5bed036a crypto: scomp - fix req->dst buffer overflow
    c660aa7784b7 crypto: sahara - do not resize req->src when doing hash operations
    08489b1994cb crypto: sahara - fix processing hash requests with req->nbytes < sg->length
    3c3eb0f8bb26 crypto: sahara - improve error handling in sahara_sha_process()
    db6efd4da2ee crypto: sahara - fix wait_for_completion_timeout() error handling
    7593631a53c5 crypto: sahara - fix ahash reqsize
    b123af8beb89 crypto: sahara - handle zero-length aes requests
    326288412716 crypto: sahara - avoid skcipher fallback code duplication
    63cdfacb0a70 crypto: virtio - Wait for tasklet to complete on device remove
    528a422b94b3 dlm: fix format seq ops type 4
    4f234d5fcd82 gfs2: fix kernel BUG in gfs2_quota_cleanup
    067a7c48c2c7 gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
    5248b445a579 fs: indicate request originates from old mount API
    90219ce71683 erofs: fix memory leak on short-lived bounced pages
    a34946ec3de8 pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()
    52f0b4a30f20 crypto: hisilicon/zip - save capability registers in probe process
    b06a6d5e9d99 crypto: hisilicon/sec2 - save capability registers in probe process
    e8d4877e5c7f crypto: hisilicon/hpre - save capability registers in probe process
    1e8102e22c88 crypto: hisilicon/qm - add a function to set qm algs
    b7a03a0f15c2 crypto: hisilicon/zip - add zip comp high perf mode configuration
    eaf9954929e5 crypto: hisilicon/qm - save capability registers in qm init process
    dffc3483c84e crypto: sahara - fix error handling in sahara_hw_descriptor_create()
    4167eb9412d4 crypto: sahara - fix processing requests with cryptlen < sg->length
    ab82cb379a5a crypto: sahara - fix ahash selftest failure
    489bfd8f8a64 crypto: sahara - fix cbc selftest failure
    dd31964d9eca crypto: sahara - remove FLAGS_NEW_KEY logic
    8084b788c2fb crypto: safexcel - Add error handling for dma_map_sg() calls
    e136daaa10e4 crypto: af_alg - Disallow multiple in-flight AIO requests
    1e9d70723398 crypto: ccp - fix memleak in ccp_init_dm_workarea
    b94f7e34d6a2 crypto: sa2ul - Return crypto_aead_setkey to transfer the error
    c4c54fce9ec5 crypto: virtio - Handle dataq logic with tasklet
    6d9f17829eb6 crypto: jh7110 - Correct deferred probe return
    2831f4d3bfa6 crypto: rsa - add a check for allocation failure
    089ff0eeb785 selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
    70481755ed77 drivers/thermal/loongson2_thermal: Fix incorrect PTR_ERR() judgment
    628fb8986479 cpuidle: haltpoll: Do not enable interrupts when entering idle
    cfd7c9d260dc mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
    5e9908878034 kunit: debugfs: Fix unchecked dereference in debugfs_print_results()
    335176dd8eba thermal: core: Fix NULL pointer dereference in zone registration error path
    c4323f66f39e ACPI: extlog: Clear Extended Error Log status when RAS_CEC handled the error
    2920ac9d7e79 ACPI: LPSS: Fix the fractional clock divider flags
    ed492c4739e1 spi: sh-msiof: Enforce fixed DTDL for R-Car H3
    48be1364dd38 efivarfs: Free s_fs_info on unmount
    0049fe7e4a85 efivarfs: force RO when remounting if SetVariable is not supported
    408bbd1e1746 calipso: fix memory leak in netlbl_calipso_add_pass()
    5dd08ac0bc65 cpufreq: scmi: process the result of devm_of_clk_add_hw_provider()
    8271d397a9ff platform/x86/intel/vsec: Fix xa_alloc memory leak
    b1432249f169 spi: cadence-quadspi: add missing clk_disable_unprepare() in cqspi_probe()
    69c2d6e40d97 KEYS: encrypted: Add check for strsep
    d1ac288b2742 ACPI: LPIT: Avoid u32 multiplication overflow
    39af144b6d01 ACPI: video: check for error while searching for backlight device parent
    f58ec36850ae mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response
    d83b2b32ba0f spi: spi-zynqmp-gqspi: fix driver kconfig dependencies
    bf1bf09e6b59 perf/x86/intel/uncore: Fix NULL pointer dereference issue in upi_fill_topology()
    20c09814782b sched/fair: Update min_vruntime for reweight_entity() correctly
    024352f7928b powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
    69f95c5e9220 powerpc/powernv: Add a null pointer check in opal_powercap_init()
    a14c55eb461d powerpc/powernv: Add a null pointer check in opal_event_init()
    dd8422ff271c powerpc/powernv: Add a null pointer check to scom_debug_init_one()
    bc063bf0934b powerpc/rtas: Avoid warning on invalid token argument to sys_rtas()
    2b03b50d1d88 powerpc/hv-gpci: Add return value check in affinity_domain_via_partition_show function
    0a16df5beb82 selftests/powerpc: Fix error handling in FPU/VMX preemption tests
    01f0876efc26 KVM: PPC: Book3S HV: Handle pending exceptions on guest entry with MSR_EE
    267980ea1081 KVM: PPC: Book3S HV: Introduce low level MSR accessor
    abcaadd4ce4a KVM: PPC: Book3S HV: Use accessors for VCPU registers
    412acaf9e213 drivers/perf: hisi: Fix some event id for HiSilicon UC pmu
    b60f26de4ecf perf/arm-cmn: Fix HN-F class_occup_id events
    df16afba2378 powerpc/pseries/memhp: Fix access beyond end of drmem array
    c927d8aff942 powerpc/44x: select I2C for CURRITUCK
    08beb0d4362b x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram
    f7aac5fede0b powerpc: add crtsavres.o to always-y instead of extra-y
    e1c865112415 EDAC/thunderx: Fix possible out-of-bounds string access
    91e7cc27b896 x86/mce/inject: Clear test status value
    2de76cf01e57 x86/lib: Fix overflow when counting digits

(From OE-Core rev: fb4c1d74bf623db53aedba6d93d7d131484340a8)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
edc4785967 linux-yocto/6.6: can: drop obsolete CONFIG_PCH_CAN
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Anuj Mittal
    Email: anuj.mittal@intel.com
    Subject: can: drop obsolete CONFIG_PCH_CAN
    Date: Fri, 26 Jan 2024 09:45:25 +0800

    The driver was removed in v6.2.

    1dd1b521be

    Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 6a06e227bb3539b868e7e0aaf3d9d8c7eb67930a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
e5f760b26f 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

    ]

(From OE-Core rev: 619a16f974ce838baaa864054261e879a7f7e924)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
7483b2fe7f linux-yocto/6.6: update to v6.6.13
Updating linux-yocto/6.6 to the latest korg -stable release that comprises
the following commits:

    62b19b564504 Linux 6.6.13
    9584c8d658c0 mm/memory_hotplug: fix memmap_on_memory sysfs value retrieval
    f54708e4a26d scripts/decode_stacktrace.sh: optionally use LLVM utilities
    09f222d40fae coresight: etm4x: Fix width of CCITMIN field
    d6d19c3d1792 PCI: Add ACS quirk for more Zhaoxin Root Ports
    7db7504a3e41 leds: ledtrig-tty: Free allocated ttyname buffer on deactivate
    12786872b26a parport: parport_serial: Add Brainboxes device IDs and geometry
    03427e7f2a56 parport: parport_serial: Add Brainboxes BAR details
    35f102607054 uio: Fix use-after-free in uio_open
    f4d6dbaa4376 binder: fix comment on binder_alloc_new_buf() return value
    8040d704adce binder: fix trivial typo of binder_free_buf_locked()
    a49087ab9350 binder: fix use-after-free in shinker's callback
    802c61319ec2 binder: use EPOLLERR from eventpoll.h
    e16a0bbdb7e5 Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"
    76a10fc65ab9 ksmbd: free ppace array on error in parse_dacl
    ab5c25b6988f ksmbd: don't allow O_TRUNC open on read-only share
    71be0f674070 drm/amd/display: Pass pwrseq inst for backlight and ABM
    6d4295d61579 ASoC: SOF: Intel: hda-codec: Delay the codec device registration
    08a2ae1d0402 bus: moxtet: Add spi device table
    b0ce6ddc1ca2 bus: moxtet: Mark the irq as shared
    2cd4362faa9e ACPI: resource: Add another DMI match for the TongFang GMxXGxx
    3642b5a62496 ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP Envy X360 13-ay0xxx
    d86c51e95644 x86/microcode: do not cache microcode if it will not be used
    7e881af7fb3c drm/crtc: fix uninitialized variable use
    2f09679b8ac1 x86/csum: clean up `csum_partial' further
    1078f257eb3a x86/csum: Remove unnecessary odd handling
    f99b7b22c0af ARM: sun9i: smp: fix return code check of of_property_match_string
    1e6b9bc8cc36 connector: Fix proc_event_num_listeners count not cleared
    6a186b28c4fc net: qrtr: ns: Return 0 if server port is not present
    e79e7c3aa522 nfc: Do not send datagram if socket state isn't LLCP_BOUND
    79aa992c8038 virtio_blk: fix snprintf truncation compiler warning
    ffcaafdb8be6 ida: Fix crash in ida_free when the bitmap is empty
    766c6c1dd140 posix-timers: Get rid of [COMPAT_]SYS_NI() uses
    406cea6443b6 pinctrl: cy8c95x0: Fix get_pincfg
    5f0a16617f70 pinctrl: cy8c95x0: Fix regression
    3d5729d5cee2 pinctrl: cy8c95x0: Fix typo
    a5ba95c226b5 drm/amd/display: get dprefclk ss info from integration info table
    18562b1691e2 drm/amd/display: Add case for dcn35 to support usb4 dmub hpd event
    bd443910debf drm/amdkfd: svm range always mapped flag not working on APU
    5a358b978618 i2c: rk3x: fix potential spinlock recursion on poll
    c5e0ed716c52 smb: client: fix potential OOB in smb2_dump_detail()
    00e66f948abe HID: nintendo: Prevent divide-by-zero on code
    8d6bda0f95c1 dm audit: fix Kconfig so DM_AUDIT depends on BLK_DEV_DM
    5e0e2cb4a1ce ALSA: hda/realtek: Add quirks for ASUS Zenbook 2022 Models
    4818174fd58a ASoC: Intel: bytcr_rt5640: Add new swapped-speakers quirk
    ed1310b53b6f ASoC: Intel: bytcr_rt5640: Add quirk for the Medion Lifetab S10346
    1339559bb6dd platform/x86/amd/pmc: Disable keyboard wakeup on AMD Framework 13
    5b235bbc2706 platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks
    a7edb661bb85 platform/x86/amd/pmc: Only run IRQ1 firmware version check on Cezanne
    f4fb4b9f1364 platform/x86/amd/pmc: Move platform defines to header
    64954dd2eef1 platform/x86: thinkpad_acpi: fix for incorrect fan reporting on some ThinkPad systems
    8e2609cbdee2 HID: nintendo: fix initializer element is not constant error
    3e0e4a900fcb kselftest: alsa: fixed a print formatting warning
    60e916d4b838 driver core: Add a guard() definition for the device_lock()
    1488b369267e Input: xpad - add Razer Wolverine V2 support
    015cfa30b39c wifi: iwlwifi: pcie: avoid a NULL pointer dereference
    544ce65cb52a ARC: fix smatch warning
    358bca0bb1b4 ARC: fix spare error
    c754028a068f s390/scm: fix virtual vs physical address confusion
    4361e15ac24b ASoC: cs35l45: Prevents spinning during runtime suspend
    ab65d383a57b ASoC: cs35l45: Prevent IRQ handling when suspending/resuming
    296e487dd215 ASoC: cs35l45: Use modern pm_ops
    a2af708bb197 pinctrl: amd: Mask non-wake source pins with interrupt enabled at suspend
    0a4a682b502f Input: i8042 - add nomux quirk for Acer P459-G2-M
    274333f82597 Input: atkbd - skip ATKBD_CMD_GETID in translated mode
    88c38fd2f3e6 reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
    ad2347d78d7b Input: psmouse - enable Synaptics InterTouch for ThinkPad L14 G1
    33e42861eb95 ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
    d9a6029ddee5 tracing: Fix uaf issue when open the hist or hist_debug file
    0e73f1ba602d MIPS: dts: loongson: drop incorrect dwmac fallback compatible
    98707906c64e stmmac: dwmac-loongson: drop useless check for compatible fallback
    0df76142ca21 tracing: Add size check when printing trace_marker output
    f3dc260cd5f2 tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
    cd70be63167a jbd2: fix soft lockup in journal_finish_inode_data_buffers()
    6e567410d6d3 efi/loongarch: Use load address to calculate kernel entry address
    4dceffd823b7 platform/x86: intel-vbtn: Fix missing tablet-mode-switch events
    cdd8512a5574 neighbour: Don't let neigh_forced_gc() disable preemption for long
    ff89e507b231 drm/crtc: Fix uninit-value bug in drm_mode_setcrtc
    5c480a6966c5 jbd2: increase the journal IO's priority
    6459656095e4 jbd2: correct the printing of write_flags in jbd2_write_superblock()
    262853dc685b soundwire: intel_ace2x: fix AC timing setting for ACE2.x
    8c8343127735 clk: rockchip: rk3128: Fix HCLK_OTG gate register
    351bcf3a3772 clk: rockchip: rk3568: Add PLL rate for 292.5MHz
    4dd2d87c88fd LoongArch: Preserve syscall nr across execve()
    4d8121aa13fd LoongArch: Set unwind stack type to unknown rather than set error flag
    10d9f8ed6daf LoongArch: Apply dynamic relocations for LLD
    3584858bfd34 hwmon: (corsair-psu) Fix probe when built-in
    3f7109ec1fa5 ALSA: pcmtest: stop timer before buffer is released
    b92ad44a1b32 drm/exynos: fix a wrong error checking
    2debe511c1d2 drm/exynos: fix a potential error pointer dereference
    fb26de4a86e1 drm/amdgpu: Add NULL checks for function pointers
    7fc3d8ea1a67 drm/amd/display: Add monitor patch for specific eDP
    a0827b9172ee arm64: dts: rockchip: Fix PCI node addresses on rk3399-gru
    c52d545c1e31 nvme: fix deadlock between reset and scan
    946fd64ba361 nvme: prevent potential spectre v1 gadget
    8b2a6a3692e2 nvme-ioctl: move capable() admin check to the end
    8884a56d2154 nvme: ensure reset state check ordering
    cc5b051eeb48 nvme: introduce helper function to get ctrl state
    8392d3234721 ASoC: da7219: Support low DC impedance headset
    55aba82746bd net/tg3: fix race condition in tg3_reset_task()
    06cb2064b0bf pds_vdpa: set features order
    d3bb92beda4a pds_vdpa: clear config callback when status goes to 0
    53fff954e77c pds_vdpa: fix up format-truncation complaint
    3ad7bf5e57c9 ASoC: SOF: ipc4-topology: Correct data structures for the GAIN module
    330c0f19b393 ASoC: SOF: ipc4-topology: Correct data structures for the SRC module
    5713ab41ace4 ASoC: hdac_hda: Conditionally register dais for HDMI and Analog
    8fa621053995 ASoC: amd: yc: Add DMI entry to support System76 Pangolin 13
    fa60f8fac637 nouveau/tu102: flush all pdbs on vmm flush
    3c124f09b7ff ASoC: SOF: sof-audio: Modify logic for enabling/disabling topology cores
    e8879e7a7b4e ASoC: SOF: ipc4-topology: Add core_mask in struct snd_sof_pipeline
    e1d391310724 ASoC: Intel: skl_hda_dsp_generic: Drop HDMI routes when HDMI is not available
    f369cf7e94b4 ASoC: fsl_xcvr: refine the requested phy clock frequency
    8f82f2e4d9c4 ASoC: rt5650: add mutex to avoid the jack detection failure
    d568aed978da ASoC: fsl_xcvr: Enable 2 * TX bit clock for spdif only case
    193d4bbe81fe ASoC: cs43130: Fix incorrect frame delay configuration
    655e69056d09 ASoC: cs43130: Fix the position of const qualifier
    ab10ac262156 ASoC: Intel: Skylake: mem leak in skl register function
    d7368ad5313e ASoC: SOF: topology: Fix mem leak in sof_dai_load()
    5a8bceaeaad0 ASoC: nau8822: Fix incorrect type in assignment and cast to restricted __be16
    07c7fd07b531 ASoC: Intel: Skylake: Fix mem leak in few functions
    8dada1d452ca arm64: dts: rockchip: fix rk356x pcie msg interrupt name
    73ed4a6ea7d3 ASoC: wm8974: Correct boost mixer inputs
    3290bb89e74d ASoC: amd: yc: Add HP 255 G10 into quirk table
    bade0c1e7569 hwtracing: hisi_ptt: Don't try to attach a task
    5e67b92b8b2b hwtracing: hisi_ptt: Handle the interrupt in hardirq context
    a4848c45a3f0 nvme-core: check for too small lba shift
    511f602527ac blk-mq: don't count completed flush data request as inflight in case of quiesce
    379af079c427 Revert "drm/prime: Unexport helpers for fd/handle conversion"
    5ca518149d46 smb: client, common: fix fortify warnings
    941887dc5ed4 drm/amdgpu: Use another offset for GC 9.4.3 remap
    ccba04281640 drm/amdkfd: Free gang_ctx_bo and wptr_bo in pqm_uninit
    61dfdb779048 drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
    6396b551f286 drm/amd/display: update dcn315 lpddr pstate latency
    867ecd8970d3 drm/amdkfd: Use common function for IP version check
    541cb7618a15 drm/amdgpu: Do not issue gpu reset from nbio v7_9 bif interrupt
    da29e4012f41 block: warn once for each partition in bio_check_ro()
    0c7df8c241ff io_uring: use fget/fput consistently
    75cc56afb28b nvme-core: fix a memory leak in nvme_ns_info_from_identify()
    a47f3a83411f ALSA: hda: intel-nhlt: Ignore vbps when looking for DMIC 32 bps format
    c455b17aff82 debugfs: fix automount d_fsdata usage
    0e25eac37f7a wifi: mac80211: handle 320 MHz in ieee80211_ht_cap_ie_to_sta_ht_cap
    3f7af987d55b wifi: avoid offset calculation on NULL pointer
    35a59d349ab0 wifi: cfg80211: lock wiphy mutex for rfkill poll
    5814deb5a5b0 mptcp: fix uninit-value in mptcp_incoming_options
    948cb8b2d5d0 ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
    d273f33bb1e3 pinctrl: lochnagar: Don't build on MIPS
    b12a331178d4 kunit: Reset suite counter right before running tests
    858c0840ef02 kunit: Warn if tests are slow
    f88c602fd0ab pinctrl: s32cc: Avoid possible string truncation
    2525d1ba225b f2fs: explicitly null-terminate the xattr list

(From OE-Core rev: cc0f087ec49dcf89ccf29475101a739c27e13d78)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
b862b4aee4 linux-yocto/6.6: beaglebone: drop nonassignable kernel options
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Kevin Hao
    Email: kexin.hao@windriver.com
    Subject: beaglebone: Drop the nonassignable kernel options
    Date: Sat, 20 Jan 2024 20:19:20 +0800

    These kernel options aren't assignable. In the previous version of the
    kernel, these options were selected by DRM_FBDEV_EMULATION. But due to
    the commit 43049f17b526 ("drm/i915: Implement dedicated fbdev I/O
    helpers") in the new version of kernel, they are no longer enabled
    by DRM_FBDEV_EMULATION. Then the kernel config check emits unmatch
    warning for them. Drop all of them to fix these warnings.

    Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: f993871b656927b5be019e7ff788c6f53cb4caf6)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Bruce Ashfield
4a6057d6a8 linux-yocto/6.6: features/qat/qat.cfg: enable CONFIG_PCIEAER
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Naveen Saini
    Email: naveen.kumar.saini@intel.com
    Subject: features/qat/qat.cfg: enable CONFIG_PCIEAER
    Date: Fri, 19 Jan 2024 13:29:57 +0800

    Error:
    4.24.0-00005/qat17/quickassist/qat/drivers/crypto/qat/
    qat_common/../../../../compat/qat_compat.c:401:19: error:
    'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
    |   401 |         if (!dev->aer_cap)
    |       |                   ^~~~~~~
    |       |                   ats_cap

    296455ade1/include/linux/pci.h (L339)

    Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: b4ebf4268369c99432d2c8dc98ea13ca594c1748)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Alexis Lothoré
d1ac9bb1bd testimage: retrieve ptests directory when ptests fail
TESTIMAGE_FAILED_QA_ARTIFACTS is set with a default, minimal list of files
to retrieve whenever a runtime test fails.
Add ptests directory to the list so we can get ptests artifacts (eg: logs)
whenever a ptest fails. By appending the ptest directory with the
multiconfig component in the path, only failing ptests will lead to
corresponding ptest artifacts retrieval, instead of all ptests artifacts
retrieval. While doing this addition, reinforce default value using "="
operator to make sure to get the default list in any case.

(From OE-Core rev: 9357ab6c47f0a0a7000cb18358bc9775fd54e1f7)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Richard Purdie
62049bfc7a ptest-packagelists: Mark python3 as problematic on riscv64
Most ptests run on on riscv64 but for some reason python3 hangs. Move
it to the problem list until this is resolved so we can establish a
"known to work" baseline.

(was still going after 42000s, long after everything else finished)

(From OE-Core rev: adc448b19e80f6343050f4c527acc63a161c88ca)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Richard Purdie
346d40b99f mirrors: Allow shallow glibc to work correctly
The intention of the mirror code was to allow faster cloning of glibc.
This wasn't quite working since the full clone was needed by glibc-tests
or cross-localedef-native. I noticed this when I updated a build and it
was trying to unpack glibc but fetch cross-localedef-native.

Add entries to cover these and restore the faster cloning for glibc
and realted recipes.

(From OE-Core rev: 7891b5fb96f757274bebbb77df634e7af9054298)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Alexander Kanavin
f66c8923c2 file: enable additional internal compressor support
This is an extension of
https://git.yoctoproject.org/poky/commit/meta/recipes-devtools/file?h=master&id=52a31bd5ba90713af82822047c3813afc31421f8
and the rationale is the same.

The issue was exposed by recent ptest support in xz, which packages .lz files
into the xz-ptest package which resulted in reproducibility fails:
http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240203-fdpg888c/packages/diff-html/

(From OE-Core rev: d740530daf4ad4e67a323bf39e968e930f208543)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Alexander Kanavin
d426872674 lzlib: add a recipe
This is needed for rpm reproducibility, as otherwise libmagic
will call an external lzip executable, which is both
non-threadsafe, and non-deterministic w.r.t sysroot presence.

(From OE-Core rev: 0e4bde86e1aa499274fc85d01d36a74c3401762e)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:59:06 +00:00
Simone Weiß
20b1e729e1 gnutls: print log if ptest fails
There are AB-INT issues with the gnutls tests and the test for naked-alerts is
failing. Tweak the run-ptest script to save the error log to obtain more infos
for debugging. Related to [YOCTO #15352].

(From OE-Core rev: 9665d272df34bcb2811a2f7a1afccabe4bebc9d1)

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>
2024-02-08 10:53:13 +00:00
Martin Jansa
81d90fc81c package_rpm: add RPMBUILD_EXTRA_PARAMS variable
* e.g. for DISTROs which define extra user-defined fields with
  PACKAGE_ADD_METADATA/PACKAGE_ADD_METADATA_RPM
  as undefined fields in packagedata are fatal error for rpmbuild:
  "error: line 9: Unknown tag: Author: Unspecified"
  as shown in:
  http://errors.yoctoproject.org/Errors/Details/751706/
  with "Author" field added with:

  PACKAGE_CLASSES = "package_rpm"
  PACKAGE_ADD_AUTHOR_METADATA = "test-author"
  PACKAGE_ADD_METADATA = "Author: ${PACKAGE_ADD_AUTHOR_METADATA}"

  to fix rpm build you can use:
  RPMBUILD_EXTRA_PARAMS = " --define '_Author Author'"
  keep in mind that this doesn't cause this Author field to be
  added in .rpm, it just avoids the BUILDSPEC failure.

  and for ipk build:
  OPKG_MAKE_INDEX_EXTRA_PARAMS = "-f"

  alternatively you can avoid additional packagedata fields ending
  in the package manager (if you use them only with buildhistory
  or packagedata) with:
  PACKAGE_ADD_METADATA_RPM = ""
  PACKAGE_ADD_METADATA_IPK = ""
  PACKAGE_ADD_METADATA_DEP = ""

(From OE-Core rev: 31030e7a19a27ad424b997fad36ee4f633ce0d63)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:53:13 +00:00
Martin Jansa
77f5f99fcf package_manager: ipk: add OPKG_MAKE_INDEX_EXTRA_PARAMS variable
* can be used to pass e.g. -f param to preserve user-defined fields
  in the index as added in:
  https://git.yoctoproject.org/opkg-utils/commit/opkg-make-index?id=13f6281d24e17199e0fef6c2984419372ea0f86f

* otherwise it will show a lot of messages like:
  "Lost field Author <value>"
  for every package in the feed

(From OE-Core rev: 6dc772fd9d5c2d90a6e32cfa4bc46ca0221f1b7f)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:53:13 +00:00
Yogita Urade
eba805ace4 tiff: fix CVE-2023-52355 and CVE-2023-52356
CVE-2023-52355:
An out-of-memory flaw was found in libtiff that could be
triggered by passing a crafted tiff file to the
TIFFRasterScanlineSize64() API. This flaw allows a remote
attacker to cause a denial of service via a crafted input
with a size smaller than 379 KB.
Issue fixed by providing a documentation update.

CVE-2023-52356:
A segment fault (SEGV) flaw was found in libtiff that could
be triggered by passing a crafted tiff file to the
TIFFReadRGBATileExt() API. This flaw allows a remote attacker
to cause a heap-buffer overflow, leading to a denial of service.

References:
https://nvd.nist.gov/vuln/detail/CVE-2023-52355
https://security-tracker.debian.org/tracker/CVE-2023-52355
https://gitlab.com/libtiff/libtiff/-/issues/621
https://gitlab.com/libtiff/libtiff/-/merge_requests/553
https://nvd.nist.gov/vuln/detail/CVE-2023-52356
https://gitlab.com/libtiff/libtiff/-/issues/622
https://gitlab.com/libtiff/libtiff/-/merge_requests/546

(From OE-Core rev: 831d7a2fffb3dec94571289292f0940bc7ecd70a)

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>
2024-02-08 10:53:13 +00:00
Alexander Kanavin
57d82f92c1 classes/package_rpm: streamline the logic in one of the condition blocks
(From OE-Core rev: e6a8ca554509c0edf9fd36ced88165dc3caf0e87)

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>
2024-02-08 10:53:13 +00:00
Alexander Kanavin
eda2fe2ac0 classes/package_rpm: additionally escape \ and " in filenames
As specified in:
https://github.com/rpm-software-management/rpm/blob/rpm-4.19.x/docs/manual/spec.md#shell-globbing

(From OE-Core rev: 78d22c80c3f3a9f82c9f0d3dd1c591d395e02918)

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>
2024-02-08 10:53:13 +00:00
Maanya Goenka
3ef63361b4 toolchain-shar-relocate: allow 'find' access to libraries in symlinked directories
If the '/' is not added to the end of the dynamic loader path, only directories
that are not symlinks will be looked into for libraries such as ld-linux*,
so the slash is added to allow the 'find' command to have symlinked directory access too.

(From OE-Core rev: 8468f24e3e81d5248eb1424e43accd2ea8bf0568)

Signed-off-by: Maanya Goenka <maanyagoenka@microsoft.com>
Signed-off-by : Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:53:13 +00:00
Adithya Balakumar
e685773513 wic: implement reproducible Disk GUID
GPT based disks have a disk guid apart from the 32-bit disk identifier.
This commit implements reproducible disk guid by using SOURCE_DATE_EPOCH (if available) value as a random seed

(From OE-Core rev: 150e079589e207fe174d2dceb40cd8f3d3972c5a)

Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-08 10:53:13 +00:00
Trevor Gamblin
9c1d226fad patchtest.README: update mailing list
The contributing info still lists the main Yocto list, but patchtest is
in oe-core, so simplify the instructions and put the right mailing list
in.

(From OE-Core rev: 2cfad933c334b3d7f49bc8ca62f9d443428d4523)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 15:01:16 +00:00
Richard Purdie
92d6170c32 oeqa/runtime: Move files from oe-core to bsp layer
These were accidentally added to oe-core, move to the correct place in this
layer.

(From meta-yocto rev: d3d9f79d759e5c7818f17bf1331230d0d53cde1a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 12:27:21 +00:00
Richard Purdie
18e879ae05 meta-yocto-bsp: Remove accidentally added files
Move accidentally added files to the correct layer.

(From OE-Core rev: ad251812b740a06c0f8f2dab637a61cfff73c484)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 12:27:21 +00:00
Richard Purdie
5c55ed57e4 ltp: Try re-enabling problematic test
The proc01 test used to hang when reading /proc/kmsg. This issue could
have been a number of issues which were fixed in the meantime. Try
re-enabling the test to see if the issue is still present.

(From OE-Core rev: 8832ff65ba91587fbe739173bb2d33119a1c6f1b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Richard Purdie
0513fd279c ltp: Enable extra test groups
Petr Vorel (upstream ltp maintainer) recommended some extra tests we should run.
Enable these for extra test coverage.

(From OE-Core rev: ebae56999dc2ed7abb65062a9abee53827c3bad3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Alexis Lothoré
149f42b59e patchtest-send-results: properly parse test status
patchtest-send-results currently search the word "FAIL" in the whole
testresults file to decide whether it should send a report to patch
submitter or not. This global search can lead to false positives, for
example if the commit subject contains the word "FAIL" (as observed in
[1])

Prevent those false positives by explicitely parsing the test status from
each line. Each test result line, generated by the patchtest script, is
expected to have the following format:
<STATUS>: <some info, depending on the status>

[1] https://lore.kernel.org/openembedded-core/0101018d79bfe020-06f2ce89-ea19-456b-92e7-66ee1c710fd1-000000@us-west-2.amazonses.com/

(From OE-Core rev: 3567c21af8ed65448f9325ee3fe85b8be839e1b5)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Alexis Lothoré
d0b817d946 patchtest-send-results: remove unused variable
result_basename is declared but not used in the script

(From OE-Core rev: c2ba125dc30fb1ef0bf96152863db22159f4b31c)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Chen Qi
6cc6246fd0 multilib_global.bbclass: fix parsing error with no kernel module split
The problem could be reproduced with the following settings:
MACHINE = "qemux86-64"
KERNEL_SPLIT_MODULES = "0"
require conf/multilib.conf
MULTILIBS ?= "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 ?= "core2-32"

The error message is as below:
  bb.data_smart.ExpansionError: Failure expanding variable KERNEL_VERSION_PKG_NAME, expression was ${@legitimize_package_name(d.getVar('KERNEL_VERSION'))} which triggered exception TypeError: expected string or bytes-like object
  The variable dependency chain for the failure is: KERNEL_VERSION_PKG_NAME -> RPROVIDES:kernel-modules

This is because multilib_virtclass_handler_global function in
multilib_global.bbclass deletes KERNEL_VERSION. So we need to handle
such situation. We'll also need to delete KERNEL_VERSION_PKG_NAME
to avoid this parsing error.

(From OE-Core rev: 43dd497bc161ac44faecfdff052db03679dbb4f8)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Robert Yang
b0b9d8768a gnu-config: Update to latest version
* Git log
948ae97 Update copyright years
471d814 config.sub: recognize nanoMIPS CPUs
ee6ea2f config.guess: recognize ironclad OS
5e2f254 config.sub: recognize ironclad OS
0e4a5b3 config.sub: recognize *-*-uefi
d21518c Recognize the VideoCore 4 processor
a9a369e config.guess: detect LLVM-libc via features.h
5b83c2f config.sub: add LLVM-libc support

The PV 20240101 is from SRCREV 948ae97ca5703224bd3eada06b7a69f40dd15a02.

(From OE-Core rev: b996184a13abf1e38b9cee5ed0fd008b07999bd8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
baruch@tkos.co.il
7c230aa0e9 overlayfs: add missing closing parenthesis in selftest
Cc: Vyacheslav Yurkov <uvv.mail@gmail.com>
(From OE-Core rev: aebd526cdfea738745e57183b1015fd327bd94df)

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Khem Raj
9d2e7189e4 strace: Upgrade to 6.7
License-Update: Update copyright years [1]
Implements new syscalls from kernel 6.7+ for complete changelog see [2]

[1] d74413095a
[2] https://github.com/strace/strace/releases/tag/v6.7

(From OE-Core rev: f97bb0063d7365ac059215e32044f6d9461d324b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Jose Quaresma
bca5c911a7 systemd: pack pre-defined pcrlock files installed with tpm2
The new pcrlock tool systemd-pcrlock [1] is installed when
the tpm2 and openssl package config is enabled and with them
some pre-defined pcrlock files is installed on the target.

[1] https://github.com/systemd/systemd/pull/28891

(From OE-Core rev: 0ee7002d8f6bfca7b275c082d032936494dc7e8e)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Jon Mason
cc740bf63d arm/armv*: add all the Arm tunes in GCC 13.2.0
(From OE-Core rev: 5af154b66459ac05409619c81dd247c252b673f3)

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Jon Mason
e71f54c6ef tunes/sve: Add support for sve2 instructions
Add support for SVE2 and add to 8-2a, as it can be used there.
Also, clean up the comments

(From OE-Core rev: 683443d57cb18b3b54245b1a09b6e5d2bae4f5d0)

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Valek Andrej
b94e596464 glibc: Refresh CVE status w.r.t 2.39 release
- drop irrelevant CVEs for 2.39 release

(From OE-Core rev: bea91fb120fef012c1501d470f85ee60a672d1e3)

Signed-off-by: Valek Andrej <andrej.v@skyrain.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Khem Raj
6d503a7f39 glibc: Upgrade to 2.39
License-Update: Relicenses the IBM portions of resolv/base64.c and
resolv/res_debug.c to a new license that does not have use-limited
patent language [1]

Upgrade localdef to get glibc 2.39 build fixes
Details of release [2]

Add fix for mips clone3 crash

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f
[2] https://sourceware.org/glibc/wiki/Release/2.39

(From OE-Core rev: 41ee98ea7e029515a94835952b8563097150f456)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
Michael Opdenacker
f4fc8e6232 release-notes-4.3: fix spacing
This fixes an ugly formatting issue in the HTML output

(From yocto-docs rev: 79530aeb97976b9a63bf04ed247f98061fc9d737)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
Michael Opdenacker
559313fe03 docs: remove support for mickledore (4.2) release
(From yocto-docs rev: a6c28b89b40df38d6456d1a3ddb42d0231759b41)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
Michael Opdenacker
4697b6454c dev-manual: start: remove idle line
This fixes an issue introduced by d8fdec653f96c4ddcb705ff0ef17ed641afcfe2d

(From yocto-docs rev: bd970a2101df6e7437fce9cd74deb8bb86aedbd0)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
baruch@tkos.co.il
c71f5236a4 contributor-guide: fix lore URL
Cc: Michael Opdenacker <michael.opdenacker@bootlin.com>
(From yocto-docs rev: 5962a09a120681c1328e05335c2f14fad06c63ce)

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
Simone Weiß
8ae9a598ce dev-manual: gen-tapdevs need iptables installed
Add the hint to the test setup that runqemu-gen-tapdevs will need the
iptables package installed.

(From yocto-docs rev: 4a688fb991282bf606f080d748f5290d988e4354)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
Lee Chee Yang
596d5bb6fa migration-guide: add release notes for 4.0.16
(From yocto-docs rev: 5a7a60cef173e8e73949629129182471b0a8f4b9)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
Simone Weiß
27d2c6dd1a bsp-guide: correct formfactor recipe name
This recipe was renamed some time ago. Update the name here as well for
consistency.

(From yocto-docs rev: cbbda4a95e0c6d5b669cf3bc844b6bb5cca881d3)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:30:34 +00:00
Khem Raj
c408737f04 syslinux: Disable error on implicit-function-declaration
syslinux has vendored copy of ext2fs/ext2_fs.h but uses ext2fs/ext2fs.h
from e2fsprogs package, however, ext2fs/ext2fs.h has dependencies on
ext2fs/ext2_fs.h coming from e2fsprogs package as these both headers
come from same package, here syslinux uses ext2fs.h from e2fsprogs but
supplies its own copy of ext2_fs.h which maybe out of sync and that
results in warnings about implicit implicit-function-declarations
e.g.

recipe-sysroot/usr/include/ext2fs/ext2fs.h:727:16: error: implicit declaration of function 'ext2fs_has_feature_gdt_csum' [-Wimplicit-function-declaration]
|   727 |                ext2fs_has_feature_gdt_csum(fs->super);
|       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~

ext2fs_has_feature_gdt_csum here comes from newer version of
ext2fs/ext2_fs.h but missing from vendored copy, hence the warning.

With gcc-14 this warning is treated as error by default, which breaks
the build, so lets treat it as warning only.

All these functions are never used in syslinux, so functionality-wise we
are fine.

(From OE-Core rev: a2b30108055e68b62fdad7319d7d569bc38a07b4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Richard Purdie
25868ee2cc qemu: Upgrade 8.2.0 -> 8.2.1
This was a bugfix release containing several important fixes according to upstream.

Drop a backported patch.

(From OE-Core rev: 1715d0907d372e787c054a5509690a2719acfed0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Khem Raj
3558ee528f qemu-native: Use inherit_defer for including native class
This helps working with native qemu recipes with devtool, since devtool
inserts an internal class called devtool-source resulting in

ERROR: QA Issue: qemu-system-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes i
nherited after native/nativesdk: devtool-source.bbclass [native-last]
ERROR: Fatal QA errors were found, failing task.
ERROR: Parsing halted due to errors, see error messages above
ERROR: Command execution failed:

(From OE-Core rev: 6754387d7bd397700cef029ae6df86ff8cb3a4af)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Khem Raj
b0e5542e7a binutils: Upgrade to binutils 2.42
Release Notes are here [1]

[1] https://sourceware.org/pipermail/binutils/2024-January/132213.html

(From OE-Core rev: 795af50ed4005c097069a65f67eb604da9f41b92)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Robert Joslyn
17a2c6e38d gtk: Set CVE_PRODUCT
The CPE vendor is "gnome" and the CPE product is "gtk" for both gtk+3
and gtk4 recipes. Set CVE_PRODUCT so we properly match the NVD database.

(From OE-Core rev: 253f5f745d66acefcc739f1c9ad2dd46be630e47)

Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Robert Joslyn
8c42532be5 curl: Update to 8.6.0
This is a bug fix and feature update. Release notes are available at:
https://curl.se/changes.html#8_6_0

Disable test 1478, it's comparing help output to documentation.

License-Update: Copyright year updated
(From OE-Core rev: efebd6a8824769137a21674e2bfe1c059a41758a)

Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Richard Purdie
3fda807ab0 python3-markupsafe: Switch to python_setuptools_build_meta
Move away from the outdated setuptools to more modern build
classes.

(From OE-Core rev: dd0de1f1dcbbc389ceb1a032c393e5148e01ad98)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Richard Purdie
f1921727d8 python3-markupsafe: upgrade 2.1.3 -> 2.1.5
Note that 2.1.4 broke python3-jinja2 so skip to 2.1.5 which doesn't.

(From OE-Core rev: 697a249f27d16adeeee074d0baad83ad67c7a9e6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Petr Vorel
b6abbf4402 ltp: Update to 20240129
Removed patch accepted upstream as
8c53cc947 ("testcases/kernel/syscalls/fcntl: define _LARGEFILE64_SOURCE")

Rebase runtest/mm patch.

[RP:
Drop connectors group since dropped upstream:
9b642d89c0

Drop fsx too:
fb2b6a0b3c
]

(From OE-Core rev: b2867cac5ac58862469f0c6c056607abeca0b0d0)

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Richard Purdie
0a9e45a413 oeqa/selftest/bbtests: Tweak to use no-gplv3 inc file
With changes to gcc-runtime around improving debugging, python modules
are needed but this pulls in bash which breaks the tests.

Add an exclusion to the no-gplv3 include file to handle this.

(From OE-Core rev: 803060fa4e8fe98ac8f987b80162110d06788946)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Richard Purdie
34c747f017 conf: Move selftest config to dedicated inc file
Create a no-gplv3.inc file based upon knowledge currently encoded into one
of the selftests.

There is a risk that people try and take this idea too far, or have unrealistic
expectations. That said, it would be better to collect this knowledge together
in one location rather than handling it piecemeal.

Therefore move the configuration information from the test into a common
incude file.

(From OE-Core rev: fb822fb2029c69934cf43073f95b396c2d60298e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:10 +00:00
Peter Marko
670bc40b69 openssl: Upgrade 3.2.0 -> 3.2.1
Fixes CVE-2024-0727 and CVE-2023-6237

Removed included patch backports.

New module was implemented in tests and needs to be installed
to successfully pass 04-test_provider.t test.

Release information:
https://github.com/openssl/openssl/blob/openssl-3.2/NEWS.md#major-changes-between-openssl-320-and-openssl-321-30-jan-2024

(From OE-Core rev: b50f1c4ccac12e9dbdeb5a6fec0413c9cd901d88)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:09 +00:00
Khem Raj
34abe0219f sdk/assimp.py: Fix build on 32bit arches with 64bit time_t
This testcase does not work properly with 32bit systems as it houses an
older version of zlib which needs to be patched to work with 32bit
systems with 64bit time_t e.g. mips o32.

Apply a needed patch via sed logic to fix this issue.

Enable bundled zlib in build, which means we do not require zlib to be
available in SDK and it can be built for more variety of images.

Upgrade the testcase to use 5.3.1 release of assimp and add cmake option to
enable bundled zlib explicitly.

(From OE-Core rev: 3c922fb61aa4f3bbb5c4ef35639acdf263c4313c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:09 +00:00
Tim Orling
61b199d103 libxml-parser-perl: upgrade 2.46 -> 2.47
* Drop CheckLib.pm patch; no longer applies
* Change to CPAN_MIRROR for SRC_URI
* Drop SRC_URI[md5sum]
* Drop redundant ptest-perl/run-ptest; ptest-perl inherit does this
* Drop sed for Expat/Makefile; no longer shipped
* Inherit pkgconfig to find expat lib
* Patch Makefile.PL to not try to load host expat

License-Update: Use LICENSE file; change to Artistic-2.0

https://metacpan.org/dist/XML-Parser/changes
2.47 2023-12-28 (by Todd Rinaldo)
    - #84 use $fh instead of $foo
	- #85 Fix typo in documentation
	- #89 Devel::CheckLib to from 0.99 -> 1.14
	- Devel::CheckLibn 1.16
	- #91 POD fix for verbatim text
	- #97 Add a LICENSE file
	- #94 Don't ship Expat/Makefile
	- Various github workflow improvements. Windows is still not working.

(From OE-Core rev: 5c51810772a6611a37b2c1b0a32d9558007c4cf7)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-05 14:06:09 +00:00
Yi Zhao
b73804429c rpm: add missing dependencies for packageconfig
Add depenency libselinux for PACKAGECONFIG[selinux].
Add depenency audit for PACKAGECONFIG[audit].

(From OE-Core rev: 97b5d0c85af0b667854eea90ace0a8c2f51ecefe)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 22:08:26 +00:00
Khem Raj
e41515b5f9 systemtap: Backport GCC-14 related calloc fixes
(From OE-Core rev: 06ad41e0097902d46ad5affd99b1c716dbb27d71)

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>
2024-02-03 22:08:26 +00:00
Khem Raj
a7ed494c4a kexec-tools: Fix build with gas 2.42
(From OE-Core rev: ed4c21d70e47c2c72d9fd30b7a744cc33fb660a5)

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>
2024-02-03 22:08:26 +00:00
Nick Owens
47129c2fdd systemd: recommend libelf, libdw for elfutils flag
when elfutils is enabled, the elf reading code of systemd will dlopen
libelf and libdw. these dependencies are not automatically detected and
will not work at runtime without them installed. add them to RRECOMMENDS
when elfutils is turned on in PACKAGECONFIG.

fixes https://bugzilla.yoctoproject.org/show_bug.cgi?id=15379

(From OE-Core rev: f7366f44fd7d0bc5a5b073cec9c68ffd8258903c)

Signed-off-by: Nick Owens <nick.owens@eero.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 22:08:26 +00:00
Wang Mingyu
8be2d9aa68 pkgconf: upgrade 2.0.3 -> 2.1.0
Changelog:
===========
* Do not flatten the solver solution into the original world used as
  input to the solver.
* Fix warnings with GCC 14 -Walloc-size.
* Add --solution to the pkgconf CLI to dump the solver state.
* Improve the --digraph output to clarify cancelled edges in a given
  solution.
* Demote requires dependencies to requires.private when a parent
  dependency is pulled in via requires.private.
* Trim trailing whitespace when processing package arguments.
* Avoid strncmp() in --modversion version comparison.
* Update autoconf compile flag checking macro.
* Add system default path configuration to Meson.
* Fix order of PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH element processing.

(From OE-Core rev: eacbec50fab40dd5c6b16b018806800526dfbfab)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
444a4a1c04 orc: upgrade 0.4.34 -> 0.4.36
(From OE-Core rev: c93fc93eae61dbf5759e26196cfd11b8b131fed0)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
50274c4521 repo: upgrade 2.40 -> 2.41
(From OE-Core rev: 53a52f3842c7c273df92cd9f1d365f1b754b2bc3)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
ea169466c9 nghttp2: upgrade 1.58.0 -> 1.59.0
(From OE-Core rev: 4414f0297c7d1b84ec4c1363fe8a91b6e5bd9695)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
8a0c164739 liburi-perl: upgrade 5.21 -> 5.25
Changelog:
==============
- cache scheme so it never attempt to load it again
- Really revert "use Scalar::Util::reftype instead of ref to check for
  ARRAY"
- Revert the reftype change introduced in 5.22 as it causes warnings.
- Use Scalar::Util::reftype instead of ref to check for ARRAY

(From OE-Core rev: 84fb221f02abb8e34a3fc8efab7c2725e6c1d144)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
dcfc159d47 libsolv: upgrade 0.7.27 -> 0.7.28
- selected bug fixes:
  * disable choice rules for Conda
  * build for multiple python versions on SUSE

(From OE-Core rev: ce3960526f7658bbb2fb9eeeb4652386be29c98d)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
f3fc26a2b4 libpng: upgrade 1.6.40 -> 1.6.41
Changelog:
===========
- Added SIMD-optimized code for the Loongarch LSX hardware.
- Fixed the run-time discovery of MIPS MSA hardware.
- Fixed an off-by-one error in the function 'png_do_check_palette_indexes',
  which failed to recognize errors that might have existed in the first
  column of a broken palette-encoded image. This was a benign regression
  accidentally introduced in libpng-1.6.33. No pixel was harmed.
- Fixed, improved and modernized the contrib/pngminus programs, i.e.,
  png2pnm.c and pnm2png.c
- Removed old and peculiar portability hacks that were meant to silence
  warnings issued by gcc version 7.1 alone.
- Fixed and modernized the CMake file, and raised the minimum required
  CMake version from 3.1 to 3.6.
- Allowed the configure script to disable the building of auxiliary tools
  and tests, thus catching up with the CMake file.
- Fixed a build issue on Mac.
- Moved the Autoconf macro files to scripts/autoconf.
- Moved the CMake files (except for the main CMakeLists.txt) to
  scripts/cmake and moved the list of their contributing authors to
  scripts/cmake/AUTHORS.md
- Updated the CI configurations and scripts.
- Relicensed the CI scripts to the MIT License.
- Improved the test coverage.

License-Update: Copyright year updated to 2024.

(From OE-Core rev: 4e0ec5769416938a22f64dc4767480acf76fd247)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
5762e97b01 libidn2: upgrade 2.3.4 -> 2.3.7
Changelog:
===========
-Really include tests/standalone.sh in tarball.
-Bump libtool version numbers to reflect API/ABI addition.
-Include tests/standalone.sh in tarball.

License-Update: Copyright year updated to 2024.

(From OE-Core rev: 009c7a1fed30bcb78d5fa90bbb9e38a7604cd0a5)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
641369f677 gstreamer: upgrade 1.22.8 -> 1.22.9
Changelog:
 https://gstreamer.freedesktop.org/releases/1.22

(From OE-Core rev: 30b3835c367ff1de00d24cddf3bd920ea29f15c5)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
b0d34bdd61 gnupg: upgrade 2.4.3 -> 2.4.4
fix-ldap.patch
removed since it's included in 2.4.4.

0001-configure.ac-use-a-custom-value-for-the-location-of-.patch
0004-autogen.sh-fix-find-version-for-beta-checking.patch
relocate.patch
refreshed for 2.4.4

Changelog:
 https://dev.gnupg.org/T6578

(From OE-Core rev: 35ad01e17e3ba01f87902ab121247bfa600db225)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
6eb40b1baf ed: upgrade 1.19 -> 1.20
Changelog:
==========
* Implement options '+line', '+/RE', and '+?RE'.
* main.c: New option '--unsafe-names'.
* buffer.c (warned, set_warned): New functions.
* main_loop.c: Intervening cmds don't make a second 'e' or 'q' fail.
* io.c (write_file): Create missing intermediate directories.
* ed.texi: Improve description of commands 'e', 'f', 'q'.
* main.c, ed.texi: Improve description of exit status.
* configure, Makefile.in: New variable 'MAKEINFO'.
* INSTALL: Document use of CFLAGS+='--std=c99 -D_POSIX_C_SOURCE=2'.

License-Update: Copyright year updated to 2024.

(From OE-Core rev: 21c77ffa2800bca26a8060ddaeb9b18ae3a136bf)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
8a03d734c2 dos2unix: upgrade 7.5.1 -> 7.5.2
License-Update: Copyright year updated to 2024

(From OE-Core rev: f49b6d0c9c4b000a5ba8bc797dfe8c2cf5f30d27)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
1342a35b0c diffstat: upgrade 1.65 -> 1.66
avoid-check-user-break-cc.patch
refreshed for 1.66

License-Update: Copyright year updated to 2024.

Changelog:
==========
-improve handling of git diff's
-update install-sh
-improve configure script checks, reducing compiler warnings

(From OE-Core rev: 9e070b444263e7d1e1a88eec62135e77a204bf92)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
628750d280 createrepo-c: upgrade 1.0.2 -> 1.0.3
(From OE-Core rev: 37f62133ef093fe934dcd42b65b27afe384d458a)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
9c262190b7 lzip: upgrade 1.23 -> 1.24
Changelog:
===========
* New options '--empty-error' and '--marking-error'.
* main.cc: Reformat file diagnostics as 'PROGRAM: FILE: MESSAGE'.
  (show_option_error): New function showing argument and option name.
  (main): Make -o preserve date/mode/owner if 1 input file.
  (open_outstream): Create missing intermediate directories.
* lzip.h: Rename verify_* to check_*.
* configure, Makefile.in: New variable 'MAKEINFO'.
* testsuite: New test files fox6.lz, fox6_mark.lz.

(From OE-Core rev: 672bf8f8c4b81dfbe0b285204a123dbaf5058614)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
74709dcc28 libwpe: upgrade 1.14.1 -> 1.14.2
Changelog:
==========
- Allow resetting the fullscreen client to a null pointer.
- Fix usage of the _wpe_loader_interface with the static loader.

(From OE-Core rev: 91f060b5eecc63e5386e7161b4f4f42ca9ab2e19)

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>
2024-02-03 22:08:26 +00:00
Wang Mingyu
58fe3dab44 libtest-warnings-perl: upgrade 0.032 -> 0.033
Changelog:
============
- add Test2 compatibility in the test triggered by done_testing();
- new long-awaited feature (!!!) "allow_patterns", to either
  temporarily or globally exempt particular warning patterns

(From OE-Core rev: ed3940f403ea4b9b2d875595953863dd28d94b8b)

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>
2024-02-03 22:08:25 +00:00
Wang Mingyu
57777b3df5 libinput: upgrade 1.24.0 -> 1.25.0
(From OE-Core rev: 3945353d3288829bbe7626f8a079fd60264061af)

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>
2024-02-03 22:08:25 +00:00
Wang Mingyu
64fe2cc801 iso-codes: upgrade 4.15.0 -> 4.16.0
(From OE-Core rev: 80a4374fc24243c278caba30ef711956a4c8b1d9)

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>
2024-02-03 22:08:25 +00:00
Wang Mingyu
d13cc87bea ethtool: upgrade 6.6 -> 6.7
avoid_parallel_tests.patch
refreshed for 6.7

Changelog:
===========
* Feature: support for setting TCP data split
* Fix: fix new gcc14 warning
* Fix: fix SFF-8472 transceiver module identification (-m)
* Misc: code cleanup

(From OE-Core rev: 0bce08e38b496771a54d22ba494b3e818f186ef8)

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>
2024-02-03 22:08:25 +00:00
Wang Mingyu
4a9f9022bd cpio: upgrade 2.14 -> 2.15
Changelog:
==========
* Fix operation of --no-absolute-filenames --make-directories
* Restore access and modification times of symlinks in copy-in
  and copy-pass modes.

0001-configure-Include-needed-header-for-major-minor-macr.patch
revmoed since it's included in 2.15

(From OE-Core rev: c4fb7512a5b1c13234e3733cba1c4bf246c77861)

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>
2024-02-03 22:08:25 +00:00
Wang Mingyu
20aeb04f02 at-spi2-core: upgrade 2.50.0 -> 2.50.1
Changelog:
 atk-adaptor: Fix critical when no table cell array is returned.

(From OE-Core rev: 9bed9f07aea6c425748c8908641ce8a99fd5162f)

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>
2024-02-03 22:08:25 +00:00
Joe Slater
78c99af22c eudev: allow for predictable network interface names
Do not suppress renaming by eudev if 'pni-names' is
a distro feature.  The previous behavior was to always
suppress renaming.

eudev is used when sysvinit is the init manager.

(From OE-Core rev: dc7cd56df85f28f2a3a3dd97730d475522b7b0f7)

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>
2024-02-03 22:08:25 +00:00
Fabio Estevam
e1984c2e46 mesa: Upgrade 23.3.4 -> 23.3.5
Mesa 23.3.5 release notes:

https://lists.freedesktop.org/archives/mesa-announce/2024-February/000748.html

(From OE-Core rev: f740aa48c34c0abd01b6a506ba6951890ee9415f)

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Richard Purdie
83134a01ac numactl: upgrade 2.0.16 -> 2.0.17
Drop two backported patches, refresh others.

(From OE-Core rev: 63c7bf399f31420374866dc050a52e9c0700cdbd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Richard Purdie
46f235957b pseudo: Update to pull in gcc14 fix and missing statvfs64 intercept
rpm 4.19 now builds with LFS64 support enabled by default,
so it calls statvfs64() to get the space available on the
filesystem it is installing packages into.  This is not
getting caught by pseudo, so rpm is checking the host's
root filesystem, rather than the filesystem where the
build is happening.

Merge in that fix and a gcc14 fix.

(From OE-Core rev: f6d021c860b2b99f46c604149317b326f493022d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Simone Weiß
66d0c928b9 maintainers.inc: Add self for libseccomp and gnutls
(From OE-Core rev: 0096584b1468cec28fbd358de16fec86a733bb58)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Kai Kang
b3d8881edd rpm: fix dependency for package config imaevm
The dependency `ima-evm-utils` of package config `imaevm` has been
removed during rpm upgrade. Add it back, otherwise it fails to run
do_configure when the package config `imaevm` enabled.

(From OE-Core rev: 15df110b79bfa2428f70453aa6aabe7239f8e25a)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Claus Stovgaard
4c1eefd0c3 kernel-devsrc: RDEPENDS on gawk
In reality all architectures have been depending on awk / gawk for
significant time.

gawk directly since v5.10 as it introduced scripts/check-sysctl-docs

grep for /usr/bin/awk results in

* arch/x86/tools/gen-insn-attr-x86.awk:#!/usr/bin/awk -f
* scripts/ver_linux:#!/usr/bin/awk -f
* tools/arch/x86/tools/gen-insn-attr-86.awk:#!/usr/bin/awk -f

So instead of relying on other recipes adding gawk - RDEPEND on it.

(From OE-Core rev: b55b07cd3660c7ff151e9456e85c5163978a1027)

Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Claus Stovgaard
11b804bbf1 kernel-devsrc: fix RDEPENDS for make
Since kernel version 6.6 the debian package rules has been split up into
a separate rules file, resulting in a runtime requirement for make.
See scripts/package/debian/rules

Remove the rules file, for not RDEPENDS on make for something we are
not using for building modules.

For reproducing the issue on a normal qemux86-64 machine, change to the
linux-yocto-dev kernel, add the kernel-devsrc to the toolchain target
task and disable ptest in distro features. (Notice ptest adds make as
RDEPENDS for other packages hiding the issue)

when populating sdk you will see dnf failing.

 Problem: conflicting requests
  - nothing provides /usr/bin/make needed by kernel-devsrc-1.0-r0.qemux86_64 from oe-repo

(From OE-Core rev: 711fc671012820458a7a28717ee0456fa850a523)

Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Mark Hatle
dd4c941e9f tune-cortexr52: Add hard-float variant
Add the ability to specify cortexr52hf to get a version that enables the
hard-float calling convention.

(From OE-Core rev: be83bc937a76efaead4690237db25459a57673fc)

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Mark Hatle
44f77871d3 tune-cortexr5: Add hard-float variant
Add the ability to specify cortexr5hf to get a version that enables the
hard-float calling convention.

(From OE-Core rev: 992149023a896ecb38d07c54fa9ae9df82249a07)

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Mark Hatle
4019e8ecf8 feature-arm-vfp.inc: Allow hard-float on newer simd targets
Currently hard-float is dependency upon the special TUNE_CCARGS_MFPU which
contains custom -mfpu= values.  However, newer 32-bit architectures like
cortex-r52 use 'simd' instead.  There is no 'simd' entry for -mfpu=
according to the GCC manual, it's more or less automatic based on the
cpu settings.

Add this as an exception to the TUNE_CCARGS_FLOAT setting of hard or softfp.

(From OE-Core rev: f122eb8b19528e1192fd0b68b0639d84aa288155)

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Mark Hatle
4cbec71b06 tune-cortexa78.inc: Add cortexa78 tune, based on cortexa77
(From OE-Core rev: 6750384cbb4f8d90c8c32a85db66e8e3344d4ce6)

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Alexander Kanavin
8e841dbcc3 rpm: override curl executable search with just 'curl'
rpm is searching for curl executable at do_configure time
and result is non-deterministic, depending on whether curl
is in native sysroot or not:
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240201-8dcic6ea/packages/diff-html/

(From OE-Core rev: 785c39701ea17e6a539709b9ae905f7b0667bceb)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-03 21:43:35 +00:00
Bruce Ashfield
6540f65a4e linux-yocto-dev: update to v6.8
-rc1 is available, so we bump our -dev kernel to track.

(From OE-Core rev: 104f0ff88166ccd10adaaf78705d91b0fa26be24)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 11:06:17 +00:00
Bruce Ashfield
57640e0be8 lttng-modules: fix v6.8+ build
linux-yocto-dev is updating to 6.8 and lttng-modules needs to be updated
to account for upsream kernel fixes.

These patches are all grabbed from the lttng review gerrit and
backported to lttng-modules 2.13.0.

(From OE-Core rev: 9a8c065784a9b665246bebe3e635e0ca43cfb30a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 11:06:17 +00:00
Alexander Kanavin
1bd73eddb5 setftest/cdn tests: check for exceptions also in fetcher diagnostics
Otherwise the output was cluttered with irrelevant lines that were
describing missing, but excepted cache objects.

(From OE-Core rev: 146e6e88b6c9400eb2c7442a319a6240b00ecaa2)

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>
2024-02-02 11:06:17 +00:00
Quentin Schulz
ab37ae5bdd u-boot: add missing dependency on pyelftools-native
When TF-A is necessary in U-Boot binary, binman requires elftools to be
installed to be able to generate that U-boot ITB image.

TF-A is necessary for at least all Aarch64 machines, so that is a
non-negligible amount of boards that have this requirement.

As a side note, Rockchip-based machines didn't need this until commit
12c3e948eeab ("rockchip: Drop the FIT generator script") (v2023.04-rc1).

This is already in meta-rockchip, c.f.
https://git.yoctoproject.org/meta-rockchip/commit/recipes-bsp/u-boot?id=6127d169acf239a53df989f34a6b825fa182cc0c
but I feel like this makes more sense to be present in OE-Core.

Cc: Quentin Schulz <foss+yocto@0leil.net>
(From OE-Core rev: 70eca6a5ccf451572421f51eef9cc82ba120c7cb)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 11:06:17 +00:00
Thomas Perrot
cc24a0ff76 opensbi: append LDFLAGS to TARGET_CC_ARCH
To solve the following GNU_HASH error:
ERROR: opensbi-1.4-r0 do_package_qa: QA Issue: File /share/opensbi/lp64/generic/firmware/fw_dynamic.elf in package opensbi doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /share/opensbi/lp64/generic/firmware/fw_payload.elf in package opensbi doesn't have GNU_HASH (didn't pass LDFLAGS?)
File /share/opensbi/lp64/generic/firmware/fw_jump.elf in package opensbi doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]

[YOCTO #15370] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=15370

(From OE-Core rev: b82e1e99feb8b0d70ff4c4bcac67336d562d2e53)

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 11:06:17 +00:00
Ross Burton
e5604d346c openssl: backport fix for CVE-2023-6129
(From OE-Core rev: 7fa10f29b31f8aae572026a00a6354aec539d044)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 11:06:17 +00:00
Alexander Kanavin
4584746c1a classes/package_rpm: correctly escape percent characters
This many characters doesn't work with rpm 4.19 packaging
(as shown by nodejs recipes), and per documentation a single escape
is enough:

https://github.com/rpm-software-management/rpm/blob/rpm-4.19.x/docs/manual/spec.md#shell-globbing

It also should be done in a function, and just before writing out the
corrected filename to .spec, not earlier where the path may still
be needed for file operations (such as gettings file attributes).

(From OE-Core rev: 6d9fe2623c37e405a80acf71633f7291ecdde533)

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>
2024-02-02 11:06:17 +00:00
Ross Burton
43f9098a69 grub2: ignore CVE-2023-4001, this is Red Hat-specific
(From OE-Core rev: f99b25355133fe8f65a55737270e67ea10b79d52)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 11:06:17 +00:00
Etienne Cordonnier
f00f7e1570 dropbear: remove unnecessary line
This line was added in 703e3faaec8c5a22, however
the default value of FILES:${PN} contains "${bindir}/*", so this directory does
not need to be explicitly added.

(From OE-Core rev: 53f9fa7b7913f4d8a480e85a7b6a943f1125bb19)

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>
2024-02-02 11:06:17 +00:00
Fabio Estevam
05f4e7a459 mesa: Upgrade 23.3.3 -> 23.3.4
Mesa 23.3.4 release notes:

https://lists.freedesktop.org/archives/mesa-announce/2024-January/000745.html

(From OE-Core rev: c8abc906d1c85ebc967a0aa0e8e52bd4ed09708d)

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>
2024-02-02 11:06:17 +00:00
Colin McAllister
3bb286730b initscripts: Add custom mount args for /var/lib
Adds bitbake variable to set additional mount flags for the /var/lib
overlayfs or bind mount when using a read-only root filesystem. This
can be used to set additional options like "-o nodev".

(From OE-Core rev: c3109e40e2c2c881996dd3fcc95fca74f098646d)

Signed-off-by: Colin McAllister <colin.mcallister@garmin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 10:38:28 +00:00
Khem Raj
04eac1f2b6 armv8/armv9: Avoid using -march when -mcpu is chosen
Current include logic goes into generic arm v8/v9 architecture tunes and
adds corresponding -march option after synthesizing it from various tune
fragments, this is fine for a machine which is using armv8/armv9 based
tunes but cortex tunes are intentionally using -mcpu option based on
selected tune value. So when cortex based default tune is selected for a
machine, it will add both -mcpu and -march to the compiler commandline
which can result in invalid combinations for this pair in gcc's own
logic. This can then result in compiler warnings/errors reporting this

e.g.

aarch64-yoe-linux-gcc  -mcpu=cortex-a72.cortex-a53 -march=armv8-a+crc+crypto -mbranch-protection=standard
...
cc1: error: switch '-mcpu=cortex-a72.cortex-a53' conflicts with '-march=armv8-a+crc+crypto' switch and resulted in options '+crc+crypto' being added [-Werror]

This is seen in lot of configure test results in glibc 2.39 and the
warning is promoted to errors by gcc in some of these checks especially
with gcc-14, the logs also show it as warning in other places in
configure checks.

mcpu option will compute relevant march implicitly as it specifies a cpu
implementation and this will be the right value to use, therefore do not
specify -march when -mcpu is already describing the cpu.

(From OE-Core rev: e64f0c1b6ac5d598a79a21de5f3060f83cb9523e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Cc: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 10:38:28 +00:00
Mark Hatle
069d2dfd86 qemu: Allow native and nativesdk versions on Linux older then 4.17
Linux kernel 4.17 introduced two new mmap flags, MAP_FIXED_NOREPLACE and
MAP_SHARED_VALIDATE.  Starting with QEMU 8.1, these flags are now used
and required for proper system operation.  In order to build and run on a
system older then 4.17, we need to emulate this new behavior.

Not having a newer kernel could result in the mmap memory being allocated
in a way that will cause failures without QEMU checking for these
conditions.  Note, memory allocation issues are rare in my experience so
this is more of a 'just-in-case' behavior.

SDK_OLDEST_KERNEL is currently set to 3.2.0, the only way this can claim
that qemu works in an SDK is by checking the return values to emulate
the expected behavior.

(From OE-Core rev: 4eb0a83c7851e2eb6d7890a130dfe50f37ff8ac9)

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 10:38:28 +00:00
Jose Quaresma
2608d399a2 go: update 1.20.12 -> 1.20.13
Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.12..go1.20.13
a95136a88c (tag: go1.20.13) [release-branch.go1.20] go1.20.13
5c38c04957 [release-branch.go1.20] crypto/tls: align FIPS-only mode with BoringSSL policy
9e4abed39b [release-branch.go1.20] crypto/internal/boring: upgrade module to fips-20220613
95afc744a7 [release-branch.go1.20] runtime: put ReadMemStats debug assertions behind a double-check mode
8cb86b5f85 [release-branch.go1.20] os/signal: skip nohup tests on darwin builders
59ffd3b90d [release-branch.go1.20] os/signal: remove go t.Run from TestNohup

[1] https://github.com/golang/go/compare/go1.20.12...go1.20.13

(From OE-Core rev: 9c67951634c2effd4fbe229338715ccb49378341)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02 10:38:28 +00:00
Adrian Freihofer
c2813a4c69 devtool: refactor deploy-target
Make the deploy function independent from d. This allows to call the
function also from Python code not running in bitbake.
This is needed to for the devtool ide plugin which will call the
do_install task and the code from devtool deploy-target independently
from a bitbake server. This allows a much quicker workflow.

(From OE-Core rev: c8697d1132cbd4b2a2502b4c48e7d91fc18de786)

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>
2024-02-02 10:38:28 +00:00
Adrian Freihofer
50618e59dd 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.

(From OE-Core rev: 3e8c41ec373a1766f68932d3b979d00e4e3bb3a9)

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>
2024-02-02 10:38:28 +00:00
Adrian Freihofer
c17ce99a2f 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.

(From OE-Core rev: 6f5980d96844559639fc3660bb975b0bdd1aa523)

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>
2024-02-02 10:38:28 +00:00
Adrian Freihofer
c9c0974209 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.

(From OE-Core rev: e9c3c996f2e9a52462c4426f394798a211e53ae1)

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>
2024-02-02 10:38:28 +00:00
Adrian Freihofer
afe4c413f7 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.

(From OE-Core rev: 72388593d62d45d54790710b9665eb8f13897c8c)

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>
2024-02-02 10:38:28 +00:00
Simone Weiß
d50c4a1e36 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.

(From OE-Core rev: 705d2972b38efc9f331e3635c07ca92f8812b365)

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>
2024-01-30 15:15:54 +00:00
Khem Raj
db87a18a92 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

(From OE-Core rev: 6a2e44340c8ae2a60e33696ad944e327a24479d5)

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>
2024-01-30 15:15:54 +00:00
Konrad Weihmann
dddc7cf041 python3-yamllint: add missing dependency
yamllint requires pathspec module to be available

(From OE-Core rev: 59a89493f4b1f450139956f872d606829499b79d)

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>
2024-01-30 15:15:54 +00:00
Martin Jansa
f80f232fbd 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

(From OE-Core rev: 7e55102cff9ddecb4f0acbb3bcafa703dd9808fd)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-30 15:15:54 +00:00
Richard Purdie
5573fb12eb 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]

(From OE-Core rev: 8c07aac9d55f92fe5fbe3cab9f006efecf266328)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-30 15:15:54 +00:00
Khem Raj
0f61386628 qemu: Replace the basename patch with backport
Backport the patch that got applied to fix this issue upstream

(From OE-Core rev: 952c94988cf1cf093668e9ac7020485c51cf3a58)

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>
2024-01-27 11:06:34 +00:00
Fabio Estevam
2ced056c51 piglit: Update to latest revision
Update to the latest piglit revision.

(From OE-Core rev: 83e1fd36408d6789899e98b4d6e47eb69914a1bf)

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>
2024-01-27 11:06:34 +00:00
Khem Raj
cda5907daf 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']}

(From OE-Core rev: 515e7cf61c4ce5f6d572562ec851f01dade5cca0)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:03 +00:00
Denys Dmytriyenko
c4a9b044d8 lttng-modules: upgrade 2.13.10 -> 2.13.11
Changelog:
https://lwn.net/Articles/957396/

Drop 2 backported patches and 1 implemented differently upstream.

(From OE-Core rev: 90eef01e2d7fbde43e8325f075383d0931924cc8)

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:03 +00:00
Khem Raj
bcbb155635 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

(From OE-Core rev: 3817ac3130e8858b3445872ff74b39c21969822a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Chi Xu
4cb6ff8a57 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

(From OE-Core rev: 2704983f972e4fe1d4e0bee8491a07eb4f629346)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Markus Volk
82eb0c47e4 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

(From OE-Core rev: 2dd196a048de8f45095ffa8ada2a2f3b15bcc866)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
05d0b9eafb 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.

(From OE-Core rev: 38549d462b399e3a63335f60a44c8bbced98639a)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
482ed7cd80 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.

(From OE-Core rev: 5d7a6ede105ea1efc9c324c7029f9d08dadf7255)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
683c839c45 classes/package_rpm: set bogus locations for passwd/group files
Since f3eaeeb734
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.

(From OE-Core rev: ac8ea64bb39a5e56599e078c7e6cd056a2aa4144)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
2b20d612b4 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.

(From OE-Core rev: 10064e364f015ad3c0c8d63511cd9a7da5e22c69)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
347abb8c06 classes/package_rpm: write file permissions and ownership explicitly into .spec
Per 77d3529c31
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

(From OE-Core rev: a9db9a56617459e8f6f6dd466f2e18a7eed5c1e3)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
d00682ab5c 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'

(From OE-Core rev: a4dc96293268804b214a02e08d266205fad428b0)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
55bfa99451 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.

(From OE-Core rev: 234965cb88ccfa9c3a357928f7155b119044e8fc)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Alexander Kanavin
ed08180608 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

(From OE-Core rev: 5ffa333db28bc5d8e440c983fdf95589d332461d)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
Ola x Nilsson
fd0980f74f 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.

(From OE-Core rev: 3d556e59f658ac29615fb7a14b6ea48533122ff6)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-27 08:20:02 +00:00
William Hauser
348d9aba33 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.

(From OE-Core rev: 2d7e3d49378257bc02513275b988c8b194e9fd5a)

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>
2024-01-26 16:41:25 +00:00
Ross Burton
f81d74f970 sanity: require bitbake 2.7.2 for the inherit_defer statement
(From OE-Core rev: 3f6840823656c5d36c1d7a467509ca13a79453a8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 16:25:39 +00:00
Ross Burton
ff0bc2a284 bitbake: bitbake: Version bump for inherit_defer addition
We've added a new statement, inherit_defer, so bump the version so this
can be checked.

(Bitbake rev: 191e6eb2bceb467c97e315301f1f64722cf0e976)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 16:25:39 +00:00
Chen Qi
7c47ed557b 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.

(From OE-Core rev: 2a700c3102b2233e71a157f0f88ed88496fa9fbf)

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>
2024-01-26 16:06:29 +00:00
Chen Qi
dfcbfc49ca 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.

(From OE-Core rev: 6fdf03bd950e55ef7881041606f6e76141033716)

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>
2024-01-26 16:06:29 +00:00
Chen Qi
74f0fd144f 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.

(From OE-Core rev: ebafe463799b39025a0b24a0a14a2f02b6de9bac)

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>
2024-01-26 16:06:29 +00:00
Chen Qi
1e77bf05a1 systemd: refresh musl patches for v255.1
The current patches are refreshed. A new patch is added:
0022-avoid-missing-LOCK_EX-declaration.patch

(From OE-Core rev: b86b1f1265b87f73ea132a9c0d3b1978972ad41b)

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>
2024-01-26 16:06:29 +00:00
Chen Qi
5ae14523a7 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: '.'

(From OE-Core rev: 2c2ba5f9497462a190b849a69d8440149f80582a)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 16:06:29 +00:00
Khem Raj
f697dc7baf 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

(From OE-Core rev: 178ad50bf36f244f96159bb2f94e0d8849487931)

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>
2024-01-26 16:06:29 +00:00
Fabio Estevam
5e9e7dab89 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

(From OE-Core rev: 123c75bd87330a81ba5b929c35ae34710ddcc449)

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>
2024-01-26 16:06:29 +00:00
William Lyu
ba3a8dd470 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.

(From OE-Core rev: 738fa7ee2dadf7b4b96fc1e86dbde106d3b86ec3)

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>
2024-01-26 16:06:29 +00:00
Jonathan GUILLOT
b219e0c9ff 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.

(From OE-Core rev: 37f17625d931a06888388682dc2b1f5a2d298125)

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>
2024-01-26 16:06:29 +00:00
Simone Weiß
d46ca2a776 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.

(From OE-Core rev: 301d45eacfd4ae6bddfb13207e2af9e8b4662bc8)

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>
2024-01-26 16:06:29 +00:00
Ryan Eatmon
aead8a77d3 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.

(From OE-Core rev: 128cfc5222752a6337a9cbb9bc9023c13ee19f2f)

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>
2024-01-26 16:06:29 +00:00
Kai Kang
86af1a7d40 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.

(From OE-Core rev: 523ae4ba677ee9d9925182689b2d70af6d3df7a8)

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>
2024-01-26 16:06:29 +00:00
Kai Kang
dba0b90446 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

(From OE-Core rev: e7388c4b351baa56be596af405730c8626b572da)

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>
2024-01-26 16:06:29 +00:00
Richard Purdie
f456f7b896 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]

(From OE-Core rev: 28ab691587e689872b2e2ddd210507cc2ae86f9b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:25:31 +00:00
Yash Shinde
bb630c3e29 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.

(From OE-Core rev: 8f3a2841540fc4779bbd7e11d910edcdc8b47683)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Yash Shinde
a6982bb6a4 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

(From OE-Core rev: 58a7f3efa9e31e2c7b90e6490f3e51f388e6a7ce)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Yash Shinde
30872876dc 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.

(From OE-Core rev: 50119ddaaa810ad71063691fb1cc30cf8c8456c8)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Yash Shinde
ac7375e02f 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.

(From OE-Core rev: b8c1091276b6b9b1ae162dd19b2652f493a686d8)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Yash Shinde
208b3bee78 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.

(From OE-Core rev: 01a411223fb85fedf85472402f63f6cb2f32ed6b)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Yash Shinde
0a066f7526 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.

(From OE-Core rev: fdd9385d9845d628e10179598fc42d29519c5dfd)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Yash Shinde
357651377f 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

(From OE-Core rev: 1a048b5ab7f891911beaa14eb9269033c84088dc)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-26 14:06:55 +00:00
Richard Purdie
7f9dd77eae 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.

(From OE-Core rev: 8917fa10b8afb1413b34a6134beea129e416f8c6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Richard Purdie
754d0c606e 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.

(From OE-Core rev: 14ee3e1240524e08adc1a3327dfb52dee6e64fd2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Julien Stephan
bf9ac22f41 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

(From OE-Core rev: 5f195f5e98d5553e41e632eda26392ee70394c88)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Julien Stephan
facab170b6 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

(From OE-Core rev: cfd5ee890163a3d975093359016dda104e7b71df)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Julien Stephan
8934057ce8 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

(From OE-Core rev: ea6a0cccdd274534809df62a0a196bf83489a1e5)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Khem Raj
292ffc1f8c 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

(From OE-Core rev: 63925be1c40aee0baeebd5bf6fdfafed18200b5f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Ross Burton
3adac25f89 libssh2: backport fix for CVE-2023-48795
Backport the upstream fix for CVE-2023-48795.

(From OE-Core rev: 314fa19c5e07fa632ff0434a6adbb97de1319a02)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Anuj Mittal
fa809fd073 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

(From OE-Core rev: 7c8e1e48075f7f54aec9d295605c982f440be5d5)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Anuj Mittal
0a010ac1b4 libpsl: upgrade 0.21.2 -> 0.21.5
License-Update: Copyright dates changed

(From OE-Core rev: 36375f47d5672aa0c2eae16de9ae18693b3b8a55)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Anuj Mittal
7de510c29f cronie: upgrade 1.7.0 -> 1.7.1
(From OE-Core rev: 28ad6b2266178c7568d36c31f663ff791ee9e522)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Anuj Mittal
759ad904cc bluez5: upgrade 5.71 -> 5.72
(From OE-Core rev: 42337d49cdd4f4598236f996a5db8517fd9e8ca8)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Pavel Zhukov
38027f9e8c 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]

(From OE-Core rev: 22ae573aa1a1244d4dea498d4fa4fcdf195bedf8)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-24 15:46:19 +00:00
Bruce Ashfield
999bcf990b 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.

(From OE-Core rev: a0b236c52dd7ef702a367c6d3e544f21b416ecf2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 12:40:34 +00:00
Richard Purdie
2467afed31 libxcomposite: Drop obsolete patch
The patch looks obsolete now we have recipe specific sysroots, drop it.

(From OE-Core rev: 69b681d1cb35ba9b03b532c7caa3d9c555f0e7e4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Ross Burton
603669d36e 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.

(From OE-Core rev: bfbcb28f032b2609f0cd15df70f35353adf326e5)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Ross Burton
1c472390b8 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.

(From OE-Core rev: 5d47474f6eb6b4441154c7de7261f8e0ab47333d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Ross Burton
bfaea5f7ec 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.

(From OE-Core rev: 10acc75b7f3387b968bacd51aade6a8dc11a463f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Ross Burton
ab375ea3fe 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.

(From OE-Core rev: 2c9f20f746251505d9d09262600199ffa87731a2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Peter Marko
4a6d2cfb8a 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.

(From OE-Core rev: 9f953a1cd832f03f0b3666168addf45fd4fc8d14)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Richard Purdie
7ca6bd8977 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.

(From OE-Core rev: a9b51a42fc1fd3c01852b51e3f21cf4d4480f3e8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-23 11:53:41 +00:00
Richard Purdie
1df683df5c poky-altcfg: Update PREFERRED_VERSION for kerenl
Update to 6.6 since it is our only kernel version.

(From meta-yocto rev: 00b2de10d7665a60d32497cb141f40ba3e1143fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:45:33 +00:00
Kevin Hao
426488f853 yocto-bsp: Drop the support for v6.1 kernel
The v6.1 kernel bb will be removed from the oe-core soon. So it is time
to drop the support of it for the yocto-bsp machines.

(From meta-yocto rev: dec8d7e3e73bc4f17b5b70cc368c551b2cc4568b)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:45:33 +00:00
Kevin Hao
640927625e yocto-bsp: Bump the default kernel to v6.6
Create the bbappend for v6.6 and bump the default kernel to v6.6 for
all the machines.

In the v6.6 kernel the dtb files for beaglebone have been moved to a
vendor specific directory, so we also need to adjust the corresponding
variables for its DTB generation.

(From meta-yocto rev: 58ac51b7a44fbb165311c7226ae8b15cd004114d)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:45:33 +00:00
Vincent Davis Jr
e0ee1b3160 shaderc: update commit hash to v2023.7
v2023.7 of google shaderc hash was updated to

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

(From OE-Core rev: b05021093842067e00d97345cb1ec8e9a9abb698)

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Thomas Perrot
8f30e101fa 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

(From OE-Core rev: 09f8f9d378fed275701840b7be2d7eeba6ca50e1)

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>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
ec31b04c50 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

    ]

(From OE-Core rev: 74bf102eb4ae7377527a146e3db1d9ee1da1f2da)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
a897e5978c 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()"

(From OE-Core rev: 27004956fb5ce3d4c2a48e64681b743763641f04)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
7c54332e05 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

    ]

(From OE-Core rev: 2c6dbaef795e65a94c7f3ac54be5d0414e5e213c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
d478043f67 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

(From OE-Core rev: e97fc9fba054891845af2dbadd40003ccbb143f7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
68aa1522ae 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>
]

(From OE-Core rev: 33d3dd8f5469cb0b2999d7f935378899d447b3ce)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
e35d26b852 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>
]

(From OE-Core rev: a0a7f4e43a306598d79b79d02f2953beef3f4528)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
765107b9d3 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>
]

(From OE-Core rev: 3b417c6b383f27782c1f795eb676cbb62f0b3c31)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
00d5043aad 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

    ]

(From OE-Core rev: c16ed90dae1f1954b582c4fb6783fca7e3171af3)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
13d1299fc5 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

(From OE-Core rev: b5a2a428407e7f94ef9207dbac9f24dad14c7202)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
54151f390c 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

    ]

(From OE-Core rev: 8b67e63925b3846a8f3ed9834d5bd465075a202d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Bruce Ashfield
f2986e66c3 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

(From OE-Core rev: 36486ce5e5ef073b7ec8e4817012b0e9d1760760)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-22 13:39:22 +00:00
Richard Purdie
9a02fb66c2 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]

(From OE-Core rev: e746182638aeb9bdd1bbb7430de214d8d847a8b6)

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>
2024-01-21 12:27:12 +00:00
Alexander Kanavin
4a61101478 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.

(From OE-Core rev: b93562937737e97dbc8cb7c874e9913f6a285a34)

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>
2024-01-21 12:27:12 +00:00
Joe Slater
4a126e3170 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.

(From OE-Core rev: 4a7b42fcf6981d3120c08091a7ed3d4d7bcd41f0)

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>
2024-01-21 12:27:12 +00:00
Timotheus Giuliani
269d6cf70a 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: dfb7d2c426 ("linux-firmware: create separate packages")
(From OE-Core rev: b8af58ceade4d277133e49eeac0520792de85cce)

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>
2024-01-21 12:27:12 +00:00
Yogita Urade
fcc39f3e04 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

(From OE-Core rev: 55735e0d75820d59e569a630679f9ac403c7fdbe)

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>
2024-01-21 12:27:12 +00:00
Simone Weiß
97fd704adc 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

(From OE-Core rev: f2383a2bff3eb756740ecaf48147bea89303e443)

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>
2024-01-21 12:27:12 +00:00
Fabio Estevam
d3b109684a 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.

(From OE-Core rev: 539d2cfcd99b1ce15f7118888121adf91794ce7f)

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>
2024-01-21 12:27:12 +00:00
Etienne Cordonnier
02dbf1c7d2 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.

(From OE-Core rev: 8ded801178376a02125e653833d8ff062f80457f)

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>
2024-01-21 12:27:12 +00:00
Alejandro Hernandez Samaniego
6856e4a4f0 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.

(From OE-Core rev: 92add12d667cb08c9222b4b342b3bf6342010ac6)

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>
2024-01-21 12:27:12 +00:00
Jiang Kai
f35504de9c 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

(From OE-Core rev: 3d6c30aac85e38edec25881f5e46eda5cf629221)

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>
2024-01-21 12:27:12 +00:00
Jiang Kai
a6325989b5 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

(From OE-Core rev: bb4c22e28dfd1bdb2fe4cee1a15b27e4847b2ceb)

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>
2024-01-21 12:27:12 +00:00
Jiang Kai
99e5c3b984 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

(From OE-Core rev: 34eb325aa8fa22454c5a706845140a6c43cfbd6c)

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>
2024-01-21 12:27:12 +00:00
Jiang Kai
d8798bc180 debianutils: upgrade 5.15 -> 5.16
Changelog:
 Upload to unstable per request of Chris Hofstaedtler.

(From OE-Core rev: cba6e5a16b62976692607c52e5ea6fe40d940067)

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>
2024-01-21 12:27:12 +00:00
Wang Mingyu
2404b6a30c libtest-warnings-perl: upgrade 0.031 -> 0.032
License-Update:
 basic artistic license changed to perl artistic license.

(From OE-Core rev: 341ee5b63975013e10cc466d6cfd0e30e21a5b47)

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>
2024-01-21 12:27:12 +00:00
Wang Mingyu
fca323ecb1 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

(From OE-Core rev: b55ef76eb60fc5265ccada0c6cf91f6b9c9bfe05)

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>
2024-01-21 12:27:12 +00:00
Robert Yang
cf5b454869 autoconf: 2.72d -> 2.72e
Refresh patches with devtool to fix do_patch errors.

(From OE-Core rev: 222b0ea693bbcfd4b439a29d3d6c035c9ece3ae3)

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>
2024-01-21 12:27:12 +00:00
Khem Raj
13aa558ba0 coreutils: Fix build with clang
Add a gnulib patch to fix build with clang-18

(From OE-Core rev: 8f661c567f773c22a03ec0991d700ee900c1f8d7)

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>
2024-01-21 12:27:12 +00:00
Khem Raj
7fb77bfae1 libgudev: Pass export-dynamic to linker directly.
New clang 18+ errors out on this while older clang does not

(From OE-Core rev: 31c639469e3e0aa4274ec891bef83cdce746e9a5)

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>
2024-01-21 12:27:12 +00:00
Richard Purdie
7af374c90c build-appliance-image: Update to master head revision
(From OE-Core rev: 38dbede9a49195d6faeda61e30f098996e6713f5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:22:58 +00:00
Wang Mingyu
cf69c6843f xz: upgrade 5.4.4 -> 5.4.5
Changelog:
============
* Small fixes and improvements to the tests.
* Updated translations: Chinese (simplified) and Esperanto.

(From OE-Core rev: f65607d86f55d7d3862a7bb321f1d669fd8f4c4b)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
11f0910a3e virglrenderer: upgrade 1.0.0 -> 1.0.1
0001-meson.build-use-python3-directly-for-python.patch
refreshed for 1.0.1

0001-vtest-Fix-undefined-behavior-with-clang.patch
removed since it's included in 1.0.1

(From OE-Core rev: 05b58180d3c8145e43c16e30901206933b26033c)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
f5a59ab316 stress-ng: upgrade 0.17.03 -> 0.17.04
Changelog:
 https://github.com/ColinIanKing/stress-ng/releases/tag/V0.17.04

(From OE-Core rev: a409072567ceee234e6587f9de90ace76454397b)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
e821ae4fae python3-trove-classifiers: upgrade 2023.11.29 -> 2024.1.8
Changelog:
===========
* Added CAN classifiers
* fixed CAN classifier order

(From OE-Core rev: 4c6a9390b86951a269e85d70a2930650633228ee)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
264ea53581 python3-pycryptodomex: upgrade 3.19.1 -> 3.20.0
Changelog:
===========
-Added support for TurboSHAKE128 and TurboSHAKE256.
-Added method Crypto.Hash.new() to generate a hash object given a hash name.
-Added support for AES-GCM encryption of PBES2 and PKCS#8 containers.
-Added support for SHA-2 and SHA-3 algorithms in PBKDF2 when creating PBES2
 and PKCS#8 containers.
-Export of RSA keys accepts the prot_params dictionary as parameter to control
 the number of iterations for PBKDF2 and scrypt.
-C unit tests also run on non-x86 architectures.
-GH#787: Fixed autodetect logic for GCC 14 in combination with LTO.

(From OE-Core rev: d4cc93966eece06ed4b146922d244104cb7e15da)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
28ccef7f44 python3-pycryptodome: upgrade 3.19.1 -> 3.20.0
Changelog:
===========
-Added support for TurboSHAKE128 and TurboSHAKE256.
-Added method Crypto.Hash.new() to generate a hash object given a hash name.
-Added support for AES-GCM encryption of PBES2 and PKCS#8 containers.
-Added support for SHA-2 and SHA-3 algorithms in PBKDF2 when creating PBES2
 and PKCS#8 containers.
-Export of RSA keys accepts the prot_params dictionary as parameter to control
 the number of iterations for PBKDF2 and scrypt.
-C unit tests also run on non-x86 architectures.
-GH#787: Fixed autodetect logic for GCC 14 in combination with LTO.

(From OE-Core rev: 9a492197348e1976097454bddbd7750390082d49)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
687304d731 python3-more-itertools: upgrade 10.1.0 -> 10.2.0
Changelog:
===========
-factor, iter_index, sieve, and unique_justseen were updated to match the
 itertools docs
-first was was optimized
-takewhile_inclusive was was refactored
-combination_with_replacement_index was was optimized
-nth_permutation, nth_combination_with_replacement, combination_index, and
 combination_with_replacement_index were optimized
-batched now accepts a strict argument
-time_limited was improved for Windows
-Several typing updates were made
-Some documentation issues were fixed

(From OE-Core rev: 3149449f8ba33204ac311f2d915922e62e481330)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
e92131d371 python3-markdown: upgrade 3.5 -> 3.5.2
Changelog:
============
-Fix type annotations for convertFile - it accepts only bytes-based buffers.
 Also remove legacy checks from Python 2
-Remove legacy import needed only in Python 2
-Fix typo that left the attribute AdmonitionProcessor.content_indent unset
-Fix edge-case crash in InlineProcessor with AtomicString.
-Fix edge-case crash in codehilite with an empty code tag.
-Improve and expand type annotations in the code base.
-Fix handling of bogus comments

(From OE-Core rev: d4396cc50ed7d73323fdef46b84ef26ab2b6a15f)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
46c3f92c80 python3-jinja2: upgrade 3.1.2 -> 3.1.3
Changelog:
==========
-Fix compiler error when checking if required blocks in parent templates are empty.
-xmlattr filter does not allow keys with spaces.
-Make error messages stemming from invalid nesting of {% trans %} blocks more helpful

(From OE-Core rev: 8a0524464583d69df7746253f5020c2c125a8e1f)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
25787e7449 python3-hypothesis: upgrade 6.92.2 -> 6.92.9
Changelog:
 https://hypothesis.readthedocs.io/en/latest/changes.html

(From OE-Core rev: 1a03e8dab7192195f63f03fab675d50cb04f6731)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
b8d1f922a8 python3-git: upgrade 3.1.40 -> 3.1.41
Changelog:
 https://github.com/gitpython-developers/GitPython/releases/tag/3.1.41

(From OE-Core rev: 4c6db718193cad9cc61fbea396fa5997da4b7298)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
6d76e1bd33 python3-cython: upgrade 3.0.7 -> 3.0.8
Changelog:
============
* Using "const" together with defined fused types could fail to compile.
* A "use after free" bug was fixed in parallel sections.
* Several types were not available as "cython.*" types in pure Python code.
* The generated code is now correct C89 again, removing some C++ style "//" comments
  and C99-style declaration-after-code code ordering.  This is still relevant for some
  ols C compilers, specifically ones that match old Python 2.7 installations.

(From OE-Core rev: bedd518a2a0c2e7085f92c79236b0c0983f3d653)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
8a614d5e45 vte: upgrade 0.74.1 -> 0.74.2
(From OE-Core rev: 153f61dad23f7d04e720369f6b76aeb9a0d3d454)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
b682671cfb python3-numpy: upgrade 1.26.2 -> 1.26.3
0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
refreshed for 1.26.3

Changelog:
 https://github.com/numpy/numpy/releases/tag/v1.26.3

(From OE-Core rev: 04d1c142274702726f8fc7afed7420d9e6f07ddd)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
e100286f53 ofono: upgrade 2.2 -> 2.3
Changelog:
==========
-Fix issue with handling SMS submit report sizes.
-Fix issue with handling operator name and ISI modems.

(From OE-Core rev: b9b0e4967845baac137905e12e63535046bf7256)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
8a90940ada nghttp2: upgrade 1.57.0 -> 1.58.0
Changelog:
============
-Fix build error when both clock_gettime and GetTickCount64 are available
-nghttpx: Shutdown h3 stream write if reset by a remote endpoint
-Bump golang.org/x/net from 0.15.0 to 0.17.0
-cmake: speed up warning option detection
-Update doc
-ngtcp2 has merged BBR and BBRv2 under BBR (fixes issue #1955)
-Bump ngtcp2
-Integration servertester h3
-Refactor character comparison
-nghttpx: Stricter transfer-encoding checks
-Configure cygwin
-windows: Fix warnings
-Prefer clock_gettime if CYGWIN defined
-Bump neverbleed
-Bump ngtcp2
-Bump neverbleed

(From OE-Core rev: 9b40ffc9766673111214c6a0551c3291032cfd8e)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
712448ca8e libxmlb: upgrade 0.3.14 -> 0.3.15
Changelog:
============
- Sprinkle __attribute__((nonnull)) to give a little more compile-time safety
- Accept text/xml as an alternative to application/xml
- Do not inline shared code
- Fix compiling with Visual Studio
- Fix the exported api test on Windows
- Generate and use .def file for clang-cl builds
- Release source file handles early

(From OE-Core rev: 096f866bd114089628e2dee8a8cfb722f95c8862)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
2a5b8a9d53 libbsd: upgrade 0.11.7 -> 0.11.8
License-Update: Switch arc4random(3bsd) man page from OpenBSD to NetBSD

0001-funopen-Replace-off64_t-with-off_t-in-funopen_seek.patch
removed since it's included in 0.11.8

(From OE-Core rev: c5709bb67c14f7ba829803cf1dc3f1c564376168)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
23311babb0 kexec-tools: upgrade 2.0.27 -> 2.0.28
0002-purgatory-Pass-r-directly-to-linker.patch
0003-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch
0005-Disable-PIE-during-link.patch
refreshed for 2.0.28

(From OE-Core rev: ad748d0cf6ed87edcd33a13ed8aae11690d4d8ab)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
b9fee5ff9e iproute2: upgrade 6.6.0 -> 6.7.0
(From OE-Core rev: 569285695e43128dafd77ad33d12a8eeb29fd88d)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
77bc0181ae bind: upgrade 9.18.20 -> 9.18.21
bind-ensure-searching-for-json-headers-searches-sysr.patch
refreshed for 9.18.21

Changelog:
==========
-Improve LRU cleaning behaviour.
-The "resolver-nonbackoff-tries" and "resolver-retry-interval" options are
 deprecated; a warning will be logged if they are used.
-BIND might sometimes crash after startup or re-configuration when one 'tls'
 entry is used multiple times to connect to remote servers due to initialisation
 attempts from contexts of multiple threads. That has been fixed.
-Dig +yaml will now report "no servers could be reached" also for UDP setup
 failure when no other servers or tries are left.
-Recognize escapes when reading the public key from file.
-Dig +yaml will now report "no servers could be reached" on TCP connection
 failure as well as for UDP timeouts.
-Deprecate AES-based DNS cookies.

(From OE-Core rev: b750d54622a0fa0a35d83ddc59f07661e903360b)

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>
2024-01-19 12:21:23 +00:00
Wang Mingyu
5af6b05e2e mpg123: upgrade 1.32.3 -> 1.32.4
Changelog:
===========
- build:
-- Reorganize shared headers, API headers into src/include.
-- Use relative include paths, avoiding internal directories in
   CPPFLAGS except for config.h.
-- Group C99 feature checks and make several standard headers
   mandatory.
-- Get rid of SIZE_P, OFF_P and friends.
-- Only enforce dummy module together with libout123, to be able
   to build individual modules using --disable-components logic.
- out123:
-- added --libversion
- libmpg123:
-- Avoid indirect branches into the assembly routines by using C wrappers
   also for dct36, relieving us of the need to care for bti / endbr
   instructions for control flow integrity.

(From OE-Core rev: cd5f6dcf796cace20e459a1d7c8ac93f1a4aee1e)

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>
2024-01-19 12:21:23 +00:00
Kai Kang
d2c39554e5 xserver-xorg: 21.1.9 -> 21.1.11
Update xserver-xorg from 21.1.9 to 21.1.11.

Release Notes of 21.1.11 [1]:

This release contains fixes for the issues reported in today's security
advisory: https://lists.x.org/archives/xorg/2024-January/061525.html

* CVE-2023-6816
* CVE-2024-0229
* CVE-2024-21885
* CVE-2024-21886
* CVE-2024-0408
* CVE-2024-0409

Additionally, it also contains a fix for XRandR to allow for multiple virtual
monitors on a physical display.

Release Notes of 21.1.10 [2]:

This release contains fixes for CVE-2023-6377 and CVE-2023-6478 as
reported in today's security advisory:
https://lists.x.org/archives/xorg-announce/2023-December/003435.html

[1]: https://lists.x.org/archives/xorg/2024-January/061526.html
[2]: https://lists.x.org/archives/xorg/2023-December/061518.html

(From OE-Core rev: fc9da07bd181ee6f7ae51a5b6db40af0b94cd046)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Khem Raj
101580d72f openssl: Fix build on riscv
Backport a typo fix RISCV_HAS_ZKND_ZKNE -> RISCV_HAS_ZKND_AND_ZKNE

(From OE-Core rev: 2b2bf78c7250a23a476f168d3f1789496c1c27e9)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Randy MacLeod
09b69a69f5 rng-tools: Revert "rng-tools: move to meta-oe"
This reverts commit d2b445384d.

Revert this commit since:

 - some systems using oe-core master may still be using kernels from
   before 5.6 pulled in the rng-tools algorithm, and

 - some hardware platforms may not have a hardware random number generator
   and could therefore need to run rngd to avoid long boot-time initialization
   due to a depleted entropy pool.

(From OE-Core rev: 828afafb3bff54079fcba9bdab2ec87ac13e4ce6)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Richard Purdie
2ebe7f60fd reproducible: Fix race with externalsrc/devtool over lockfile
We occasionally see races over the lockfile used by externalsrc/devtool
when walking files for the source_date_epock calculation. Skip this file
if present to avoid the issues and fix a real issue where SDE could be
contaminated too.

[YOCTO #14921]

(From OE-Core rev: 4bc0eb4bd90e6e6e46581a8ed367212bdd910a26)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Alexander Kanavin
78e30d940d python: update 3.11.5 -> 3.12.1
Drop distutils and smtpd modules from packaging, as both are gone in 3.12.

Rebase:
0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch
(drop setup.py chunk as the file is gone)

Drop patches:
0001-Do-not-add-usr-lib-termcap-to-linker-flags-to-avoid-.patch
(setup.py gone, lib/termcap not mentioned anywhere else)

0001-Don-t-search-system-for-headers-libraries.patch
(setup.py gone, usr/lib64 not mentioned anywhere else)

0001-Makefile-do-not-compile-.pyc-in-parallel.patch
(replaced with COMPILEALL_OPTS= in EXTRA_OEMAKE)

0001-setup.py-Do-not-detect-multiarch-paths-when-cross-co.patch
(setup.py gone, add_multiarch_paths not mentioned anywhere else)

0017-setup.py-do-not-report-missing-dependencies-for-disa.patch
(has been superseded by Setup.local tweak in do_configure:prepend)

12-distutils-prefix-is-inside-staging-area.patch
(distutils has been removed upstream, so this old, unplesant hack can be finally dropped)

avoid_warning_about_tkinter.patch
(setup.py gone, tkinter detection logic performed in configure.ac)

(From OE-Core rev: 716d82352545d3667a658b69d65d6127678dd150)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Alexander Kanavin
375ac472d8 gobject-introspection-data.bbclass: move do_compile() tweak to g-i class
g-i-data class is strictly for setting GI_DATA_ENABLED. Any build tweaks
should be in g-i class.

(From OE-Core rev: 49988a49f7c9a19aa2a547d49369996e3e20d452)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Alexander Kanavin
f09d463758 glib-2.0: ensure GI_DATA_ENABLED is set
With python 3.12 some of the glib ptests started failing. Inspection
revealed that they fail because all tests in some glib's test suites are skipped;
python 3.12's unittest module deems "no tests in a test suite were executed"
a failure (and I tend to agree).

Why are all the tests skipped? Because python dbus module is missing from
the image, and it's missing because it's pulled in by dbusmock, which
in turn is missing because it is pulled in by glib recipe subject to
GI_DATA_ENABLED, and that variable is not global but defined in a g-i-data
class that glib recipe did not include.

So needed dependencies were simply always excluded regardless of g-i settings,
until now.

(From OE-Core rev: c9010feb8e4862f5c0dfde33ba73f3e7cc35b790)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
58722df9e1 oeqa/selftest/recipetool: Add test coverage for local go modules
(From OE-Core rev: 2d0ccfdca0a6cc1146464585f529fb5115a0b3ea)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
a075bf502e oeqa/selftest/recipetool: Move helper function to the class scope
(From OE-Core rev: 89d37266524ca3e7c9eaf9141b30055ebc39aa76)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
b6766e0ac2 oeqa/selftest/recipetool: Move create_go test to a proper class
(From OE-Core rev: 862b4d2211f2fc81a17def79f06d9672fa5df960)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
5eb10c53d8 recipetool: Disregard version in URL for replaced modules
Major module version is a part of name, but not necessary part of the
actual URL (See https://go.dev/ref/mod#module-path).

Nevertheless, name detection function can't handle that suffix, so get
rid of it to determine component name.

For replaced modules that name might be different that the actual module
name defined in go.mod file.

(From OE-Core rev: 0cccfa1041d48f0ae3a2dc89a129cf7884fc08f0)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
0576bd1edd recipetool: Proceed even with a missing license file
Whenever the recipe uses a CLOSED license, the list is going to be
empty. It's a discouraged practice not to have a license, but proceed
anyway to finish recipe generation.

(From OE-Core rev: 5ca920284d0946346f5b06f5e443c80d9d8b85ce)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
4eca05e15b classes: go-vendor: Unlink vendor dir later
Vendor directory might still be required during install stage, so defer
the removal until later stage.

(From OE-Core rev: f4538e3884a0cfa07e16e6a2c986271cc7322dd8)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
3e579c303e classes: go-vendor: Handle modules from the same repo
Take into account module version when populating vendor directory,
because a module with the same URL but with a different version tag
could be used as an indirect dependency.

(From OE-Core rev: 8f6320c0858941b2441e290ef3586b48c2700cd1)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
d5e2279d21 classes: go-vendor: Reference local modules
Create symlinks for local modules, which are usually not referenced in
the SRC_URI, but still expected to be found in the vendor directory
during the build.

(From OE-Core rev: 16da5d9ad448aafd8b5fd63480727bd1b09ec9f1)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Vyacheslav Yurkov
0161d08ac9 recipetool: Don't fail on local go modules
Local modules are usually referenced with a 'replace' directive in
go.mod file. If that's the case, remove them from populating SRC_URI.

(From OE-Core rev: 9f220f61e3e44a650a46ee997b47f1d87b7c4ef0)

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Tim Orling
376a8a1f3a python3-alabaster: upgrade 0.7.13 -> 0.7.16
* Since 0.7.14 setup.py was dropped and now the project is using the
  flit core backend (inherit python_flit_core)
* Add BUGTRACKER url

License-Update: LICENSE renamed to LICENSE.rst

https://alabaster.readthedocs.io/en/latest/changelog.html#changelog

0.7.14 – 2024-01-08
* Dropped support for Python 3.8 and earlier.
* Dropped support for Sphinx 3.3 and earlier.
* #198 Fix horizontal scrolling on mobile.
* #206 Properly support the html_support_sphinx config value.
* #211 Fix the GitHub ‘forkme’ banner.
* Added alabaster_version_info to the HTML template context.
* Declare support for Python 3.13.
* Adopt the Ruff linter and formatter.
* Migrate from CircleCI to GitHub Actions.

0.7.15 – 2024-01-08
* #213 Allow an arbitrary string in the logo_name option.
* #114 Improved sidebar CSS styles.
* #178 Deprecated canonical_url in favor of html_baseurl.
* #200 Removed duplicate <meta name="viewport" ... /> tag.
* #188 Removed underline from whitespace.
* #164 Removed type="text/javascript" from <script> elements.
* #161 Replaced &copy; with unicode decimal code entity #169;.

0.7.16 – 2024-01-10
* #215 Do not display logo_name if it is set to False.

(From OE-Core rev: 596b58093cde62aacfa29e12e5aa4adfde8190bf)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 12:21:22 +00:00
Simone Weiß
6e00774a79 classes-global/insane: Add check for "virtual/" in RPROVIDES and RDEPENDS
Fixes [YOCTO #14538]

Recipes shouldn't use "virtual/" in RPROVIDES and RDEPENDS. This was
addressed already in recipes in meta-oe and oe-core. Add a test for
this in insane.bbclass to ensure no regressions occur.

(From OE-Core rev: f673d3d239799fb1ab50f4aa5d44187666aa0cd7)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:42 +00:00
Ross Burton
eca21ccbc5 libunwind: clean up configuration
Add a PACKAGECONFIG for the support for zlib-compressed debuginfo.

There's no need to explicitly enable reading of .debug_frame segments as
this is enabled automatically for arm/aarch64.

Enable static globally, there's not much to gain by making this
musl-specific.

Don't disable the tests on musl as they verify that libunwind can link,
which is important with external libucontext libraries.

No need to disable documentation on musl, as it's already disabled out
of the box.

(From OE-Core rev: 2752f6a4f8a45afff3366e5aa75672ba6f994a23)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:42 +00:00
Ross Burton
cb02c049f4 libunwind: refresh patches
0001-src-Gtrace-remove-unguarded-print-calls.patch has been merged, so
update the Upstream-Status.

0003-x86-Stub-out-x86_local_resume.patch has been hopefully obsoleted by
the use of libucontext, remove.

Split 004-Fix-build-on-mips-musl.patch into two, as there's two
independent issues here.

0006-Fix-for-X32.patch appears to have been fixed with 31738a upstream,
in 1.6.0.

musl-header-conflict.patch was obsoleted by recipe-specific-sysroots,
remove it.

(From OE-Core rev: 916c67e3e16c5c355ce6f2a88f3f2a7506af4980)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:42 +00:00
Ross Burton
e85f0c247f libunwind: merge .inc and .bb
There's no need to these to be split, so merge them together.

(From OE-Core rev: e0d7f27e7da8c2d052e3c761d41305348d898458)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:42 +00:00
Ross Burton
75b340c29c musl: doesn't support riscv32
musl doesn't support riscv32, so set COMPATIBLE_HOST appropriately.

(From OE-Core rev: c321d381cfecde6ec502317822eb4058cb3aced7)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:42 +00:00
Petr Vorel
4ca2c2919e iputils: update to 20240117
Changelog:

* ping
- fix: Restore -i0 (commit: 7a51494, PR: #519, regression from 2a63b94)

* localization
- Updated Turkish and Indonesian
- 100% translated: Chinese (Simplified), Czech, French, Georgian, German,
  Korean, Portuguese (Brazil), Turkish, Ukrainian
- > 90% translated: Finnish, Indonesian, Japanese

(From OE-Core rev: 1b604914d64986e9b13ea2a701d13a3da1e87a61)

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:42 +00:00
Richard Purdie
a193a3f1e0 libtool: Update further patch status to backport
Three further patches were merged to upstream libtool, update the patch
status to Backport.

(From OE-Core rev: 062a4afbe6efff1f52db61225401d549507a6f66)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:41 +00:00
Richard Purdie
8ab08022f6 libtool: Update patch offsets
Our patches were rather out of sync, update the line offsets to match the current
patchset/underlying code.

(From OE-Core rev: f3a98cbd1c17ec25593ac11149d81ab80156a101)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:41 +00:00
Richard Purdie
907150679d libtool: Update cleanup sysroot handling patch
The sysroot path cleanup change was reworked after discussion/review upstream. It
appeared there were two different changes in one of our patches so separate out
the second one and mark as inappropriate as it is unlikely upstream would take
such a change in defaults. We need further investigation to decide if OE really
wants/needs this going forward.

(From OE-Core rev: 1315f7ccaf2b1d5fb91e3c726447883058fb5ec3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:41 +00:00
Richard Purdie
776b1aab12 libtool: Update prefixmap and clang patches to match upstream submission
The patches were submitted upstream and adjusted after discussion. Update to match
the changes requested.

(From OE-Core rev: d7644baaf99b5593b356c395b232088436ae2e30)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:41 +00:00
Richard Purdie
3742a45c0e libtool: Update nios2 patch to match upstream merged version
Update the patch to match the version merged upstream.

(From OE-Core rev: 918f665f440975f54e77b13bee8111de06aa7dca)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:41 +00:00
Richard Purdie
c8783797af libtool: Update patches to mark as backports
Several patches merged upstream, mark as such.

(From OE-Core rev: a15b73b9a6aebdf49829c2f749246943048620d5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-19 00:16:41 +00:00
Richard Purdie
c917323a39 classes/recipes: Switch to use inherit_defer
Now that bitbake supports the use of inherit_defer, switch all conditional
(variable based) inherits to use this instead. This leads to more a more
deterministic user experience since there is no longer an immediate expansion
and later changes to the variables in question (e.g. a bbappend) are
accounted for.

This patch tries to ensure the behaviour before/after remains as unchanged
as it reasonably can, e.g. by always inherting populate_sdk_base. native
and nativesdk continue to need to be inherited last, hence being used
with inherit_defer in a handful of very specific cases.

(From OE-Core rev: 451363438d38bd4552d5bcec4a92332f5819a5d4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-18 10:15:58 +00:00
Richard Purdie
bc883e4991 rootfs-postcommands: Try and improve ordering constraints
The current code is in race to see who can set things last. This isn't scalable or
sustainable and problemtic in the face of inherit ordering changes.

Move the ordering issue into the actual code execution, which isn't ideal but
the best of several bad options and at least lets us drop the anonymous python.

(From OE-Core rev: 0ffff2c1f80a9b79b133d787764bab164d9abd70)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-18 10:15:58 +00:00
Richard Purdie
12619deabd rootfs: Fix MULTILIB_RE_ALLOW to be inherit order independent
This variable is only used by the ipk backend with multilibs.

In order to make it work correctly regardless of inherit order, change
the string to be space delimeted, set using += and add in the regex '|'
sperator at the end of processing.

(From OE-Core rev: 72befdb12568fbc642022ef0a23b269c5b37a638)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-18 10:15:58 +00:00
Richard Purdie
55eaa3eb3f allarch: Fix allarch corner case
Most of the allarch code is conditional and only set if the recipe remains marked
as allarch. The qemu wrapper handling is not handled in the same way however and
is unconditional.

Move the code to some slightly uglier inline python to allow it to be conditional
and match the way the rest of the code works.

(From OE-Core rev: dfd704f1741dccd9a85338c5d45dee4be079064d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-18 10:15:58 +00:00
Richard Purdie
c56fce9e56 bitbake: ast/BBHandler: Add inherit_defer support
Add support for an inherit_defer statement which works as
inherit does but is only evaulated at the end of parsing.

This allows conditional expressions to be evaulated 'late' meaning changes
to PACKAGECONFIG from bbappends can be applied for example. This addresses
a usability/confusion issue users have with the current conditional
inherit mechanism since they don't realise the condition has to be
expanded immediately with the current model.

There is a commented out warning we could enable in future which
warns about the use of a conditional inherit that isn't deferred.

There is a behaviour difference in the placement of the inherit,
particularly around variables set using ?= which means wen swapping
from one to the other, caution must be used as values can change.

(Bitbake rev: 5c2e840eafeba1f0f754c226b87bfb674f7bea29)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-18 10:15:58 +00:00
Fabio Estevam
663f180574 libdrm: Upgrade to 2.4.120
Upgrade to 2.4.120 which has the following changes:

Eric Engestrom (1):
      radeon: fix missing stencil_tile_mode initialisation in the linear/fallback case

Pierre-Eric Pelloux-Prayer (1):
      amdgpu: fix use-after-free

Simon Ser (2):
      Sync headers with drm-next
      build: bump version to 2.4.120

(From OE-Core rev: f46a211108854b4dabac0336cdcb2cf7b003d7cd)

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>
2024-01-15 21:42:15 +00:00
André Draszik
f7c4d11804 linux-firmware: split out rockchip/dptx firmware
The dptx firmware is required by the Rockchip Type-C DisplayPort
controller, and we shouldn't have to pull in all of the other firmwares
just for that.

(From OE-Core rev: b624c194b054dceace6f260150c33c301cfe6e80)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Khem Raj
89755de94d mdadm: Disable 10ddf-fail-spare and 10ddf-fail-stop-readd testcases
This always fails in my CI setup. There are some others which fail
intermittently however, this one is deterministic and fails always e.g.

    AssertionError:- [1/1]
    Failed ptests:
    {'mdadm': ['/usr/lib/mdadm/ptest/tests/10ddf-fail-spareFAILED_-_see_/usr/lib/mdadm/ptest/logs/10ddf-fail-spare.log_and_/usr/lib/mdadm/ptest/lo

Mark them broken for now.

(From OE-Core rev: 282cd99cea3a8089759947466b585c19892c61d9)

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>
2024-01-15 21:42:15 +00:00
Khem Raj
4564d8f376 webkitgtk: Workaround for clang compiler segfault
This is a compiler crash which is under works upstream, until its fixed
lets disable musttail calls on clang+arm

(From OE-Core rev: a61205f364c2e9f40736c081bbae0b045e317093)

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>
2024-01-15 21:42:15 +00:00
Etienne Cordonnier
90ea98a24c siteinfo.bbclass: add support for darwin19 and darwin21
Ported from the meta-darwin layer which supports darwin19 (honister version)
and darwin21 (kirkstone version).

(From OE-Core rev: ec4de080691717bf56170f7e39d9fb5bb2d2b2d6)

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>
2024-01-15 21:42:15 +00:00
Etienne Cordonnier
3db106c41b chrpath.bbclass: fix Darwin support
Ported from the meta-darwin layer:
The call to out.split("\n") expects a string, thus the parameter text=True is
needed (otherwise Popen returns a bytes object).

Note that "text" is just a more readable alias for universal_newlines.

(From OE-Core rev: 0abaa7bf7f7d9a5ac96e6fdbe99334cb2fb0e4db)

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>
2024-01-15 21:42:15 +00:00
Etienne Cordonnier
5031cf42ff package.py: fix Darwin support
- 'subprocess.Popen([d.expand("${HOST_PREFIX}otool)' requires text-mode (a more
  readable alias for the universal_newlines parameter), since otool produces
  text and the code 'out.split("\n")' expects a string, not a bytes object.
  otool is used on MacOS only, so this error isn't triggered on Linux.

- use 'startswith("darwin")' in order to support all darwin versions and not
  just specific versions (meta-darwin supports darwin21 at the moment).

(From OE-Core rev: 248ca79a6400e063c4965f9542c614bf837ff758)

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>
2024-01-15 21:42:15 +00:00
Ola x Nilsson
fc2d534e38 insane.bbclass: Python code cleanup in check_32bit_symbols
(From OE-Core rev: 67b06035326048323f972107f66eb50cf74def0b)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Ola x Nilsson
ad3eb83b56 insane.bbclass: Check for adjtime in check_32_bit_symbols
adjtime was overlooked in the original commit.

(From OE-Core rev: 07faecd87e77716cfedffeadc52e0982edfd6c7e)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Trevor Woerner
fbbcf19f61 bmaptool: add 3 fixes
I found a couple issues with bmaptool, including a race condition, which I
have fixed and submitted upstream. This patch adds these fixes to the project
now while waiting for feedback and a new release:

	BmapCopy.py: fix error message
	CLI.py: fix block device udev race condition
	BmapCopy.py: tweak suggested udev rule

(From OE-Core rev: 72ae1304bc8d3db14d0a7cc01d10328e47cf5a09)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Fabio Estevam
f7c094fce0 mesa: Upgrade 23.3.2 -> 23.3.3
Mesa 23.3.3 release notes:

https://lists.freedesktop.org/archives/mesa-announce/2024-January/000742.html

(From OE-Core rev: c0ea63f3c8143052a081d696e714b358ef6d03bd)

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>
2024-01-15 21:42:15 +00:00
Alexander Sverdlin
696b71cc95 linux-firmware: package PowerVR firmware
linux-firmware commit 9afbbf25689c
("powervr: add firmware for Imagination Technologies AXE-1-16M GPU")
has added the initial firmware for AXE-1-16M GPU.

New packages will be called linux-firmware-powervr{-license}.

(From OE-Core rev: eb3150c63b8a23a4aa9d526f00f5ed94838d1e7c)

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Alexander Sverdlin
d764029c45 linux-firmware: upgrade 20231030 -> 20231211
(From OE-Core rev: 0caafdbbf4e7dc84b919afe14f7cb8c46a9e4ac2)

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Joe Slater
ea5cea668f init-ifupdown: add predictable interface names
Use a pattern to initialize interfaces which start
with 'en'.  Also, make 'eth0' a pattern so that we
do not see an initialization error if it has been
renamed.

(From OE-Core rev: 4f1ca42b0ae09280247824f08a2b8f22f396b3d1)

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>
2024-01-15 21:42:15 +00:00
Randy MacLeod
d2b445384d rng-tools: move to meta-oe
Nothing in oe-core depends on rng-tools anymore:
   e7e1bc43ca rng-tools: splitting the rng-tools systemd/sysvinit serivce as a package
so move it to meta-oe for people who still want to run rngd
as a service for some reason or for those who want to run rng-test.

(From OE-Core rev: 9a651e5bc2492cf864261e8f17e4cbe34d6d48ce)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Changhyeok Bae
e5a9f41366 iw: upgrade 5.19 -> 6.7
52ae965 bump version to 6.7
ac7e46b update nl80211.h
44686ac iw: allow extra cflags
e2224c7 iw: S1G: add 802.11ah support for link command display
7298198 update nl80211.h
a1c9376 iw: connect: Fix segfault during open authentication
ea706b3 iw: fix attribute size mismatch
cb491fa iw: add more extended capa bits
cf26fc9 iw: Fix EHT rates printing.
f2d9f5b iw: S1G: add list command support for 802.11ah
1bc6ab0 iw: S1G: add parsing for 802.11ah scan IE's
a32046b iw: S1G: add frequency set in kHz and offset options
f5e3b43 util: don't print EHT info if not present
7794573 interface: print links
221875e link: update for MLO
5f64b70 link: fix some formatting
29555e1 iw: scan: set NL80211_SCAN_FLAG_COLOCATED_6GHZ in case of full sched scan
997e5f1 util: add support for 320MHz bandwidth without cf1
81d112f util: add support for 320Mhz bandwidth
de3da80 update nl80211.h
d6fd275 iw: event: fix printf format error
cc660cc iw: add support for retrieving keys
c4743bb iw: info: fix bug reading preambles and bandwidths
82e6fba iw: add cac background command
ad2f2f8 iw: info: print PMSR capabilities

(From OE-Core rev: e44ce3000864407b773f64581ba6eac38b8297c6)

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-15 21:42:15 +00:00
Richard Purdie
61182659c2 bitbake: runqueue: Fix runall all bug
Where chains of RDEPENDS are multiple levels deep, the runall code was not
accounting for this and recursing deeply enough to gather all dependencies.

Fix this by iterating over the result until no more dependencies are found.

Tested-by: Jonas Gorski <jonas.gorski@bisdn.de>
Reported-by: Jonas Gorski <jonas.gorski@bisdn.de>
(Bitbake rev: 966f25dfc23a6d17b2b6d3e0100e9ae264f99025)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:59:36 +00:00
Ross Burton
dda251dfc2 xmlcatalog: limit to native recipes only
The sysroot postinst is explicitly native-only, so use more overrides to
ensure that we don't try to run them outside of native recipes.

Also add a comment so this doesn't get forgotten again, and link to the
related bug.

(From OE-Core rev: 38a5fc5dbb33fd3314f0a98c861a842342add064)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Alexander Kanavin
ea9e07a3e2 shadow: link executables statically for -native variant
shadow 4.14.x adds a number of libraries it dynamically links with
(md, bsd, attr). This causes troubles in setscene tasks where
shadow executables are used (such as useradd), as pulling in
the needed dynamic libraries needs unpleasant special-casing.

(From OE-Core rev: 495ff95eae14a91c94187f78a0b30c7957c9b168)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Alexander Kanavin
405cc80b6b shadow: update 4.13 -> 4.14.2
License-Update: formatting, spdx conversion

Drop:
0001-Disable-use-of-syslog-for-sysroot.patch
(issue fixed upstream)

0001-Fix-can-not-print-full-login.patch
0001-Overhaul-valid_field.patch
CVE-2023-29383.patch
(backports)

libbsd is a new native dependency, as otherwise glibc >= 2.38
is needed.

A similar fix is added to musl in order to define non-standard __BEGIN_DECLS/__END_DECLS.

(From OE-Core rev: e85069acf304fe0b68583cf79fe3ec4f775dca68)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Simone Weiß
1863c0da93 glibc: Set status for CVE-2023-5156 & CVE-2023-0687
Set `CVE_STATUS`for those CVEs, they have already been fixed with the latest
pull for stable branch fixes done in rev
e444d2bed0. Hence the issues are fixed
already.

(From OE-Core rev: 6e6fe23c95f1d0a8a0503cb71557cf3272bf9945)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
ef9f8330c1 cairo: upgrade to 1.18.0
The changelog is large[1] but:

Added:
- Type 3 colour and COLRv2 fonts
- Tee surfice automatically enabled
- Meson build system

Removed:
- The cairo-sphinx tool
- The XML, GL, GLES, Qt5, BeOS, OS/2, DirectFB, DRM, Cogl, and OpenVL
  backends
- Autotools build system

These CVE patches have been merged upstream:
  CVE-2018-19876.patch: 90e85c2493
  CVE-2019-6461.patch: 09643ee1ab
  CVE-2019-6462.patch: bbeaf08190
  CVE-2020-35492.patch: c986a7310b

Some niche options have been removed in the migration to Meson, so the
recipe can be cleaned up.

Put libcairo-fdr ("flight data recorder") in the perf-utils package
instead of deleting it.

There is an executable test for IPC behaviour that needs to be set via a
cross file if qemu-user isn't available, thanks to Alex Kanavin for this
portion.

[1] https://www.cairographics.org/news/cairo-1.18.0/

(From OE-Core rev: 9a4ca6b08d6031ebb67adcdd650aa59acd4fb5fb)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
ac6fb1aa6a meson: use pkg-config in the cross files
>From Meson 1.3.0, the "pkgconfig" entry is deprecated and "pkg-config"
should be used instead[1].

[1] https://mesonbuild.com/Release-notes-for-1-3-0.html#machine-files-pkgconfig-field-deprecated-and-replaced-by-pkgconfig

(From OE-Core rev: d64b307891422e290bbe821d4303b3af526bbe17)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Khem Raj
351737169a opkg-utils: Backport fix to drop --numeric-owner parameter
It fixes the issue with different GIDs during ipk creation and image
creation time

(From OE-Core rev: a7f7d6f0c504f3f88801e0ba89a43e9b671fe4d3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Alexander Kanavin
f315b09758 selftest/SStatePrintdiff: ensure all base signatures are present in sstate in test_image_minimal_vs_base_do_configure
The test relies on all tasks in the dependency tree of the tasks being changed
having valid signatures in sstate, so that the recursive discovery of the
base invalid tasks stops there, and doesn't go further.

This may not always occur, particularly when hash equivalency combined with
different build host architectures prevents them from getting created in regular builds:
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/2725/steps/15/logs/stdio

The other two tests (that change specific recipes) already ensure this, but
this test (which changes a basic task definition) does not.

(From OE-Core rev: e37445320ca1a8913d6ed768681ff32de24eef94)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Khem Raj
912dd77285 coreutils: Ignore line-bytes.sh and no-allocate tests on musl
bash fails in xmalloc when running these tests. More thorough
investigation may reveal real cause, however, it seems to fail on
other musl distros as well.

(From OE-Core rev: cd31bb507bfb794379950dd0aa38b810ba194d2f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Khem Raj
f71b260094 tcl: Fix prepending to run-ptest script
This ensures that string is prepended properly and eclosed in ''
Fixes the ptest runs on musl

(From OE-Core rev: 7bb45591f9caa7ff6b065220927a26e8261e2866)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
79431f5ae3 util-linux: enable gtk-doc
Now that we've solved the util-linux - gtk-doc - xmlto - util-linux
dependency loop, we can enable gtk-doc in util-linux.

We explicitly disable it in util-linux-libuuuid as this doesn't have API
documentation.

(From OE-Core rev: 6999719143df04816c74fbc46d4a97b377bc0b36)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
c8c1c1e4e0 kmod: fix configure with autopoint calling gtkdocize
GTKDOC_DOCDIR is obsolete now, so fix the build by passing the
documentation directory in the GTK_DOC_CHECK call.

(From OE-Core rev: c2f0e8ccd57c18fee36fc0adbbaf63e2302b8268)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
2c8e3a3b83 gtk-doc: don't manually call gtkdocize
The autoreconf call will now call gtkdocize if needed, so we don't need
to run it manually here.

This obsoletes GTKDOC_DOCDIR.  If this is needed then the replacement is
to ensure that the configure.ac has a call to GTK_DOC_CHECK which passes
--docdir.

For example, this is the change required for kmod:

-GTK_DOC_CHECK([1.14],[--flavour no-tmpl-flat])
+GTK_DOC_CHECK([1.14],[--flavour no-tmpl-flat --docdir libkmod/docs])

(From OE-Core rev: 57b0201bfccb4552893d72dc4d76eaa855618563)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
97ef820a60 gtk-doc: don't use docdir set in environment in gtkdocize
The gtkdocize script was accidentally respecting $docdir from the
environment as the default documentation directory. This is a problem as
bitbake.conf exports $docdir, resulting in configure failures.

(From OE-Core rev: d7f8f56e2a91abbadf53fd4c48d6f0e55ac749d1)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
614b228d0a gtk-doc: remove obsolete logic
This manual disabling of gtk-doc for autotools and meson in native and
nativesdk builds is replicating logic above for target builds.

Instead, use one assignment for all builds, as we explicitly disable
gtk-doc in native builds and it can be useful in nativesdk.

(From OE-Core rev: e13b019c61d86f1add32f23795f6e71110c6a70c)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
1cf26ed78b gtk-doc: fix DEPENDS
The use of xmlto and six was removed many years ago, instead depend
directly on docbook-xml and docbook-xsl.

(From OE-Core rev: 3e2114df7b70d8a16873d7e1fb1e61eedf7d3e2a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
3dc895804f autotools: don't exclude gtkdocize
gtkdocize can now be ran successfully from autoreconf, so there's no
need to exclude it and run it manually.

(From OE-Core rev: 891ec38d4c5cc5ac7bc34938276261ebd6f6d54e)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
3c72b2d711 autotools: append to EXTRA_AUTORECONF
Inherit order may mean that this class is inherited after assignments,
so extend instead of assign EXTRA_AUTORECONF.

(From OE-Core rev: 83958b4bdea90a0bb9331d33c2f266900a108fee)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Ross Burton
e7ce961d36 glib-2.0: no need to depend on target gtk-doc
The meson.build looks for a target gtk-doc, but it should be looking for
the native package.

Fixing this means we can drop the need for a target gtk-doc package.

(From OE-Core rev: f91694fa8f5c2c3e6f4946300f040677cb0828fd)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:54:05 +00:00
Lee Chee Yang
0971cf620c migration-guide: add release notes for 4.3.2
(From yocto-docs rev: 29cee590d59294306600a119048a234f10375603)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:06 +00:00
Jörg Sommer
b0f2fd0fad documentation: Add UBOOT_BINARY, extend UBOOT_CONFIG
UBOOT_CONFIG accepts a third parameter for the UBOOT_BINARY that isn't
documented. To show its usage another example from the meta-freescale layer
was picked.

(From yocto-docs rev: 8b227582efbe9957026cdce4aef5621661af1fa5)

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:06 +00:00
Enguerrand de Ribaucourt
ed6c38e3af manuals: document VSCode extension
The VSCode extension is now officially maintained and published by the
Yocto Project so it should be referenced in the manuals to help users
discover it.

I located the most relevant places to reference the extension by looking
at how the old Eclipse plugin was documented in the 2.6 manuals as well
as the current Toaster references.

(From yocto-docs rev: 645153504690aa8a69b028e95a5e9d2da9644cf1)

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Adrian Freihofer
f72759de57 ref-manual: document cmake-qemu class
(From yocto-docs rev: b2e396bd970ea8f27ba575b49c1489e2181442b8)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Ilya A. Kriveshko
0b449adebe dev-manual: update license manifest path
After changes in openembedded-core@1a4ab9f, image licenses moved one
directory down into ${SSTATE_PKGARCH} subdir.

(From yocto-docs rev: ea9675f079cef919a9d13ab12d095144b2eae6ab)

Signed-off-by: Ilya A. Kriveshko <iillyyaa@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Maxin B. John
b5b64bd0e3 ref-manual: classes: remove insserv bbclass
insserv.bbclass was removed from oe-core:

commit e6bb5dbb62
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Sun May 10 12:30:49 2015 +0100

insserv: Remove

(From yocto-docs rev: 41a15a80a325cb63a41be81e632ec2799bfb2957)

Signed-off-by: Maxin John <maxin.john@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Simone Weiß
040eea3de6 dev-manual: start.rst: update use of Download page
The yocto website has changed its structure. Update the section for
Accessing the Downloads page to match the new structure.

(From yocto-docs rev: d8fdec653f96c4ddcb705ff0ef17ed641afcfe2d)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Michael Opdenacker
5841968223 ref-manual: update tested and supported distros
According to currently active workers
https://autobuilder.yoctoproject.org/typhoon/#/workers

Also correct the text saying that SANITY_TESTED_DISTROS
lists currently tested distros.

Also replace AlmaLinux 8.8 and 9.2 by just AlmaLinux 8 and 9,
as we update our workers anyway.

(From yocto-docs rev: bceadfad0954e8473b0e87bba8d6b1e67fd88eef)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Michael Opdenacker
120ac9aa8b contributor-guide: use "apt" instead of "aptitude"
As used in the rest of the manual.

(From yocto-docs rev: 5a5dfc446bb62568da50056660d18c5c309d1051)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-12 11:34:05 +00:00
Yang Xu
b11e3aa995 rootfs.py: check depmodwrapper execution result
The execution result of depmodwrapper is not checked which makes depmod
generation failed sliently and hard to detect.

So check exection result and stop building if depmodwrapper failed.

(From OE-Core rev: 2f88e7d331390c6aaecc4522253e24791aec299e)

Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 17:01:28 +00:00
Fabio Estevam
41eb4934cf kmscube: Add package version
kmscube meson.build passes version : '0.0.1', so add a package
version entry to match.

Suggested-by: Martin Jansa <martin.jansa@gmail.com>
(From OE-Core rev: be1b8f2c7f6763f64f7fdfd6e17586403bd63a7e)

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>
2024-01-10 17:01:28 +00:00
Fabio Estevam
17404d96e7 kmscube: Change header file to <GLES3/gl3.h>
Since kmscube commit 96d63eb59e34 ("kmscube: Add gears mode"), kmscube
fails to build on platforms without <GL/gl.h>.

Fix it by changing the header file to <GLES3/gl3.h>.

Reported-by: Martin Jansa <martin.jansa@gmail.com>
(From OE-Core rev: f44f79298fc909aea9fcc8ebc848a96e9ff5a647)

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>
2024-01-10 17:01:28 +00:00
Rodrigo M. Duarte
a3299e18a7 linux-firmware: Fix the linux-firmware-bcm4373 FILES variable
This commit includes the 'cyfmac4373-sdio.clm_blob' file in
the list of files for the linux-firmware-bcm4373 package.
Without this file, the linux-firmware package adds all
firmware packages to the image.

(From OE-Core rev: 7886d3b77200e4488393fa11c8198658fcf386cd)

Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 17:01:28 +00:00
david d zuhn
cf13119179 rng-tools: remove obsolete build time dependency on sysfsutils
This package used to use libsysfs, but has been modified to read
the /sys file system directly.  This build dependency is no longer
needed.

(From OE-Core rev: 9ee39dd1d505f787e7bf4e3aa2b527f17c3a78cd)

Signed-off-by: david d zuhn <david.zuhn@sonos.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 17:01:28 +00:00
Joshua Watt
91694dfce7 syslinux: Allow mtools to be optional
Adds a PACKAGECONFIG to syslinux to determine if the mtools version of
the utilities is installed or not. The difference between the two
versions is that the mtools version can be used by any user with write
permission, while the non-mtools can only be used by root.

The syslinux-nomtools package is removed, as it was empty and doesn't
appear to be used anyway

(From OE-Core rev: 06da552733091bc8d332bb932c86cbc8362d44b9)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 17:01:28 +00:00
Corentin Guillevic
56c7ea02d2 systemd: add udev-bash-completion package
Move the 'udevadm' autocompletion script into a dedicated package.
Indeed, bash (and therefore, the bash-completion package) is not
always installed. But the 'udevadm' autocompletion script remains
in ${datadir}/bash-completion.

Creating a dedicated package allows better split, and avoids
installing it if the bash-completion package is missing.

(From OE-Core rev: 7155ceadbd90b7c90fa0d734f8bc8b089ddd12f3)

Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 17:01:28 +00:00
Fabio Estevam
40d0aff1c2 u-boot: Upgrade to 2024.01
Upgrade to U-Boot 2024.01.

(From OE-Core rev: 727ff6fed97118113dc191605bf5551ca0da134d)

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>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
46262ee83e selftest/sstatetests: include fetcher diagnostics into CDN test failure message
This will help finding out what kind of error the server actually returned,
as sporadic CDN failures continue to occur.

[YOCTO #15335]

(From OE-Core rev: 7f09c4c5a0fe4ff213f205927f618a77b72aeef3)

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>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
90ca84dbf9 icon-naming-utils: take tarball from debian
Upstream website has disappeared; the tarball can still be downloaded
but this is probably not for long.

(From OE-Core rev: af59c518467d1174d1d63594fdd3279a2fdbd8f8)

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>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
9d0db48925 libpcre2: fix upstream version check
(From OE-Core rev: 0eb4e166d293e0e595e4d0a70f378cb8014425ee)

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>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
fe702844b3 taglib: fix upstream version check
(From OE-Core rev: 2ed130333fb4f378e4d2a91b3d37d12716dd41f7)

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>
2024-01-10 17:01:28 +00:00
Mingli Yu
7fae6f3500 gptfdisk: Make the version consistent
The previous change [262aa17e0e popt: update 1.18 -> 1.19] backports a
patch [1] for gptfdisk and make the version bump from 1.0.9 to 1.0.9.1
and make the package version inconsistent as below:
root@qemux86-64:~# rpm -qa | grep gptfdisk
gptfdisk-1.0.9-r0.core2_64
root@qemux86-64:~# rpm -ql gptfdisk
/usr
/usr/sbin
/usr/sbin/cgdisk
/usr/sbin/fixparts
/usr/sbin/gdisk
/usr/sbin/sgdisk
root@qemux86-64:~# gdisk --help
GPT fdisk (gdisk) version 1.0.9.1

[snip]

So update the bumped version part to make the package version consistent.

[1] 5d5e76d369

(From OE-Core rev: 8b43f06736321c3e9e6a9f418139058be4f2b355)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
5e1bc611d6 python3-cython: update 0.29.36 -> 3.0.7
pep517 build backends require cython 3.x when
python is at 3.12, so we can't hold this update any
longer. There are only a few things in meta-oe
and meta that break anymore, and fixes for them
are provided at the same time as this patch.

License-update: http -> https

(From OE-Core rev: 21507a3be23a604259a6a903a7083db54d29487f)

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>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
1a27085092 python3-pyyaml: make compatible with cython 3.x
This has been rejected by upstream in favour of requiring obsolete cython
until there's 'proper' 3.x support. Months later, there's still no progress
so let's just take the rejected fix, as it does work (as reported by others as well),
and allows moving forward with cython.

(From OE-Core rev: cf4e45176a37b6f53a6316ec6b1556d6aea39b57)

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>
2024-01-10 17:01:28 +00:00
Alexander Kanavin
7b3668a0aa selftest/sstatetest: re-enable gcc printdiff test
(From OE-Core rev: 976832eb0c3fc0170a84ff7ab92352ca6f18c383)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 16:32:13 +00:00
Alexander Kanavin
67be7cf82b selftest/sstatetests: fix up printdiff test to match rework of printdiff logic
Other than the formatting changes, there are two functional ones:

- use perlcross instead of quilt, as quilt is special in the sense
of being excluded from task hash calculcations. perlcross is a full
participant.

- run the full test (local + sstate) for gcc do_preconfiure change
as the necessary fix has been implemented
(sstatesig/find_siginfo: special-case gcc-source when looking in sstate caches)

Note that when several tasks are found to have changed (as is the case
when base do_configure is adjusted), find_siginfo() runs
glob.glob("*/*/*taskname*") against autobuilder sstate cache for each
of those tasks (six or seven times). This is an expensive operation
taking several minutes. I left it in for now, but if it's proven too slow
the test would have to be reduced to checking a specific base recipe
(e.g. zstd-native) rather than a distant image target.

[YOCTO #15289]

(From OE-Core rev: 0ef7cf324718412c5b6c376acfbc4079ecd7d465)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 16:32:13 +00:00
Alexander Kanavin
67e3f24333 bitbake: bitbake/runqueue: rework 'bitbake -S printdiff' logic
Previously printdiff code would iterate over tasks that were reported as invalid or absent,
trying to follow dependency chains that would reach the most basic invalid items in the tree.

While this works in tightly controlled local builds, it can lead to bizarre reports
against industrial-sized sstate caches, as the code would not consider whether the
overall target can be fulfilled from valid sstate objects, and instead report
missing sstate signature files that perhaps were never even created due to hash
equivalency providing shortcuts in builds.

This commit reworks the logic in two ways:

- start the iteration over final targets rather than missing objects
and try to recursively arrive at the root of the invalid object dependency.

A previous version of this patch relied relies on finding the most 'recent'
signature in stamps or sstate in a different function later, and recursively
comparing that to the current signature, which is unreliable on real world caches.

- if a given object can be fulfilled from sstate, recurse only into
its setscene dependencies; bitbake wouldn't care if dependencies
for the actual task are absent, and neither should printdiff

I wrote a recursive function for following dependencies, as
doing recursive algorithms non-recursively can result in write-only
code, as was the case here.

[YOCTO #15289]

(Bitbake rev: aadeca63da5d96160ce4d6d71da556e2e033f9b7)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 16:32:13 +00:00
Mark Asselstine
98c5c96dd3 bitbake: ui/knotty: properly handle exceptions when calling runCommand()
In runCommand() the send() and recv() can fail and raise
BrokenPipeError and EOFError exceptions when the bitbake-server is
unexpectedly terminated. In these cases a python traceback is
currently dumped. Similarly updateFromServer() which calls
runCommand() can also raise these and other exceptions, and currently
lacks proper exception handling resulting in python traceback.

We wrap calls to runCommand() and updateFromServer() in a try/except
block as well as improve the exception handling for updateToServer().

This along with the earlier commit which added text to the
BrokenPipeError and EOFError exceptions in runCommand() to indicate a
bitbake-server termination may have occurred, should improve the user's
ability to understand and handle these errors.

An easy way to trigger each of the runCommand() exceptions is to
'kill -9' bitbake-server before (causes EOFError) or after
(causes BrokenPipeError) the "Loading Cache" stage.

(Bitbake rev: 804d366ee3ddc0f37f0a6c712c8d42db45b119bc)

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 14:02:38 +00:00
Mark Asselstine
bc22d82c2f bitbake: server/process: catch and expand multiprocessing connection exceptions
Doing builds on systems with limited resources, or with high demand
package builds such as chromium it isn't uncommon for the OOM Killer
to be triggered and for bitbake-server to be selected as the process
to be killed. When the bitbake-server does terminate unexpectedly due
to the OOM Killer or otherwise, this currently results in a generic
python traceback with little indication as to what has failed.

Here we trap and raise the exceptions while extending the exception
text in runCommand() to make it clear that this is most likely caused
by the bitbake-server unexpectedly terminating.

Callers of runCommand() should be updated to properly handle the
BrokenPipeError and EOFError exceptions to avoid printing a python
traceback, but even if they don't, the added text in the exceptions
should provide some hints as to what might have caused the failure.

(Bitbake rev: 5ff62b802f79acc86bbd6a99484f08501ff5dc2d)

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 14:02:38 +00:00
Richard Purdie
c665a2c933 bitbake: ast: Fix EXPORT_FUNCTIONS bug
If you have two classes, both of which set EXPORT_FUNCTIONS for the same funciton
and a standard funciton definition for the function that is exported, the export
function can sometimes overwrite the standard one.

The issue is that the internal flag the code uses isn't ovweritten if the variable
is giving a new value. Fix the issue by using a comment in the code that is injected
so that we know if it is ours or not.

Also add some testing for EXPORT_FUNCTIONS, not perfect but a start.

(Bitbake rev: 66306d5151acb0a26a171c338d8f60eb9eb16c6b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Alexander Kanavin
56b1af37dc bitbake: fetch/wget/checkstatus(): include the URL in debugging output about status check failure
Previously the output wasn't useful for finding out what was the actual
URL that failed, particularly in heavily multi-threaded invocations:

DEBUG: checkstatus() urlopen failed: HTTP Error 404: Not Found

With this change, the problem is described specifically:

DEBUG: checkstatus() urlopen failed for http://cdn.jsdelivr.net/yocto/sstate/all/universal/4f/91/sstate:gettext-minimal-native:x86_64-linux:0.22.4:r0:x86_64:11:4f91b650ebd7be601cbd0e3a37a8cc6385a3f4ee616f931969b50709ed8bf044_create_spdx.tar.zst: HTTP Error 404: Not Found

This will help with CDN cache tests in particular. When some object
isn't available, we need to know why: 4xx error, 5xx error, timeout
error or any other issue.

(Bitbake rev: ecd9b92815563509f55264ed6e7498aee797cedd)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Alexander Kanavin
4890c6a7ca bitbake: fetch/checkstatus(): do not print the URI twice in FetchError exception
Previously, there was duplicate clutter in the output, particularly if the
URI points to sstate cache items:

bb.fetch2.FetchError: Fetcher failure for URL: {uri}. URL {uri} doesn't work

(Bitbake rev: 61537b8a98b963e4af265e046d41407b32fa5935)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Robert Yang
4e2fcdb383 bitbake: bitbake: tests/event: Add test_lineno_in_eventhandler
Add test_lineno_in_eventhandler to test lineno in eventhandler.

(Bitbake rev: 4e5de537bebb68180c5755858c81b095eb9ae2f6)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Robert Yang
3f41592920 bitbake: bitbake: event: Inject empty lines to make code match lineno in filename
So that we can get the correct error messages.

* In python 3.10.9, the error message was:
  ERROR: Unable to register event handler 'defaultbase_eventhandler':
    File "/path/to/poky/meta/classes-global/base.bbclass", line 4
      # SPDX-License-Identifier: MIT
             ^^^^^
  SyntaxError: invalid syntax

  This is hard to debug since the error line number 4 is incorrect, but nothing
  is wrong with the code in line 4.

* Now the error message and lineno is correct:
  ERROR: Unable to register event handler 'defaultbase_eventhandler':
    File "/path/to/poky/meta/classes-global/base.bbclass", line 256
      an error line
         ^^^^^
  SyntaxError: invalid syntax

And no impact on parsing time:
* Before:
$ rm -fr cache tmp; time bitbake -p
real    0m27.254s

* Now:
$ rm -fr cache tmp; time bitbake -p
real    0m27.200s

(Bitbake rev: c212933d9c786806852c87f188250a4f0a14c048)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Alassane Yattara
36dc42bde7 bitbake: toaster/tests: Bug-fix ToasterTable show_rows testcases
Test if some rows are visible in table instead of compare row to row_to_show,
because sometime full avaiblable content did not display

Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/147/steps/12/logs/stdio

(Bitbake rev: 5b0a48265aafa62259c575707c3afa6dd56f8008)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Alassane Yattara
0dcf84f830 bitbake: toaster/tests: Bug-fix "element not interactable" in TestLayerDetailsPage::test_edit_layerdetails
Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/143/steps/12/logs/stdio

(Bitbake rev: 187e96eb7393632f28a195f280fa133439bdc0fa)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Alassane Yattara
c0ade693af bitbake: toaster/tests: bug-fix "#hint-error-project-name" should be visible
Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/142

(Bitbake rev: 0ee5f4e06476b0ec2f5ea8c9f05d299ddda6312b)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Alassane Yattara
49ccf2f5e0 bitbake: toaster/tests: Setup delay after driver action self.get(url)
Recurring test failures result from insufficient delays in driver actions.

(Bitbake rev: b0de2a61d14fbf30e338751b285b3bab80192275)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-10 13:55:33 +00:00
Ming Liu
0d93308425 qemu.bbclass: fix a python TypeError
QEMU_OPTIONS can be empty which will trigger a exception TypeError:
| can only concatenate str (not "NoneType") to str. Fix it by setting a
empty string.

ALso removed two useless blanks.

(From OE-Core rev: b619197bd52a4a99a9989e7ea6fb7032415b1e42)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-09 22:59:28 +00:00
Fabio Estevam
04f1d1ec6b usbutils: Update to version 017
Update to version 017 and add a patch to fix a buildpath error.

(From OE-Core rev: 66877ee144a4ccf36c55a8c027a36a21bb58fa47)

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>
2024-01-09 22:59:28 +00:00
Fabio Estevam
14220bb99c libusb1: Do not match on -rc versions
Currently, the upstream check gives incorrect results:

$ devtool latest-version libusb1
...
INFO: Current version: 1.0.26
INFO: Latest version: 1.0.27

There is no 1.0.27 release yet, only 1.0.27-rc1.

Anuj Mittal has submitted the fix in v2:
https://lists.openembedded.org/g/openembedded-core/message/192683

but the original version was applied instead.

Fix it by passing "$" to make an exact match on the version.

With this change applied, devtool reports the correct
latest version:

INFO: Current version: 1.0.26
INFO: Latest version: 1.0.26

(From OE-Core rev: 81b97e4727592e4abbbab284b8d8161c1eda52b8)

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>
2024-01-09 22:59:28 +00:00
Alexander Kanavin
f01ea3700e devtool/standard: correctly escape \
python 3.12 points out that:

SyntaxWarning: invalid escape sequence '\*'

(From OE-Core rev: bafb4b4edb4fb7908fdda272b7b2c2cbdef4728b)

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>
2024-01-09 22:59:28 +00:00
Tim Orling
d04ed37fa7 python3-attrs: enable ptest
The conftest.py file is needed to define the "slots" and "frozen" fixtures
for pytest

(From OE-Core rev: c27ddbe1dcfae564e93593c90517c2b4502d1709)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-09 22:59:28 +00:00
Tim Orling
64a737df5f python3-bcrypt: upgrade 4.1.1 -> 4.1.2
* Refresh -crates.inc

https://github.com/pyca/bcrypt/compare/4.1.1...4.1.2

https://github.com/pyca/bcrypt/?tab=readme-ov-file#changelog
https://github.com/pyca/bcrypt/?tab=readme-ov-file#412

* Publish both py37 and py39 wheels. This should resolve some errors
  relating to initializing a module multiple times per process.

(From OE-Core rev: 2f428acc78e37aec78d11aac9605f0311b6b9c4a)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-09 22:59:28 +00:00
William Lyu
20278437b0 elfutils: Update license information
Update license information for overall package, package libraries, and
package utilities in the recipe to match the license information as
described on the upstream website [1]:

"License. The libraries and backends are dual GPLv2+/LGPLv3+. The
utilities are GPLv3+."

[1] https://sourceware.org/elfutils

(From OE-Core rev: c0728805f24cbd6a788871ae54af4ec8307e40d4)

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>
2024-01-09 22:59:28 +00:00
Chen Qi
cf7152a4cb util-linux/util-linux-libuuid: ugprade from 2.39.2 to 2.39.3
License-Update:
===============
GPL-1.0-or-later is added. fdisk.c is licensed under it.

0001-lscpu-Use-4K-buffer-size-instead-of-BUFSIZ.patch is dropped as
it's been in the new version.

(From OE-Core rev: 9a0bd46e6988b2da446f89864131639dde63c6d0)

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>
2024-01-09 22:59:28 +00:00
Alassane Yattara
070aa22705 bitbake: toaster/tests: Delay driver first action on create new project page
Wait for element visible on create new project page

(Bitbake rev: 664de3f6d3484b94f5d82ec634b512b825553aa9)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 22:59:55 +00:00
Alassane Yattara
1cd56989a0 bitbake: toaster/tests: Bug-fix element click intercepted
Fix "element click intercepted" on TestProjectConfigTab::test_project_config_tab_right_section

(Bitbake rev: c8685c762aa1fab687ff3a0943487675ef720755)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 22:59:55 +00:00
Alassane Yattara
74c234bf0d bitbake: toaster/tests: Bug-fix on TestProjectConfigTab::test_image_recipe_show_rows
Check some rows are visible in table instead of compare table row to
row_to_show, because recipe image table sometime doesn't display full avaiblable
images

(Bitbake rev: 1e2e5927ef7a8adfd3d0a3be1c75b4aa410d9908)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 22:59:55 +00:00
Khem Raj
6d4fb81e80 gawk: Add coreutils to rdeps for ptests package
newer gawk 5.3.0+ added a new testcase test/cmdlinefsbacknl2.sh which
use od utility with -An option which is not available in busybox
provided od applet. Replacing -An is not possible because default output
for od is octal and the test wants to use none for radix thats why it
uses -An.

Fixes test/cmdlinefsbacknl2.sh failures in ptests

which fails like below

   Usage: od [-aBbcDdeFfHhIiLlOovXx] [FILE]
    od: unrecognized option: A
    BusyBox v1.36.1 () multi-call binary.

Sadly, this prolongs depchain if ptest distro feature is used but there
is no other option if this test has to execute. Perhaps its best to
report this to upstream gawk and request to fix the testcase to not
hard depend on coreutils/od utility

(From OE-Core rev: ddcf27939625d96ee44e9c2297d5b17fa6cf46a0)

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>
2024-01-07 12:24:57 +00:00
Mikko Rapeli
a703d8ddef oeqa systemd.py: settle() using "running" or "degraded" state
systemd boot has completed when system is in "running" or "degraded"
(some services failed) state. Check for that in the systemd settle()
function instead of listing all services and checking their activation
state since some services are in activation state even when whole
system is already in "running" state. Examples of services which can be
in activation state are rootfs auto mounting related generated services.

Without this patch systemd test_systemd_list (systemd.SystemdBasicTests) times
out on an image with dm-verity /usr partition and systemd generated
rootfs:

NOTE:  ... FAIL
Traceback (most recent call last):
  File "/home/builder/src/base/build/../poky/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
    return func(*args, **kwargs)
  File "/home/builder/src/base/poky/meta/lib/oeqa/runtime/cases/systemd.py", line 97, in test_systemd_failed
    self.assertTrue(settled, msg=msg)
AssertionError: False is not true : Timed out waiting for systemd to settle:
  UNIT                                                                                              LOAD   ACTIVE     SUB
     DESCRIPTION
  dev-disk-by\x2did-dm\x2dname\x2droot.device                                                       loaded activating tentativ
e    /dev/disk/by-id/dm-name-root
  dev-disk-by\x2did-dm\x2dname\x2dusr.device                                                        loaded activating tentativ
e    /dev/disk/by-id/dm-name-usr
  dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dLUKS2\x2df2b944f394174eb5918cb6af2c6b4cb2\x2droot.device loaded activating tentativ
e    /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-f2b944f394174eb5918cb6af2c6b4cb2-root
  dev-disk-by\x2did-dm\x2duuid\x2dCRYPT\x2dVERITY\x2d3dd703c88f1946658697a6d57617473b\x2dusr.device loaded activating tentativ
e    /dev/disk/by-id/dm-uuid-CRYPT-VERITY-3dd703c88f1946658697a6d57617473b-usr
  dev-disk-by\x2duuid-bfbf856e\x2d3c65\x2d4eb2\x2d9ffb\x2d8e0b11641d85.device                       loaded activating tentativ
e    /dev/disk/by-uuid/bfbf856e-3c65-4eb2-9ffb-8e0b11641d85
  dev-dm\x2d0.device                                                                                loaded activating tentativ
e    /dev/dm-0
  dev-dm\x2d1.device                                                                                loaded activating tentativ
e    /dev/dm-1
...

Fix is to check for the systemd global "running" or "degraded" state.
Note that it would be possible to use a blocking call
"systemctl is-system-running --wait" to exit after system enters "running"
or "degraded" state but using the existing loop for a 2 minute timeout.

(From OE-Core rev: 3b013ae441d117adeda0d9950e02e9f7d0deba2f)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 12:24:57 +00:00
Jamin Lin
64d5db2f89 devtool: modify: fix exception
Root Cause:
initial_revs is an empty dictionary and do not have "." key.

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

Solution:
check key exists, then get its value.

(From OE-Core rev: fb0db5c48abb4d56233a175fdd349d18b972e452)

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 12:24:57 +00:00
Wang Mingyu
ee274a9d08 python3-lxml: upgrade 4.9.4 -> 45.0.0
Changelog:
==========
-LP#1976304: The "Element.addnext()" method previously inserted the new element
 before existing tail text.  The tail text of both sibling elements now stays on
 the respective elements.
-LP#1980767, GH#379: "TreeBuilder.close()" could fail with a "TypeError" after
 parsing incorrect input.
-"Element.itertext(with_tail=False)" returned the tail text of comments and
 processing instructions, despite the explicit option.
-GH#370: A crash with recent libxml2 2.11.x versions was resolved.
-A compile problem with recent libxml2 2.12.x versions was resolved.
-The internal exception handling in C callbacks was improved for Cython 3.0.
-The exception declarations of "xmlInputReadCallback", "xmlInputCloseCallback",
-"xmlOutputWriteCallback" and "xmlOutputCloseCallback" in "tree.pxd" were
 corrected to prevent running Python code or calling into the C-API with a live
 exception set.
-GH#385: The long deprecated "unittest.makeSuite()" function is no longer used.
-LP#1522052: A file-system specific test is now optional and should no longer fail
 on systems that don't support it.
-GH#392: Some tests were adapted for libxml2 2.13.
-Contains all fixes from lxml 4.9.4.

(From OE-Core rev: 5d9cd0ef5f7235eb5c8495a803bea6940c2994fe)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
f76ddac2f7 python3-attrs: upgrade 22.1.0 -> 23.2.0
Changelog:
===========
- The type annotation for 'attrs.resolve_types()' is now correct.
- Type stubs now use 'typing.dataclass_transform' to decorate dataclass-like
  decorators, instead of the non-standard '__dataclass_transform__' special
  form, which is only supported by Pyright.
- Fixed serialization of namedtuple fields using 'attrs.asdict/astuple()'
  with 'retain_collection_types=True'.
- 'attrs.AttrsInstance' is now a 'typing.Protocol' in both type hints and code.
  This allows you to subclass it along with another 'Protocol'.
- If *attrs* detects that '__attrs_pre_init__' accepts more than just 'self',
  it will call it with the same arguments as '__init__' was called.
  This allows you to, for example, pass arguments to 'super().__init__()'.
- Slotted classes now transform 'functools.cached_property' decorated methods
  to support equivalent semantics.
- Added *class_body* argument to 'attrs.make_class()' to provide additional
  attributes for newly created classes.
  It is, for example, now possible to attach methods.

(From OE-Core rev: 9070758f0bb806f763a0d07b2b58b8b84b255880)

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>
2024-01-07 12:24:57 +00:00
Chen Qi
468633036c sudo: upgrade from 1.9.15p2 to 1.9.15p5
(From OE-Core rev: 4b2eccc0ee3f2906f9b04de194b9df6e24c2cdf4)

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>
2024-01-07 12:24:57 +00:00
Chen Qi
ffefbfb66b dbus-wait: bump srcrev
This upgrade only includes one new commit:
64bc7c8 SECURITY.md: Add file

(From OE-Core rev: ea1705501c2e8933a94b5a1d19f6e36d46a5b481)

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>
2024-01-07 12:24:57 +00:00
Yi Zhao
3fc6170fe4 libcap-ng-python: upgrade 0.8.3 -> 0.8.4
ChangeLog:
  - In capng_change_id, clear PR_SET_KEEPCAPS if returning an error
  - pscap: add -p option for reporting a specified process
  - Annotate function prototypes to warn if results are unused
  - Drop python2 support

* Remove "--with-python" option as python2 support was dropped.

(From OE-Core rev: ee0eab240976f3bd0c9050694524336368c96201)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 12:24:57 +00:00
Yi Zhao
d1792b9ad3 libcap-ng: upgrade 0.8.3 -> 0.8.4
ChangeLog:
  - In capng_change_id, clear PR_SET_KEEPCAPS if returning an error
  - pscap: add -p option for reporting a specified process
  - Annotate function prototypes to warn if results are unused
  - Drop python2 support

* Remove "--with-python" option as python2 support was dropped.

(From OE-Core rev: 8d2fbe1de759d36a8aeb184aaf89bb7c14fb3760)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 12:24:57 +00:00
Khem Raj
f99f55259d rpm: Fix build with musl
(From OE-Core rev: cd610101dc8fcb0cabe351085d36823c5bd7eb19)

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>
2024-01-07 12:24:57 +00:00
Khem Raj
992d59564b connman: Fix build with musl
(From OE-Core rev: d0139bcbe0499e570f02f8f7b7e364763f7359ec)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
0638e664c0 python3-pytest: upgrade 7.4.3 -> 7.4.4
Changelog:
============
-Fix non-string constants at the top of file being detected as docstring
s on Python>=3.8.
-Handle an edge case where sys.stderr and sys.__stderr__ might already be
 closed when Fault Handler is tearing down.
-Fixed tracebacks from collection errors not getting pruned.
-Removed unhelpful error message from assertion rewrite mechanism when exceptions
 are raised in __iter__ methods. Now they are treated un-iterable instead.
-Updated documentation to refer to hyphenated options: replaced --junitxml with
 --junit-xml and --collectonly with --collect-only.

(From OE-Core rev: 14c73455c4b0ac369ba50a57b69e9c780022a485)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
4464aebcfc python3-pycryptodomex: upgrade 3.19.0 -> 3.19.1
Changelog:
Fixed a side-channel leakage with OAEP decryption that could be exploited to carry out a Manger attack.

(From OE-Core rev: a6800df99159ab51b059bc2307049a72f7fcd663)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
84cd0f2731 python3-pycryptodome: upgrade 3.19.0 -> 3.19.1
Changelog:
Fixed a side-channel leakage with OAEP decryption that could be exploited to carry out a Manger attack.

(From OE-Core rev: d3b9b9f8d868602010b1de549f92758c78c701e0)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
1c3fe08017 python3-hypothesis: upgrade 6.92.1 -> 6.92.2
Changelog:
============
updates vendored list of top-level domains, which is used by the provisional domains() strategy.

(From OE-Core rev: 7e6e484f4c36c098dc7dc17b6e7e6b4361572608)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
67c02597c1 python3-hatch-fancy-pypi-readme: upgrade 23.1.0 -> 24.1.0
Changelog:
===========
-Added a default to an internal API that is used by scikit-build-core.
-$HFPR_VERSION is now replaced by the package version in the PyPI readme.
 The version is not available in CLI mode, therefore it's replaced by the dummy
 value of 42.0.

(From OE-Core rev: 9e59d673b773289a2d73cc5502c814860f31f6bf)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
76f693eb25 python3-dbusmock: upgrade 0.30.1 -> 0.30.2
Changelog:
 bluez5: Fix invalid arguments to PairDevice

(From OE-Core rev: 6faf9db7604a55fa738f87e46cea5056acec47be)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
4989adbebb subversion: upgrade 1.14.2 -> 1.14.3
Changelog:
============
 - Client-side bugfixes:
    * Fix svn:mergeinfo diff parser bug when parsing forward merges (r1906502)
    * Fix redirected URL handling with file externals (r1908926, issue #4911)
 - Developer-visible changes:
    * swig-rb: Fix uses of 'File.exist?', deprecated since Ruby 2.1 (r1904472)
    * Build: Fix uses of deprecated Python APIs (r1900882, issue #4899)
    * Build: Retain ability to build SWIG Python 2 bindings (r1900890)
    * Fix reading WC lock status with svn_wc_status2_t (r1904193, issue #4908)
    * JavaHL: Add @Deprecated to silence compiler warnings (r1904936)
    * JavaHL: Fix crash in case of null message in getMessage (r1904938)
    * Fix build breakage of release tarballs by installed swig (r1878379 et al)
    * Add regression test for issue #4711 "invalid xml file" (r1877310)
    * swig-py: Fix building with SWIG 4.1.0 (r1904167)
    * Makefile.in: Fix cleaning of __pycache__ dirs and *.pyc (r1903267)
    * swig-py: Avoid deprecated options to SWIG >= 4.1.0 (r1904198, r1904287)
    * swig-py: Use sysconfig to allow building with Python 3.12 (r1910098)
    * INSTALL: Document not to use SVN with APR 1.7.3 on Windows (r1911278)
    * Fix test suite broken by syntax error when --enable-sasl (r1907124)
    * swig-py: Fix issues #4916, #4917, #4918 (r1912500 et al)
    * swig-py: Improve error when no external diff (r1912724, -743, issue #1778)
    * autogen.sh: Fix building when Python is not named "python" (r1903245)

(From OE-Core rev: 31c0f3697a5d469a11f7cf0bf04e6368fbbbfa50)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
7978fd547e mesa: upgrade 23.3.1 -> 23.3.2
0001-meson.build-check-for-all-linux-host_os-combinations.patch
refreshed for 23.3.2

(From OE-Core rev: dd1f7452642d819dd4bc15500d9e4eb5e5cd64c6)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
a062b7727d ccache: upgrade 4.8.3 -> 4.9
License-Update:
===============
Upgrade to fmt 10.1.1
Upgrade to cpp-httplib 0.14.3
Upgrade to BLAKE3 1.5.0

Changelog:
 https://ccache.dev/releasenotes.html#_ccache_4_9

0001-xxhash.h-Fix-build-with-gcc-12.patch
refreshed for 4.9

(From OE-Core rev: a237c43adc717ea92e1353ee93c29b47a52ad81a)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
fc0402dbd7 meson: upgrade 1.3.0 -> 1.3.1
0001-Make-CPU-family-warnings-fatal.patch
0001-python-module-do-not-manipulate-the-environment-when.patch
0002-Support-building-allarch-recipes-again.patch
refreshed for 1.3.1

(From OE-Core rev: 51b5e79cd37de982492991e56362cf1f0ef2ab8e)

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>
2024-01-07 12:24:57 +00:00
Wang Mingyu
0c7eca932f ffmpeg: upgrade 6.1 -> 6.1.1
Changelog:
==========
- avcodec/mpegvideo_enc: Dont copy beyond the image
- avfilter/vf_minterpolate: Check pts before division
- avfilter/avf_showwaves: Check history_nb_samples
- avformat/flacdec: Avoid double AVERRORS
- avfilter/vf_vidstabdetect: Avoid double AVERRORS
- avcodec/vaapi_encode: Avoid double AVERRORS
- avfilter/vf_swaprect: round coordinates down
- avfilter/vf_swaprect: Use height for vertical variables
- avfilter/vf_swaprect: assert that rectangles are within memory
- avfilter/af_alimiter: Check nextpos before use
- avfilter/f_reverse: Apply PTS compensation only when pts is available
- avfilter/af_stereowiden: Check length
- avformat/mov: Fix MSAN issue with stsd_id
- avcodec/jpegxl_parser: Check get_vlc2()
- avfilter/vf_weave: Fix odd height handling
- avfilter/edge_template: Fix small inputs with gaussian_blur()
- avfilter/vf_gradfun: Do not overread last line
- avfilter/avf_showspectrum: fix off by 1 error
- avcodec/jpegxl_parser: Add padding to cs_buffer
- avformat/mov: do not set sign bit for chunk_offsets
- avcodec/jpeglsdec: Check Jpeg-LS LSE
- avcodec/osq: Implement flush()
- configure: Enable section_data_rel_ro for FreeBSD and NetBSD aarch64 / arm
- avcodec/cbs_h266: more restrictive check on pps_tile_idx_delta_val
- avcodec/jpeg2000htdec: check if block decoding will exceed internal precision
- tools/target_dec_fuzzer: Adjust threshold for VMIX
- avcodec/av1dec: Fix resolving zero divisor
- avformat/mov: Ignore duplicate ftyp
- avformat/mov: Fix integer overflow in mov_read_packet().
- lavc/qsvdec: return 0 if more data is required
- avcodec/jpegxl_parser: check ANS cluster alphabet size vs bundle size
- libavformat/vvc: Make probe more conservative
- hwcontext_vulkan: guard unistd.h include
- lavc/Makefile: build vulkan decode code if vulkan_av1 has been enabled
- lavc/dvdsubenc: only check canvas size when it is actually set
- avcodec/decode: validate hw_frames_ctx when AVHWAccel.free_frame_priv is used
- avcoded/fft: Fix memory leak if ctx2 is used
- avcodec/fft: Use av_mallocz to avoid invalid free/uninit

(From OE-Core rev: e9ca6bdd43069c0b25115ae70dc09f0dda93ab1f)

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>
2024-01-07 12:24:57 +00:00
Chen Qi
8ea90fd103 systemd-bootchart: upgrade from 234 to 235
0001-architecture-Recognise-RISCV-32-RISCV-64.patch is dropped because
it has some problem. It's a patch from systemd repo, yet it's marked
as 'Backport' for systemd-bootchart. systemd and systemd-bootchart are
two different projects. Now in 235, RISCV64 has been officially supported,
but RISCV32 is not. So drop this patch. People who want RISCV32 support
need to work with systemd-bootchart upstream first.

(From OE-Core rev: 1f6dfaedcc01071b7ec17a411264f39c327e4dc0)

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>
2024-01-07 12:24:57 +00:00
Chen Qi
b221ae6cde gawk: upgrade from 5.2.2 to 5.3.0
(From OE-Core rev: 2076e830de2846dd0dfeba86637e575ced85aa54)

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>
2024-01-07 12:24:57 +00:00
Mingli Yu
8c732425ed openssh: Add PACKAGECONFIG option to customize sshd mode
Add systemd-sshd-socket-mode PACKAGECONFIG option to choose installing
sshd.socket and systemd-sshd-service-mode PACKAGECONFIG option to choose
installing sshd.service.

The systemd-sshd-socket-mode PACKAGECONFIG option is enabled by default
and user can choose the above two PACKAGECONFIG option to customize the
sshd mode.

(From OE-Core rev: bc830ad3c6a11af1a350dca7f33f0682aeee0d21)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-07 12:24:57 +00:00
Alexander Kanavin
6e62ccffb6 speexdsp: enable native variant
Latest wireshark (4.2.0) is needed for python 3.12 support;
it also requires speexdsp unconditionally, and wireshark-native
for its own build helper tools in native versions.

So speexdsp needs a native version so that wireshark-native
builds without error.

(From OE-Core rev: 44f2525e76ad5832faad1968037c8da8b6a285d2)

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>
2024-01-07 12:24:57 +00:00
Alexander Kanavin
4675bbb757 lib/sstatesig/find_siginfo: raise an error instead of returning None when obtaining mtime
Suppressing the error and returning None can result in a delayed failure:
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6254/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6262/steps/14/logs/stdio

It is not clear why the os.stat() error occurs to begin with (it shouldn't), so rather than
adding further workarounds, let's get diagnostics at the source first, so we understand
what is going on.

(From OE-Core rev: 35483d4756ab53805507f72a9a0edb3f83759694)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 12:04:52 +00:00
Richard Purdie
871b000464 sanity: Require bitbake 2.7.1
We need bitbake 2.7.1 due to the find_siginfo changes.

(From OE-Core rev: b8b6c3ebf6821b28dd1a350ccd74e47dc4bbd593)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Richard Purdie
a7aa37f2fd sstatesig: Add version information for find_sigingfo
Since we're changing the return values of the function, add a version so
bitbake can ensure it is using a compatible function.

(From OE-Core rev: 738bf3717002d124958a21a6925b0eca14fef131)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Alexander Kanavin
c45ffa9e94 sstatesig/find_siginfo: unify a disjointed API
find_siginfo() returns two different data structures depending
on whether its third argument (list of hashes to find) is empty or
not:
- a dict of timestamps keyed by path
- a dict of paths keyed by hash

This is not a good API design; it's much better to return
a dict of dicts that include both timestamp and path, keyed by
hash. Then the API consumer can decide how they want to use these
fields, particularly for additional diagnostics or informational
output.

I also took the opportunity to add a binary field that
tells if the match came from sstate or local stamps dir, which
will help prioritize local stamps when looking up most
recent task signatures.

(From OE-Core rev: 8721c52041e910bd4d8a9235b52f274f4f02c8a3)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Richard Purdie
71c0d311ba bitbake: bitbake: Version bump for find_siginfo chanages
Bump the version to 2.7.1 for the find_siginfo changes.

(Bitbake rev: 03995e16bf7186f5368f772f617d563f4d280641)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Alexander Kanavin
7d400f94fe bitbake: bitbake/runqueue: prioritize local stamps over sstate signatures in printdiff
Even with the reworked printdiff code, sstate which is heavily used in parallel
can throw races at the tests: if a new matching, but otherwise unrelated
sstate signature appears between writing out local stamps and listing
matching sstate files, then that signature will be deemed 'the latest'
and the actual local stamp will be discarded. This change ensures
the scenario does not happen.

It also makes use of the reworked find_siginfo(), particularly the 'sstate'
entry in returned results.

(Bitbake rev: c8574b796dabb69699c70540dd95a44d8f7388ab)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Richard Purdie
859786a83f bitbake: siggen: Ensure version of siggen is verified
Since we need to change the form of the siggen function, we need to add versioning
and some verison checks. This means if a newer bitbake is used with older metadata
we can detect it.

(Bitbake rev: 721556568413508213d22c29985e305a45a8d68a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Alexander Kanavin
cc85c8eb9d bitbake: bitbake-diffsigs/runqueue: adapt to reworked find_siginfo()
In particular having 'time' explicitly used as a sorting key should make it
more clear how the entries are being sorted.

(Bitbake rev: 5439aca056c84ab4410aaf24bdb68e896191d8e1)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:59:08 +00:00
Richard Purdie
a41b54ccbd bitbake: bitbake: Post release version bump to 2.7.0
Bump to a development version post release.

(Bitbake rev: 28364c08f36c778a5cb2e3f20ceb052370ef153c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:39:33 +00:00
Alexander Kanavin
b0c47ae555 bitbake: bitbake/runqueue: add debugging for find_siginfo() calls
(Bitbake rev: 52f5503e8cf048331134233fb681db6dc736ae38)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-05 11:39:33 +00:00
Alassane Yattara
831b3d5b22 bitbake: toaster/toastergui: Bug-fix verify given layer path only if import/add local layer
(Bitbake rev: 94e88efa9dbefd37f1d48459ade19797b6034b84)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:48:29 +00:00
Bruce Ashfield
da7384a8e9 poky/poky-tiny: make 6.6 the default kernel
Bumping the reference distros to the latest -stable/lts
kernel.

(From meta-yocto rev: f148b0ddea099062b07abe6d8a8f6c67b8bc087f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:48:07 +00:00
Mikko Rapeli
339ccc0c2b runqemu: match .rootfs. in addition to -image- for rootfs
Also change path.exists() and !path.isdir() to a single
path.isfile() which should be equal.

Enables running tests against image recipes which are not called
"bla-image" but plain "bla". Currently they fail with do_testimage/runqemu
error:

runqemu - ERROR - Unknown path arg /home/builder/src/base/build/tmp_qemuarm64/deploy/images/qemuarm64/img-qemuarm64.rootfs.wic

Suggested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core rev: 107d0db3dc3678e6f0ae4035f4c0b86c6b421168)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Jermain Horsman
01ef197c6b lib/bblayers/buildconf.py: Remove unused imports/variables
(From OE-Core rev: 720f48c0692a4cbb00535151b049704645748216)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Jermain Horsman
54f9db951a lib/bblayers/makesetup.py: Remove unused imports
(From OE-Core rev: 789549ed28c043a6d9b304f99f528546f4ade957)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Ross Burton
9367835346 oeqa/parselogs-ignores-qemuarmv5: add comments and organise
Add a comment explaining why we need the jitterentropy ignore.

(From OE-Core rev: ed4b202b11fd18e18502fe4e90f421dce4db8b44)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Bruce Ashfield
812dbc2769 linux-yocto/6.6: arm: jitter entropy backport
Integrating the following commit(s) to linux-yocto/6.6:

1/1 [
    Author: Stephan Müller
    Email: smueller@chronox.de
    Subject: crypto: jitter - add RCT/APT support for different OSRs
    Date: Thu, 21 Sep 2023 13:48:11 +0200

    The oversampling rate (OSR) value specifies the heuristically implied
    entropy in the recorded data - H_submitter = 1/osr. A different entropy
    estimate implies a different APT/RCT cutoff value. This change adds
    support for OSRs 1 through 15. This OSR can be selected by the caller
    of the Jitter RNG.

    For this patch, the caller still uses one hard-coded OSR. A subsequent
    patch allows this value to be configured.

    In addition, the power-up self test is adjusted as follows:

    * It allows the caller to provide an oversampling rate that should be
    tested with - commonly it should be the same as used for the actual
    runtime operation. This makes the power-up testing therefore consistent
    with the runtime operation.

    * It calls now jent_measure_jitter (i.e. collects the full entropy
    that can possibly be harvested by the Jitter RNG) instead of only
    jent_condition_data (which only returns the entropy harvested from
    the conditioning component). This should now alleviate reports where
    the Jitter RNG initialization thinks there is too little entropy.

    * The power-up test now solely relies on the (enhanced) APT and RCT
    test that is used as a health test at runtime.

    The code allowing the different OSRs as well as the power-up test
    changes are present in the user space version of the Jitter RNG 3.4.1
    and thus was already in production use for some time.

    Reported-by "Ospan, Abylay" <aospan@amazon.com>
    Signed-off-by: Stephan Mueller <smueller@chronox.de>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
]

(From OE-Core rev: 1349b759e9b8f363ab9a9feec531f3a877f97dec)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Bruce Ashfield
102927a527 linux-yocto/6.6: ARM fix configuration audit warning
Integrating the following commit(s) to linux-yocto/6.6:

1/1 [
    Author: Ross Burton
    Email: ross.burton@arm.com
    Subject: arm64: defconfig: remove CONFIG_IPQ_APSS_5018
    Date: Thu, 4 Jan 2024 13:32:41 +0000

    This was added in 7f0c873 ("Enable IPQ5018 SoC base configs"), but there
    is no IPQ_APSS_5018 config defined in the kconfig at present.

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

(From OE-Core rev: f660af767aacb39d7a9b97d7f0de8e5244012608)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Bruce Ashfield
2a99029835 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

    ]

(From OE-Core rev: b303a7dd260ad3f6a9e6f1b8099b86efcc8373a9)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Bruce Ashfield
10075b2562 linux-yocto/6.1: update to v6.1.70
Updating linux-yocto/6.1 to the latest korg -stable release that comprises
the following commits:

    a507f147e6f0 Linux 6.1.70
    a413b88cdb69 loop: deprecate autoloading callback loop_probe()
    75c27bdb2144 wifi: nl80211: fix deadlock in nl80211_set_cqm_rssi (6.6.x)
    15577a98ef29 wifi: cfg80211: fix CQM for non-range use
    706448f716c1 fuse: share lookup state between submount and its parent
    ec7b81b0abcd mm/damon/core: make damon_start() waits until kdamond_fn() starts
    41f4ff9fe22c x86/alternatives: Sync core before enabling interrupts
    425379154b7f KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
    5dfacfd0fcd6 KVM: arm64: vgic: Add a non-locking primitive for kvm_vgic_vcpu_destroy()
    3a0fd93cd9f7 KVM: arm64: vgic: Simplify kvm_vgic_destroy()
    3339028dd082 thunderbolt: Fix memory leak in margining_port_remove()
    69b6596c6e4a lib/vsprintf: Fix %pfwf when current node refcount == 0
    2dd6f2286047 gpio: dwapb: mask/unmask IRQ when disable/enale it
    ab1c3f91d174 bus: ti-sysc: Flush posted write only after srst_udelay
    cd9f9ef59d85 pinctrl: starfive: jh7100: ignore disabled device tree nodes
    7f7efa30fa87 dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata()
    33b976a0f2ae tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
    d2b549d3107b scsi: core: Always send batch on reset or error handling command
    72e472a91c0d Revert "scsi: aacraid: Reply queue mapping to CPUs based on IRQ affinity"
    4258274bacfb selftests: mptcp: join: fix subflow_send_ack lookup
    a8555c86f508 ublk: move ublk_cancel_dev() out of ub->mutex
    1c250f2c5fa5 ubifs: fix possible dereference after free
    3c42cc437d7e btrfs: zoned: no longer count fresh BG region as zone unusable
    b09a67617621 Revert "drm/amd/display: Do not set DRR on pipe commit"
    93da3d8af9ee dm thin metadata: Fix ABBA deadlock by resetting dm_bufio_client
    e9779fac685e loop: do not enforce max_loop hard limit by (new) default
    600043e1856c RISC-V: Fix do_notify_resume / do_work_pending prototype
    764c6790dd71 9p: prevent read overrun in protocol dump tracepoint
    7d09c84df5ab drm/i915: Reject async flips with bigjoiner
    c60e10d1549f smb: client: fix OOB in smbCalcSize()
    bef4315f19ba smb: client: fix OOB in SMB2_query_info_init()
    71fe685b6a47 smb: client: fix potential OOB in cifs_dump_detail()
    277832a306f9 smb: client: fix OOB in cifsd when receiving compounded resps
    3f6da210470c dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotp
    1092525155ea net: ks8851: Fix TX stall caused by TX buffer overrun
    e9df9f089128 net: rfkill: gpio: set GPIO direction
    805611157d68 net: 9p: avoid freeing uninit memory in p9pdu_vreadf
    4c775b4cd8dd Input: soc_button_array - add mapping for airplane mode button
    5df2b49e7e78 net: usb: ax88179_178a: avoid failed operations when device is disconnected
    0f7bffd40a51 Bluetooth: Add more enc key size check
    39347d645081 Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE
    e14a7ebafe4e Bluetooth: L2CAP: Send reject on command corrupted request
    37f71e2c9f51 Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg
    470896ecbc92 Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
    d36d945f94c3 ALSA: hda/realtek: Add quirk for ASUS ROG GV302XA
    9599a5e34ca9 USB: serial: option: add Quectel RM500Q R13 firmware support
    a91fb450df5d USB: serial: option: add Foxconn T99W265 with new baseline
    73b6b6ab03ae USB: serial: option: add Quectel EG912Y module support
    9b968a708678 USB: serial: ftdi_sio: update Actisense PIDs constant names
    db57ef0dd4c2 wifi: cfg80211: fix certs build to not depend on file order
    ec350809cd98 wifi: cfg80211: Add my certificate
    228d9960ae81 usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3
    82f913724bc9 ALSA: usb-audio: Increase delay in MOTU M quirk
    01bc94b58192 iio: triggered-buffer: prevent possible freeing of wrong buffer
    c508a99fbc21 iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma()
    1b670b0eeefa iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table
    1fe4c93fc77b scsi: bnx2fc: Fix skb double free in bnx2fc_rcv()
    66ccf5f7437a Input: ipaq-micro-keys - add error handling for devm_kmemdup
    3637f6bdfe2c interconnect: qcom: sm8250: Enable sync_state
    90aa62722d3e iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
    50d60bfc9681 interconnect: Treat xlate() returning NULL node as an error
    900c1b3c62f9 drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than the original
    de4349bdf9f3 drm/i915/mtl: Add MTL for remapping CCS FBs
    52c1a67dd303 drm/i915/dpt: Only do the POT stride remap when using DPT
    7afe8109456d drm/i915: Fix intel_atomic_setup_scalers() plane_state handling
    b097184f8026 drm/i915: Relocate intel_atomic_setup_scalers()
    99767368b7fa drm/i915/mtl: limit second scaler vertical scaling in ver >= 14
    387e8077593e nvme-pci: fix sleeping function called from interrupt context
    b506833ee887 gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()
    6eb51df9e739 pinctrl: at91-pio4: use dedicated lock class for IRQ
    903bb0c7b81f x86/xen: add CPU dependencies for 32-bit build
    2550d96aa248 i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
    5c11f637999c ASoC: fsl_sai: Fix channel swap issue on i.MX8MP
    264d8c9b7f7f ASoC: hdmi-codec: fix missing report for jack initial status
    9b4c95a63e2d afs: Fix use-after-free due to get/remove race in volume tree
    17605162e26b afs: Fix overwriting of result of DNS query
    791d5409cdb9 keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
    3e617c7e39eb net: check dev->gso_max_size in gso_features_check()
    087b96adc694 afs: Fix dynamic root lookup DNS check
    9c6ea7abe3ed afs: Fix the dynamic root's d_delete to always delete unused dentries
    a70c2dd74198 net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
    ea03196ebc47 net: mana: select PAGE_POOL
    a1986c429c68 Bluetooth: hci_event: shut up a false-positive warning
    fc6471510582 Bluetooth: Fix deadlock in vhci_send_frame
    3e0d1585799d net/rose: fix races in rose_kill_by_device()
    51e28c37d960 ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
    6707baabe432 net: sched: ife: fix potential use-after-free
    31edab12229c net: Return error from sk_stream_wait_connect() if sk_wait_event() fails
    9d00421e1430 octeontx2-pf: Fix graceful exit during PFC configuration failure
    b0cee294022f net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above
    72b8de75b394 net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors
    18b4a5e0c3f5 net/mlx5e: Correct snprintf truncation handling for fw_version buffer
    94c8485b449e net/mlx5: Fix fw tracer first block check
    1750f55d855a net/mlx5e: fix a potential double-free in fs_udp_create_groups
    01877daaeff0 net/mlx5e: Fix a race in command alloc flow
    f3739647a737 net/mlx5: Re-organize mlx5_cmd struct
    148ec770c63e net/mlx5: Prevent high-rate FW commands from populating all slots
    bd6e09162910 net/mlx5: Introduce and use opcode getter in command interface
    0f5de95fa266 net/mlx5e: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list()
    31037cfceff8 Revert "net/mlx5e: fix double free of encap_header"
    8a84413505a6 Revert "net/mlx5e: fix double free of encap_header in update funcs"
    2f635af7d6b4 wifi: mac80211: mesh_plink: fix matches_local logic
    7a07af00aa88 wifi: mac80211: mesh: check element parsing succeeded
    40ba7f9ab82a wifi: mac80211: check if the existing link config remains unchanged
    e90da1c7c6e7 wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lock
    912652366f9e s390/vx: fix save/restore of fpu kernel context
    0a6e700c3d7b reset: Fix crash when freeing non-existent optional resets
    930a61fd795d ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
    228a00a77d50 ARM: dts: dra7: Fix DRA7 L3 NoC node register size
    913463f8e6cd drm/amd/display: fix hw rotated modes when PSR-SU is enabled
    a4f48f77bbe7 HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[]
    413bef367ba6 HID: i2c-hid: acpi: Unify ACPI ID tables format
    57a6b0a464eb bpf: Fix prog_array_map_poke_run map poke update
    4768f82272a7 kasan: disable kasan_non_canonical_hook() for HW tags

(From OE-Core rev: a0bfc167a283372297881baa696bc91bcea7787a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:51 +00:00
Bruce Ashfield
a8e54cc706 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

    ]

(From OE-Core rev: 2624d3b982a0e063f2c1d4c413534723c713d8d6)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
486588e2ae linux-yocto/6.6: update to v6.6.9
Updating  to the latest korg -stable release that comprises
the following commits:

    5e9df83a7052 Linux 6.6.9
    883b9f52b705 spi: cadence: revert "Add SPI transfer delays"
    ddc4ad52c022 x86/smpboot/64: Handle X2APIC BIOS inconsistency gracefully
    6778977590da x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
    5518f168ae6d x86/alternatives: Sync core before enabling interrupts
    e13ce009ecab KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
    05d47e26c251 KVM: arm64: vgic: Add a non-locking primitive for kvm_vgic_vcpu_destroy()
    71c631a9fb21 KVM: arm64: vgic: Simplify kvm_vgic_destroy()
    6fbaeffc3a92 thunderbolt: Fix memory leak in margining_port_remove()
    50ae1c470491 lib/vsprintf: Fix %pfwf when current node refcount == 0
    9a6ed4ea985a gpio: dwapb: mask/unmask IRQ when disable/enale it
    add8973e3de6 bus: ti-sysc: Flush posted write only after srst_udelay
    6e827b18219e pinctrl: starfive: jh7100: ignore disabled device tree nodes
    dc958dd32ce8 pinctrl: starfive: jh7110: ignore disabled device tree nodes
    c18cf955d11c selftests: mptcp: join: fix subflow_send_ack lookup
    3b664557b12f dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata()
    7e39c55ee095 tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
    d7ef2eeec259 scsi: core: Always send batch on reset or error handling command
    71758d4d87ef Revert "scsi: aacraid: Reply queue mapping to CPUs based on IRQ affinity"
    09283d60bc33 nvmem: brcm_nvram: store a copy of NVRAM content
    dbf0c97f52d6 spi: atmel: Fix clock issue when using devices with different polarities
    4b74558ab3ca spi: atmel: Prevent spi transfers from being killed
    662ae991759a spi: atmel: Do not cancel a transfer upon any signal
    bddd8b50bfe2 ring-buffer: Fix slowpath of interrupted event
    307f56f2606a ring-buffer: Remove useless update to write_stamp in rb_try_to_discard()
    82aaf7fc9865 ring-buffer: Fix 32-bit rb_time_read() race with rb_time_cmpxchg()
    0590874226f3 9p: prevent read overrun in protocol dump tracepoint
    e0730d7edbc3 drm/i915/dmc: Don't enable any pipe DMC events
    706b554adfe9 drm/i915: Reject async flips with bigjoiner
    ac48fcef5ec2 smb: client: fix OOB in smbCalcSize()
    3b5f0d0a2bf0 smb: client: fix OOB in SMB2_query_info_init()
    6630441cc2e8 smb: client: fix potential OOB in cifs_dump_detail()
    c0e98de95072 smb: client: fix OOB in cifsd when receiving compounded resps
    c21acd673168 nfsd: call nfsd_last_thread() before final nfsd_put()
    7b5ef500d8b3 dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotp
    93f763c28a8b net: stmmac: fix incorrect flag check in timestamp interrupt
    92b8881bf776 net: avoid build bug in skb extension length calculation
    30302b41ffdc net: ks8851: Fix TX stall caused by TX buffer overrun
    d2821864c744 net: rfkill: gpio: set GPIO direction
    506ef81c993c net: 9p: avoid freeing uninit memory in p9pdu_vreadf
    cac200353b71 Input: soc_button_array - add mapping for airplane mode button
    d4ab5cfa098e net: usb: ax88179_178a: avoid failed operations when device is disconnected
    ebd7bc419aeb usb: fotg210-hcd: delete an incorrect bounds test
    847f8f529a13 usb: typec: ucsi: fix gpio-based orientation detection
    34c032a72f97 Bluetooth: Add more enc key size check
    865f1f43262c Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE
    0974347ac10d Bluetooth: L2CAP: Send reject on command corrupted request
    1d576c3a5af8 Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg
    90d6a3974771 Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
    9c7560192619 ASoC: tas2781: check the validity of prm_no/cfg_no
    23c2e6c09327 ALSA: hda/realtek: Add quirk for ASUS ROG GV302XA
    ff02d91704fa ALSA: hda/tas2781: select program 0, conf 0 by default
    27149e82d7cb USB: serial: option: add Quectel RM500Q R13 firmware support
    3cb3868ec7bd USB: serial: option: add Foxconn T99W265 with new baseline
    7dbe89b73f7f USB: serial: option: add Quectel EG912Y module support
    66c131518213 USB: serial: ftdi_sio: update Actisense PIDs constant names
    4ccca0017c4e wifi: cfg80211: fix certs build to not depend on file order
    018f336f79fd wifi: cfg80211: Add my certificate
    e4006c5a5c0d wifi: mt76: fix crash with WED rx support enabled
    af60d63b86a4 usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3
    1937e40875c8 ARM: dts: Fix occasional boot hang for am3 usb
    e8e214d0bf70 ALSA: usb-audio: Increase delay in MOTU M quirk
    ae0faa924d07 iio: triggered-buffer: prevent possible freeing of wrong buffer
    55efc549392e iio: tmag5273: fix temperature offset
    7116fa37b2f2 iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma()
    7a9c97174358 iio: imu: adis16475: add spi_device_id table
    706b7aca24f4 iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table
    d79cb9bcc63c iio: adc: imx93: add four channels for imx93 adc
    60d6d2704056 iio: kx022a: Fix acceleration value scaling
    1f7213358d84 scsi: ufs: core: Let the sq_lock protect sq_tail_slot access
    a8409bcc3243 scsi: ufs: qcom: Return ufs_qcom_clk_scale_*() errors in ufs_qcom_clk_scale_notify()
    92ba459b8d63 scsi: bnx2fc: Fix skb double free in bnx2fc_rcv()
    e40e75a2e554 iio: adc: meson: add separate config for axg SoC family
    2a83824c6cf9 Input: ipaq-micro-keys - add error handling for devm_kmemdup
    5832822a4acb interconnect: qcom: sm8250: Enable sync_state
    040c16b5d934 iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
    1d42af06c6d2 interconnect: Treat xlate() returning NULL node as an error
    fedbc8732fd0 nvme-pci: fix sleeping function called from interrupt context
    249cbac4454f gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()
    3ccefdae5817 pinctrl: at91-pio4: use dedicated lock class for IRQ
    6214f5c966f0 x86/xen: add CPU dependencies for 32-bit build
    8f21b05995b3 i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
    63835e3f4e0b drm/amdgpu: re-create idle bo's PTE during VM state machine reset
    5fcd03fa028b i2c: qcom-geni: fix missing clk_disable_unprepare() and geni_se_resources_off()
    fb0f25c8fe6d ASoC: fsl_sai: Fix channel swap issue on i.MX8MP
    b965c22e1a0b ASoC: hdmi-codec: fix missing report for jack initial status
    6472e3217fe5 drm/i915/mtl: Fix HDMI/DP PLL clock selection
    80419c96f8e6 drm/i915/hwmon: Fix static analysis tool reported issues
    c3215484ca1f afs: Fix use-after-free due to get/remove race in volume tree
    81fc8dceb78b afs: Fix overwriting of result of DNS query
    afc360e8a125 keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
    449f9d843ece net: check dev->gso_max_size in gso_features_check()
    b577b9aa1340 net/ipv6: Revert remove expired routes with a separated list of routes
    5c7a24ab04e2 net: ethernet: mtk_wed: fix possible NULL pointer dereference in mtk_wed_wo_queue_tx_clean()
    3c305aa9962d afs: Fix dynamic root lookup DNS check
    9ff7ae01a0c0 afs: Fix the dynamic root's d_delete to always delete unused dentries
    337ca88fde4d net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
    330fe5d51bce net: mana: select PAGE_POOL
    79733dfcc913 ice: Fix PF with enabled XDP going no-carrier after reset
    fc4d6d136d42 ice: alter feature support check for SRIOV and LAG
    194e51acb3c4 ice: stop trashing VF VSI aggregator node ID information
    d98ce1f083cc net: phy: skip LED triggers on PHYs on SFP modules
    f0534c0fa81b bnxt_en: do not map packet buffers twice
    a07a95bcb966 Bluetooth: hci_core: Fix hci_conn_hash_lookup_cis
    7ee2ba3dd66b Bluetooth: hci_event: shut up a false-positive warning
    7fe3556f98b1 Bluetooth: Fix deadlock in vhci_send_frame
    399dea9d5ac8 Bluetooth: Fix not notifying when connection encryption changes
    ffced26692f8 net/rose: fix races in rose_kill_by_device()
    73e159a240d7 ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
    2839a639db5e net: sched: ife: fix potential use-after-free
    2ef87ac54cf8 net: Return error from sk_stream_wait_connect() if sk_wait_event() fails
    1e5283b96019 octeontx2-pf: Fix graceful exit during PFC configuration failure
    fd0f5c1a314c net: mscc: ocelot: fix pMAC TX RMON stats for bucket 256-511 and above
    30108546942e net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above
    38de00323785 net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors
    952446adc201 net/mlx5e: Correct snprintf truncation handling for fw_version buffer
    46538a6f57f9 net/mlx5e: Fix error codes in alloc_branch_attr()
    186854bdbac6 net/mlx5e: Fix error code in mlx5e_tc_action_miss_mapping_get()
    96c8c465f77f net/mlx5: Refactor mlx5_flow_destination->rep pointer to vport num
    d4d25b7b3269 net/mlx5: Fix fw tracer first block check
    8bcb51d06a47 net/mlx5e: XDP, Drop fragmented packets larger than MTU size
    2da82046dfd9 net/mlx5e: Decrease num_block_tc when unblock tc offload
    595d51b29511 net/mlx5e: Fix overrun reported by coverity
    2f4d63283645 net/mlx5e: fix a potential double-free in fs_udp_create_groups
    5f760d1eb75d net/mlx5e: Fix a race in command alloc flow
    c428f4934c98 net/mlx5e: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list()
    9c8d46bc0549 Revert "net/mlx5e: fix double free of encap_header"
    c47e9c569176 Revert "net/mlx5e: fix double free of encap_header in update funcs"
    bcc5b2d8a339 bpf: syzkaller found null ptr deref in unix_bpf proto add
    7c1e6f8f4626 ice: fix theoretical out-of-bounds access in ethtool link modes
    264796091cc6 wifi: mac80211: mesh_plink: fix matches_local logic
    1c8d80125142 wifi: mac80211: mesh: check element parsing succeeded
    1ac3318338c4 wifi: mac80211: check defragmentation succeeded
    35de90d7fab8 wifi: mac80211: don't re-add debugfs during reconfig
    b31a33ad4f55 wifi: mac80211: check if the existing link config remains unchanged
    1caf92e77c00 wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lock
    968ed600024c wifi: ieee80211: don't require protected vendor action frames
    f685ef2c9ae8 SUNRPC: Revert 5f7fc5d69f6e92ec0b38774c387f5cf7812c5806
    dd691e300d52 platform/x86/intel/pmc: Fix hang in pmc_core_send_ltr_ignore()
    602490b469e3 s390/vx: fix save/restore of fpu kernel context
    11dfea080f65 reset: Fix crash when freeing non-existent optional resets
    1e4f9b7abf54 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
    bc9ca01ef814 ARM: dts: dra7: Fix DRA7 L3 NoC node register size
    b352ebe373dd arm64: dts: allwinner: h616: update emac for Orange Pi Zero 3
    a8b655ac35be spi: spi-imx: correctly configure burst length when using dma
    c9b26d9e438e drm: Fix FD ownership check in drm_master_check_perm()
    031ddd280089 drm: Update file owner during use
    a2abe532ecd0 drm/i915/edp: don't write to DP_LINK_BW_SET when using rate select
    e4c16db9daf1 drm/i915: Introduce crtc_state->enhanced_framing
    1f17934815bc drm/i915: Fix FEC state dump
    cd8b639700ab drm/amd/display: fix hw rotated modes when PSR-SU is enabled
    624bc6f62c85 btrfs: free qgroup pertrans reserve on transaction abort
    1a80999ba376 btrfs: qgroup: use qgroup_iterator in qgroup_convert_meta()
    1c9a5c49504c btrfs: qgroup: iterate qgroups without memory allocation for qgroup_reserve()
    e93bcaebda90 mm/damon/core: make damon_start() waits until kdamond_fn() starts
    c708a5e51b43 mm/damon/core: use number of passed access sampling as a timer
    f64b2dc8a446 bpf: Fix prog_array_map_poke_run map poke update

(From OE-Core rev: 109e95a117ac9eb611386bf8bbfbb5180f555716)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
b21b467e78 linux-yocto-rt/6.6: correct meta data branch
The copied 6.5 -> 6.6 linux-yocto-rt recipe missed one branch
update to 6.6.

The scripts setting the SRCREVs of course are using the 6.6
branches, which leaves us with a fetch failure.

(From OE-Core rev: a4e7603afb1f5a306dfcd4e04a979979b80312b5)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
1a36465721 linux-yocto/6.5: drop 6.5 recipes
6.5 is EOL upstream and has been replaced by the 6.6 reference
kernel, we drop these recipes. The recipes from release branches
should be used if 6.5 is required.

(From OE-Core rev: 1ad2b01f3bb0f407fdebeec8f6cd0df17fae4eee)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
e0062e12b5 linux-yocto/6.1: update to v6.1.69
Updating  to the latest korg -stable release that comprises
the following commits:

    4aa6747d9352 Linux 6.1.69
    325556d46bfd r8152: fix the autosuspend doesn't work
    4c2ad8e39c62 r8152: remove rtl_vendor_mode function
    1d82735f4bae r8152: avoid to change cfg for all devices
    9b3d3a7f3c4d net: tls, update curr on splice as well
    869aee35cf61 ring-buffer: Have rb_time_cmpxchg() set the msb counter too
    c425a772fc58 ring-buffer: Do not try to put back write_stamp
    b15cf1486999 ring-buffer: Fix a race in rb_time_cmpxchg() for 32 bit archs
    edbc03d671f7 ring-buffer: Fix writing to the buffer with max_data_size
    6d98d594a5b6 ring-buffer: Have saved event hold the entire event
    7888b607a981 ring-buffer: Do not update before stamp when switching sub-buffers
    7043c4610ca7 tracing: Update snapshot buffer on resize if it is allocated
    31785cf8171e ring-buffer: Fix memory leak of free page
    8c3b77ad4e91 smb: client: fix OOB in smb2_query_reparse_point()
    d8541c50c671 smb: client: fix NULL deref in asn1_ber_decoder()
    9f528a8e6832 smb: client: fix OOB in receive_encrypted_standard()
    7b0faa541f15 drm/i915: Fix remapped stride with CCS on ADL+
    20907717918f drm/amd/display: Disable PSR-SU on Parade 0803 TCON again
    a9e2de19433f drm/amdgpu: fix tear down order in amdgpu_vm_pt_free
    730b3322b8c3 btrfs: don't clear qgroup reserved bit in release_folio
    9b670e1b644c btrfs: free qgroup reserve when ORDERED_IOERR is set
    da9b7c651c65 mm/shmem: fix race in shmem_undo_range w/THP
    8ec07b0620ac mm/mglru: fix underprotected page cache
    40f3ad769ec8 dmaengine: stm32-dma: avoid bitfield overflow assertion
    78b2ba39beef drm/amdgpu/sdma5.2: add begin/end_use ring callbacks
    6a1472d9be02 team: Fix use-after-free when an option instance allocation fails
    b01af9281851 arm64: mm: Always make sw-dirty PTEs hw-dirty in pte_modify
    0b071a3266a8 ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS
    f2955dd3e933 soundwire: stream: fix NULL pointer dereference for multi_link
    56f762659a5e btrfs: do not allow non subvolume root targets for snapshot
    557f7ad06460 perf: Fix perf_event_validate_size() lockdep splat
    a684235d3035 HID: hid-asus: add const to read-only outgoing usb buffer
    2b9e16bc1ce5 arm64: add dependency between vmlinuz.efi and Image
    6cb0c71c6e7c net: usb: qmi_wwan: claim interface 4 for ZTE MF290
    f7ce765744a3 asm-generic: qspinlock: fix queued_spin_value_unlocked() implementation
    fba6e958caa1 HID: multitouch: Add quirk for HONOR GLO-GXXX touchpad
    8f0c8585856c HID: hid-asus: reset the backlight brightness level on resume
    de78e4bdcb5e nbd: pass nbd_sock to nbd_read_reply() instead of index
    d482bb566344 HID: add ALWAYS_POLL quirk for Apple kb
    541b183be92f HID: glorious: fix Glorious Model I HID report
    42b4ab97bee5 platform/x86: intel_telemetry: Fix kernel doc descriptions
    355170a7ecac LoongArch: Implement constant timer shutdown interface
    adb6a907540c LoongArch: Add dependency between vmlinuz.efi and vmlinux.efi
    943cde1f3daa selftests/bpf: fix bpf_loop_bench for new callback verification scheme
    1b40f23e702e nvme: catch errors from nvme_configure_metadata()
    6cb3741c4582 nvme-auth: set explanation code for failure2 msgs
    83bb13bf6c23 nbd: fold nbd config initialization into nbd_alloc_config()
    02a4b14d17ab bcache: avoid NULL checking to c->root in run_cache_set()
    3d3f72efc77d bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc()
    bc17ec4215e2 bcache: remove redundant assignment to variable cur_idx
    be0e2a28e06a bcache: avoid oversize memory allocation by small stripe_size
    94070fd6689e blk-cgroup: bypass blkcg_deactivate_policy after destroying
    e52d0eb48efd blk-throttle: fix lockdep warning of "cgroup_mutex or RCU read lock required!"
    5fb6772cb573 stmmac: dwmac-loongson: Add architecture dependency
    82c386d73689 usb: aqc111: check packet for fixup for true limit
    d6c02295c824 x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM
    ae818b2a2e78 drm/mediatek: Add spinlock for setting vblank event in atomic_begin
    73c240e1ec73 ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE
    0c196180b588 PCI: loongson: Limit MRRS to 256
    56d1891594d6 Revert "PCI: acpiphp: Reassign resources on bridge if necessary"
    1ec80b9d4310 ALSA: hda/realtek: Apply mute LED quirk for HP15-db
    eeeb91216a1b ALSA: hda/hdmi: add force-connect quirks for ASUSTeK Z170 variants
    82413e9e4255 ALSA: hda/hdmi: add force-connect quirk for NUC5CPYB
    0dc6a06c4843 fuse: dax: set fc->dax to NULL in fuse_dax_conn_free()
    36e2497ac7ad cred: switch to using atomic_long_t
    a51f71cd4f56 net: atlantic: fix double free in ring reinit logic
    1646b2929d5e appletalk: Fix Use-After-Free in atalk_ioctl
    d835299dde3e net: stmmac: Handle disabled MDIO busses from devicetree
    9aac81639e52 dpaa2-switch: do not ask for MDB, VLAN and FDB replay
    a81c7069af05 dpaa2-switch: fix size of the dma_unmap
    9a23be1e5806 vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space()
    2027dd67c3cf sign-file: Fix incorrect return values check
    918991db7de0 stmmac: dwmac-loongson: Make sure MDIO is initialized before use
    63387fe87fc5 net: ena: Fix XDP redirection error
    2664b56420b3 net: ena: Fix xdp drops handling due to multibuf packets
    e312eed27aba net: ena: Destroy correct number of xdp queues upon failure
    55a43bae0886 net: Remove acked SYN flag from packet in the transmit queue correctly
    9bb392ee53af qed: Fix a potential use-after-free in qed_cxt_tables_alloc
    112792ad36c4 iavf: Handle ntuple on/off based on new state machines for flow director
    11c314a5a44a iavf: Introduce new state machines for flow director
    01540ee2366a net/rose: Fix Use-After-Free in rose_ioctl
    2de2a6cbe14f atm: Fix Use-After-Free in do_vcc_ioctl
    3a76dcab2e3a octeontx2-af: Update RSS algorithm index
    d0f0786f8c5a octeontx2-pf: Fix promisc mcam entry action
    34b630626a97 octeontx2-af: fix a use-after-free in rvu_nix_register_reporters
    e4ce3dc7a0ed net: fec: correct queue selection
    a00dbc6dec4b net: vlan: introduce skb_vlan_eth_hdr()
    7cfbb8bea36a atm: solos-pci: Fix potential deadlock on &tx_queue_lock
    35c63d366fff atm: solos-pci: Fix potential deadlock on &cli_queue_lock
    525904a15791 bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic
    ac6125174190 bnxt_en: Fix wrong return value check in bnxt_close_nic()
    8217f9362c79 bnxt_en: Save ring error counters across reset
    53cacb8cdc7e bnxt_en: Clear resource reservation during resume
    ab410db6e9aa qca_spi: Fix reset behavior
    7e177e5a40d0 qca_debug: Fix ethtool -G iface tx behavior
    2127142c179c qca_debug: Prevent crash on TX ring changes
    0da41ddfb291 net: ipv6: support reporting otherwise unknown prefix flags in RTM_NEWPREFIX
    514232495aa5 net/mlx5e: Fix possible deadlock on mlx5e_tx_timeout_work
    1e8396aab21d HID: lenovo: Restrict detection of patched firmware only to USB cptkbd
    e0cda159c865 afs: Fix refcount underflow from error handling race
    a7e6477cc3af ksmbd: fix memory leak in smb2_lock()
    8925ab33b391 ext4: fix warning in ext4_dio_write_end_io()
    1c077acf246c powerpc/ftrace: Fix stack teardown in ftrace_no_trace
    34ae53cccf53 r8152: add vendor/device ID pair for ASUS USB-C2500
    cac1218b32d7 r8152: add vendor/device ID pair for D-Link DUB-E250
    893597cbabfb r8152: add USB device driver for config selection
    b80d0c6e5bae perf/x86/uncore: Don't WARN_ON_ONCE() for a broken discovery table

(From OE-Core rev: 7a4364e4733c8b8757927596dcbf7d6230f1da96)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
470463ae2e linux-yocto/6.6: update to v6.6.8
Updating  to the latest korg -stable release that comprises
the following commits:

    4c9646a796d6 Linux 6.6.8
    885faf3c7e5f RDMA/mlx5: Change the key being sent for MPV device affiliation
    06f61af80254 x86/speculation, objtool: Use absolute relocations for annotations
    3432f9686a37 ring-buffer: Have rb_time_cmpxchg() set the msb counter too
    b3778a2fa4a2 ring-buffer: Do not try to put back write_stamp
    bc17bc964328 ring-buffer: Fix a race in rb_time_cmpxchg() for 32 bit archs
    ae76d9bdf100 ring-buffer: Fix writing to the buffer with max_data_size
    307ed139d7af ring-buffer: Have saved event hold the entire event
    5e584836779b ring-buffer: Do not update before stamp when switching sub-buffers
    5062b8c5ae2f tracing: Update snapshot buffer on resize if it is allocated
    b02bf0d952ad ring-buffer: Fix memory leak of free page
    e72ed491bc6e smb: client: fix OOB in smb2_query_reparse_point()
    ef748d4a62a7 smb: client: fix NULL deref in asn1_ber_decoder()
    17a0f64cc02d smb: client: fix potential OOBs in smb2_parse_contexts()
    534733397da2 smb: client: fix OOB in receive_encrypted_standard()
    4029b025beda drm/i915: Fix remapped stride with CCS on ADL+
    a9d951b00790 drm/i915: Fix intel_atomic_setup_scalers() plane_state handling
    b6295a167fa5 drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than the original
    a8f922ad2f76 drm/amd/display: Disable PSR-SU on Parade 0803 TCON again
    c7f6e836e675 drm/amd/display: Restore guard against default backlight value < 1 nit
    a511e851d49e drm/edid: also call add modes in EDID connector update fallback
    d50670681d8a drm/amdgpu: fix tear down order in amdgpu_vm_pt_free
    d3cf024353e2 btrfs: don't clear qgroup reserved bit in release_folio
    1823491513e3 btrfs: fix qgroup_free_reserved_data int overflow
    14570dfa170e btrfs: free qgroup reserve when ORDERED_IOERR is set
    37b561d55936 kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP
    7a4ae7acd208 mm/shmem: fix race in shmem_undo_range w/THP
    a107d6a132cb mm/mglru: reclaim offlined memcgs harder
    6b131c2a2875 mm/mglru: respect min_ttl_ms with memcgs
    c5f67b7e8474 mm/mglru: try to stop at high watermarks
    b2ce691b452f mm/mglru: fix underprotected page cache
    ed50e07d6a8e dmaengine: fsl-edma: fix DMA channel leak in eDMAv4
    9127515bf9cd dmaengine: stm32-dma: avoid bitfield overflow assertion
    03e63e497a40 drm/mediatek: Fix access violation in mtk_drm_crtc_dma_dev_get
    3aae4ef4d799 drm/amdgpu/sdma5.2: add begin/end_use ring callbacks
    28b36426b83e team: Fix use-after-free when an option instance allocation fails
    2c8a21a124ca arm64: mm: Always make sw-dirty PTEs hw-dirty in pte_modify
    d228e98dfacb Revert "selftests: error out if kernel header files are not yet built"
    4f18d187fb2a ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS
    40abc387459a soundwire: stream: fix NULL pointer dereference for multi_link
    c1d2d084751d cxl/hdm: Fix dpa translation locking
    654461744af8 btrfs: do not allow non subvolume root targets for snapshot
    545d55a3e0c8 perf: Fix perf_event_validate_size() lockdep splat
    5ce0fb87311d HID: hid-asus: add const to read-only outgoing usb buffer
    610610da58af arm64: add dependency between vmlinuz.efi and Image
    df32e887d32b smb: client: set correct file type from NFS reparse points
    4d07e5df1387 smb: client: introduce ->parse_reparse_point()
    d5c959a1dba6 smb: client: implement ->query_reparse_point() for SMB1
    e25ee0c2459a net: usb: qmi_wwan: claim interface 4 for ZTE MF290
    6abb8c223ce1 eventfs: Do not allow NULL parent to eventfs_start_creating()
    a739ceb74745 asm-generic: qspinlock: fix queued_spin_value_unlocked() implementation
    97774998f8e1 scripts/checkstack.pl: match all stack sizes for s390
    1f75542ce7c4 nfc: virtual_ncidev: Add variable to check if ndev is running
    c9d25e4639c1 HID: multitouch: Add quirk for HONOR GLO-GXXX touchpad
    9fc2827c0242 HID: hid-asus: reset the backlight brightness level on resume
    b3ebe19c197b nbd: pass nbd_sock to nbd_read_reply() instead of index
    af48c4099bd8 HID: add ALWAYS_POLL quirk for Apple kb
    c38f7b0f554f HID: glorious: fix Glorious Model I HID report
    6b3507b8ea55 HID: apple: add Jamesdonkey and A3R to non-apple keyboards list
    d4b50ac06ea6 HID: mcp2221: Allow IO to start during probe
    2afe67cfe8f1 HID: mcp2221: Set driver data before I2C adapter add
    086f91f3ce3b platform/x86: intel_telemetry: Fix kernel doc descriptions
    f61771aec676 LoongArch: Implement constant timer shutdown interface
    c28fec461df3 LoongArch: Mark {dmw,tlb}_virt_to_page() exports as non-GPL
    71d8348cca92 LoongArch: Silence the boot warning about 'nokaslr'
    ab3f30052469 LoongArch: Record pc instead of offset in la_abs relocation
    03372601f5f1 LoongArch: Add dependency between vmlinuz.efi and vmlinux.efi
    0ade0b82faf7 selftests/bpf: fix bpf_loop_bench for new callback verification scheme
    9514925a9abc nvme: catch errors from nvme_configure_metadata()
    89fc9028e86e nvme-auth: set explanation code for failure2 msgs
    c34fa2d16e98 nbd: fix null-ptr-dereference while accessing 'nbd->config'
    8c1517344116 nbd: factor out a helper to get nbd_config without holding 'config_lock'
    4087936a97b8 nbd: fold nbd config initialization into nbd_alloc_config()
    4a4bba9f0470 bcache: avoid NULL checking to c->root in run_cache_set()
    286918928ed7 bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc()
    665341724499 bcache: remove redundant assignment to variable cur_idx
    09bdafb89a56 bcache: avoid oversize memory allocation by small stripe_size
    0730b1e32a0b blk-cgroup: bypass blkcg_deactivate_policy after destroying
    5aba47ce61b7 blk-throttle: fix lockdep warning of "cgroup_mutex or RCU read lock required!"
    462f1111d945 rxrpc: Fix some minor issues with bundle tracing
    c40c0b89bf1d stmmac: dwmac-loongson: Add architecture dependency
    2ebf775f0541 usb: aqc111: check packet for fixup for true limit
    54d8c1d3261d x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM
    ca3ebcf2c448 selftests/mm: cow: print ksft header before printing anything else
    cd378c371ba0 drm/i915: Use internal class when counting engine resets
    54d08313a34f drm/i915/selftests: Fix engine reset count storage for multi-tile
    83a42d791ba2 accel/ivpu/37xx: Fix interrupt_clear_with_0 WA initialization
    0afcc6291024 accel/ivpu: Print information about used workarounds
    7d6e9cb7b951 drm/mediatek: Add spinlock for setting vblank event in atomic_begin
    8964524158ac drm/mediatek: fix kernel oops if no crtc is found
    98bd0b4ad5d4 PCI: vmd: Fix potential deadlock when enabling ASPM
    f94c44342f0a ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE
    1e1f461ea574 PCI/ASPM: Add pci_enable_link_state_locked()
    4fb5358c574e PCI: loongson: Limit MRRS to 256
    5cc8d88a1b94 Revert "PCI: acpiphp: Reassign resources on bridge if necessary"
    56e22123449c ALSA: hda/tas2781: reset the amp before component_add
    d94fad04a64b ALSA: hda/tas2781: call cleanup functions only once
    795e91c599c2 ALSA: hda/tas2781: handle missing EFI calibration data
    7fc8bfdb7007 ALSA: hda/tas2781: leave hda_component in usable state
    ffd1fe12d4c9 ALSA: hda/realtek: Apply mute LED quirk for HP15-db
    7ec57c10b018 ALSA: hda/hdmi: add force-connect quirks for ASUSTeK Z170 variants
    c52ebaf74273 ALSA: hda/hdmi: add force-connect quirk for NUC5CPYB
    9566ef570cc4 io_uring/cmd: fix breakage in SOCKET_URING_OP_SIOC* implementation
    ce5a6df21a00 fuse: dax: set fc->dax to NULL in fuse_dax_conn_free()
    fbcddc741062 fuse: disable FOPEN_PARALLEL_DIRECT_WRITES with FUSE_DIRECT_IO_ALLOW_MMAP
    2939dd306b1f fuse: share lookup state between submount and its parent
    9f36c1c5132f fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP
    6e5782b1e18b HID: Add quirk for Labtec/ODDOR/aikeec handbrake
    fea8562f51b0 HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[]
    207f135d8193 cred: get rid of CONFIG_DEBUG_CREDENTIALS
    f6a7ce5ae416 cred: switch to using atomic_long_t
    3b5daf20c426 net: atlantic: fix double free in ring reinit logic
    e15ded324a39 appletalk: Fix Use-After-Free in atalk_ioctl
    58c556661641 net: stmmac: Handle disabled MDIO busses from devicetree
    ad531dfcc648 net: stmmac: dwmac-qcom-ethqos: Fix drops in 10M SGMII RX
    da8732cb38ea dpaa2-switch: do not ask for MDB, VLAN and FDB replay
    77e566c88130 dpaa2-switch: fix size of the dma_unmap
    fa634779ffcc vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space()
    f18ac4bae15e sign-file: Fix incorrect return values check
    e0069c26c552 stmmac: dwmac-loongson: Make sure MDIO is initialized before use
    2cc8ffc3ad31 net: ena: Fix XDP redirection error
    0116e02cee5a net: ena: Fix DMA syncing in XDP path when SWIOTLB is on
    0cb2021b968e net: ena: Fix xdp drops handling due to multibuf packets
    c22877fafd6b net: ena: Destroy correct number of xdp queues upon failure
    d6bef0049870 net: Remove acked SYN flag from packet in the transmit queue correctly
    7106a15b96d7 qed: Fix a potential use-after-free in qed_cxt_tables_alloc
    54f59a242bcf iavf: Fix iavf_shutdown to call iavf_remove instead iavf_close
    e768a04908de iavf: Handle ntuple on/off based on new state machines for flow director
    3beb9d66e442 iavf: Introduce new state machines for flow director
    63caa51833e8 net/rose: Fix Use-After-Free in rose_ioctl
    531fd46f9289 atm: Fix Use-After-Free in do_vcc_ioctl
    f115b31d7e96 octeontx2-af: Fix pause frame configuration
    6b5de31e372c octeontx2-af: Update RSS algorithm index
    5295d2ad9103 octeontx2-pf: Fix promisc mcam entry action
    6047060105e4 octeon_ep: explicitly test for firmware ready value
    15f300ed1d5e net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table
    dd75adfdc286 octeontx2-af: fix a use-after-free in rvu_nix_register_reporters
    4317fba45ff3 net: fec: correct queue selection
    82102501e08e atm: solos-pci: Fix potential deadlock on &tx_queue_lock
    4faf39c4252a atm: solos-pci: Fix potential deadlock on &cli_queue_lock
    9542105eb4ff bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic
    909f5a48bf23 bnxt_en: Fix wrong return value check in bnxt_close_nic()
    d8ea6b0d549b bnxt_en: Fix skb recycling logic in bnxt_deliver_skb()
    bf9ceb163362 bnxt_en: Clear resource reservation during resume
    f7dac967e170 qca_spi: Fix reset behavior
    02296b1d8449 qca_debug: Fix ethtool -G iface tx behavior
    21b9dc814d3f qca_debug: Prevent crash on TX ring changes
    92d813f73f64 net: ipv6: support reporting otherwise unknown prefix flags in RTM_NEWPREFIX
    6cb39c79bca9 net/mlx5: Fix a NULL vs IS_ERR() check
    ef3b2d5f2152 net/mlx5e: Check netdev pointer before checking its net ns
    a4839771d7b9 net/mlx5: Nack sync reset request when HotPlug is enabled
    b766f8b8d4d1 net/mlx5e: TC, Don't offload post action rule if not supported
    8ce3d969348a net/mlx5e: Fix possible deadlock on mlx5e_tx_timeout_work
    7e46db5e2a31 net/mlx5e: Disable IPsec offload support if not FW steering
    fdd350fe5e1a RDMA/mlx5: Send events from IB driver about device affiliation state
    4a95f412b7ee net/mlx5e: Check the number of elements before walk TC rhashtable
    594a306461de net/mlx5e: Reduce eswitch mode_lock protection context
    1a0d0e97a750 net/mlx5e: Tidy up IPsec NAT-T SA discovery
    20af7afcd8b8 net/mlx5e: Unify esw and normal IPsec status table creation/destruction
    80299a1c685f net/mlx5e: Ensure that IPsec sequence packet number starts from 1
    17e600e438c6 net/mlx5e: Honor user choice of IPsec replay window size
    b89b7c763570 HID: lenovo: Restrict detection of patched firmware only to USB cptkbd
    8715fe2fc1e8 afs: Fix refcount underflow from error handling race
    800f84d8f0de efi/x86: Avoid physical KASLR on older Dell systems
    809d50d36e71 ksmbd: fix memory leak in smb2_lock()
    73dddf9858ff ext4: fix warning in ext4_dio_write_end_io()
    da94fb0217e5 r8152: add vendor/device ID pair for ASUS USB-C2500
    ac25535242ac Linux 6.6.7
    71a1ffe22d33 drm/amdgpu: Restrict extended wait to PSP v13.0.6
    9f29fe9b6184 drm/amdgpu: update retry times for psp BL wait
    bebe0c07b806 drm/amdgpu: Fix refclk reporting for SMU v13.0.6
    48411bc4c3fb riscv: Kconfig: Add select ARM_AMBA to SOC_STARFIVE
    b79210fa10db gcc-plugins: randstruct: Update code comment in relayout_struct()
    ba6e4b997181 ASoC: qcom: sc8280xp: Limit speaker digital volumes
    c66d39f18e0e netfilter: nft_set_pipapo: skip inactive elements during set walk
    1eed445d5364 MIPS: Loongson64: Enable DMA noncoherent support
    264927e35381 MIPS: Loongson64: Handle more memory types passed from firmware
    ae07e7d338c4 MIPS: Loongson64: Reserve vgabios memory on boot
    114d0e5b9937 perf metrics: Avoid segv if default metricgroup isn't set
    1f4d4d2cd6b5 perf list: Fix JSON segfault by setting the used skip_duplicate_pmus callback
    dea8cfe773b9 KVM: SVM: Update EFER software model on CR0 trap for SEV-ES
    bb356cc6615c KVM: s390/mm: Properly reset no-dat
    6d9cbae4c032 MIPS: kernel: Clear FPU states when setting up kernel threads
    43801359c897 cifs: Fix flushing, invalidation and file size with FICLONE
    63c80f574a8e cifs: Fix flushing, invalidation and file size with copy_file_range()
    9a3e02063016 USB: gadget: core: adjust uevent timing on gadget unbind
    fd728449807e powerpc/ftrace: Fix stack teardown in ftrace_no_trace
    903a1a1949c6 x86/CPU/AMD: Check vendor in the AMD microcode callback
    7d831c68bb92 devcoredump: Send uevent once devcd is ready
    22fdcaaf7d9d serial: 8250_omap: Add earlycon support for the AM654 UART controller
    a2c0b05a8c00 serial: 8250: 8250_omap: Do not start RX DMA on THRI interrupt
    70dc9a482fbb serial: 8250: 8250_omap: Clear UART_HAS_RHR_IT_DIS bit
    98b0ca904c80 serial: sc16is7xx: address RX timeout interrupt errata
    c865b77eb3b5 ARM: PL011: Fix DMA support
    2214c3f4e718 usb: typec: class: fix typec_altmode_put_partner to put plugs
    5ac34ba42e9a smb: client: fix potential NULL deref in parse_dfs_referrals()
    05668be6020c Revert "xhci: Loosen RPM as default policy to cover for AMD xHC 1.1"
    1bcb08e39d84 cifs: Fix non-availability of dedup breaking generic/304
    67f45db9f275 parport: Add support for Brainboxes IX/UC/PX parallel cards
    c88a91ca26b1 serial: ma35d1: Validate console index before assignment
    977a60f0639f serial: 8250_dw: Add ACPI ID for Granite Rapids-D UART
    a05c646d3c7d nvmem: Do not expect fixed layouts to grab a layout driver
    d9828961e5d7 usb: gadget: f_hid: fix report descriptor allocation
    95a4c959b99f kprobes: consistent rcu api usage for kretprobe holder
    395e52b7a1ad ASoC: ops: add correct range check for limiting volume
    6df51c525a2d gpiolib: sysfs: Fix error handling on failed export
    73bbca129864 x86/sev: Fix kernel crash due to late update to read-only ghcb_version
    cfe9295db093 perf: Fix perf_event_validate_size()
    c66c479480f6 drm/amdgpu: disable MCBP by default
    3798c665fe7d arm64: dts: mt8183: kukui: Fix underscores in node names
    b6c47d915578 arm64: dts: mediatek: add missing space before {
    5bdd0ced1f9c parisc: Fix asm operand number out of range build error in bug table
    164960641e6c parisc: Reduce size of the bug_table on 64-bit kernel by half
    4b117370d1d1 LoongArch: BPF: Don't sign extend function return value
    3275410b13b6 LoongArch: BPF: Don't sign extend memory load operand
    0fdd1b884821 perf vendor events arm64: AmpereOne: Add missing DefaultMetricgroupName fields
    f78fff4648bb misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write
    e2365ead012a misc: mei: client.c: return negative error code in mei_cl_write
    c541d0edd827 coresight: ultrasoc-smb: Fix uninitialized before use buf_hw_base
    ab5091e1ccb0 coresight: ultrasoc-smb: Config SMB buffer before register sink
    ace850bd8600 coresight: ultrasoc-smb: Fix sleep while close preempt in enable_smb
    359d3fbcbc09 hwtracing: hisi_ptt: Add dummy callback pmu::read()
    2f6b1527db82 coresight: Fix crash when Perf and sysfs modes are used concurrently
    1b5d156c2428 coresight: etm4x: Remove bogous __exit annotation for some functions
    b9cc170842d8 arm64: dts: mediatek: mt8186: Change gpu speedbin nvmem cell name
    b6eccbcb1bcc arm64: dts: mediatek: mt8186: fix clock names for power domains
    2e465268df4c arm64: dts: mediatek: mt8183-evb: Fix unit_address_vs_reg warning on ntc
    bfff27fb5d2d arm64: dts: mediatek: mt8183: Move thermal-zones to the root node
    d97373c3b159 arm64: dts: mediatek: mt8183: Fix unit address for scp reserved memory
    9c4ae4801f81 arm64: dts: mediatek: mt8195: Fix PM suspend/resume with venc clocks
    12530266947a arm64: dts: mediatek: mt8173-evb: Fix regulator-fixed node names
    ac9a2f55bfcc arm64: dts: mediatek: cherry: Fix interrupt cells for MT6360 on I2C7
    d7646d79ea19 arm64: dts: mediatek: mt8183-kukui-jacuzzi: fix dsi unnecessary cells properties
    6a6df679ac22 arm64: dts: mediatek: mt7622: fix memory node warning check
    90dc20c8c51d arm64: dts: mt7986: fix emmc hs400 mode without uboot initialization
    287b1c41decb arm64: dts: mt7986: define 3W max power to both SFP on BPI-R3
    5012eb028032 arm64: dts: mt7986: change cooling trips
    8e1e489cdb5b drm/i915: Skip some timing checks on BXT/GLK DSI transcoders
    a0396af35ca2 drm/i915/mst: Reject modes that require the bigjoiner
    654748c6fc6a drm/i915/mst: Fix .mode_valid_ctx() return values
    02650b3b98cf drm/atomic-helpers: Invoke end_fb_access while owning plane state
    4ce431c29755 md/raid6: use valid sector values to determine if an I/O should wait on the reshape
    aa581b37dae9 powercap: DTPM: Fix missing cpufreq_cpu_put() calls
    9e5d3096742d mm/memory_hotplug: fix error handling in add_memory_resource()
    799f90c385cd mm: fix oops when filemap_map_pmd() without prealloc_pte
    e0270ffad426 mm/memory_hotplug: add missing mem_hotplug_lock
    83dd18e0b76f drivers/base/cpu: crash data showing should depends on KEXEC_CORE
    512b420aaf78 hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write
    b2c562a7a88b workqueue: Make sure that wq_unbound_cpumask is never empty
    7409c28cab78 platform/surface: aggregator: fix recv_buf() return value
    78c8fc333253 regmap: fix bogus error on regcache_sync success
    2e04cfdd3edb r8169: fix rtl8125b PAUSE frames blasting when suspended
    865b71579d01 packet: Move reference count in packet_sock to atomic_long_t
    9a89aad0865f nfp: flower: fix for take a mutex lock in soft irq context and rcu lock
    3c0adff939a6 leds: trigger: netdev: fix RTNL handling to prevent potential deadlock
    7d97646474b9 tracing: Fix a possible race when disabling buffered events
    fc9fa702dbaa tracing: Fix incomplete locking when disabling buffered events
    0486a1f9d9cc tracing: Disable snapshot buffer when stopping instance tracers
    12c48e88e5c7 tracing: Stop current tracer when resizing buffer
    1741e17c3939 tracing: Always update snapshot buffer size
    f8f32f912603 checkstack: fix printed address
    9ec2d9267304 cgroup_freezer: cgroup_freezing: Check if not frozen
    39f603a26286 lib/group_cpus.c: avoid acquiring cpu hotplug lock in group_cpus_evenly
    0b14276bcb85 nilfs2: prevent WARNING in nilfs_sufile_set_segment_usage()
    ce58f14113a8 nilfs2: fix missing error check for sb_set_blocksize call
    1cdc934c82bb highmem: fix a memory copy problem in memcpy_from_folio
    56a334310fa9 ring-buffer: Force absolute timestamp on discard of event
    d251b9818302 ring-buffer: Test last update in 32bit version of __rb_time_read()
    73249ef76c2d ALSA: hda/realtek: Add quirk for Lenovo Yoga Pro 7
    5f1c1e8de568 ALSA: hda/realtek: Add Framework laptop 16 to quirks
    70a6885542b1 ALSA: hda/realtek: add new Framework laptop to quirks
    65a7a5b2d531 ALSA: hda/realtek: Enable headset on Lenovo M90 Gen5
    b3f1d9230457 ALSA: hda/realtek: fix speakers on XPS 9530 (2023)
    6e25980d046f ALSA: hda/realtek: Apply quirk for ASUS UM3504DA
    8e6ac8c6bae1 ALSA: pcm: fix out-of-bounds in snd_pcm_state_names
    5ae225bbf358 ALSA: usb-audio: Add Pioneer DJM-450 mixer controls
    30df2901c4ac io_uring: fix mutex_unlock with unreferenced ctx
    dd864f6ee04e nvme-pci: Add sleep quirk for Kingston drives
    5a33d385eb36 io_uring/af_unix: disable sending io_uring over sockets
    127fcf79662d ASoC: amd: yc: Fix non-functional mic on ASUS E1504FA
    29b9ebc89106 rethook: Use __rcu pointer for rethook::handler
    af448bb2eaba scripts/gdb: fix lx-device-list-bus and lx-device-list-class
    2d16a9f778f7 kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP
    49b79af00d24 md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly()
    7442310ee4f0 riscv: errata: andes: Probe for IOCP only once in boot stage
    b12ccda0d469 riscv: fix misaligned access handling of C.SWSP and C.SDSP
    92f095553ae5 arm64: dts: rockchip: Fix eMMC Data Strobe PD on rk3588
    15eb6859de68 ARM: dts: imx28-xea: Pass the 'model' property
    5af668cd9ee5 ARM: dts: imx7: Declare timers compatible with fsl,imx6dl-gpt
    ee007123af6d arm64: dts: imx8-apalis: set wifi regulator to always-on
    12deaef0c867 ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init
    3836f1f246e2 arm64: dts: imx93: correct mediamix power
    8b2c35e5e678 arm64: dts: freescale: imx8-ss-lsio: Fix #pwm-cells
    d338395bc5af arm64: dts: imx8-ss-lsio: Add PWM interrupts
    ddc5ad21da0a scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle()
    6eec904d95a5 tracing: Fix a warning when allocating buffered events fails
    7e6621b99d20 io_uring/kbuf: check for buffer list readiness after NULL check
    b2173a8b6450 io_uring/kbuf: Fix an NULL vs IS_ERR() bug in io_alloc_pbuf_ring()
    fe145559a91f ARM: dts: imx6ul-pico: Describe the Ethernet PHY clock
    c6a952d44a41 arm64: dts: imx8mp: imx8mq: Add parkmode-disable-ss-quirk on DWC3
    584bdbca913e drm/bridge: tc358768: select CONFIG_VIDEOMODE_HELPERS
    fc054130cdfb RDMA/irdma: Avoid free the non-cqp_request scratch
    926c1c7a8f2e RDMA/irdma: Fix support for 64k pages
    12a77574f090 RDMA/irdma: Ensure iWarp QP queue memory is OS paged aligned
    d103c131ef3b RDMA/core: Fix umem iterator when PAGE_SIZE is greater then HCA pgsz
    b8668fe7a5e8 ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate
    0ca497a90ef3 firmware: arm_scmi: Fix possible frequency truncation when using level indexing mode
    489358880655 firmware: arm_scmi: Simplify error path in scmi_dvfs_device_opps_add()
    1ea9f8abe364 firmware: arm_scmi: Fix frequency truncation by promoting multiplier type
    c3af26f53616 firmware: arm_scmi: Extend perf protocol ops to get information of a domain
    9c78a21a5a52 firmware: arm_scmi: Extend perf protocol ops to get number of domains
    7cd68b364f83 hwmon: (nzxt-kraken2) Fix error handling path in kraken2_probe()
    8d73500fcf86 ASoC: codecs: lpass-tx-macro: set active_decimator correct default value
    8ebf05908f0e hwmon: (acpi_power_meter) Fix 4.29 MW bug
    2e594ee138c9 ARM: dts: bcm2711-rpi-400: Fix delete-node of led_act
    a7fb9f15fedc ARM: dts: rockchip: Fix sdmmc_pwren's pinmux setting for RK3128
    03766ae3467d ARM: dts: imx6q: skov: fix ethernet clock regression
    231ab2ff6039 arm64: dt: imx93: tqma9352-mba93xxla: Fix LPUART2 pad config
    55b6b95737e3 RDMA/irdma: Fix UAF in irdma_sc_ccq_get_cqe_info()
    cfaede20f5a5 RDMA/bnxt_re: Correct module description string
    ca19116cca9d RDMA/rtrs-clt: Remove the warnings for req in_use check
    4b13d47c9018 RDMA/rtrs-clt: Fix the max_send_wr setting
    5aafdb5e9324 RDMA/rtrs-srv: Destroy path files after making sure no IOs in-flight
    7bb1941e7f71 RDMA/rtrs-srv: Free srv_mr iu only when always_invalidate is true
    dfb398fdcb7f RDMA/rtrs-srv: Check return values while processing info request
    30614ed295bc RDMA/rtrs-clt: Start hb after path_up
    b659d48fc426 RDMA/rtrs-srv: Do not unconditionally enable irq
    e1e4a5cbb0a1 ASoC: fsl_sai: Fix no frame sync clock issue on i.MX8MP
    bdcedad6b951 arm64: dts: rockchip: Expand reg size of vdec node for RK3399
    4192a26f673a arm64: dts: rockchip: Expand reg size of vdec node for RK3328
    9b1b8ab2bd73 RDMA/irdma: Add wait for suspend on SQD
    951c6d336ebe RDMA/irdma: Do not modify to SQD on error
    38772f667233 RDMA/hns: Fix unnecessary err return when using invalid congest control algorithm
    24436fe77efe RDMA/core: Fix uninit-value access in ib_get_eth_speed()
    d3c4786b01aa tee: optee: Fix supplicant based device enumeration
    577209e844bf mm/damon/sysfs: eliminate potential uninitialized variable warning
    45d72eadf21a drm/amdkfd: get doorbell's absolute offset based on the db_size
    ffc642551262 drm/amd/amdgpu/amdgpu_doorbell_mgr: Correct misdocumented param 'doorbell_index'
    f9eef2563234 net/smc: fix missing byte order conversion in CLC handshake
    b03b2ddf0e90 net: dsa: microchip: provide a list of valid protocols for xmit handler
    e036a325a977 drop_monitor: Require 'CAP_SYS_ADMIN' when joining "events" group
    580c80b6f881 psample: Require 'CAP_NET_ADMIN' when joining "packets" group
    94e81d1a4bd9 bpf: sockmap, updating the sg structure should also update curr
    eb30a025982f net: tls, update curr on splice as well
    29561ef098a0 net: dsa: mv88e6xxx: Restore USXGMII support for 6393X
    2087d53a66e9 tcp: do not accept ACK of bytes we never sent
    1417b7198546 netfilter: xt_owner: Fix for unsafe access of sk->sk_socket
    fa72b6e62fa5 netfilter: nf_tables: validate family when identifying table via handle
    5eeba00a89c5 netfilter: nf_tables: bail out on mismatching dynset and set expressions
    0392d322b45b netfilter: nf_tables: fix 'exist' matching on bigendian arches
    83e9863785f4 netfilter: bpf: fix bad registration on nf_defrag
    a365250a4a65 dt-bindings: interrupt-controller: Allow #power-domain-cells
    b710b35ef66e octeontx2-af: Update Tx link register range
    cd1045acc228 octeontx2-af: Add missing mcs flr handler call
    82b2c5e0b4f4 octeontx2-af: Fix mcs stats register address
    b783ee126c01 octeontx2-af: Fix mcs sa cam entries size
    00efd99e36b4 octeontx2-af: Adjust Tx credits when MCS external bypass is disabled
    2daea952199e net: hns: fix fake link up on xge port
    613b5db4c55f net: hns: fix wrong head when modify the tx feature when sending packets
    e30ad4729c57 net: atlantic: Fix NULL dereference of skb pointer in
    08e3e3da6c39 ipv4: ip_gre: Avoid skb_pull() failure in ipgre_xmit()
    77c02d10c407 ionic: Fix dim work handling in split interrupt mode
    4dacbf99cebf ionic: fix snprintf format length warning
    e4a2a4328c85 tcp: fix mid stream window clamp.
    dc903ddc826f net: bnxt: fix a potential use-after-free in bnxt_init_tc
    d88c7cf589de iavf: validate tx_coalesce_usecs even if rx_coalesce_usecs is zero
    ab3a730feab9 i40e: Fix unexpected MFS warning message
    2442e9cbb79c ice: Restore fix disabling RX VLAN filtering
    33755da7ae2b octeontx2-af: fix a use-after-free in rvu_npa_register_reporters
    d7666bfd7884 xsk: Skip polling event check for unbound socket
    e1fbdef91b1c net: stmmac: fix FPE events losing
    9cc9fbe5c028 octeontx2-pf: consider both Rx and Tx packet stats for adaptive interrupt coalescing
    5106d7adb74b arcnet: restoring support for multiple Sohard Arcnet cards
    15e1490022e7 platform/mellanox: Check devm_hwmon_device_register_with_groups() return value
    8b2688f9c589 platform/mellanox: Add null pointer checks for devm_kasprintf()
    76914ea593bb mlxbf-bootctl: correctly identify secure boot with development keys
    9b4a88385435 r8152: Add RTL8152_INACCESSIBLE to r8153_aldps_en()
    4bc63784d642 r8152: Add RTL8152_INACCESSIBLE to r8153_pre_firmware_1()
    9bda33e87114 r8152: Add RTL8152_INACCESSIBLE to r8156b_wait_loading_flash()
    b7416e0a4d48 r8152: Add RTL8152_INACCESSIBLE checks to more loops
    8defe1643dd3 r8152: Hold the rtnl_lock for all of reset
    b47e71da4776 hv_netvsc: rndis_filter needs to select NLS
    28b8ed4a02fa bpf: Fix a verifier bug due to incorrect branch offset comparison with cpu=v4
    c3287140282b octeontx2-af: Check return value of nix_get_nixlf before using nixlf
    6ddf005fd6cc octeontx2-pf: Add missing mutex lock in otx2_get_pauseparam
    a08768110a65 ipv6: fix potential NULL deref in fib6_add()
    6e33e81b785f platform/x86: wmi: Skip blocks with zero instances
    30460e7e27da of: dynamic: Fix of_reconfig_get_state_change() return value documentation
    cb6b8919ebf8 platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code
    7cb7001ecd0f dt: dt-extract-compatibles: Don't follow symlinks when walking tree
    c35bcede4ffa dt: dt-extract-compatibles: Handle cfile arguments in generator function
    239bff0171a8 x86/tdx: Allow 32-bit emulation by default
    22ca647c8f88 x86/entry: Do not allow external 0x80 interrupts
    4591766ff655 x86/entry: Convert INT 0x80 emulation to IDTENTRY
    34c686e5be2f x86/coco: Disable 32-bit emulation by default on TDX and SEV
    f259af26ee04 x86: Introduce ia32_enabled()
    dfa1898cef4c dm-crypt: start allocating with MAX_ORDER
    915864d18641 drm/amdgpu: correct chunk_ptr to a pointer to chunk.
    a8f5cd042305 drm/amdgpu: finalizing mem_partitions at the end of GMC v9 sw_fini
    3a56e61b5779 drm/amdgpu: Do not program VF copy regs in mmhub v1.8 under SRIOV (v2)
    b97debd07a8d kconfig: fix memory leak from range properties
    b1205cc72b47 modpost: fix section mismatch message for RELA
    9a07b662e54e tg3: Increment tx_dropped in tg3_tso_bug()
    763a1b3177d9 tg3: Move the [rt]x_dropped counters to tg3_napi
    90ed718d6a8e zstd: Fix array-index-out-of-bounds UBSAN warning
    f5fb5ac7cee2 nouveau: use an rwlock for the event lock.
    23c31036f862 netfilter: ipset: fix race condition between swap/destroy and kernel side add/del/test
    22a59e51ded2 i2c: ocores: Move system PM hooks to the NOIRQ phase
    f5d10651396c i2c: designware: Fix corrupted memory seen in the ISR
    53f408cad05b hrtimers: Push pending hrtimers away from outgoing CPU earlier
    c94c44685d80 scsi: sd: Fix sshdr use in sd_suspend_common()
    dd3438abfb85 vdpa/mlx5: preserve CVQ vringh index

(From OE-Core rev: 9cc9863bcbe6308cba0944fd46134f33ba7d5ff1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
a6c2ab1a88 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

    ]

(From OE-Core rev: 5336ef12e661590ab1bf982a3e7b82ae2be727a3)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
d18436b6cf linux-yocto-rt/6.6: fix CVE exclusion include
(From OE-Core rev: a1415383f8f593ef594ed574f82edc7af4e5d4df)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
f7ea203fad linux-yocto/6.6: fix AB-INT: QEMU kernel panic: No irq handler for vector
Integrating the following commit(s) to linux-yocto/6.6:

1/2 [
    Author: Thomas Gleixner
    Email: tglx@linutronix.de
    Subject: x86/alternatives: Sync core before enabling interrupts
    Date: Thu, 7 Dec 2023 20:49:24 +0100

    text_poke_early() does:

       local_irq_save(flags);
       memcpy(addr, opcode, len);
       local_irq_restore(flags);
       sync_core();

    That's not really correct because the synchronization should happen before
    interrupts are reenabled to ensure that a pending interrupt observes the
    complete update of the opcodes.

    It's not entirely clear whether the interrupt entry provides enough
    serialization already, but moving the sync_core() invocation into interrupt
    disabled region does no harm and is obviously correct.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/2 [
    Author: Thomas Gleixner
    Email: tglx@linutronix.de
    Subject: x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
    Date: Thu, 7 Dec 2023 20:49:26 +0100

    apply_alternatives() treats alternatives with the ALT_FLAG_NOT flag set
    special as it optimizes the existing NOPs in place.

    Unfortunately this happens with interrupts enabled and does not provide any
    form of core synchronization.

    So an interrupt hitting in the middle of the update and using the affected
    code path will observe a half updated NOP and crash and burn. The following
    3 NOP sequence was observed to expose this crash halfways reliably under
    QEMU 32bit:

       0x90 0x90 0x90

    which is replaced by the optimized 3 byte NOP:

       0x8d 0x76 0x00

    So an interrupt can observe:

       1) 0x90 0x90 0x90		nop nop nop
       2) 0x8d 0x90 0x90		undefined
       3) 0x8d 0x76 0x90		lea    -0x70(%esi),%esi
       4) 0x8d 0x76 0x00		lea     0x0(%esi),%esi

    Where only #1 and #4 are true NOPs. The same problem exists for 64bit obviously.

    Disable interrupts around this NOP optimization and invoke sync_core()
    before reenabling them.

    Fixes: 270a69c4485d ("x86/alternative: Support relocations in alternatives")
    Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: stable@vger.kernel.org
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 6e1d5d1301ae5dbc7fa1a09da831e8e9bf03671c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
df9eb69f3e linux-yocto: introduce 6.6 reference kernel
Adding the linux-yocto recipes for the 6.6 reference kernel. This
is a -lts upstream release and will be supported for the same
duration as upstream.

(From OE-Core rev: d341b4b176f72d4214714ffc7a7a5fc337eb321c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Bruce Ashfield
b0e66c9acf linux-libc-headers: update to v6.6-lts
(From OE-Core rev: d7acd9d139aa0d423aaade3c1500658006065a79)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-04 23:47:50 +00:00
Tom Rini
1bbdc674ae inetutils: Update to the 2.5 release
The update from 2.4 to 2.5 was almost something AUH could take care of.
However, we had backported two patches to address CVE-2023-40303 and
that threw off AUH. These changes are confirmed to be in 2.5, so drop
them and update to 2.5.

(From OE-Core rev: e1bffeab27b062884f6366cde24ce1c67e7ec03e)

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Bruce Ashfield
d68492d6c5 oeqa/runtime/parselogs: add qemux86 ACPI ignore for kernel v6.6+
upstream commit 003e0694fcd3d5 [ACPI: processor: Refine messages
in acpi_early_processor_control_setup()] changes logging during
boot such that some of the informational messages are caught as
QA issues.

Adding the string to the ingore files so that 6.6+ will pass QA.

(From OE-Core rev: 463d40f2d4bf30becce431bfc1cbdf3b673e8e60)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Fabio Estevam
5589031867 bmap-tools: Upgrade to 3.7
Upgrade to version 3.7.

The COPYING file has been renamed as LICENSE, so adapt LIC_FILES_CHKSUM
accordingly.

(From OE-Core rev: 38e3d8f2f79a667dddf820f63c67715a5b096594)

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Ming Liu
361cc39ede grub: fs/fat: Don't error when mtime is 0
A issue was found when I run "runqemu genericx86-64 ovmf", grub failed
to boot, it's a known issue has been fixed in grub upstream, backport
the fix.

(From OE-Core rev: 51eab4bb0cae46c9c32d28986eb97badf47594b7)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Enrico Scholz
e08a0caab4 tcp-wrappers: drop libnsl2 build dependency
The only libnsl2 function which is used by tcp-wrappers is
'yp_get_default_domain()'.  When USE_GETDOMAIN is set, this is
implemented as a simple wrapper around getdomainname() so that libnsl2
is not used at all.

We added a patch which does '#include <rpcsvc/ypclnt.h>' to avoid
implicit forward declaration.  By conditionalizing this, the libnsl2
dependency can be dropped completely.

(From OE-Core rev: b013f6ce40d315c894064cf9fa77d9c7a9dad2b0)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Alexander Kanavin
30e0c90f30 glibc-y2038-tests: do not run tests using 32 bit time APIs
I'm not sure why this was included and enabled to begin with: the tests
predictably mass-fail if system time is set to after y2038.

(From OE-Core rev: c9c7ebd6e447bce19803253afd881854f686b5f6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Philip Balister
cddf8e9f53 sanity.bbclass: Check for additional native perl modules.
Since we use the build systems native perl, we need to check that all
perl modules required for a build are installed. For a default Fedora 39
install, autoconf-native and libxcrypt both fail to build due to missing
perl modules. After taking careful notes, this commits adds checks for
File::Compare, File::Copy, open, and FindBin.

[YOCTO #14691]

(From OE-Core rev: 3d09e759f838a7ce66fd1fb6e6a6653abce9e3a4)

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-03 23:36:34 +00:00
Trevor Gamblin
3c71605a77 scripts/runqemu: fix regex escape sequences
When invoking runqemu with Python 3.12, the following warning is
encountered:

|SyntaxWarning: invalid escape sequence '\.'

This is because the interpreter scans the string before it is processed
by the regex module, and it interprets the backslash as part of an
escape sequence, but not a standard one. This will be registered as an
error rather than a warning in future Python versions. To avoid the it,
simply add an extra backslash so that Python doesn't misinterpret the
string, while the regex parser still sees an escaped '.' character.

(From OE-Core rev: 0e8a4142bb90a92d175df6b2537d24a372356f98)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-02 22:51:01 +00:00
Chen Qi
bd05979aa8 devtool: use straight print in check-upgrade-status output
'devtool check-upgrade-status' is for reporting upgradable
status for recipes. The output should always be printed out. So
we should just use 'print' instead of 'logger.info' as the latter
will be suppressed if '-q' parameter is supplied to devtool.

(From OE-Core rev: 2c7bf9c8a833bec13a1ebabdce30933cbe691108)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-02 22:51:01 +00:00
Simone Weiß
70a92a2f8b patchtest: Add test for deprecated CVE_CHECK_IGNORE
If a recipes was modified recommand the use of `CVE_STATUS` instead if
`CVE_CHECK_IGNORE` is used. This is a depreacted variable and will
result in a warning from the cve-check.class and should hence not be
used anymore. [YOCTO #15311]

(From OE-Core rev: 5c264063f6363e5ff88146125217b6089eb22f12)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-02 22:51:01 +00:00
Kevin Hao
5d7a4304d9 beaglebone-yocto: Remove the obsolete variables for uImage
Now we only support the zImage kernel type for this machine, so remove
the obsolete variables for uImage kernel type.

[YOCTO #15232]

Reported-by: Robert Berger <pokylinux@reliableembeddedsystems.com>
(From meta-yocto rev: a8a5abe05ec4e96287acc994883f4b977290cde1)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-02 22:50:10 +00:00
Kevin Hao
97306ebc00 beaglebone-yocto: Remove the redundant kernel-devicetree
The kernel-devicetree is set in both MACHINE_ESSENTIAL_EXTRA_RDEPENDS
and MACHINE_EXTRA_RRECOMMENDS. Since it is an essential package for
boot, drop the one in MACHINE_EXTRA_RRECOMMENDS.

[YOCTO #15229]

(From meta-yocto rev: 5935d4fd751153f0f1c930924a5e2771f6dd5e72)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-02 22:50:10 +00:00
Alexander Kanavin
3958182710 bitbake: bitbake/codeparser.py: address ast module deprecations in py 3.12
Specifically:
/srv/work/alex/poky/bitbake/lib/bb/codeparser.py:279: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
  if isinstance(node.args[0], ast.Str):
/srv/work/alex/poky/bitbake/lib/bb/codeparser.py:280: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
  value = node.args[0].s

(Bitbake rev: de8ba2770d9a1a94af3d084f9540da7e2fae6022)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-02 14:41:06 +00:00
Alassane Yattara
280917c2e7 bitbake: toaster/tests: Bug-fix "#project-created-notification" should be visible
Added more delay between click on create project but and when notification is displayed

(Bitbake rev: 5382cc0699eebc1e91675a2a147f8fe7dab23c14)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-01 23:13:50 +00:00
Alassane Yattara
350300f836 bitbake: toaster/tests: Skip to show more then 100 item in ToasterTable
(Bitbake rev: 860c931381e0694a854fd90775fb18dadb7d76c6)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-01 23:13:50 +00:00
Alassane Yattara
3e6d3817da bitbake: toaster/tests: bug-fix An element matching "#lastest_builds" should be on the page
(Bitbake rev: 5bcba4596cd9f4f54c7ae7ebd9322897c2f829cd)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-01 23:13:50 +00:00
Alassane Yattara
6a67f24773 bitbake: toaster/tests: bug-fix An element matching "#projectstable" should be visible
(Bitbake rev: 1edb97f741a48481b1b9f26c5cb31acd9059f07f)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-01 23:13:50 +00:00
Wang Mingyu
4b7e548463 aspell: upgrade 0.60.8 -> 0.60.8.1
CVE-2019-25051.patch
removed since it's included in 0.60.8.1

Changelog:
============
-Fix memory leak in suggestion code introduced in 0.60.8.
-Various documentation fixes.
-Fix various warnings when compiling with -Wall.
-Fix two buffer overflows found by Google's OSS-Fuzz.
-Other minor updates.

(From OE-Core rev: ec3c8642f71b470936b6dd29331afa467ab865c7)

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>
2024-01-01 23:11:42 +00:00
Viswanath Kraleti
4f2c4993ef systemd-boot: Add recipe to compile native
systemd-boot native recipe provides ukify tool to build
UKI images for systemd-boot

(From OE-Core rev: 8063bcb2d4fcfeded5edac3b0895151e8dc8bf0f)

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-01 23:11:42 +00:00
Deepthi Hemraj
1b4f19bae8 autoconf: Add missing perl modules to RDEPENDS
In SDK,running "x86_64-poky-linux-gp-display-html --help" fails due to missing perl modules which are required for it to work.

Fixes:Can't locate feature.pm in @INC (you may need to install the feature module).

(From OE-Core rev: 71a751fd561c9087ef027dd4985b80bd27090421)

Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-01-01 23:11:42 +00:00
Fabio Estevam
c8f08af400 kmscube: Upgrade to latest revision
Upgrade to the latest kmscube revision.

(From OE-Core rev: 53b85cff9e7d1a7416f905c280aff3ce024fd49f)

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>
2024-01-01 23:11:42 +00:00
Richard Purdie
fe5d2f0b66 bitbake: lib/bb: Add workaround for libgcc issues with python 3.8 and 3.9
With python 3.8 and 3.9, we see intermittent errors of:

libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted (core dumped)

which seem related to:

https://stackoverflow.com/questions/64797838/libgcc-s-so-1-must-be-installed-for-pthread-cancel-to-work
https://bugs.ams1.psf.io/issue42888

These tend to occur on debian 11 and ubuntu 20.04.

Workaround this by ensuring libgcc is preloaded in all cases.

(Bitbake rev: c6666f6cfafd55e1c980239a7c5ff908f1a69196)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:25 +00:00
Alex Kiernan
f00d4c3029 rust: Upgrade 1.74.0 -> 1.74.1
https://blog.rust-lang.org/2023/12/07/Rust-1.74.1.html

(From OE-Core rev: b98373075c6cc416bd0375b98b6bbdddf599d9a1)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
8fd396bc3d rust: Upgrade 1.73.0 -> 1.74.0
Replace musl fixes with backports from upstream.

Add sysconfdir to config.toml to fix:

| thread 'main' panicked at install.rs:92:9:
| User doesn't have write access on `install.sysconfdir` path in `config.toml`.

https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html

(From OE-Core rev: 84f46dd2503bb0ef238fef0097c66fda88f6cbda)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
537ed2b654 rust: Upgrade 1.72.1 -> 1.73.0
https://blog.rust-lang.org/2023/10/05/Rust-1.73.0.html

(From OE-Core rev: 728c40b939c6af6358a483237298ca834cbb8993)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
aa0b0d0cc2 rust: Upgrade 1.72.0 -> 1.72.1
https://blog.rust-lang.org/2023/09/19/Rust-1.72.1.html

(From OE-Core rev: d1386bbf2211c7616527e62f2f7b069a935b0d68)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
6eabf7e4b4 rust: Upgrade 1.71.1 -> 1.72.0
Drop getrandom-open64.patch (merged upstream).

Revert c4f414f449
("Map source absolute paths to OUT_DIR as relative. (#684)") which
causes hashed versions of the build path to be used as part of the
filename of generated objects and hence reproducibility issues.

https://blog.rust-lang.org/2023/08/24/Rust-1.72.0.html

(From OE-Core rev: 30637cdeb31fae02544fdc643a455d0ebb126ee6)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
b40a8e0208 zvariant: Drop recipe
This fails to build with newer rust

(From OE-Core rev: 8a286e686e5764f4def0644586dd19e2197ef6c2)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
93f71a076c devtool: selftest: Swap to hello-rs for crates testing
zvariant fails to build with newer rust

(From OE-Core rev: 5928acfe75386c8ebdf58dbd860bbb40243473fd)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
781bd05a4b meta-selftest: hello-rs: Simple rust test recipe
(From OE-Core rev: 885e8e1fbfce79170ff7544dec5406d724da2560)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:08 +00:00
Alex Kiernan
6bc41cf96f devtool: selftest: Fix test_devtool_modify_git_crates_subpath bbappend check
The recipe being tested is in `testrecipe`, use that rather than the
literal `zvariant`.

(From OE-Core rev: f14ce354890024a3a0a3d4c7efa53eab5db7a6b1)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Alex Kiernan
f87f7e1b8c devtool: selftest: Fix test_devtool_modify_git_crates_subpath inequality
test_devtool_modify_git_crates_subpath expects 2 or more git URIs,
change the test from Greater to GreateEqual.

(From OE-Core rev: 4a8d03db55e6a1b07a8585cbf5fbf735ec51f4a7)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Richard Purdie
85d3de0b8a curl: Disable test 1091 due to intermittent failures
Disable another test that intermittently fails on the autobuilder.

(From OE-Core rev: 8d169e13f7e2eb6511f0ac98da63b060c6c0d53a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
64c4a5024f python3-lxml: upgrade 4.9.3 -> 4.9.4
Changelog:
===========
* LP#2046398: Inserting/replacing an ancestor into a node's children could loop indefinitely.
* LP#1980767, GH#379: "TreeBuilder.close()" could fail with a "TypeError" after
  parsing incorrect input.
* LP#1522052: A file-system specific test is now optional and should no longer fail
  on systems that don't support it.
* Wheels include zlib 1.3, libxml2 2.10.3 and libxslt 1.1.39
  (zlib 1.2.12, libxml2 2.10.3 and libxslt 1.1.37 on Windows).
* Built with Cython 0.29.37.

(From OE-Core rev: 68d75159d4be411840fffb7b861342a726f2d604)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
da2d5a090f python3-importlib-metadata: upgrade 7.0.0 -> 7.0.1
Changelog:
==========
-Corrected the interface for SimplePath to encompass the expectations of
 locate_file and PackagePath.
-Fixed type annotations to allow strings.

(From OE-Core rev: f3a1975c1d94ca3286652c27c5b3fa711089b154)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
c0484c2ed0 python3-hatchling: upgrade 1.20.0 -> 1.21.0
Changelog:
 Add parent context modifier for path fields

(From OE-Core rev: 178d107340222aa49cdcfef859c0fe14870f552c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
885c1a41d9 python3-dbusmock: upgrade 0.30.0 -> 0.30.1
Changelog:
============
-bluez: Clean up static default properties, re-drop PairDevice() class_ parameter
-Add pre-commit rules

(From OE-Core rev: db3898af5df76e14ee0f5a55ebc0d124e9010425)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
775c1cc08b python3-setuptools: upgrade 69.0.2 -> 69.0.3
0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch
refreshed for 69.0.3

Changelog:
 Retain valid names with underscores in egg_info.

(From OE-Core rev: 47507793764cef763e31bd888754cb8ba7361376)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
a0841ca7ae fontconfig: upgrade 2.14.2 -> 2.15.0
License-Update: Add FC_FONT_WRAPPER

(From OE-Core rev: 02bd9c05fc91a1bc22d767308c9e3f21590f202f)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
c541bd3f3c dhcpcd: upgrade 10.0.5 -> 10.0.6
0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch
0001-remove-INCLUDEDIR-to-prevent-build-issues.patch
refreshed for 10.0.6

Changelog:
==========
-privsep: Stop proxying stderr to console and fix some detachment issues
-non-privsep: Fix launcher hangup
-DHCP6: Allow the invalid interface name - to mean don't assign an address from a delegated prefix
-DHCP6: Load the configuration for the interface being activated from prefix delegation

(From OE-Core rev: 9f813cdbb789423219cb83affd40cd0f3c377485)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
ca78b23f57 gstreamer1.0: upgrade 1.22.7 -> 1.22.8
(From OE-Core rev: 132d8b7e0188aae8849ae43cfffabce4389a55df)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Wang Mingyu
faae19bca0 iputils: upgrade 20221126 -> 20231222
Changelog:
===========
- fix: Properly fix -Wpedantic warnings
- fix: Set ppoll timeout minimum to 1ms
  #459)
- fix: Revert "ping: use random value for the identifier field" to use PID
  again
- fix: Fix support for DSCP (Traffic Class, option -Q)
- fix: Fix the errno handling for strtod
- fix: Drop redundant setsockopt(IPV6_TCLASS) call
- fix: Fix overflow on negative -i
- fix: Fix sporadically missing DNS record on targets with multiple IP
  addresses
- fix: Handle interval correctly in the first second after booting
- fix: Fix presentation of IPv6 addresses with no reverse DNS
- fix: Add missing whitespace in IPv6 output
- fix: Allow to localize help
- fix: Use print target when empty ai_canonname
- fix: Restore the MTU probing behavior")

(From OE-Core rev: 25b8aa5fcaa682dc6bc011ffbac17f19c6d9c389)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Shubham Kulkarni
9e0cccb651 tzdata: Upgrade to 2023d
(From OE-Core rev: 2956b1aa22129951b8c08ac06ff1ffd66811a26c)

Signed-off-by: Shubham Kulkarni <skulkarni@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 11:03:07 +00:00
Richard Purdie
87b237512f oeqa/selftest/sstatetests: Update sstate management script tests to python script
Now we've switched to the python script, update the tests to match
that by removing the now unneeded parameter.

(From OE-Core rev: 93989f9b4895506e6ad66a78088a5c2801e2a10d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-30 00:37:16 +00:00
Richard Purdie
6ce42d73a3 scripts: Drop shell sstate-cache-management
Since there is a faster python version, drop the slower shell one.

(From OE-Core rev: 0551fa2ae3dacf51825ff5c1d081e713a150ddd2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-28 10:57:49 +00:00
Saul Wold
acf45e764c package.py: OEHasPackage: Add MLPREFIX to packagename
FIXES [YOCTO #12342]

When testing a Multilib image, the package manifest list contains
the fully qualified package name which includes the Multilib Prefix.
This patch adds the MLPREFIX to the package names that are passed
into the @OEHasPackage() decorator to ensure the set isdisjoint()
matches correctly.

(From OE-Core rev: ab87e4f92305b2a664cc473869e1615cf56e0936)

Signed-off-by: Saul Wold <sgw@bigsur.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-28 10:57:49 +00:00
Alex Kiernan
b723fcaac5 sstate-cache-management: Rewrite in python
This (should be) a drop in replacement for sstate-cache-management.sh.

(From OE-Core rev: 2fa1b25d7485bfbb92bcc33067beb6751218b36a)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-28 10:57:49 +00:00
Richard Purdie
2d8e080231 oeqa/selftest/prservice: Improve test robustness
The tests were not cleaning up after themselves and making assumptions about
memory resident bitbake being stopped by the scripts.

Add cleanup logic to ensure the tests don't break other things and
clean up created files.

(From OE-Core rev: 692dd762a0c817797c28381c6169205fbaeb2705)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:07 +00:00
Richard Purdie
52f41ff243 lib/prservice: Improve lock handling robustness
It is possible we could crash holding a lock whilst parsing in this code.
Switch to use utils.fileslocked() in the with expression to avoid this.

This may be causing some of our strange intermittent failures in PRServ
tests.

(From OE-Core rev: 4e59db15e5df2cc3d0ae042454812a2d54cef77b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:07 +00:00
Joshua Watt
cd125f1703 classes-global/insane: Look up all runtime providers for file-rdeps
Uses the new foreach_runtime_provider_pkgdata() API to look up all
possible runtime providers of a given dependency when resolving
file-rdeps. This allows the check to correctly handle RPROVIDES for
non-virtual dependencies

(From OE-Core rev: 018fa1b7cb5e6a362ebb45b93e52b0909a782ac9)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:07 +00:00
Joshua Watt
dd5475d8e3 lib/packagedata.py: Add API to iterate over rprovides
Adds an API that makes it easier to iterate over the package data for a
all providers of a runtime dependency.

(From OE-Core rev: 68bdc219a4a819e83217f5b54c463624af8d3b9e)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:07 +00:00
Ross Burton
af61f98f00 libseccomp: remove redundant PV assignment
(From OE-Core rev: 0661d29a6482d9534d221b7d3d0e124cad62b13a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:07 +00:00
Joshua Watt
2ef4bf954b classes-global/sstate: Fix variable typo
The vardepsexclude was subtly wrong in that it referenced STATE_MANMACH
when the actual variable name is SSTATE_MANMACH.

(From OE-Core rev: ec5054396f7fafea2a071d2695ae111fc585d6e6)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:06 +00:00
Robert Berger
23549b87c5 uninative-tarball.xz - reproducibility fix
added --clamp-mtime --mtime to the tar command

see:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15148

(From OE-Core rev: 2ef7c63871ab4fb62a9cea45a23a78bf9d541e4a)

Signed-off-by: Robert Berger <Robert.Berger@ReliableEmbeddedSystems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-24 10:39:06 +00:00
Joshua Watt
34bafb3cf2 bitbake: contrib/vim: Syntax improvements
Makes a few improvments to the vim Bitbake syntax plugin:
 1) Highlight python expansion expressions "${@...}" in
    inherit/include/require
 2) Highlight variables "${..}" and python expressions "${@...}" in
    addtask/deltask/addhandler
 3) Correctly handle multi-line sequences in addtask/deltask/addhanlder

(Bitbake rev: 39691d5d0f44a266f917a13884707283f83543de)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 16:20:25 +00:00
Robert Yang
fdef56a596 archiver.bbclass: Drop tarfile module to improve performance
* The tarfile module doesn't support xz options or environment varible
  XZ_DEFAULTS, this makes do_ar_patched incrediblely slow when the file is
  large, for example, chromium-x11 is about 3GB:
  - "bitbake chromium-x11 -car_patched" hasn't been done after 3 hours on my
     host, I checked the partial tar.xz file is only 1.5GB, so maybe more than 6
     hours is required to complete the task.

  - Now only less than 4 minutes is needed on the same host.

* Need add xz to HOSTTOOLS when archiver.bbclass is enabled and compression is xz.

(From OE-Core rev: 6548354f049b173e8d443bc547d35c9d9fc05259)

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>
2023-12-23 08:46:01 +00:00
Renat Khalikov
0d9de34ac6 python3-maturin: Add missing space appending to CFLAGS
When the CFLAGS variable is appended to, the missing space causes build
errors when CFLAGS was set previously.

For example:

  error: unrecognized command-line option '-mno-unaligned-access-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home'

(From OE-Core rev: cac54e6a6c6601629305b006f99fd1215565182b)

Signed-off-by: Renat Khalikov <renat_khalikov@trimble.com>
CC: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Fabio Estevam
7b663133a6 libdrm: Upgrade to 2.4.119
Upgrade to 2.4.119 which has the following changes:

Marek Olšák (2):
      amdgpu: add amdgpu_va_get_start_addr
      meson: bump libdrm version to 2.4.119

(From OE-Core rev: 45bfbe55781910f65c968c75c830338d96762593)

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>
2023-12-23 08:46:00 +00:00
Richard Purdie
447ca52429 linux/cve-exclusion6.1: Update to latest kernel point release
(From OE-Core rev: c4ffd18d3e71b935acc050b106267db544d86df7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
afb5193989 linux-yocto/6.1: update to v6.1.68
Updating  to the latest korg -stable release that comprises
the following commits:

    ba6f5fb46511 Linux 6.1.68
    f38b4e99e24c drm/i915: Skip some timing checks on BXT/GLK DSI transcoders
    d9ef7b05ccd7 drm/i915/sdvo: stop caching has_hdmi_monitor in struct intel_sdvo
    cf70d62ace90 drm/i915/lvds: Use REG_BIT() & co.
    e6d55cf49399 drm/i915/display: Drop check for doublescan mode in modevalid
    9c322aaf28e8 riscv: Kconfig: Add select ARM_AMBA to SOC_STARFIVE
    189c2a82933c netfilter: nft_set_pipapo: skip inactive elements during set walk
    b4e440cf600e MIPS: Loongson64: Enable DMA noncoherent support
    d52a5178cbdc MIPS: Loongson64: Handle more memory types passed from firmware
    8d18a0158546 MIPS: Loongson64: Reserve vgabios memory on boot
    2b9b2d28a92a KVM: SVM: Update EFER software model on CR0 trap for SEV-ES
    6d6314c3dbac KVM: s390/mm: Properly reset no-dat
    be297475cabc MIPS: kernel: Clear FPU states when setting up kernel threads
    358bd5f436d8 cifs: Fix flushing, invalidation and file size with FICLONE
    18b02e4343e8 cifs: Fix flushing, invalidation and file size with copy_file_range()
    69540c108d72 USB: gadget: core: adjust uevent timing on gadget unbind
    2467f4f8cb7c x86/CPU/AMD: Check vendor in the AMD microcode callback
    0553d5290879 devcoredump: Send uevent once devcd is ready
    74799b43d856 serial: 8250_omap: Add earlycon support for the AM654 UART controller
    d59dafa9eb12 serial: 8250: 8250_omap: Do not start RX DMA on THRI interrupt
    638a6cbacefd serial: 8250: 8250_omap: Clear UART_HAS_RHR_IT_DIS bit
    f434703fb893 serial: sc16is7xx: address RX timeout interrupt errata
    a8027753ab65 ARM: PL011: Fix DMA support
    c909ce57d055 usb: typec: class: fix typec_altmode_put_partner to put plugs
    b12ccef70545 smb: client: fix potential NULL deref in parse_dfs_referrals()
    f48430635b5e Revert "xhci: Loosen RPM as default policy to cover for AMD xHC 1.1"
    9ce109b74875 cifs: Fix non-availability of dedup breaking generic/304
    8e25331ea560 parport: Add support for Brainboxes IX/UC/PX parallel cards
    bee9affd37b9 serial: 8250_dw: Add ACPI ID for Granite Rapids-D UART
    16da1f84f5ef usb: gadget: f_hid: fix report descriptor allocation
    c8bf22e0d049 drm/amdgpu: Update EEPROM I2C address for smu v13_0_0
    87509778718c drm/amdgpu: Add I2C EEPROM support on smu v13_0_6
    4ccb34d4313b drm/amdgpu: simplify amdgpu_ras_eeprom.c
    af6b1f1156fc drm/amdgpu: Return from switch early for EEPROM I2C address
    a3049c9a3013 drm/amdgpu: Remove second moot switch to set EEPROM I2C address
    30289057ef8f drm/amdgpu: Add support for RAS table at 0x40000
    c67c553b4dd9 drm/amdgpu: Decouple RAS EEPROM addresses from chips
    ee9efcdc76af drm/amdgpu: Remove redundant I2C EEPROM address
    a945568638ac drm/amdgpu: Add EEPROM I2C address support for ip discovery
    f549f837b9ac drm/amdgpu: Update ras eeprom support for smu v13_0_0 and v13_0_10
    458affed0619 drm/amdgpu: correct the amdgpu runtime dereference usage count
    41c5dd545e76 drm/amd/amdgpu: Fix warnings in amdgpu/amdgpu_display.c
    613eaee4459d drm/amdgpu: fix memory overflow in the IB test
    1705927a1073 gpiolib: sysfs: Fix error handling on failed export
    4b716fcacd2a x86/sev: Fix kernel crash due to late update to read-only ghcb_version
    06dec254c59a perf: Fix perf_event_validate_size()
    b0c195a825d4 arm64: dts: mt8183: kukui: Fix underscores in node names
    8a3d746c7ec5 arm64: dts: mediatek: add missing space before {
    5656634ce01e parisc: Fix asm operand number out of range build error in bug table
    f9e9e156dbbb parisc: Reduce size of the bug_table on 64-bit kernel by half
    8479f5ca8b6c tracing: Stop current tracer when resizing buffer
    df4aa7e84d00 tracing: Set actual size after ring buffer resize
    07ad456e1c02 ring-buffer: Force absolute timestamp on discard of event
    40421e0cf34e LoongArch: BPF: Don't sign extend function return value
    ebb09d58dfe7 LoongArch: BPF: Don't sign extend memory load operand
    066dcd87b94c misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write
    d78789ba2195 misc: mei: client.c: return negative error code in mei_cl_write
    672976c28e1b hwtracing: hisi_ptt: Add dummy callback pmu::read()
    0b80e6af0d90 coresight: etm4x: Remove bogous __exit annotation for some functions
    766b29f6141a coresight: etm4x: Make etm4_remove_dev() return void
    920f84a6e8e9 binder: fix memory leaks of spam and pending work
    18847b6bba36 arm64: dts: mediatek: mt8183-evb: Fix unit_address_vs_reg warning on ntc
    c428285eab3c arm64: dts: mediatek: mt8183: Move thermal-zones to the root node
    bdd7508661fc arm64: dts: mediatek: mt8183: Fix unit address for scp reserved memory
    66398d18565d arm64: dts: mediatek: mt8195: Fix PM suspend/resume with venc clocks
    e1d4f02a68d3 arm64: dts: mediatek: mt8173-evb: Fix regulator-fixed node names
    ff566a8d765f arm64: dts: mediatek: cherry: Fix interrupt cells for MT6360 on I2C7
    6d50aa965650 arm64: dts: mediatek: mt8183-kukui-jacuzzi: fix dsi unnecessary cells properties
    c2adea319187 arm64: dts: mediatek: mt7622: fix memory node warning check
    515d971cd26a md/raid6: use valid sector values to determine if an I/O should wait on the reshape
    4132cc3a3aa9 powercap: DTPM: Fix missing cpufreq_cpu_put() calls
    686cc4de099f mm: fix oops when filemap_map_pmd() without prealloc_pte
    574a6db80f3e hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write
    f5e6958919e0 platform/surface: aggregator: fix recv_buf() return value
    bcd50a3bd637 regmap: fix bogus error on regcache_sync success
    1c1c6d5c7e14 r8169: fix rtl8125b PAUSE frames blasting when suspended
    6a71d7785643 packet: Move reference count in packet_sock to atomic_long_t
    15c251f81442 tracing: Fix a possible race when disabling buffered events
    b00b50091693 tracing: Fix incomplete locking when disabling buffered events
    6e0d6c685b1b tracing: Disable snapshot buffer when stopping instance tracers
    20fd56ca2e6d tracing: Always update snapshot buffer size
    f33d663db004 checkstack: fix printed address
    4c00f01832f2 cgroup_freezer: cgroup_freezing: Check if not frozen
    3907e9cc85ff nilfs2: prevent WARNING in nilfs_sufile_set_segment_usage()
    c344e99dd812 nilfs2: fix missing error check for sb_set_blocksize call
    d2558e726e76 ring-buffer: Test last update in 32bit version of __rb_time_read()
    c4dcc915ea22 ALSA: hda/realtek: Add Framework laptop 16 to quirks
    0675fe3b3234 ALSA: hda/realtek: add new Framework laptop to quirks
    8b23707c8a1e ALSA: hda/realtek: Enable headset on Lenovo M90 Gen5
    dc1141ae5ca2 ALSA: pcm: fix out-of-bounds in snd_pcm_state_names
    bb43c57c3d0b ALSA: usb-audio: Add Pioneer DJM-450 mixer controls
    bfe5a5e2f9e9 io_uring: fix mutex_unlock with unreferenced ctx
    8bba38f7a0d4 nvme-pci: Add sleep quirk for Kingston drives
    f2f57f51b53b io_uring/af_unix: disable sending io_uring over sockets
    515c25be77ba ASoC: amd: yc: Fix non-functional mic on ASUS E1504FA
    0fcfc90c8664 kprobes: consistent rcu api usage for kretprobe holder
    a5325a055f0f rethook: Use __rcu pointer for rethook::handler
    68bc7b200305 iommu: Avoid more races around device probe
    3c796895b4e2 md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly()
    5255ded03422 md: introduce md_ro_state
    a38c1e766f4f riscv: fix misaligned access handling of C.SWSP and C.SDSP
    8b41bdcc22da ARM: dts: imx28-xea: Pass the 'model' property
    282b5acd586e ARM: dts: imx7: Declare timers compatible with fsl,imx6dl-gpt
    12ac3b0ab837 ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init
    4d8cc87d1845 scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle()
    bc5b79df6d54 tracing: Fix a warning when allocating buffered events fails
    fc2d811d3101 ARM: dts: imx6ul-pico: Describe the Ethernet PHY clock
    22143a0e5ac2 arm64: dts: imx8mp: imx8mq: Add parkmode-disable-ss-quirk on DWC3
    8dd0e20b41b1 arm64: dts: imx8mq: drop usb3-resume-missing-cas from usb
    188de9839ff2 drm/bridge: tc358768: select CONFIG_VIDEOMODE_HELPERS
    1ff56298ab32 RDMA/irdma: Avoid free the non-cqp_request scratch
    0a929e837527 RDMA/core: Fix umem iterator when PAGE_SIZE is greater then HCA pgsz
    ebcb4e19d3ef ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate
    2358e53208c0 hwmon: (nzxt-kraken2) Fix error handling path in kraken2_probe()
    3baaba79088b ASoC: codecs: lpass-tx-macro: set active_decimator correct default value
    c11b7e26d2f0 hwmon: (acpi_power_meter) Fix 4.29 MW bug
    19269741c3e2 RDMA/irdma: Fix UAF in irdma_sc_ccq_get_cqe_info()
    439857e2fe4e RDMA/irdma: Refactor error handling in create CQP
    59a022a869b1 RDMA/bnxt_re: Correct module description string
    7ed498095c6d RDMA/rtrs-clt: Remove the warnings for req in_use check
    03095a6440db RDMA/rtrs-clt: Fix the max_send_wr setting
    233c32bcf069 RDMA/rtrs-srv: Destroy path files after making sure no IOs in-flight
    7be574c34dc7 RDMA/rtrs-srv: Free srv_mr iu only when always_invalidate is true
    9dd976c435be RDMA/rtrs-srv: Check return values while processing info request
    3910ccbf25a7 RDMA/rtrs-clt: Start hb after path_up
    1e46485045cd RDMA/rtrs-srv: Do not unconditionally enable irq
    4a8774a63303 ASoC: fsl_sai: Fix no frame sync clock issue on i.MX8MP
    3166c76d1deb arm64: dts: rockchip: Expand reg size of vdec node for RK3399
    aa9ae3dffc34 arm64: dts: rockchip: Expand reg size of vdec node for RK3328
    945bfe4e0b09 RDMA/irdma: Add wait for suspend on SQD
    0b0afd4e1477 RDMA/irdma: Do not modify to SQD on error
    9d005ea01ed0 RDMA/hns: Fix unnecessary err return when using invalid congest control algorithm
    1c9561b438cb tee: optee: Fix supplicant based device enumeration
    5fd29433b29d mm/damon/sysfs: eliminate potential uninitialized variable warning
    b5ca945612b4 drop_monitor: Require 'CAP_SYS_ADMIN' when joining "events" group
    07c8229c022b psample: Require 'CAP_NET_ADMIN' when joining "packets" group
    af39b80173e4 bpf: sockmap, updating the sg structure should also update curr
    008b807fe487 tcp: do not accept ACK of bytes we never sent
    7a63521ed041 netfilter: xt_owner: Fix for unsafe access of sk->sk_socket
    3176160c22d9 netfilter: nf_tables: validate family when identifying table via handle
    96f8654b701f netfilter: nf_tables: bail out on mismatching dynset and set expressions
    c9704c26193c netfilter: nf_tables: fix 'exist' matching on bigendian arches
    0bfbfd9423f3 netfilter: nft_exthdr: add boolean DCCP option matching
    9225a4566bc1 dt-bindings: interrupt-controller: Allow #power-domain-cells
    6b9e78d6c6b9 octeontx2-af: Update Tx link register range
    9be8f66ea857 octeontx2-af: Add missing mcs flr handler call
    d54470adfcc7 octeontx2-af: Fix mcs stats register address
    90773de07391 octeontx2-af: Fix mcs sa cam entries size
    0c8baa37bfa5 octeontx2-af: Adjust Tx credits when MCS external bypass is disabled
    d2689aea4f2e net: hns: fix fake link up on xge port
    217cc7f6a6ac net: hns: fix wrong head when modify the tx feature when sending packets
    87559196c316 net: atlantic: Fix NULL dereference of skb pointer in
    64c78c57e307 ipv4: ip_gre: Avoid skb_pull() failure in ipgre_xmit()
    ce3c5acb594e ionic: Fix dim work handling in split interrupt mode
    a92719900fc6 ionic: fix snprintf format length warning
    c91685ac1bce tcp: fix mid stream window clamp.
    9fc81912fcdb net: bnxt: fix a potential use-after-free in bnxt_init_tc
    0d33871b66f9 iavf: validate tx_coalesce_usecs even if rx_coalesce_usecs is zero
    75fd86e54119 i40e: Fix unexpected MFS warning message
    ba6eb3a77a56 octeontx2-af: fix a use-after-free in rvu_npa_register_reporters
    2c0cbb97b118 xsk: Skip polling event check for unbound socket
    ed7e211b6786 net: stmmac: fix FPE events losing
    1a41ffc4dc6a octeontx2-pf: consider both Rx and Tx packet stats for adaptive interrupt coalescing
    8d034da82563 arcnet: restoring support for multiple Sohard Arcnet cards
    3c323796951a platform/mellanox: Check devm_hwmon_device_register_with_groups() return value
    29d82b366a22 platform/mellanox: Add null pointer checks for devm_kasprintf()
    646f1e9c1978 mlxbf-bootctl: correctly identify secure boot with development keys
    ef91309a570a r8152: Add RTL8152_INACCESSIBLE to r8153_aldps_en()
    d11ef4d3dd37 r8152: Add RTL8152_INACCESSIBLE to r8153_pre_firmware_1()
    284cd311bb48 r8152: Add RTL8152_INACCESSIBLE to r8156b_wait_loading_flash()
    0823990da76f r8152: Add RTL8152_INACCESSIBLE checks to more loops
    3759e735562a r8152: Rename RTL8152_UNPLUG to RTL8152_INACCESSIBLE
    ecb5068f55a8 hv_netvsc: rndis_filter needs to select NLS
    80de965ca52c octeontx2-af: Check return value of nix_get_nixlf before using nixlf
    f565044d1d84 octeontx2-pf: Add missing mutex lock in otx2_get_pauseparam
    a3f5de10b5cf ipv6: fix potential NULL deref in fib6_add()
    e2b202821dd8 platform/x86: wmi: Skip blocks with zero instances
    b536601d0520 of: dynamic: Fix of_reconfig_get_state_change() return value documentation
    76b9ea6f54ed platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code
    3453531284cb dt: dt-extract-compatibles: Don't follow symlinks when walking tree
    8a124b9e784b dt: dt-extract-compatibles: Handle cfile arguments in generator function
    cde700ceb0ea x86/tdx: Allow 32-bit emulation by default
    e09d243a518b x86/entry: Do not allow external 0x80 interrupts
    d5f999317e83 x86/entry: Convert INT 0x80 emulation to IDTENTRY
    b8ec27ae221e x86/coco: Disable 32-bit emulation by default on TDX and SEV
    0870f19b54de x86: Introduce ia32_enabled()
    9046665befd6 drm/amdgpu: correct chunk_ptr to a pointer to chunk.
    18209382db64 kconfig: fix memory leak from range properties
    bcc2abaa4095 tg3: Increment tx_dropped in tg3_tso_bug()
    9bbc655e1849 tg3: Move the [rt]x_dropped counters to tg3_napi
    62c6d82bac2b zstd: Fix array-index-out-of-bounds UBSAN warning
    875ee3a09e27 netfilter: ipset: fix race condition between swap/destroy and kernel side add/del/test
    6025052bbf3d i2c: designware: Fix corrupted memory seen in the ISR
    75b5016ce325 hrtimers: Push pending hrtimers away from outgoing CPU earlier
    8ea2b4ba9ba2 vdpa/mlx5: preserve CVQ vringh index

(From OE-Core rev: 98dd7225341e4a8c46e9db17728cd162a0d12216)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
1f246f28d7 linux-yocto/6.5: fix AB-INT: QEMU kernel panic: No irq handler for vector
Integrating the following commit(s) to linux-yocto/6.5:

1/2 [
    Author: Thomas Gleixner
    Email: tglx@linutronix.de
    Subject: x86/alternatives: Sync core before enabling interrupts
    Date: Thu, 7 Dec 2023 20:49:24 +0100

    text_poke_early() does:

       local_irq_save(flags);
       memcpy(addr, opcode, len);
       local_irq_restore(flags);
       sync_core();

    That's not really correct because the synchronization should happen before
    interrupts are reenabled to ensure that a pending interrupt observes the
    complete update of the opcodes.

    It's not entirely clear whether the interrupt entry provides enough
    serialization already, but moving the sync_core() invocation into interrupt
    disabled region does no harm and is obviously correct.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/2 [
    Author: Thomas Gleixner
    Email: tglx@linutronix.de
    Subject: x86/alternatives: Disable interrupts and sync when optimizing NOPs in place
    Date: Thu, 7 Dec 2023 20:49:26 +0100

    apply_alternatives() treats alternatives with the ALT_FLAG_NOT flag set
    special as it optimizes the existing NOPs in place.

    Unfortunately this happens with interrupts enabled and does not provide any
    form of core synchronization.

    So an interrupt hitting in the middle of the update and using the affected
    code path will observe a half updated NOP and crash and burn. The following
    3 NOP sequence was observed to expose this crash halfways reliably under
    QEMU 32bit:

       0x90 0x90 0x90

    which is replaced by the optimized 3 byte NOP:

       0x8d 0x76 0x00

    So an interrupt can observe:

       1) 0x90 0x90 0x90		nop nop nop
       2) 0x8d 0x90 0x90		undefined
       3) 0x8d 0x76 0x90		lea    -0x70(%esi),%esi
       4) 0x8d 0x76 0x00		lea     0x0(%esi),%esi

    Where only #1 and #4 are true NOPs. The same problem exists for 64bit obviously.

    Disable interrupts around this NOP optimization and invoke sync_core()
    before reenabling them.

    Fixes: 270a69c4485d ("x86/alternative: Support relocations in alternatives")
    Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: stable@vger.kernel.org
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 1c8d29ab6b02c5b783429db3b67583deb1637142)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
b9c8befbb8 linux-yocto/6.1: update to v6.1.67
Updating  to the latest korg -stable release that comprises
the following commits:

    e7cddbb41b63 Linux 6.1.67
    db46c77f3d51 Revert "wifi: cfg80211: fix CQM for non-range use"

(From OE-Core rev: a80b32127dccd35ed7ed129e28231229afdaa53b)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
e369c3bb2f linux-yocto/6.1: update to v6.1.66
Updating  to the latest korg -stable release that comprises
the following commits:

    6c6a6c7e211c Linux 6.1.66
    ea574927fc0b iomap: update ki_pos a little later in iomap_dio_complete
    adf0ecebf00a x86/apic/msi: Fix misconfigured non-maskable MSI quirk
    b3b839fb636b x86/xen: fix percpu vcpu_info allocation
    00bc8b2cf44c xen: simplify evtchn_do_upcall() call maze
    9311a0ff388a xen: Allow platform PCI interrupt to be shared
    402b8323461c r8169: fix deadlock on RTL8125 in jumbo mtu mode
    22ee0ddb2af7 r8169: disable ASPM in case of tx timeout
    10ce6301009f drm/amd/display: Fix MPCC 1DLUT programming
    8332cb6c6339 drm/amd/display: Fix the delta clamping for shaper LUT
    442a4d4d0157 drm/amd/display: clean code-style issues in dcn30_set_mpc_shaper_3dlut
    6cd736272165 drm/amd/display: Expand kernel doc for DC
    8b01195be4a9 mmc: sdhci-sprd: Fix vqmmc not shutting down after the card was pulled
    38d3216032c9 mmc: core: add helpers mmc_regulator_enable/disable_vqmmc
    0e0a95166882 drm/amd/pm: fix a memleak in aldebaran_tables_init
    59862b869275 iommu/vt-d: Make context clearing consistent with context mapping
    ee2c2247690c iommu/vt-d: Disable PCI ATS in legacy passthrough mode
    8f39d297a26a iommu/vt-d: Add device_block_translation() helper
    3787b3168b6c iommu/vt-d: Allocate pasid table in device probe path
    681aeeda413d iommu/vt-d: Omit devTLB invalidation requests when TES=0
    8aaed5b81d26 cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily
    d3788f6e9d5a cpufreq: imx6q: don't warn for disabling a non-existing frequency
    195514bda626 drm/amd/display: Guard against invalid RPTR/WPTR being set
    395a63ca1ad2 drm/amd/display: Restore rptr/wptr for DMCUB as workaround
    4ec4508db975 spi: Fix null dereference on suspend
    b57eebfb80e8 fbdev: stifb: Make the STI next font pointer a 32-bit signed offset
    5bc8d96fedce PCI: qcom-ep: Add dedicated callback for writing to DBI2 registers
    10c3d86fea04 octeontx2-af: Initialize 'cntr_val' to fix uninitialized symbol error
    1c8f75ee9233 PCI: Lengthen reset delay for VideoPropulsion Torrent QN16e card
    7545ddda9c98 KVM: x86: Fix lapic timer interrupt lost after loading a snapshot.
    21feaf558f93 net: ravb: Keep reverse order of operations in ravb_remove()
    8d04278ff48b net: ravb: Stop DMA in case of failures on ravb_open()
    52b751686cbf net: ravb: Start TX queues after HW initialization succeeded
    e2db25d16cdd net: ravb: Make write access to CXR35 first before accessing other EMAC registers
    f5c649ce7975 net: ravb: Use pm_runtime_resume_and_get()
    149b2fe12aca net: ravb: Check return value of reset_control_deassert()
    7ed2e4c2d016 ravb: Fix races between ravb_tx_timeout_work() and net related ops
    8b1d088be5f1 r8169: prevent potential deadlock in rtl8169_close
    9c4ac2d98a48 octeontx2-pf: Restore TC ingress police rules when interface is up
    aef2d5b3e56e octeontx2-af: Install TC filter rules in hardware based on priority
    662b88708408 octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64
    5d5bcfb1ca8d net: stmmac: xgmac: Disable FPE MMC interrupts
    334e6378c28c octeontx2-af: Fix possible buffer overflow
    c3e974e9c4bb selftests/net: mptcp: fix uninitialized variable warnings
    12dd4c1bf3bd selftests/net: unix: fix unused variable compiler warning
    4e999af7cf8a selftests/net: fix a char signedness issue
    249ceee95caf selftests/net: ipsec: fix constant out of range
    e01249a83939 uapi: propagate __struct_group() attributes to the container union
    fd91b48f108d dpaa2-eth: increase the needed headroom to account for alignment
    94445d958307 ipv4: igmp: fix refcnt uaf issue when receiving igmp query packet
    f89fef7710b2 usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
    9aff7c51b440 USB: core: Change configuration warnings to notices
    c89b34eef336 USB: xhci-plat: fix legacy PHY double init
    307a6525c82a wifi: cfg80211: fix CQM for non-range use
    e8c1105c0ccc serial: sc16is7xx: add missing support for rs485 devicetree properties
    55061c323075 serial: sc16is7xx: Put IOControl register into regmap_volatile
    a491c7be35ed auxdisplay: hd44780: move cursor home after clear display command
    7f2116777541 Input: xpad - add HyperX Clutch Gladiate Support
    7a105de27538 btrfs: fix 64bit compat send ioctl arguments not initializing version member
    32912ee86931 btrfs: make error messages more clear when getting a chunk map
    4fc9c61c02c0 btrfs: send: ensure send_fd is writable
    86742a963fe6 btrfs: fix off-by-one when checking chunk map includes logical address
    9fe447c485ed btrfs: ref-verify: fix memory leaks in btrfs_ref_tree_mod()
    3f26d9b257ad btrfs: add dmesg output for first mount and last unmount of a filesystem
    0ad7d59e7901 parisc: Mark altinstructions read-only and 32-bit aligned
    cf2ae6494d1f parisc: Ensure 32-bit alignment on parisc unwind section
    2acfff573042 parisc: Mark jump_table naturally aligned
    3793cd2ded7c parisc: Drop the HP-UX ENOSYM and EREMOTERELEASE error codes
    79a1fdf4c212 parisc: Mark lock_aligned variables 16-byte aligned on SMP
    41d7852a0a39 parisc: Use natural CPU alignment for bug_table
    c7c78a4aa60a parisc: Mark ex_table entries 32-bit aligned in uaccess.h
    645e4b693b5e parisc: Mark ex_table entries 32-bit aligned in assembly.h
    c23b9eaca80c powerpc: Don't clobber f0/vs0 during fp|altivec register save
    e6bc42fae6b8 KVM: PPC: Book3S HV: Fix KVM_RUN clobbering FP/VEC user registers
    59419ebcc0a6 iommu/vt-d: Add MTL to quirk list to skip TE disabling
    0b48970ce102 bcache: revert replacing IS_ERR_OR_NULL with IS_ERR
    fc98ea2699c0 dma-buf: fix check in dma_resv_add_fence
    4da1556996fa cpufreq/amd-pstate: Fix the return value of amd_pstate_fast_switch()
    9d4c721c1866 powercap: DTPM: Fix unneeded conversions to micro-Watts
    a62ca58bb3cc nvme: check for valid nvme_identify_ns() before using it
    82b5e603edd4 dm verity: don't perform FEC for failed readahead IO
    6f5a9fc94bfc dm verity: initialize fec io before freeing it
    7cfc3884a8bb drm/amd/display: fix ABM disablement
    859a3a9f1e6b drm/amd/display: Update min Z8 residency time to 2100 for DCN314
    6ef7f13c72df drm/amd/display: Use DRAM speed from validation for dummy p-state
    a67c18704706 drm/amd/display: Remove min_dst_y_next_start check for Z8
    33ed892f0cde drm/amd/display: Include udelay when waiting for INBOX0 ACK
    c5cf436c8969 drm/amdgpu: Force order between a read and write to the same address
    c60884296300 drm/amd: Enable PCIe PME from D3
    cebccbe80165 scsi: sd: Fix system start for ATA devices
    181fd67dc5b9 scsi: Change SCSI device boolean fields to single bit flags
    7d2faae81b57 dm-verity: align struct dm_verity_fec_io properly
    da9f55393f69 ALSA: hda/realtek: Add supported ALC257 for ChromeOS
    f4b130213497 ALSA: hda/realtek: Headset Mic VREF to 100%
    65654af4c8a6 ALSA: hda: Disable power-save on KONTRON SinglePC
    ba911edc6c0c mmc: block: Be sure to wait while busy in CQE error recovery
    eab9ec644637 mmc: block: Do not lose cache flush during CQE error recovery
    e121f6d73d2e mmc: block: Retry commands in CQE error recovery
    3a9a9c256f02 mmc: cqhci: Fix task clearing in CQE error recovery
    def67fd8efde mmc: cqhci: Warn of halt or task clear failure
    2ebc8b758c7d mmc: cqhci: Increase recovery halt timeout
    d2fc10e262b5 mmc: sdhci-pci-gli: Disable LPM during initialization
    87ceaa8521fc firewire: core: fix possible memory leak in create_units()
    db0b69e46da6 pinctrl: avoid reload of p state in list iteration
    74820f7406a1 smb: client: report correct st_size for SMB and NFS symlinks
    60fed17ca5b8 cifs: Fix FALLOC_FL_INSERT_RANGE by setting i_size after EOF moved
    6406cce4b22d cifs: Fix FALLOC_FL_ZERO_RANGE by setting i_size if EOF moved

(From OE-Core rev: 83c13368918a69ad63ee957f3d03362e366afe42)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
5ad156a939 linux-yocto-rt/6.1: update to -rt18
Integrating the following commit(s) to linux-yocto-rt/6.1:

1/17 [
    Author: Tvrtko Ursulin
    Email: tvrtko.ursulin@intel.com
    Subject: drm/i915: Do not disable preemption for resets
    Date: Fri, 18 Aug 2023 22:45:25 -0400

    [commit 40cd2835ced288789a685aa4aa7bc04b492dcd45 in linux-rt-devel]

    Commit ade8a0f59844 ("drm/i915: Make all GPU resets atomic") added a
    preempt disable section over the hardware reset callback to prepare the
    driver for being able to reset from atomic contexts.

    In retrospect I can see that the work item at a time was about removing
    the struct mutex from the reset path. Code base also briefly entertained
    the idea of doing the reset under stop_machine in order to serialize
    userspace mmap and temporary glitch in the fence registers (see
    eb8d0f5af4ec ("drm/i915: Remove GPU reset dependence on struct_mutex"),
    but that never materialized and was soon removed in 2caffbf11762
    ("drm/i915: Revoke mmaps and prevent access to fence registers across
    reset") and replaced with a SRCU based solution.

    As such, as far as I can see, today we still have a requirement that
    resets must not sleep (invoked from submission tasklets), but no need to
    support invoking them from a truly atomic context.

    Given that the preemption section is problematic on RT kernels, since the
    uncore lock becomes a sleeping lock and so is invalid in such section,
    lets try and remove it. Potential downside is that our short waits on GPU
    to complete the reset may get extended if CPU scheduling interferes, but
    in practice that probably isn't a deal breaker.

    In terms of mechanics, since the preemption disabled block is being
    removed we just need to replace a few of the wait_for_atomic macros into
    busy looping versions which will work (and not complain) when called from
    non-atomic sections.

    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Cc: Chris Wilson <chris.p.wilson@intel.com>
    Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
    Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Link: https://lore.kernel.org/r/20230705093025.3689748-1-tvrtko.ursulin@linux.intel.com
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    [PG: backport from v6.4-rt ; minor context fixup caused by b7d70b8b06ed]
    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Clark Williams <williams@redhat.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

2/17 [
    Author: Clark Williams
    Email: clrkwllms@kernel.org
    Subject: 'Linux 6.1.33-rt11'
    Date: Mon, 12 Jun 2023 10:40:02 -0500

    Signed-off-by: Clark Williams <clrkwllms@kernel.org>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

5/17 [
    Author: Sebastian Andrzej Siewior
    Email: bigeasy@linutronix.de
    Subject: io-mapping: don't disable preempt on RT in io_mapping_map_atomic_wc().
    Date: Fri, 10 Mar 2023 17:29:05 +0100

    io_mapping_map_atomic_wc() disables preemption and pagefaults for
    historical reasons.  The conversion to io_mapping_map_local_wc(), which
    only disables migration, cannot be done wholesale because quite some call
    sites need to be updated to accommodate with the changed semantics.

    On PREEMPT_RT enabled kernels the io_mapping_map_atomic_wc() semantics are
    problematic due to the implicit disabling of preemption which makes it
    impossible to acquire 'sleeping' spinlocks within the mapped atomic
    sections.

    PREEMPT_RT replaces the preempt_disable() with a migrate_disable() for
    more than a decade.  It could be argued that this is a justification to do
    this unconditionally, but PREEMPT_RT covers only a limited number of
    architectures and it disables some functionality which limits the coverage
    further.

    Limit the replacement to PREEMPT_RT for now.  This is also done
    kmap_atomic().

    Link: https://lkml.kernel.org/r/20230310162905.O57Pj7hh@linutronix.de
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Reported-by: Richard Weinberger <richard.weinberger@gmail.com>
      Link: https://lore.kernel.org/CAFLxGvw0WMxaMqYqJ5WgvVSbKHq2D2xcXTOgMCpgq9nDC-MWTQ@mail.gmail.com
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    (cherry picked from commit 7eb16f23b9a415f062db22739e59bb144e0b24ab)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

6/17 [
    Author: Sebastian Andrzej Siewior
    Email: bigeasy@linutronix.de
    Subject: locking/rwbase: Mitigate indefinite writer starvation
    Date: Tue, 21 Mar 2023 17:11:40 +0100

    On PREEMPT_RT, rw_semaphore and rwlock_t locks are unfair to writers.
    Readers can indefinitely acquire the lock unless the writer fully acquired
    the lock, which might never happen if there is always a reader in the
    critical section owning the lock.

    Mel Gorman reported that since LTP-20220121 the dio_truncate test case
    went from having 1 reader to having 16 readers and that number of readers
    is sufficient to prevent the down_write ever succeeding while readers
    exist. Eventually the test is killed after 30 minutes as a failure.

    Mel proposed a timeout to limit how long a writer can be blocked until
    the reader is forced into the slowpath.

    Thomas argued that there is no added value by providing this timeout.  From
    a PREEMPT_RT point of view, there are no critical rw_semaphore or rwlock_t
    locks left where the reader must be preferred.

    Mitigate indefinite writer starvation by forcing the READER into the
    slowpath once the WRITER attempts to acquire the lock.

    Reported-by: Mel Gorman <mgorman@techsingularity.net>
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Acked-by: Mel Gorman <mgorman@techsingularity.net>
    Link: https://lore.kernel.org/877cwbq4cq.ffs@tglx
    Link: https://lore.kernel.org/r/20230321161140.HMcQEhHb@linutronix.de
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    (cherry picked from commit 286deb7ec03d941664ac3ffaff58814b454adf65)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

7/17 [
    Author: Paolo Abeni
    Email: pabeni@redhat.com
    Subject: revert: "softirq: Let ksoftirqd do its job"
    Date: Mon, 8 May 2023 08:17:44 +0200

    Due to the mentioned commit, when the ksoftirqd processes take charge
    of softirq processing, the system can experience high latencies.

    In the past a few workarounds have been implemented for specific
    side-effects of the above:

    commit 1ff688209e2e ("watchdog: core: make sure the watchdog_worker is not deferred")
    commit 8d5755b3f77b ("watchdog: softdog: fire watchdog even if softirqs do not get to run")
    commit 217f69743681 ("net: busy-poll: allow preemption in sk_busy_loop()")
    commit 3c53776e29f8 ("Mark HI and TASKLET softirq synchronous")

    but the latency problem still exists in real-life workloads, see the
    link below.

    The reverted commit intended to solve a live-lock scenario that can now
    be addressed with the NAPI threaded mode, introduced with commit
    29863d41bb6e ("net: implement threaded-able napi poll loop support"),
    and nowadays in a pretty stable status.

    While a complete solution to put softirq processing under nice resource
    control would be preferable, that has proven to be a very hard task. In
    the short term, remove the main pain point, and also simplify a bit the
    current softirq implementation.

    Note that this change also reverts commit 3c53776e29f8 ("Mark HI and
    TASKLET softirq synchronous") and commit 1342d8080f61 ("softirq: Don't
    skip softirq execution when softirq thread is parking"), which are
    direct follow-ups of the feature commit. A single change is preferred to
    avoid known bad intermediate states introduced by a patch series
    reverting them individually.

    Link: https://lore.kernel.org/netdev/305d7742212cbe98621b16be782b0562f1012cb6.camel@redhat.com/
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Tested-by: Jason Xing <kerneljasonxing@gmail.com>
    Reviewed-by: Jakub Kicinski <kuba@kernel.org>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Link: https://lore.kernel.org/r/57e66b364f1b6f09c9bc0316742c3b14f4ce83bd.1683526542.git.pabeni@redhat.com
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    (cherry picked from commit b8a04a538ed4755dc97c403ee3b8dd882955c98c)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

8/17 [
    Author: Peter Zijlstra
    Email: peterz@infradead.org
    Subject: debugobjects,locking: Annotate debug_object_fill_pool() wait type violation
    Date: Tue, 25 Apr 2023 17:03:13 +0200

    There is an explicit wait-type violation in debug_object_fill_pool()
    for PREEMPT_RT=n kernels which allows them to more easily fill the
    object pool and reduce the chance of allocation failures.

    Lockdep's wait-type checks are designed to check the PREEMPT_RT
    locking rules even for PREEMPT_RT=n kernels and object to this, so
    create a lockdep annotation to allow this to stand.

    Specifically, create a 'lock' type that overrides the inner wait-type
    while it is held -- allowing one to temporarily raise it, such that
    the violation is hidden.

    Reported-by: Vlastimil Babka <vbabka@suse.cz>
    Reported-by: Qi Zheng <zhengqi.arch@bytedance.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Tested-by: Qi Zheng <zhengqi.arch@bytedance.com>
    Link: https://lkml.kernel.org/r/20230429100614.GA1489784@hirez.programming.kicks-ass.net
    (cherry picked from commit 0cce06ba859a515bd06224085d3addb870608b6d)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

9/17 [
    Author: Wander Lairson Costa
    Email: wander@redhat.com
    Subject: sched: avoid false lockdep splat in put_task_struct()
    Date: Wed, 14 Jun 2023 09:23:22 -0300

    In put_task_struct(), a spin_lock is indirectly acquired under the kernel
    stock. When running the kernel in real-time (RT) configuration, the
    operation is dispatched to a preemptible context call to ensure
    guaranteed preemption. However, if PROVE_RAW_LOCK_NESTING is enabled
    and __put_task_struct() is called while holding a raw_spinlock, lockdep
    incorrectly reports an "Invalid lock context" in the stock kernel.

    This false splat occurs because lockdep is unaware of the different
    route taken under RT. To address this issue, override the inner wait
    type to prevent the false lockdep splat.

    Signed-off-by: Wander Lairson Costa <wander@redhat.com>
    Suggested-by: Oleg Nesterov <oleg@redhat.com>
    Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Suggested-by: Peter Zijlstra <peterz@infradead.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Luis Goncalves <lgoncalv@redhat.com>
    Link: https://lore.kernel.org/r/20230614122323.37957-3-wander@redhat.com
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    (cherry picked from commit a5e446e728e89d5f5c5e427cc919bc7813c64c28)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

10/17 [
    Author: Sebastian Andrzej Siewior
    Email: bigeasy@linutronix.de
    Subject: mm/page_alloc: Use write_seqlock_irqsave() instead write_seqlock() + local_irq_save().
    Date: Fri, 23 Jun 2023 22:15:17 +0200

    __build_all_zonelists() acquires zonelist_update_seq by first disabling
    interrupts via local_irq_save() and then acquiring the seqlock with
    write_seqlock(). This is troublesome and leads to problems on
    PREEMPT_RT. The problem is that the inner spinlock_t becomes a sleeping
    lock on PREEMPT_RT and must not be acquired with disabled interrupts.

    The API provides write_seqlock_irqsave() which does the right thing in
    one step.
    printk_deferred_enter() has to be invoked in non-migrate-able context to
    ensure that deferred printing is enabled and disabled on the same CPU.
    This is the case after zonelist_update_seq has been acquired.

    There was discussion on the first submission that the order should be:
    	local_irq_disable();
    	printk_deferred_enter();
    	write_seqlock();

    to avoid pitfalls like having an unaccounted printk() coming from
    write_seqlock_irqsave() before printk_deferred_enter() is invoked. The
    only origin of such a printk() can be a lockdep splat because the
    lockdep annotation happens after the sequence count is incremented.
    This is exceptional and subject to change.

    It was also pointed that PREEMPT_RT can be affected by the printk
    problem since its write_seqlock_irqsave() does not really disable
    interrupts. This isn't the case because PREEMPT_RT's printk
    implementation differs from the mainline implementation in two important
    aspects:
    - Printing happens in a dedicated threads and not at during the
      invocation of printk().
    - In emergency cases where synchronous printing is used, a different
      driver is used which does not use tty_port::lock.

    Acquire zonelist_update_seq with write_seqlock_irqsave() and then defer
    printk output.

    Fixes: 1007843a91909 ("mm/page_alloc: fix potential deadlock on zonelist_update_seq seqlock")
    Acked-by: Michal Hocko <mhocko@suse.com>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Link: https://lore.kernel.org/r/20230623201517.yw286Knb@linutronix.de
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    (cherry picked from commit 4d1139baae8bc4fff3728d1d204bdb04c13dbe10)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

11/17 [
    Author: Sebastian Andrzej Siewior
    Email: bigeasy@linutronix.de
    Subject: bpf: Remove in_atomic() from bpf_link_put().
    Date: Wed, 14 Jun 2023 10:34:30 +0200

    bpf_free_inode() is invoked as a RCU callback. Usually RCU callbacks are
    invoked within softirq context. By setting rcutree.use_softirq=0 boot
    option the RCU callbacks will be invoked in a per-CPU kthread with
    bottom halves disabled which implies a RCU read section.

    On PREEMPT_RT the context remains fully preemptible. The RCU read
    section however does not allow schedule() invocation. The latter happens
    in mutex_lock() performed by bpf_trampoline_unlink_prog() originated
    from bpf_link_put().

    It was pointed out that the bpf_link_put() invocation should not be
    delayed if originated from close(). It was also pointed out that other
    invocations from within a syscall should also avoid the workqueue.
    Everyone else should use workqueue by default to remain safe in the
    future (while auditing the code, every caller was preemptible except for
    the RCU case).

    Let bpf_link_put() use the worker unconditionally. Add
    bpf_link_put_direct() which will directly free the resources and is used
    by close() and from within __sys_bpf().

    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20230614083430.oENawF8f@linutronix.de
    (cherry picked from commit ab5d47bd41b1db82c295b0e751e2b822b43a4b5a)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

12/17 [
    Author: Thomas Gleixner
    Email: tglx@linutronix.de
    Subject: posix-timers: Ensure timer ID search-loop limit is valid
    Date: Thu, 1 Jun 2023 20:58:47 +0200

    posix_timer_add() tries to allocate a posix timer ID by starting from the
    cached ID which was stored by the last successful allocation.

    This is done in a loop searching the ID space for a free slot one by
    one. The loop has to terminate when the search wrapped around to the
    starting point.

    But that's racy vs. establishing the starting point. That is read out
    lockless, which leads to the following problem:

    CPU0	  	      	     	   CPU1
    posix_timer_add()
      start = sig->posix_timer_id;
      lock(hash_lock);
      ...				   posix_timer_add()
      if (++sig->posix_timer_id < 0)
          			             start = sig->posix_timer_id;
         sig->posix_timer_id = 0;

    So CPU1 can observe a negative start value, i.e. -1, and the loop break
    never happens because the condition can never be true:

      if (sig->posix_timer_id == start)
         break;

    While this is unlikely to ever turn into an endless loop as the ID space is
    huge (INT_MAX), the racy read of the start value caught the attention of
    KCSAN and Dmitry unearthed that incorrectness.

    Rewrite it so that all id operations are under the hash lock.

    Reported-by: syzbot+5c54bd3eb218bb595aa9@syzkaller.appspotmail.com
    Reported-by: Dmitry Vyukov <dvyukov@google.com>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
    Link: https://lore.kernel.org/r/87bkhzdn6g.ffs@tglx

    (cherry picked from commit 8ce8849dd1e78dadcee0ec9acbd259d239b7069f)
    Signed-off-by: Clark Williams <clark.williams@gmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 53e612c42ce438b100505c93d8bb65e59f49895d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
b574de9c4d linux-yocto/6.5: drop removed IMA option
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: features/ima: drop now retired IMA_TRUSTED_KEYRING option
    Date: Wed, 6 Dec 2023 09:15:38 -0500

    Unfortunately linux-stable backported this:

      Subject: ima: Remove deprecated IMA_TRUSTED_KEYRING Kconfig

      From: Nayna Jain <nayna@linux.ibm.com>

      [ Upstream commit 5087fd9e80e539d2163accd045b73da64de7de95 ]

      Time to remove "IMA_TRUSTED_KEYRING".

    ...to all releases still being maintained.

    stable-queue$git grep -l 5087fd9e80e539
    releases/5.10.195/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/5.15.132/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/5.4.257/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/6.1.53/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/6.4.16/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/6.5.3/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch

    So now when someone uses the feature, it triggers a do_kernel_configcheck
    warning when the audit runs.

    We added this file way back in 2019 so this fix will be needed on all
    active branches that are using an LTS linux-stable kernel listed above.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: d575b2822c1779077177deb177bafa94ab975bfc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Bruce Ashfield
df9829d710 linux-yocto/6.1: drop removed IMA option
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Paul Gortmaker
    Email: paul.gortmaker@windriver.com
    Subject: features/ima: drop now retired IMA_TRUSTED_KEYRING option
    Date: Wed, 6 Dec 2023 09:15:38 -0500

    Unfortunately linux-stable backported this:

      Subject: ima: Remove deprecated IMA_TRUSTED_KEYRING Kconfig

      From: Nayna Jain <nayna@linux.ibm.com>

      [ Upstream commit 5087fd9e80e539d2163accd045b73da64de7de95 ]

      Time to remove "IMA_TRUSTED_KEYRING".

    ...to all releases still being maintained.

    stable-queue$git grep -l 5087fd9e80e539
    releases/5.10.195/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/5.15.132/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/5.4.257/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/6.1.53/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/6.4.16/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch
    releases/6.5.3/ima-remove-deprecated-ima_trusted_keyring-kconfig.patch

    So now when someone uses the feature, it triggers a do_kernel_configcheck
    warning when the audit runs.

    We added this file way back in 2019 so this fix will be needed on all
    active branches that are using an LTS linux-stable kernel listed above.

    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: db11dfcd8304ded18fd21d7c4c2db50331402666)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Ludovic Jozeau
7608ad08ae image-live.bbclass: LIVE_ROOTFS_TYPE support compression
The task for fstypes with compression is the same as the task for the
uncompressed fstypes, e.g. when adding tar.xz to `IMAGE_FSTYPES`, it will
be included into the do_image_tar task and not creating a separate
do_image_tar.xz task.

This commit fixes `LIVE_ROOTFS_TYPE` with compressed fstypes by
depending on the actual task instead of the non-existent
do_image_<fstype>.<compression> task.

Fixes [YOCTO #15331]

(From OE-Core rev: 67c507e3d42e52a6d452c4a453eeaf7f2e2d68d6)

Signed-off-by: Ludovic Jozeau <ludovic.jozeau@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Ross Burton
3000abe20a conf/machine-sdk: declare qemu-usermode SDK_MACHINE_FEATURE
All of our defined SDK machines (which are assumed to be Linux) support
qemu-user, so state this explicitly.

(From OE-Core rev: 12f92772c8ccf622fd353836c1172e15ee8c6857)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Link: https://lore.kernel.org/r/20231221170159.1995650-3-ross.burton@arm.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Ross Burton
64162b1812 nativesdk: don't unset MACHINE_FEATURES, let machine-sdk/ set it
There is actually a use for nativesdk MACHINE_FEATURES; for example
qemu-usermode being supported, as this is needed to build profile-guided
optimised code.

We shouldn't use the target MACHINE_FEATURES for this because the target
and the SDK can be entirely different, so instead set the
MACHINE_FEATURES in nativesdk.bbclass to SDK_MACHINE_FEATURES (which
defaults to "") and let the conf/machine-sdk/*.conf files set that as
appropriate.

(From OE-Core rev: 14571764b7e046507f81bbe589a9f42c5b16665a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Link: https://lore.kernel.org/r/20231221170159.1995650-2-ross.burton@arm.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Ross Burton
60ce68180a nativesdk: ensure features don't get backfilled
nativesdk aims to run in a slightly different environment than the
target build, so it resets MACHINE_FEATURES and filters DISTRO_FEATURES
with DISTRO_FEATURES_NATIVESDK.

However, feature backfill happens _after_ these operations:

 $ bitbake-getvar -r nativesdk-glib-2.0 MACHINE_FEATURES
 #
 # $MACHINE_FEATURES [5 operations]
 #   set /home/ross/Yocto/poky/meta/conf/machine/include/qemu.inc:14
 #     "alsa bluetooth usbgadget screen vfat"
 #   set /home/ross/Yocto/poky/meta/conf/documentation.conf:284
 #     [doc] "Specifies the list of hardware features the MACHINE supports."
 #   set? /home/ross/Yocto/poky/meta/conf/bitbake.conf:893
 #     ""
 #   set /home/ross/Yocto/poky/meta/classes-recipe/nativesdk.bbclass:18
 #     ""
 #   append utils.py:132 [features_backfill]
 #     " rtc qemu-usermode"
 # pre-expansion value:
 #   " rtc qemu-usermode"
 MACHINE_FEATURES=" rtc qemu-usermode"

This is not intentional nor desired as the target machine features are
unrelated to the nativesdk environment.

(From OE-Core rev: f560ac0a5ccced02b84df337f0f26209cd4b6474)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Link: https://lore.kernel.org/r/20231221170159.1995650-1-ross.burton@arm.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Changqing Li
b5a465e614 man-pages: remove conflict pages
Remove the pages which libxcrypt and shadow already have to avoid
following conflicts during install man-pages and libxcrypt/shadow at the
same time.

Error: Transaction test error:
  file /usr/share/man/man3/crypt.3 from install of
  libcrypt-doc-4.4.33-r0.x86_64 conflicts with file from package
  man-pages-6.04-r0.x86_64

(From OE-Core rev: 605b4a91dc44d33bd4742841e71645275bc039e8)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Markus Volk
0b3cea1baa appstream: Upgrade 0.16.3 -> 1.0.0
- remove backport patch
- update 0001-remove-hardcoded-path.patch
- fix api-documentation

Version 1.0.0
~~~~~~~~~~~~~~
Released: 2023-11-11

Notes:
 * This version breaks API and bumps the SONAME of libappstream!
   Applications using AppStream will have to be ported to the new API.
   The 1.0 release is coinstallable with the stable 0.16.x series.

Features:
 * Autoformat C and C++ sources
 * Remove all deprecated symbols
 * Drop support for many deprecated AppStream XML features
 * Use GPtrArray to expose keywords list
 * Add length argument to raw metadata parsing functions
 * Add component array container class
 * Remove named values for display_length relations
 * Make AsPool only accept/return component boxes
 * Port all API away from per-entity locale overrides
 * Reduce appstream.conf to its essentials, make it work on stateless systems
 * Hide search engine details from public API
 * Wrap release entries in AsReleaseList container class
 * Make AsMetadata handle AsReleaseList objects
 * Refactor is_satisfied result into new RelationCheckResult class
 * Add a method to check all relations of a component and get the result
 * Add algorithm to score compatibility with a system, add chassis templates
 * ascli: Add new check-syscompat command to check chassis compatibility
 * Implement environment property for component screenshots
 * Autogenerate translatable DE and gui-environment-style C arrays
 * Expose more advanced markup conversion function, update function names
 * Allow BLAKE3 and SHA512 checksums for release artifacts
 * Stop supporting mailto: URLs in <url/> tags
 * validator: Improve API and simplify it
 * validator: Parse XML in pedantic mode when validating
 * validator: Check screenshot environment property
 * validator: Only apply summary-has-dot-suffix check to untranslated strings
 * compose: Allow creating metadata with complete URLs and no base URL
 * spdx: Add API to retrieve a translated license name from an SPDX ID
 * qt: Switch to building with Qt6
 * qt: Make it possible to iterate ComponentBox
 * qt: Implement AppStream::ComponentBox::erase
 * qt: Allow concatenating two ComponentBoxes
 * qt: Allow loading Pool asynchronously
 * qt: Use ComponentBox/Releases in Qt bindings as well
 * qt: Add support for the new API to check relation satisfaction
 * qt: Maintenance and namespace fixes, use cPtr() to get C pointers everywhere
 * bundle: Add linglong as a new type of bundle
 * Add GUI environment IDs for macOS and Microsoft Windows
 * validator: Check if Release Description is inside description tag
 * validator: Add validation for content_rating
 * Add support for building on Win32
 * win32: change some file/path-related code for portability
 * Implement the developer element for unique developer IDs
 * Implement scaling factor for screenshots
 * component-box: Allow removal of components by-index
 * Implement support for external references and citations
 * Implement usertags for release data as well
 * Move ValueFlags to the context, instead of tieing them to components
 * pool: search: Add additional weight for exact substring matches on names
 * sysinfo: Add memory size detection support for macOS
 * Add support for Zstd for on-disk data compression
 * utils: Make tar unpacker independent of zstd binary presence
 * Drop Python2 provided tag support
 * data: Add ‘Endless’ to the list of desktops
 * Add NetBSD support

Specification:
 * Drop (most) deprecated information
 * docs: Clarify environment-based screenshot ordering
 * Add new  'snapshot' release kind
 * docs: Build all API documentation with gi-docgen
 * spec: Document the new "developer" element
 * spec: Document the "reference" tag for registry references
 * docs: Add example of YAML for references elements
 * Allow hyphens in the last segment of a component-ID
 * docs: Drop outdated information from l10n quickstart guide

Bugfixes:
 * meson: check for docbook xsl stylesheets
 * Fix tweaking of appstream.pc when building as subproject
 * Fix crash in asc_l10n_search_translations_qt()
 * qt: Make Qt6 dependency a system dependency.
 * meson: do not rely on an exe wrapper
 * meson: do not -I/usr/include when !stemmer
 * meson: Prevent building attempts with MSVC
 * meson: Use an SPDX license indentifier in project(license:)
 * Add meson overrides
 * compose: Set lower-cased CID for synthesized components again
 * compose: Set lower-cased CID in desktop-entry parse function
 * compose: Honor prefix in font search
 * compose: Select the correct default icon glyphs for fonts
 * Don't crash when non-YAML documents are read as YAML
 * Do not override default-priority when parsing multiple metadata files
 * Ensure stemmer always has the right locale and token-search works
 * Require a more recent libxmlb to avoid crashes
 * Rename component get_releases to indicate that releases may not be loaded from the web
 * Prevent string-id validation functions from matching source comments
 * Don't define _POSIX_C_SOURCE when building for NetBSD

Miscellaneous:
 * Explain metainfo-ancient error in more detail
 * Make sed invocation more portable
 * Add FreeBSD CI
 * Allow variable shadowing in C++ code
 * Drop the catchall as-enums unit
 * vapi: Drop unneeded metadata
 * Make AsMetadata return a component box for multiple components
 * apt: Make item descriptions more human-friendly
 * Streamline README

Contributors:
 Aleix Pol, Alessandro Astone, Alexander Wilms, Dan Yeaw, Daniel Drake,
 Gary Wang, Gleb Popov, Ingo Klöcker, JakobDev, Jeremy Whiting, Kai Uwe Broulik,
 Marc-André Lureau, Matthias Klumpp, Philip Withnall, Tao Zuhong,
 Thomas Klausner, Tristan Partin, and thanks to all translators mentioned
 in the respective l10n files!

Version 0.16.4
~~~~~~~~~~~~~~
Released: 2023-11-10

Features:
 * Allow hyphens in the last segment of a component-ID
 * Implement the developer element for unique developer IDs
 * Add meson overrides

Bugfixes:
 * meson: Prevent building attempts with MSVC
 * meson: Avoid potentially bad sed backup filename when fixing .pc file

Miscellaneous:
 * Make sed invocation more portable

Contributors:
 Gleb Popov, Matthias Klumpp, Tristan Partin

(From OE-Core rev: 104b38e204729a08a160752c12933739d9fbb92a)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Markus Volk
48f4dd4a0c libadwaita: update 1.4.0 -> 1.4.2
=============
Version 1.4.2
=============

- Really fix build with libappstream 1.0

=============
Version 1.4.1
=============

- Fix build with MSVC
- Fix build with libappstream 1.0
- AdwCarousel
  - Fix carousel scroll behavior with page reordering
- AdwComboRow
  - Fix focus when opening the popover
  - Set the correct state on the selected checkmark
- AdwNavigationView
  - Fix a warning message
- AdwTabOverview
  - Allow child focus on out animations
- AdwTabView
  - Keep view alive during ::page-detached
  - Fix crashes when using :pages
- Docs
  - Fix erroneous <child> use in breakpoints migration guide
- Translation updates
  - Russian
  - Serbian

(From OE-Core rev: 7c02a1169197fd5452d5b323dd523f6712245cb6)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Joshua Watt
72b6728f82 lib/packagedata.py: Fix broken symlinks for providers with a '/'
If a package had a provider with a '/' in it (e.g. "/bin/sh",
"/bin/bash", etc.), the generated symlinks were broken due to being at a
hard coded depth. Use oe.path.relsymlink() instead to make a correct
relative symbolic link

(From OE-Core rev: 8b1482a4e2adb7cf358d638265cf116b34078b84)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Joshua Watt
a22f7d7b53 lib/oe/path.py: Add relsymlink()
Adds API to make a relative symbolic link between two directories. The
arguments are the same as oe.path.symlink()

(From OE-Core rev: 3eeec7f3412e881e51763ef947c82772d3858f09)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Soumya Sambu
d59c3c718a ncurses: Fix - tty is hung after reset
Serial tty is hung after reset command -
$echo "test " >> /dev/ttyS0
test
$stty -a < /dev/ttyS0
speed 115200 baud; rows 34; columns 153; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
$reset
$echo "test " >> /dev/ttyS0
^C
$stty -a < /dev/ttyS0
^C

Updating reset_tty_settings API with latest code which fixes tty hung issue

(From OE-Core rev: 2419afd8024f903efff862f3f7f7772aedea7613)

Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Clay Chang
53b8ae2679 devtool: deploy: provide max_process to strip_execs
Use oe.utils.get_bb_number_threads to get max_process

(From OE-Core rev: f0056dca0a44c374f1f0c5fccbf66ae88e0b1850)

Signed-off-by: Clay Chang <clayc@hpe.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Yi Zhao
62e87836c4 debianutils: upgrade 5.14 -> 5.15
ChangeLog:
  * Shellscript compatibility with BSD and Mac, for "which -s"
  * d/tests/smoke: Update to test "which -s"

(From OE-Core rev: 06a2f55337d36c2fb18cd360fa70908542114d44)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Wang Mingyu
deab1148b3 diffoscope: upgrade 252 -> 253
Changelog:
============
* Improve DOS/MBR extraction by adding support for 7z.
* Process objdump symbol comment filter inputs as the Python "bytes" type
  (and not str).
* Add a missing RequiredToolNotFound import.
* Update copyright years.

(From OE-Core rev: 6452368935b103a39ed7c603bf763b3877544008)

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>
2023-12-23 08:46:00 +00:00
Joshua Watt
df548e981d ipk: Switch to using zstd compression
Converts IPK package generation to use zstd instead of xz. zstd has a
much larger compression/speed tradeoff range allowing users to choose
what suits them best, and fast decompression speeds. It also continues
to support parallel compression as xz did.

A new variable called ZSTD_DEFAULTS is provided to set the defaults for
places that want to use zstd for compression; the zst image conversion
command is also modified to use this.

Finally, in order for this to function properly, opkg must include zstd
support, so it is enabled all the time with no PACKAGECONFIG to turn it
off.

(From OE-Core rev: 1bc3e9bbaa670b6128c74c76b4b5264e60ce3463)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Tim Orling
dfe9c45264 oeqa: add runtime 'maturin develop' test case
Similar to the sdk test case, build the "guessing-game" example from
https://maturin.rs/tutorial

This test case:
* creates a python3 venv
* echoes "nameserver 8.8.8.8" to /etc/resolv.conf as we need to have
  functional DNS to fetch the crates on target
* fetches crates, builds guessing-game crate and wheel

Put the following in your local.conf:

EXTRA_IMAGE_FEATURES += "tools-sdk"
SDK_INCLUDE_TOOLCHAIN = '1'
SDK_TOOLCHAIN_LANGS += 'rust'

IMAGE_INSTALL:append = " python3-maturin"

IMAGE_CLASSES += "testimage"
TEST_QEMUPARAMS ?= "-m 8192 -smp 4"
IMAGE_ROOTFS_EXTRA_SPACE = "10000000"
NOHDD="1"
NOISO="1"

TEST_SUITES = "ping ssh python maturin"

Test with:

bitbake core-image-full-cmdline
bitbake -c testimage core-image-full-cmdline

(From OE-Core rev: ca7e78c8be6aaa2780702eab54715a74fc0dac5e)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-23 08:46:00 +00:00
Wang Mingyu
9cd6986348 xwayland: upgrade 23.2.2 -> 23.2.3
(From OE-Core rev: bf0bb7b94ed4930145af5f1fb3836157daceb6bb)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
b2b15c1373 ttyrun: upgrade 2.29.0 -> 2.30.0
Changelog:
===========
- lspai: Tool to display PAI counter sets
- s390-tools: Provide a ShellCheck configuration
- cpumf/pai: Add command line option for realtime scheduling
- dbginfo.sh: enhance ethtool collection for ROCE
- libutil/util_lockfile: add routine to return owning pid of file lock
- lszcrypt: Improve lszcrypt output on SE guests
- rust: Use a single workspace for all rust tools
- zdev: limit the derivation of ZDEV_SITE_ID
- zdump/df_s390: Update 'zgetdump -i' output with zlib info
- zdump/dfi_s390: Support reading compressed s390_ext dumps
- zipl/boot: Integrate zlib compression to single volume DASD dumper
- zipl/boot: compile the bootloaders only if HOST_ARCH is s390x
- zipl: Add --no-compress option to zipl command
- zkey: Also check for deconfigured and check-stopped cards
- ap_tools/ap-check: handle get-attributes between pre and post event
- libutil: fix util_file_read_*() using wrong format specifiers
- rust/pv: fix Invalid write of size 1

(From OE-Core rev: e503e15a6c553070bf9501862db1ca132632d969)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
cde69036a4 python3-wcwidth: upgrade 0.2.11 -> 0.2.12
Changelog:
 Remove a .pyi file was misplaced in the wheel file distributed on pypi for 0.2.11

(From OE-Core rev: 1a3307753a73f1843878c98c6785e452fdb392e5)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
352388c109 python3-typing-extensions: upgrade 4.8.0 -> 4.9.0
Changelog:
 https://github.com/python/typing_extensions/blob/main/CHANGELOG.md

(From OE-Core rev: feb3a23a684bf1ebf0f0d8b0f94209d82eb40741)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
b15fb09ecd python3-trove-classifiers: upgrade 2023.11.22 -> 2023.11.29
Changelog:
License :: OSI Approved :: Zero-Clause BSD (0BSD)

(From OE-Core rev: 5b79e2f00f85556723e0405689ffb76c8116458f)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
d3c802bcbe python3-pytest-runner: upgrade 6.0.0 -> 6.0.1
Changelog:
 Updated Trove classifier to indicate this project is inactive.

(From OE-Core rev: 8ab849b0ebc873fbcfe46a4ce8ca76a92b140842)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
1b8c0a3095 python3-psutil: upgrade 5.9.6 -> 5.9.7
Changelog:
===========
-enforce Ruff rule raw-string-in-exception, which helps providing clearer
 tracebacks when exceptions are raised by psutil.
-[PyPy]: psutil did not compile on PyPy due to missing
 PyErr_SetExcFromWindowsErrWithFilenameObject cPython API.

(From OE-Core rev: 69bc749e385848239407de1693d0c3db9692b72c)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
a0105d85b4 python3-pip: upgrade 23.3.1 -> 23.3.2
no_shebang_mangling.patch
refreshed for 23.3.2

Changelog:
==========
-Fix a bug in extras handling for link requirements
-Fix mercurial revision "parse error": use --rev={ref} instead of -r={ref}

(From OE-Core rev: 51bd305c023b64ae5f6972bb489916861d11477f)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
97d72a8d34 python3-pathspec: upgrade 0.11.2 -> 0.12.1
Changelog:
 https://github.com/cpburnz/python-pathspec/blob/v0.12.1/CHANGES.rst

(From OE-Core rev: b26d7f4e989ee85146e49cfaf9e2d50cbd4a710f)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
3466cab0ab python3-license-expression: upgrade 30.1.1 -> 30.2.0
Changelog:
============
-Use latest skeleton
-Update license list to latest ScanCode and SPDX 3.22
-Add Python 3.12 support in CI

(From OE-Core rev: 2fd616e68dba7ab193e6ea074615b4f6c6ed6b53)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
8e5acb3cc8 python3-importlib-metadata: upgrade 6.8.0 -> 7.0.0
Changelog:
============
-Removed EntryPoint access by numeric index
-Added Distribution.origin supplying the direct_url.json in a SimpleNamespace.
-Added diagnose script.
-Added EntryPoints.__repr__

(From OE-Core rev: c19ed018ee5c5d0af2ddf14b9d0de45673241652)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
7462974f02 python3-hypothesis: upgrade 6.90.0 -> 6.92.1
Changelog:
===========
https://hypothesis.readthedocs.io/en/latest/changes.html

(From OE-Core rev: e6c663778080f6bedbc3ae97ec1c0a9d4eea4464)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
052b036680 python3-hatchling: upgrade 1.18.0 -> 1.20.0
Changelog:
==========
-Add bypass-selection option to the wheel build target to allow for empty
 (metadata-only) wheels
-Fix regression in 1.19.1 that allowed exclude to count toward inclusion
 selection, thus bypassing the default inclusion selection heuristics
-Fix writing optional dependency core metadata in situations where there
 are multiple environment markers

(From OE-Core rev: 5ef9935ea063aa9b8f6e4f7d40603c298e12a644)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
bb4eea1ffc python3-dbusmock: upgrade 0.29.1 -> 0.30.0
Changelog:
============
-api: Add pytest support and helpers
-api: Factor the server spawning into a new SpawnedMock object
-doc: generate sphinx docs on https://martinpitt.github.io/python-dbusmock/
-cli: Add support for running custom commands on the mock environment

(From OE-Core rev: 52d4b5476ba69c3e176d6631b76b06cd1f80f2ad)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
aaaf404354 python3-babel: upgrade 2.13.1 -> 2.14.0
Changelog:
============
-CLDR/Numbers: Add support of local numbering systems for number symbols
-CLDR: Upgrade to CLDR 43
-Frontend: Allow last_translator to be passed as an option to extract_message
-Frontend: Decouple pybabel CLI frontend from distutils/setuptools
-Numbers: Improve parsing of malformed decimals

(From OE-Core rev: db1967e48e44fe81af7bad54fcbb4484c9462a73)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
38f7a143f6 p11-kit: upgrade 0.25.2 -> 0.25.3
Changelog:
============
* rpc: fix serialization of NULL mechanism pointer
* fix meson build failure in macOS (appleframeworks not found)

(From OE-Core rev: b02e282d4c8d380b53555ec65de7b12ea7c5ac10)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
53e39c1063 sysstat: upgrade 12.7.4 -> 12.7.5
Changelog:
===========
* [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s.
* sar: Remove %vmeff metric.
* sadf: Update various output formats to take into account metrics
  that have been added or removed.
* Update DTD and XSD documents.
* Update sar manual page.
* sar: Add a cron entry and a new systemd service and timer to rotate
  daily data file at midnight.
* Option -V with sysstat commands also displays environment contents.
* [Sam Morris]: Use correct encoding to produce hyphen-minus when
  rendering man pages.
* Add UMASK variable definition to sysstat(5) manual page.
* Update non regression tests.
* Add --getenv option to commands that didn't have it.
* Update README file for Debian-based distros.
* Update link to my personal web page in README and manual pages.
* NLS: Translations updated.

(From OE-Core rev: cebecc455d5e4ef84669d05707244be1cca8c271)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
170e3d116f repo: upgrade 2.39 -> 2.40
Changelog:
=========
-Don't log spam 'repo sync' by default
-tox: Remove pylint timeout
-Update commit-msg hook
-sync: Fix partial sync false positive
-repo: add repo main script's directory to PYTHONPATH.
-info: Handle undefined mergeBranch
-manifest_xml: support nested submanifests
-repo_logging: Ensure error details are printed
-repo: Use the worktree when checking the repo rev.
-git_superproject: tell git that superproject is bare
-Correctly handle schema-less URIs for remote fetch URL
-main: Log ManifestParseError exception messages
-repo: Remove unreachable code.
-cleanup: Update codebase to expect Python 3.6
-sync: PersistentTransport call parent init
-sync: TeeStringIO write should return int
-Correctly handle schema-less URIs for remote fetch URL
-main: Log ManifestParseError exception messages
-repo: Remove unreachable code.
-cleanup: Update codebase to expect Python 3.6

(From OE-Core rev: d345b1fb98e1e4181004b31996c3483a753b3eb1)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
a856192be5 opkg-utils: upgrade 0.6.2 -> 0.6.3
Changelog:
=========
-Add acls and xattrs support
-whitespace and styling
-update markdown styling
-update opkg mailing list
-add SECURITY.md
-refresh document

(From OE-Core rev: f6bee62670c3a3f9bbc11b104f64249ca32072c9)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
b55f951cd7 kea: upgrade 2.4.0 -> 2.4.1
Changelog:
=========
-The library version numbers have been bumped up for the Kea 2.4.1 stable release.
-Fixed interface redetection which had stopped working since Kea 2.3.6.
-Fixed a race condition in free lease queue allocator

fix-multilib-conflict.patch
fix_pid_keactrl.patch
refreshed for 2.4.

(From OE-Core rev: 7afab39fd1c3239df3bb2fa49b79a5efaaaf9db6)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
147450c823 gpgme: upgrade 1.23.1 -> 1.23.2
Changelog:
============
 * Preserve more specific existing failure code.
 * qt: Start dirmngr with gpgconf to avoid multiple instances.
 * qt: On Windows, use UTF-8 when logging the error text.
 * qt: Remove left-over partial files more persistently.
 * qt: Use a temporary file name when creating signed or encrypted
   archives.
 * qt: Build Qt 6 bindings with -fPIC if requested or Qt 6 was built with
   this flag.

0001-autogen.sh-remove-unknown-in-version.patch0001-pkgconfig.patch
0001-pkgconfig.patch
0001-use-closefrom-on-linux-and-glibc-2.34.patch
0003-Correctly-install-python-modules.patch
0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch
0006-fix-build-path-issue.patch
0008-do-not-auto-check-var-PYTHON.patch
refreshed for 1.23.2

(From OE-Core rev: 178dab3a479729aa0980a40846a81f5f3da8d709)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
54bd979f70 dnf: upgrade 4.18.1 -> 4.18.2
Changelog:
=========
-automatic: Add feature to allow emitters to invoke on dnf error
-dnssec: Fix parsing PGP keys for DNS validation

0005-Do-not-prepend-installroot-to-logdir.patch
refreshed for new version.

(From OE-Core rev: dc1c094e541f92986d00820bb49b780292410eb1)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
3b5f6005a2 libva-utils: upgrade 2.20.0 -> 2.20.1
Changelog:
============
-Fix some coverity issues exposed in encode
-Fixed VPP coverity issues

(From OE-Core rev: 2bd1443d047ba56196b2eaa7d59b3c39c9c0f49b)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
4d7f5a305c libseccomp: upgrade 2.5.4 -> 2.5.5
Changelog:
==========
Update the syscall table for Linux v6.7-rc3

(From OE-Core rev: 35c92894ec43fa58b0a8e0aab5974d1113f87283)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
3fb535af26 libnl: upgrade 3.8.0 -> 3.9.0
(From OE-Core rev: 9837ab2d5999ffe36652e5fb473e0566ab1ad7cd)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
752425b8c4 libatomic-ops: upgrade 7.8.0 -> 7.8.2
Changelog:
=========
* Eliminate 'atomic_thread_fence is unsupported with tsan' gcc-11 warning
* Eliminate 'comparing signed/unsigned values' lcc warning in add_chunk_as
* Fix 'undefined reference to AO_pt_lock' if configure is using clang-16
* Fix 'undefined reference to __atomic_load/store/cas_16' Mingw64-gcc error
* Fix 'undefined reference' linker errors if shared build on OpenBSD (CMake)
* Fix get_chunk for case of mmap area is located before AO_initial_heap
* Fix typo in AO_HAVE_compare_and_swap_double name in atomic_ops_stack.h
* Fix typo in comment of run_one_test of test_stack
* Fix typos in comments of atomic_ops_malloc.c and atomic_ops_stack.c/h
* Update cmake minimum required version to 3.5

(From OE-Core rev: 1dea52da8cd00e6619890b8c4dcece8b5ff83f74)

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>
2023-12-23 08:46:00 +00:00
Wang Mingyu
f6a65eb791 kbd: upgrade 2.6.3 -> 2.6.4
Changelog:
==========
-Use AX_ADD_FORTIFY_SOURCE to avoid redefining _FORTIFY_SOURCE
-Do not look up include files in the current working directory

(From OE-Core rev: c153aca2f4238d41aedf1ff4a93586dd31d75be4)

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>
2023-12-23 08:46:00 +00:00
Richard Purdie
b92406d231 curl: Disable two intermittently failing tests
These two tests seem to fail semi-regularly so just stop running them.

(From OE-Core rev: 1bfa564f1aa8b865f6c3ae3501e6d5f6cc0542eb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 13:49:48 +00:00
Lee Chee Yang
6ad00a5bd6 curl: update to 8.5.0
update include fix for CVE-2023-46218.

skip test 1477 which check that libcurl-errors.3 and the public
header files have the same set of error codes.
Notes: This test is not included in the source tarball.
https://github.com/curl/curl/issues/12462

Release Notes:
curl and libcurl 8.5.0

 Public curl releases:         253
 Command line options:         258
 curl_easy_setopt() options:   303
 Public functions in libcurl:  93
 Contributors:                 3039

This release includes the following changes:

 o gnutls: support CURLSSLOPT_NATIVE_CA [31]
 o HTTP3: ngtcp2 builds are no longer experimental [77]

This release includes the following bugfixes:

 o appveyor: make VS2008-built curl tool runnable [93]
 o asyn-thread: use pipe instead of socketpair for IPC when available [4]
 o autotools: accept linker flags via `CURL_LDFLAGS_{LIB,BIN}` [128]
 o autotools: avoid passing `LDFLAGS` twice to libcurl [127]
 o autotools: delete LCC compiler support bits [137]
 o autotools: fix/improve gcc and Apple clang version detection [136]
 o autotools: stop setting `-std=gnu89` with `--enable-warnings` [135]
 o autotools: update references to deleted `crypt-auth` option [46]
 o BINDINGS: add V binding [54]
 o build: add `src/.checksrc` to source tarball [1]
 o build: add more picky warnings and fix them [172]
 o build: always revert `#pragma GCC diagnostic` after use [143]
 o build: delete `HAVE_STDINT_H` and `HAVE_INTTYPES_H` [107]
 o build: delete support bits for obsolete Windows compilers [106]
 o build: fix 'threadsafe' feature detection for older gcc [19]
 o build: fix builds that disable protocols but not digest auth [174]
 o build: fix compiler warning with auths disabled [85]
 o build: fix libssh2 + `CURL_DISABLE_DIGEST_AUTH` + `CURL_DISABLE_AWS` [120]
 o build: picky warning updates [125]
 o build: require Windows XP or newer [86]
 o cfilter: provide call to tell connection to forget a socket [65]
 o checksrc.pl: support #line instructions
 o CI: add autotools, out-of-tree, debug build to distro check job [14]
 o CI: ignore test 286 on Appveyor gcc 9 build [6]
 o cmake: add `CURL_DISABLE_BINDLOCAL` option [146]
 o cmake: add test for `DISABLE` options, add `CURL_DISABLE_HEADERS_API` [138]
 o cmake: dedupe Windows system libs [114]
 o cmake: fix `HAVE_H_ERRNO_ASSIGNABLE` detection [2]
 o cmake: fix CURL_DISABLE_GETOPTIONS [12]
 o cmake: fix multiple include of CURL package [96]
 o cmake: fix OpenSSL quic detection in quiche builds [56]
 o cmake: option to disable install & drop `curlu` target when unused [72]
 o cmake: pre-fill rest of detection values for Windows [50]
 o cmake: replace `check_library_exists_concat()` [23]
 o cmake: speed up threads setup for Windows [68]
 o cmake: speed up zstd detection [69]
 o config-win32: set `HAVE_SNPRINTF` for mingw-w64 [123]
 o configure: better --disable-http [80]
 o configure: check for the fseeko declaration too [55]
 o conncache: use the closure handle when disconnecting surplus connections [173]
 o content_encoding: make Curl_all_content_encodings allocless [101]
 o cookie: lowercase the domain names before PSL checks [160]
 o curl.h: delete Symbian OS references [162]
 o curl.h: on FreeBSD include sys/param.h instead of osreldate.h [21]
 o curl.rc: switch out the copyright symbol for plain ASCII [167]
 o curl: improved IPFS and IPNS URL support [87]
 o curl_easy_duphandle.3: clarify how HSTS and alt-svc are duped [99]
 o Curl_http_body: cleanup properly when Curl_getformdata errors [152]
 o curl_setup: disallow Windows IPv6 builds missing getaddrinfo [57]
 o curl_sspi: support more revocation error names in error messages [95]
 o CURLINFO_PRETRANSFER_TIME_T.3: fix time explanation [181]
 o CURLMOPT_MAX_CONCURRENT_STREAMS: make sure the set value is within range [165]
 o CURLOPT_CAINFO_BLOB.3: explain what CURL_BLOB_COPY does [113]
 o CURLOPT_WRITEFUNCTION.3: clarify libcurl returns for CURL_WRITEFUNC_ERROR [45]
 o CURPOST_POSTFIELDS.3: add CURLOPT_COPYPOSTFIELDS in SEE ALSO
 o docs/example/keepalive.c: show TCP keep-alive options [73]
 o docs/example/localport.c: show off CURLOPT_LOCALPORT [83]
 o docs/examples/interface.c: show CURLOPT_INTERFACE use [84]
 o docs/libcurl: fix three minor man page format mistakes [26]
 o docs/libcurl: SYNSOPSIS cleanup [150]
 o docs: add supported version for the json write-out [92]
 o docs: clarify that curl passes on input unfiltered [47]
 o docs: fix function typo in curl_easy_option_next.3 [36]
 o docs: KNOWN_BUGS cleanup
 o docs: make all examples in all libcurl man pages compile [175]
 o docs: preserve the modification date when copying the prebuilt man page [89]
 o docs: remove bold from some man page SYNOPSIS sections [90]
 o docs: use SOURCE_DATE_EPOCH for generated manpages [16]
 o doh: provide better return code for responses w/o addresses [133]
 o doh: use PIPEWAIT when HTTP/2 is attempted [63]
 o duphandle: also free 'outcurl->cookies' in error path [122]
 o duphandle: make dupset() not return with pointers to old alloced data [109]
 o duphandle: use strdup to clone *COPYPOSTFIELDS if size is not set [132]
 o easy: in duphandle, init the cookies for the new handle [131]
 o easy: remove duplicate wolfSSH init call [37]
 o easy_lock: add a pthread_mutex_t fallback [13]
 o examples/rtsp-options.c: add [157]
 o fopen: create new file using old file's mode [153]
 o fopen: create short(er) temporary file name [155]
 o getenv: PlayStation doesn't have getenv() [41]
 o GHA: move mod_h2 version in CI to v2.0.25 [43]
 o hostip: show the list of IPs when resolving is done [35]
 o hostip: silence compiler warning `-Wparentheses-equality` [62]
 o hsts: skip single-dot hostname [67]
 o HTTP/2, HTTP/3: handle detach of onoing transfers [134]
 o http2: header conversion tightening [33]
 o http2: provide an error callback and failf the message [53]
 o http2: safer invocation of populate_binsettings [8]
 o http: allow longer HTTP/2 request method names [112]
 o http: avoid Expect: 100-continue if Upgrade: is used [15]
 o http: consider resume with CURLOPT_FAILONERRROR and 416 to be fine [81]
 o http: fix `-Wunused-parameter` with no auth and no proxy [149]
 o http: fix `-Wunused-variable` compiler warning [115]
 o http: fix empty-body warning [76]
 o http_aws_sigv4: canonicalise valueless query params [88]
 o hyper: temporarily remove HTTP/2 support [139]
 o INSTALL: update list of ports and CPU archs
 o IPFS: fix IPFS_PATH and file parsing [119]
 o keylog: disable if unused [145]
 o lib: add and use Curl_strndup() [97]
 o lib: apache style infof and trace macros/functions [71]
 o lib: fix gcc warning in printf call [7]
 o libcurl-errors.3: sync with current public headers [156]
 o libcurl-thread.3: simplify the TLS section [79]
 o Makefile.am: drop vc10, vc11 and vc12 projects from dist [103]
 o Makefile.mk: fix `-rtmp` option for non-Windows
 o mime: store "form escape" as a single bit [170]
 o misc: fix -Walloc-size warnings [118]
 o msh3: error when built with CURL_DISABLE_SOCKETPAIR set [61]
 o multi: during ratelimit multi_getsock should return no sockets [182]
 o multi: use pipe instead of socketpair to *wakeup() [18]
 o ngtcp2: fix races in stream handling [178]
 o ngtcp2: ignore errors on unknown streams [158]
 o ntlm_wb: use pipe instead of socketpair when possible [44]
 o openldap: move the alloc of ldapconninfo to *connect() [29]
 o openldap: set the callback argument in oldap_do [30]
 o openssl: avoid BN_num_bits() NULL pointer derefs [9]
 o openssl: fix building with v3 `no-deprecated` + add CI test [161]
 o openssl: fix infof() to avoid compiler warning for %s with null [70]
 o openssl: identify the "quictls" backend correctly [82]
 o openssl: include SIG and KEM algorithms in verbose [52]
 o openssl: make CURLSSLOPT_NATIVE_CA import Windows intermediate CAs [58]
 o openssl: two multi pointer checks should probably rather be asserts [91]
 o openssl: when a session-ID is reused, skip OCSP stapling [142]
 o page-footer: clarify exit code 25 [51]
 o projects: add VC14.20 project files [104]
 o pytest: use lower count in repeat tests [98]
 o quic: make eyeballers connect retries stop at weird replies [140]
 o quic: manage connection idle timeouts [5]
 o quiche: use quiche_conn_peer_transport_params() [116]
 o rand: fix build error with autotools + LibreSSL [111]
 o resolve.d: drop a multi use-sentence [100]
 o RTSP: improved RTP parser [32]
 o rustls: implement connect_blocking [154]
 o sasl: fix `-Wunused-function` compiler warning [124]
 o schannel: add CA cache support for files and memory blobs [121]
 o setopt: check CURLOPT_TFTP_BLKSIZE range on set [171]
 o setopt: remove outdated cookie comment [64]
 o setopt: remove superfluous use of ternary expressions [169]
 o socks: better buffer size checks for socks4a user and hostname [20]
 o socks: make SOCKS5 use the CURLOPT_IPRESOLVE choice [38]
 o symbols-in-versions: the CLOSEPOLICY options are deprecated
 o test1683: remove commented-out check alternatives
 o test3103: add missing quotes around a test tag attribute
 o test613: stop showing an error on missing output file
 o tests/README: SOCKS tests are not using OpenSSH, it has its own server [48]
 o tests/server: add more SOCKS5 handshake error checking [27]
 o tests: Fix Windows test helper tool search & use it for handle64 [17]
 o tidy-up: casing typos, delete unused Windows version aliases [144]
 o tool: fix --capath when proxy support is disabled [28]
 o tool: support bold headers in Windows [117]
 o tool_cb_hdr: add an additional parsing check [129]
 o tool_cb_prg: make the carriage return fit for wide progress bars [159]
 o tool_cb_wrt: fix write output for very old Windows versions [24]
 o tool_getparam: limit --rate to be smaller than number of ms [3]
 o tool_operate: do not mix memory models [108]
 o tool_operate: fix links in ipfs errors [22]
 o tool_parsecfg: make warning output propose double-quoting [164]
 o tool_urlglob: fix build for old gcc versions [25]
 o tool_urlglob: make multiply() bail out on negative values [11]
 o tool_writeout_json: fix JSON encoding of non-ascii bytes [179]
 o transfer: abort pause send when connection is marked for closing [183]
 o transfer: avoid calling the read callback again after EOF [130]
 o transfer: only reset the FTP wildcard engine in CLEAR state [42]
 o url: don't touch the multi handle when closing internal handles [40]
 o url: find scheme with a "perfect hash" [141]
 o url: fix `-Wzero-length-array` with no protocols [147]
 o url: fix builds with `CURL_DISABLE_HTTP` [148]
 o url: protocol handler lookup tidy-up [66]
 o url: proxy ssl connection reuse fix [94]
 o urlapi: avoid null deref if setting blank host to url encode [75]
 o urlapi: skip appending NULL pointer query [74]
 o urlapi: when URL encoding the fragment, pass in the right length [59]
 o urldata: make maxconnects a 32 bit value [166]
 o urldata: move async resolver state from easy handle to connectdata [34]
 o urldata: move cookielist from UserDefined to UrlState [126]
 o urldata: move hstslist from 'set' to 'state' [105]
 o urldata: move the 'internal' boolean to the state struct [39]
 o vssh: remove the #ifdef for Curl_ssh_init, use empty macro
 o vtls: cleanup SSL config management [78]
 o vtls: consistently use typedef names for OpenSSL structs [176]
 o vtls: late clone of connection ssl config [60]
 o vtls: use ALPN "http/1.1" for HTTP/1.x, including HTTP/1.0 [102]
 o VULN-DISCLOSURE-POLICY: escape sequences are not a security flaw [110]
 o windows: use built-in `_WIN32` macro to detect Windows [163]
 o wolfssh: remove redundant static prototypes [168]
 o wolfssl: add default case for wolfssl_connect_step1 switch [49]
 o wolfssl: require WOLFSSL_SYS_CA_CERTS for loading system CA [10]

(From OE-Core rev: 44f4e93d25f208d0be4c53d02113b7d0ebfffa4a)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 13:49:48 +00:00
Alex Bennée
4a5ef39d8a qemurunner: more cleanups for output blocking
If we are only tracking stdout and are not using self.readsock we end
up throwing an exception blocking further action from the thread. Fix
this by checking self.readsock is not None first.

While we are at it split even into fd, event to make things clearer
and handle the fail path of stringify_event by echoing the hex value
of the unknown flag.

(From OE-Core rev: 5e58737c66090fe009ec49296f3e7d687eb05766)

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Mikko Rapeli <mikko.rapeli@linaro.org>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Richard Purdie
c270131c53 qemu: Ensure pip and the python venv aren't used for meson
Qemu wants to use a supported python version and a specific meson version
to "help" users and uses pip and creates a venv to do this. This is a nightmare
for us. Our versions stay up to date and should be supported so we don't
really need/want this wrapping. Tweak things to disable it.

There was breakage from the wrapper shown by:

bitbake qemu-system-native
<add DISTRO_FEATURES:remove = "opengl" to local.conf>
bitbake qemu-system-native -c configure

which would crash. The issue is the change in configuration removes pieces
from the sysroot but pyc files remainm as do pieces of pip which causes
problems.

(From OE-Core rev: aceef7785e637a0223ecf288e2f367b6bee4a505)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Richard Purdie
85c88f8332 qemu: Clean up DEPENDS
Move the common dependencies to qemu.inc for cleaner entries in the
various recipes. Remove an unneeded inherit.

(From OE-Core rev: 6e7c2ae575b8f04fd117cc56980bb25113f343a8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Sundeep KOKKONDA
321aebfa28 rust: rustdoc reproducibility issue fix - disable PGO
The PGO (Profile-guided Optimization) collect data about the typical execution of a program
and then use this data to inform optimizations such as inlining, machine-code layout,
register allocation, etc.

This optimization is by default disabled in rust sources but enabled in Yocto and causing
the reproducibility issue in rustdoc binary. To fix the issue this optimization is set to
it's default 'false'.

More about the optimization: https://doc.rust-lang.org/rustc/profile-guided-optimization.html

With the reproducibility issue fixed, we can enable the reproducibility tests again.

(From OE-Core rev: 189c266378c8c4a918cb205b3888577c7ce76856)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Ross Burton
92fd81b7de openssl: mark assembler sections as call targets for PAC/BTI support on aarch64
The assembler sections in OpenSSL were not marked as valid call targets,
so branch protection could not be enabled for libcrypto.so.

(From OE-Core rev: 4bf06bc5487da05e6b4a4895e5ca2da65cdc25d8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Vijay Anusuri
198d891baa avahi: backport CVE-2023-1981 & CVE's follow-up patches
import patches from ubuntu to fix
 CVE-2023-1981
 CVE-2023-38469-2
 CVE-2023-38470-2
 CVE-2023-38471-2

Upstream-Status: Backport [import from ubuntu https://git.launchpad.net/ubuntu/+source/avahi/tree/debian/patches?h=ubuntu/jammy-security
Upstream commit
a2696da2f2
&
c6cab87df2
&
94cb648911
&
b675f70739]

Ref: https://git.openembedded.org/openembedded-core-contrib/commit/?h=stable/nanbield-nut&id=a9203c46cd64c3ec5e5b00e381bbac85733f85df

(From OE-Core rev: 2b0d8a63a212897b33e85cc3694cd9a3d6e09ca8)

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Joshua Watt
3c26d5181a libinput: Add packageconfig for tests
Add packageconfig to control if tests are installed or not. Doing this
allows the libcheck dependency to be optional. The packageconfig
defaults to having tests enabled when PTEST_ENABLED == 1 to match the
previous behavior

(From OE-Core rev: d15b482a5858612c8c88c739b51de579945d7cb2)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Peter Marko
b2585b54b1 dtc: preserve version also from shallow git clones
Since switch from Makefile to meson based build,
the version is no longer hardcoded but queried from git tag.

This works only if git history is available.
When shallow tarballs are used, tag is not available.

Example error for trusted-firmware-a from meta-arm:
dtc version too old (039a994), you need at least version 1.4.4

Backport also patch to fix version in meson file.

(From OE-Core rev: 319f5d8a32d1f4a71ac997ce4522249b08f84945)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Mingli Yu
b1ff67062a ptest-packagelists.inc: Add python3-license-expression
# ./run-ptest
     [snip]
     PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_bad_syntax
     PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_exception_as_regular_key
     PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_exception_with_choice
     PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_exception
     PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_exception_strict_false
     PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_key
     PASS: tests/test_license_expression.py::UtilTest::test_build_licensing
     PASS: tests/test_license_expression.py::UtilTest::test_build_spdx_licensing
     PASS: tests/test_license_expression.py::UtilTest::test_get_license_key_info
     PASS: tests/test_license_expression.py::UtilTest::test_get_license_key_info_vendored
     PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_duplicated_elements
     PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_empty_input
     PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_or_relationship
     PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_regular
     PASS: tests/test_skeleton_codestyle.py::BaseTests::test_skeleton_codestyle
    ============================================================================
    Testsuite summary
     # TOTAL: 175
     # PASS: 175
     # SKIP: 0
     # XFAIL: 0
     # FAIL: 0
     # XPASS: 0

(From OE-Core rev: 5dc05c5bb5debc24864db03da51d03d53333e3e8)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Mingli Yu
a84a8ac625 python3-license-expression: Fix the ptest failure
Fix the below ptest failure:
 self = <test_skeleton_codestyle.BaseTests testMethod=test_skeleton_codestyle>
 def test_skeleton_codestyle(self):
 """
 This test shouldn't run in proliferated repositories.
 """
 setup_cfg = configparser.ConfigParser()
 setup_cfg.read("setup.cfg")
 > if setup_cfg["metadata"]["name"] != "skeleton":
 tests/test_skeleton_codestyle.py:22:
 self = <configparser.ConfigParser object at 0x7fd87cf55110>, key = 'metadata'
 def _getitem_(self, key):
 if key != self.default_section and not self.has_section(key):
 > raise KeyError(key)
 E KeyError: 'metadata'

After the patch:
 # ./run-ptest
 [snip]
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_bad_syntax
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_exception_as_regular_key
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_exception_with_choice
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_exception
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_exception_strict_false
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_key
 PASS: tests/test_license_expression.py::UtilTest::test_build_licensing
 PASS: tests/test_license_expression.py::UtilTest::test_build_spdx_licensing
 PASS: tests/test_license_expression.py::UtilTest::test_get_license_key_info
 PASS: tests/test_license_expression.py::UtilTest::test_get_license_key_info_vendored
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_duplicated_elements
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_empty_input
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_or_relationship
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_regular
 PASS: tests/test_skeleton_codestyle.py::BaseTests::test_skeleton_codestyle
============================================================================
Testsuite summary
 # TOTAL: 175
 # PASS: 175
 # SKIP: 0
 # XFAIL: 0
 # FAIL: 0
 # XPASS: 0

(From OE-Core rev: 6b06ad7a9f1dd5900483102f5723a6821f961dab)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>

Changed in v4:
Add python3-license-expression to PTESTS_FAST

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
venkata pyla
bc8ca0bacc wic: use E2FSPROGS_FAKE_TIME and hash_seed to generate reproducible ext4 images
E2FSPROGS_FAKE_TIME: sets fixed times for the inodes in the file system.
hash_seed: creates reproducible directory indexes in the file system.

Reference commit in e2fsprogs: e1f7100643a46456be107b33098f6034b0835e6d

(From OE-Core rev: bb822ab75de0020572058090439b93cc56bbf7e0)

Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
Robert Yang
16a3fde3fa nfs-utils: Update Upstream-Status
Update Upstream-Status for 0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch.

(From OE-Core rev: 7189d1ea5c066b9ffc52103160bb34945fd779d7)

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>
2023-12-21 10:38:29 +00:00
Lucas Stach
ab621df9f5 mesa: upgrade 23.2.1 -> 23.3.1
- build amd vulkan driver for x86 platforms
- drop included patch
[1fbdd37d4c/meson.build (L1711)]

(From OE-Core rev: 9d862e82a3d36ae27dc9fc919da203d200a67650)

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
2c1b967cd1 python3-numpy: distutils is no longer required
Please see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
https://numpy.org/doc/stable/release/1.26.0-notes.html

(From OE-Core rev: 6cbbeb75ed427d5f16d5a1d6f3f0c31e39db6d65)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
91f9f75e1b python3-pytest-runner: remove distutils dependency
I couldn't find any evidence of it actually being
required at build or run time.

(From OE-Core rev: a28cd31784592f7cd460320a5c2cf41a86829255)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
028c318f7c glib-2.0: replace distutils dependency with setuptools
(From OE-Core rev: 6a4d86cfa3b838eaa861936adee7a07f2a6a03b3)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
504651f853 python3-pip: remove distutils depedency
Upstream has removed usage of distutils.

(From OE-Core rev: a89e0aa3d0c850f3ad90f6d72a658c66d6109fca)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
e99732267a python3-babel: replace distutils with setuptools, as supported by upstream
(From OE-Core rev: 35f947f107dadd93eace4ac239fa308960d0f4da)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
8c67164341 python3-setuptools-rust: remove distutils dependency
As allowed by https://github.com/PyO3/setuptools-rust/pull/336

(From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
143686fe48 gpgme: disable python support (until upstream fixes 3.12 compatibility)
The only consumer in oe-core was dnf, and latest dnf releases no longer
use it. There are no consumers in meta-oe.

gpgme's python support is generally a pain to support, and lags
behind upstream python versions. It was enabled in

commit fc6c81da79
Author: Mark Hatle <mark.hatle@windriver.com>
Date:   Tue Mar 7 12:54:33 2017 -0600

    gpgme: Fix issue building for the target

which wasn't prompted by any consumer requiring python,
but rather to correct build errors in absence of specific
configuration passed in.

(From OE-Core rev: 6d82ce8c16e724d5bba088b3a3d05c1690e47862)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
398b979449 dnf: remove obsolete python3-gpg dependency (provided by gpgme)
As of 8806b2ee99
dnf is using librepo's crypto.

(From OE-Core rev: 0f85f8af5edc7e2899a0212c56574a353f41bf6b)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
05d187fec3 libcap-ng-python: depend on setuptools to obtain distutils copy
Upstream has made the needed fixes (not easy to backport), but
hasn't released a new version with them. Distutils has been
removed from the core python library in 3.12.0.

(From OE-Core rev: 234a02419bce1f46deb202ce0a3bbe38835e0997)

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>
2023-12-21 10:38:29 +00:00
Alexander Kanavin
1d4447abb9 gobject-introspection: depend on setuptools to obtain distutils module
g-i still uses distutils in various places, and upstream MRs and tickets
aren't getting a lot of traction. As distutils is gone from the core
library in python 3.12, rely on setuptools copy.

(From OE-Core rev: 2872aa59d24505b1088d570453e4ec6c83974cc9)

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>
2023-12-21 10:38:29 +00:00
Khem Raj
7cac39b4a2 weston: Include libgen.h for basename
Fixes build with latest musl

(From OE-Core rev: 1fe60f3fc751e1b0ee93cfbf6dfa5c5916a81ec4)

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>
2023-12-21 10:38:29 +00:00
Ross Burton
e73b3744de python3: re-enable profile guided optimisation
This was accidentally disabled in the 3.7.2 upgrade in 2019[1] where PGO
was made target-only. Change the wrapper script generation so that it
happens in all environments but class-native.

[1] oe-core 02714c105426b0d687620913c1a7401b386428b6

(From OE-Core rev: 96a9964d6071dc614cec06a4f0712e257de2bc8b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:29 +00:00
Ross Burton
2f56aec05c machine/arch-armv9: remove crc and sve tunes, they are mandatory
As per the Arm ARM section A2.3.2, FEAT_CRC32 is mandatory in Armv8.1
onwards, so there's no need to have an explicit optional tune for it.

SVE (which was a choice here) and SVE2 (which was not) are both optional
with v9.0, but GCC's -march=armv9-a defaults to enabling both SVE and
SVE2 on the grounds that there are no implementations of Armv9 that
don't support SVE2.  This means there's no point having an explicit sve
feature as it's enabled out of the box.

(From OE-Core rev: 28fabebf812cdf8e76eb508115a4b76944f1e729)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:29 +00:00
Khem Raj
194ffa6fea qemu: Add packageconfig knob to enable pipewire support
This gets into a quessing mode if not specified and it it probelamactic
for native version since it maybe built on a machine having pipewire
  installed and used on another where pipewire is not installed (
  minimal CI builder ) it ends up with

runqemu - ERROR - Failed to run qemu: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/qemu-system-x86_64: error while loading shared libraries: libpipewire-0.3.so.0: cannot open shared object file: No such file or directory

(From OE-Core rev: 0d63cadd4523e60d4959284a81fbe47da88834fa)

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>
2023-12-21 10:38:29 +00:00
Khem Raj
53af03827e qemu: Fix build with latest musl
musl dropped basename() from string.h, adjust for that

(From OE-Core rev: 58f7eb2b5a2ae037294b631bf083729e78910c24)

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>
2023-12-21 10:38:29 +00:00
Khem Raj
5800c6a60f systemd: Fix build with latest musl
musl has removed basename from string.h [1] which leads to build
failures now as declaration is gone and it should be coming from
libgen.h

[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7

(From OE-Core rev: 868542315f8c914f96ee55713f7a3e0d0154c3ae)

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>
2023-12-21 10:38:29 +00:00
Ross Burton
26560efaea images: add core-image-initramfs-boot
Add a minimal initramfs image recipe that just contains enough initramfs
to find the real root filesystem and pivot to it.

BSPs can use MACHINE_EXTRA_RRECOMMENDS to pull in any kernel module
packages that are required to bring up the hardware so that the rootfs
can be found.

(From OE-Core rev: 3e862cddf28e58957b7c6d9c983fdb40eb5442fb)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:29 +00:00
Lee Chee Yang
56a22eb31c perl: 5.38.0 -> 5.38.2
update include fix for CVE-2023-47100.

(From OE-Core rev: de136e9e6fb35d166a3ef5086d1feddecd574f9d)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:29 +00:00
Lee Chee Yang
3a881b672d perlcross: update to 1.5.2
remove upstreamed 0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch

(From OE-Core rev: e3b99c25eadc0e230ddb6a2a053c10912c5308ae)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:29 +00:00
Khem Raj
b60f98d3fd gdb: Update to gdb 14.1 release
* Drop add-missing-ldflags.patch, its already applied to gdb 14
* Add dependency on mpfr for cross/cross-canadian/target recipe
* Remove gcc-only complier restriction, clang can compile it just fine
* Notable changes are here [1] [2]

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=refs/heads/gdb-14-branch
[2] https://www.sourceware.org/gdb/download/ANNOUNCEMENT

(From OE-Core rev: 2a0f7255a740ffbfe5a7858ef01a3ba6cadca383)

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>
2023-12-21 10:38:29 +00:00
Michael Opdenacker
baa6b64a94 poky.conf: update SANITY_TESTED_DISTROS to match autobuilder
>From the intersection of the list of allowed workers
on https://git.yoctoproject.org/yocto-autobuilder2/tree/config.py
and the active workers on
https://autobuilder.yoctoproject.org/typhoon/#/workers

(From meta-yocto rev: 5859bb1be028d303ddc8729ff761bdde7f7dd5f1)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 23:36:00 +00:00
Marta Rybczynska
1720dae4ed bitbake: toastergui: verify that an existing layer path is given
Verify that an existing layer path was given when adding a new
layer.

Manually using the shell for globbing is unnecessary, use the glob
function instead for cleaner code.

(Bitbake rev: fe0881615896de844141393b21a121f7c3fa9d16)

Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 22:08:31 +00:00
Richard Purdie
191645f746 oeqa/selftest/overlayfs: Fix whitespace
My previous fix missed out whitespace with the append, fix that.

(From OE-Core rev: 393c4459851642b8b7e93ff303d6526cd5c97b22)

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

    #

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 12:02:07 +00:00
Alassane Yattara
98214f1bc2 bitbake: toaster/tests: Bug-fix test_functional_basic, delay driver actions
The errors causing faileds on functional_basic are dû to the delay between actions,
increase between driver actions.

(Bitbake rev: e8f8f6203b63c46249673e80872fea40475f6875)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 12:02:07 +00:00
Richard Purdie
08369812c1 testimage: Drop target_dumper and most of monitor_dumper
The target_dumper code is basically broken. It has been reading binary files
over the text base serial communication and runs at every command failure which
makes no sense. Each run might overwrite files from the previous run and the
output appears corrupted due to confusion from the binary data.

For now, remove the commands and the target dumper code as the command
and execution point are problematic. Also remove the same pieces of the monitor
code but leave the command list since in theory this can be moved to a more
useful place in the code.

(From OE-Core rev: a24d787987dccc95fdd95b7e85bf525a1c55b285)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Richard Purdie
2ad6a0be02 oeqa/selftest/overlayfs: Don't overwrite DISTRO_FEATURES
Whilst debugging an autobuilder failure, I wondered why it was rebuilding qemu-system-native
instead of reusing from sstate. The reason was it was overwriting DISTRO_FEATURES,
in this case removing opengl which caused much to rebuild.

The test doesn't need that so don't do it.

(From OE-Core rev: fdcc011608fd9558a081d0ace3eaf7192d9fcaef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Richard Purdie
98b63ecc43 qemurunner: Improve handling of serial port output blocking
Similar to stdout in the previous commit, we need to ensure serial output
if written is read and put somewhere, else qemu might block on writes to
the serial port leading to hangs in the kernel. Use our existing logging
thread to log data when run_serial is not in use.

(From OE-Core rev: 05761282ba31e4ba3594f7321e2162d01fe12a5f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Richard Purdie
d921da782a qemurunner: Improve stdout logging handling
We need to ensure we read from and log the output from qemu stdout
as otherwise the buffers can fill and block, leading qemu to hang.
Use our existing logging thread to do this.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
(From OE-Core rev: a9c46ee014ef1e6436b39fdd4fd15d15388ea795)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Richard Purdie
038d364992 testimage: Exclude wtmp from target-dumper commands
wtmp is filled with binary data which the run_serial command can't cope with.
Catting this results in confusion of the serial interface and potentially large
backlogs of data in the buffers which can hang qemu.

Exclude the problematic files from the command.

(From OE-Core rev: 599ac08a6f6fb3f6a89a897c8e06367c63c2f979)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Victor Kamensky
e428775da9 systemtap: fix libdebuginfod auto detection logic
Addresses an issue when systemtap is built in situation where debuginfod
is not part of DISTRO_FEATURES and latest SystemTap has problem of
auto detecting libdebuginfod library as it was reported by Martin
Jansa in [1].

[1] https://lists.openembedded.org/g/openembedded-core/message/192109?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Csystemtap%2C20%2C2%2C0%2C102987514

(From OE-Core rev: bf635f8f2258f8b8beb0adb8dead2b6b40b2274a)

Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Victor Kamensky
378a553dc7 systemtap: explicit handling debuginfod library dependency
After systemtap commit 2e67b053e3796ee7cf29a39f9698729b52078406
"configury: rework debuginfod searches" automatic detection of
libdebuginfod is broken. Let's handle it explicitly with debuginfod
package feature. It is good to have such feature anyway.

(From OE-Core rev: ba5098fcf2fc771da8790cb2ac4ea8fef4816413)

Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Joshua Watt
db2ae4211a rpcbind: Specify state directory under /run
The state directory must be correctly specified as under /run because
RequiresMountsFor doesn't follow symbolic links which means the unit may
run before /run is mounted if the default of /var/run/rpcbind is kept

(From OE-Core rev: 561e853e97e2cfa325ed310233577a5e124d9049)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Joshua Watt
8dff718633 bitbake.conf: Add runtimedir
Adds the path to the runtime state directory (/run). In particular,
systemd units need to have the correct path to the runtime directory
because RequiresMountsFor doesn't follow symbolic links. This means that
if a unit calls out a directory in /var/run (a symbolic link to /run),
it may actually start before /run is mounted. The fix is to have the
unit specify a directory in /run instead.

(From OE-Core rev: 90bc18108230f6d41a50cebc8348444e119e95bf)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Ross Burton
255e165c60 tcl: skip async and event tests in run-ptest
These test suites are full of timing-sensitive test cases, so skip
them too.

[ YOCTO #15321 ]

(From OE-Core rev: dd06c3668dbe9ec1cf9a0a84d7a6bc9851f9c662)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
55ff0c2bf9 enchant2: upgrade 2.6.2 -> 2.6.4
pkgdatadir is a versioned directory by default now so we don't need to
pass it to EXTRA_OEMAKE.

6e4a8df5cb

(From OE-Core rev: 3a58f8055374f89d9c91faa328093394aecfe2a4)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
2e65519ee7 libusb1: fix upstream version check
Fix regex to not match release candidates.

(From OE-Core rev: 1423a69a1ddc54c62ca3431f062b35d2fef68ac2)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
6ce7d6dd4e stress-ng: upgrade 0.17.01 -> 0.17.03
(From OE-Core rev: 3b0f5f0fdab1707d7b59b25546882c6029d42c8d)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
e104ef3736 puzzles: upgrade to latest revision
(From OE-Core rev: bf3d3c524f5f03e92b81f0e53809f29bdd11ffbd)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
a5fc5b14a1 glib-networking: upgrade 2.76.1 -> 2.78.0
(From OE-Core rev: 9f792d1f60c2ba582bc7eceb76923495dbfaa658)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
6a47da632e glib-2.0: upgrade 2.78.1 -> 2.78.3
(From OE-Core rev: 419503d3d3402b683979696f248cd42f05c282b7)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
0656a5d89d bluez5: upgrade 5.70 -> 5.71
(From OE-Core rev: cb1b191fa4a275dab1f7f66a0e60563696c6d64d)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
a1f912e4d8 base-passwd: upgrade 3.6.2 -> 3.6.3
(From OE-Core rev: 74d165f5baacd0cd94eb90396b0a3119281df91d)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Anuj Mittal
1c5edf4b21 sqlite3: upgrade 3.44.0 -> 3.44.2
(From OE-Core rev: 915e54859ff50eafca8f4d27af7e460d042b112a)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Ross Burton
2ad23af63b linux-yocto: update CVE exclusions
(From OE-Core rev: 4cfc4187ac90a4504b93a01ff6333d14928728a8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-20 07:47:00 +00:00
Lee Chee Yang
17ce339581 migration-guides: add release notes for 4.0.15
(From yocto-docs rev: e52128cd0e555f16c86812a21e92f27ca5d76152)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
d59a8b7f46 dev-manual: runtime-testing: fix test module name
(From yocto-docs rev: e0f4f67d5e702b6d9c9c7b77896a397221d825d8)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Simone Weiß
401bc1480a manuals: brief-yoctoprojectqs: align variable order with default local.conf
Align the order from `BB_SIGNATURE_HANDLER` to `SSTATE_MIRRORS` in Quick Build
with the order in the default local conf. While trivial it is easier to find,
if the order matches.

(From yocto-docs rev: d4a836d1ea2b97c81f7edb4dc234b4a1bd532766)

Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Lee Chee Yang
ede920cb03 migration-guides: reword fix in release-notes-4.3.1
Reword a fix to align with the final release notes.

(From yocto-docs rev: b1b2fdbbb7549af2737cb868a821a4472214f420)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Etienne Cordonnier
a1ae83c59b manuals: document minidebuginfo
(From yocto-docs rev: 1a6327f2d92b390248afb45119d79bb05cda3dcc)

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
bd8f3acd14 test-manual: add or improve hyperlinks
(From yocto-docs rev: db88611b8d80ce909afa697766123001fa4e5741)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
d9be74b13f test-manual: explicit or fix file paths
(From yocto-docs rev: e6fd1912bdbaeb1c8e29f5d7987ee24f9def1ab7)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
98ee926e2c test-manual: add links to python unittest
Better than using "python unittest" without any
special formatting.

(From yocto-docs rev: ddf899611c56e6f44e9da2c69ed9c75a5491d882)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
51c390571f test-manual: use working example
(From yocto-docs rev: 29dce8130e4de68a4690add673bca0eef17c8260)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
3090312661 test-manual: resource updates
(From yocto-docs rev: 230523f2b834d3fdb2114956678e3003a486cebc)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Michael Opdenacker
84b242ef8b test-manual: text and formatting fixes
(From yocto-docs rev: 7c4f616f773bb9071b395e977b2ca9f8ac8f7e2a)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Peter Kjellerstedt
c24e3b9f67 dev-manual: Discourage the use of SRC_URI[md5sum]
SRC_URI[md5sum] has been deprecated for a long time. Discourage its use
by removing it from examples and note that it should be replaced by
SRC_URI[sha256sum] when updating recipes.

Also mention that bitbake supports other checksums, though they are not
commonly used.

(From yocto-docs rev: 806c6cb0b457248ac7401487ba2cdd17a1eba320)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 13:18:55 +00:00
Richard Purdie
33112178d1 build-appliance-image: Update to master head revision
(From OE-Core rev: 6b729088dce302eb3a967cb6839f00488025be0e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 09:43:04 +00:00
Joshua Watt
490b94c3b5 bitbake: bitbake-hashserv: Add description of permissions
Adds a text description of the possible permissions in the hash server
help text

(Bitbake rev: 8295ac1b6672c25bee595cff6e000b2af817f904)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-18 09:18:01 +00:00
Jeremy A. Puhlman
a49de3ccc1 create-spdx-2.2: combine spdx can try to write before dir creation
On occasion a file is attmpeded to be opened prior to the
creation of the spdx_workdir. Create the directory before
the open, just in case.

File: '/build/layers/poky/meta/classes/create-spdx-2.2.bbclass', lineno: 1081, function: combine_spdx
     1077:        )
     1078:
     1079:    image_spdx_path = spdx_workdir / (rootfs_name + ".spdx.json")
     1080:
 *** 1081:    with image_spdx_path.open("wb") as f:
     1082:        doc.to_json(f, sort_keys=True, indent=get_json_indent(d))

(From OE-Core rev: bb9f2a9c0ff5dcdeaf1a0beb6a614d0d022a2481)

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:22 +00:00
Tim Orling
7d881f0214 oeqa: add "maturin develop" SDK test case
'maturin develop' first checks that a virtual environment
has been created, which is a good test for our python3 SDK
environment ;)

Source for guessing-game lifted from https://www.maturin.rs/tutorial

The test case is expected to fetch any necessary crates, build a
development version of the crate and package it as a wheel

Needs at a minimum the following in e.g. local.conf:
TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-maturin"
SDK_INCLUDE_TOOLCHAIN = '1'
SDK_TOOLCHAIN_LANGS += 'rust'

The output of 'maturin develop' should be something like:
...
🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.8
🐍 Not using a specific python interpreter
📡 Using build options features from pyproject.toml
   ...
   Compiling guessing-game v0.1.0 (/path/to/guessing-game)
    Finished dev [unoptimized + debuginfo] target(s) in 7.14s
📦 Built wheel for abi3 Python ≥ 3.8 to /path/to/tmpdir/guessing_game-0.1.0-cp38-abi3-linux_x86_64.whl
🛠 Installed guessing-game-0.1.0

(From OE-Core rev: 5265dd0b102cd7f3c6bb2ae1b18e9f625b834b39)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:22 +00:00
Tim Orling
b2b2e02775 oeqa: add simple 'maturin' SDK (testsdk) test case
We expect 'maturin' will be used in SDKs, so it makes sense to also
test it in the testsdk environment.

To run this test case, you can add the following to local.conf:
TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-maturin"

And then build and test the SDK:
bitbake -c populate_sdk core-image-full-cmdline
bitbake -c testsdk core-image-full-cmdline

You can substitute a different image recipe for "core-image-full-cmdline"

(From OE-Core rev: 7ceff48625d01a0e60eb761a9a668d0c942cda89)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:22 +00:00
Tim Orling
844e91049c oe-selfest: add maturn runtime (testimage) test
Basic smoke test for maturin to test the 'maturin list-python' case.

(From OE-Core rev: 47c948c3cf6e582abd12021ceeff2c20a3e81fb5)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:22 +00:00
Tim Orling
9707dc5549 recipetool: add python_maturin support
Add the new python_maturin PEP-517 backend

Add selftest for 'pydantic-core' pypi package.

(From OE-Core rev: 69b679380616a94a631681caa05d9bf7610f9372)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Tim Orling
ca5427280d classes-recipe: add python_maturin.bbclass
maturin is a replacement for setuptools_rust and another "backend" for
building python wheels.

(From OE-Core rev: 1c2f9d8f18ef8154573142638ca10a8f88e43419)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Tim Orling
c5cd7c5900 python3-maturin: bzip2-sys reproduciblility
The /usr/bin/.debug/maturin binary ends up with the path
to the bzip-sys (bzip2-1.0.8) source in the python3-maturin-dbg package

Fix this by mapping the debug path for CARGO_HOME
to TARGET_DBGSRC_DIR/cargo_home via CFLAGS. This is
required because the bzip-sys crate is compiled using
the cc crate and we override default CFLAGS.

(From OE-Core rev: 58a4f8b3afb67e6818f544e74a7f1dd2b1a66f86)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Tim Orling
d97636a0e5 python3-maturin: add v1.4.0
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings
as well as rust binaries as python packages.

This project is meant as a zero configuration replacement for setuptools-rust
and milksnake. It supports building wheels for python 3.7+ on windows, linux,
mac and freebsd, can upload them to pypi and has basic pypy and graalpy support.

https://github.com/pyo3/maturin

* Referesh -crates.inc for 1.4.0

(From OE-Core rev: b92d923991e57e1e3a8e4a3bf1b7f7ec138f7723)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Alexander Kanavin
6e6bb93fda oeqa/selftest/sstatetests: re-work CDN tests, add local cache tests
With the rework of printdiff, it is not longer useful for checking
absence of sstate objects in a remote http cache, as it would only
report the top level missing signatures, and leave the recursive
investigation to diffsigs (which relies on ability to list cache
files - not available over http).

The CDN check can be performed by simply running 'bitbake -DD -n'
which is very verbose, but neverthless reports the amount
of missing sstate objects and what they are in a way that can
be programmatically extracted and checked (as suggested by RP).

This also adds local sstate tests, as they can be useful to
determine whether the missing cdn objects were never created or
erroneously cleaned up, or if they were created but didn't propagate
to cdn.

[YOCTO #15303]

(From OE-Core rev: 2a7c653a2eee85e5791a8fdc15857367f0ed0bd9)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Richard Purdie
69a4180c88 bitbake: runqueue: Remove tie between rqexe and starts_worker
We've been moving to try and separate several pieces of runqueue. Allow
start_worker to operate separately to rqexe since they don't need to be
tied. This allows rqexe to be available to print_diff for future
improvements.

(Bitbake rev: 834e452243ff2eea6e8e2e7f4935b5233ffb4b00)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Richard Purdie
e706249f7b bitbake: utils: Fix mkdir with PosixPath
Avoid:
    Exception: AttributeError: 'PosixPath' object has no attribute 'find'

(Bitbake rev: 0b37fe89ba12549109905b6d0e6d07d342162436)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-17 19:07:21 +00:00
Richard Purdie
5815ccc1f6 build-appliance-image: Update to master head revision
(From OE-Core rev: 7ebd5247f6e040234ca4c8b3b1239843386bb79b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-16 13:12:52 +00:00
Richard Purdie
26edf89561 oeqa/sstatetests: Disable gcc source printdiff test for now
There are some issues with the printdiff code this has identified, disable the
test for now until we have patches to resolve them.

(From OE-Core rev: 436766983568a8bddc4b9ffa28dc656bf4bf67c1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-16 13:12:42 +00:00
Marlon Rodriguez Garcia
ff7aba28f7 bitbake: toaster: Added validation to stop import if there is a build in progress
Added validation to prevent simultaneous imports from running because the database fails at runtime.
The option to create a queue was taken into consideration. However, it will require the use of Celery https://pypi.org/project/celery/ or Background Task https://pypi.org/project/django-background-tasks/ which require the use of external services and multiple dependencies.
If required we could explore the alternative in the future.

(Bitbake rev: eb417e27be5717a259f27e98dbd73255b1a42fc9)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-16 13:06:11 +00:00
Peter Kjellerstedt
53d45455a2 devtool: modify: Handle recipes with a menuconfig task correctly
This avoids the following error when running `devtool modify` on a
recipe that has a menuconfig task, but does not have
KCONFIG_CONFIG_ENABLE_MENUCONFIG set.

  .../temp/run.do_configure.4163366: line 152:
  ${@ oe.types.boolean('${KCONFIG_CONFIG_ENABLE_MENUCONFIG}') }: bad substitution
  WARNING: .../temp/run.do_configure.4163366:152 exit 1 from
  '[ ${@ oe.types.boolean('${KCONFIG_CONFIG_ENABLE_MENUCONFIG}') } = True ]'

(From OE-Core rev: e87e6fa84a0c4b5ac8e736dc62f6e08390ba2436)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-16 13:05:42 +00:00
Khem Raj
83cad97561 util-linux: Delete md-raid tests
These tests are marked as known failures upstream as well [1]
if we delete them then we can drop dependency on mdadm for ptests which
can further reduce the dependency chain for ptest enabled minimal images

[1] 7519c3edab

(From OE-Core rev: 4f3b4b4f27924f9093dc6b4dd949cabe5cd2891b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-16 13:05:42 +00:00
Yoann Congal
6ce61b4357 strace: Disable bluetooth support by default
The bluetooth support adds a bluez5 dependency (and,recursively, a lot
of other stuff). Disable it by default to avoid having to build all of
this when it is not needed.

This decrease the number of tasks run for a core-image-minimal build by
~1000 (-21%).

To re-enable bluetooth support in strace, add "bluez" to strace
PACKAGECONFIG. For example, in local.conf:
  PACKAGECONFIG:append:pn-strace = " bluez"

Fixes [YOCTO #15323]

[RP: Tweaked to put a message about the change in the recipe]
(From OE-Core rev: 5dbfeea1c90c4dab9291d27da5a7ed1706e2ac2e)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Suggested-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-16 13:05:42 +00:00
Alassane Yattara
a02138ad48 bitbake: toaster/tests: Fixes functional tests warning on autobuilder
tests/functional/test_project_config.py::TestProjectConfig::test_set_download_dir
  /home/pokybuild/yocto-worker/toaster/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestProjectConfig.test_set_download_dir of <toaster.tests.functional.test_project_config.TestProjectConfig testMethod=test_set_download_dir>>)
    return self.run(*args, **kwds)

tests/functional/test_project_config.py::TestProjectConfig::test_set_sstate_dir
  /home/pokybuild/yocto-worker/toaster/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestProjectConfig.test_set_sstate_dir of <toaster.tests.functional.test_project_config.TestProjectConfig testMethod=test_set_sstate_dir>>)
    return self.run(*args, **kwds)

(Bitbake rev: 938cba3e80f26589ccbe34483c79e17056346fde)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alassane Yattara
ad2ffefb14 bitbake: toaster/tests: Update tests/functional/functional_helpers test_functional_basic
- Remove unused import time functional_helpers
- Delay driver actions from test_functional_basic

(Bitbake rev: c7a305f0ff3cd32875e2eb80bc0848f533209745)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alassane Yattara
adb7efe522 bitbake: toaster/tests: bug-fix element click intercepted in browser/test_layerdetails_page.py
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted

(Bitbake rev: d1936616cafc1aced69c7b5758e44638eb62b5ac)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alassane Yattara
81a0110ca5 bitbake: toaster/tests: Bug-Fix testcase functional/test_project_page_tab_config.py
All issues and failures stemmed from a specific test case:
test_project_config_tab_right_section in the file
bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py.

This test was designed to verify whether the "Most built recipes"
section on the project page correctly displays the latest and oldest
recipes built by the user, irrespective of the build outcome (failed,
        cancelled, succeeded, or errored).

The errors and failures arose because the build process did not
terminate as expected, particularly when attempting to build recipe
images such as "core-image-minimal" or "bash." It was discovered that
building a real recipe/image was unnecessary for the test's purpose.
Instead, building a fake recipe like "foo" provided a reliable way to
ensure the build would fail or be interrupted.

(Bitbake rev: 5162db5305826235c09d9fcd38b5fb48ded31622)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alassane Yattara
c8382b35e8 bitbake: toaster/tests: Removed all time.sleep occurrence
Use wait_until_visible instead of time.sleep to delay driver actions
(Bitbake rev: 96bf461d5860dad2377963c8dad6c754670738a6)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alassane Yattara
5648636a8b bitbake: toaster/tests: logging warning in console, trying to kill unavailable Runbuilds process
(Bitbake rev: 26100ca3b5e451e9d296654fc8c47a4299fea835)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alexander Lussier-Cullen
0fd93b86c4 bitbake: toaster/tests: fix chrome argument syntax and wait for driver exit
The chrome driver sometimes fails with a page crash for a full suite
of tests, pointing to a failure in the setup of the driver due to
resource limitations.
To mitigate these crashes, add a wait between driver driven tests to
ensure resources are freed.

(Bitbake rev: 8f998e27aae694c16f788aac12558621089d0839)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alexander Lussier-Cullen
e63d6cb38e bitbake: toaster/tests: fix functional tests setup and teardown
Functional tests sometimes do not properly wait for previous tests to
close their instance of Toaster before launching their own, which
causes failures.
Track test created Toaster processes globally and wait for them to be
exited before executing further tests which need a Toaster instance to
fix this.
Additionally, quit Toaster in the teardown using the stop command with
a fallback of manually killing the processes in case of documented
stalling problem.

(Bitbake rev: 16aad11ce8eadd93b4b00dc65826329ff5526c84)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Alexander Lussier-Cullen
e9c2003bd0 bitbake: toaster/tests: Exit tests on chromedriver creation failure
When failing to create the web driver session for selenium tests,
a cascade of erroring tests will follow. To avoid processing these
unnecessarily, exit the tests completely in this case.

(Bitbake rev: 9327196102dd2671fcdb3200d9490e683f81d3a1)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 14:37:28 +00:00
Richard Purdie
47cc628828 sstate: Fix dir ownership issues in SSTATE_DIR
We currently use mkdir -p to create missing parent directories within SSTATE_DIR.
Reading the man page for mkdir mentions that parent directories are created with
the current umask, *not* the mode passed upon the commandline.

We could fix this by setting and resetting the umask but since we already have
decent python code able to do this, move to using that injecting a python function
into the chain of functions already present.

This should help fix the occasional sstate directory creation with the wrong
permissions.

[YOCTO #14385]

(From OE-Core rev: ae642a4b038c6946e6c8aa9778bf09099d938a31)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 11:14:38 +00:00
Ross Burton
942f0909f3 runqemu: add qmp socket support
Add support for qmp sockets and defaults to unix:qmp.sock if unspecified

(From OE-Core rev: 380631797f0d63124a8c21efa93ab672dbd79283)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-15 11:14:38 +00:00
Marlon Rodriguez Garcia
524255ad26 bitbake: toaster: Commandline build import table improvements
Added dataTables library to include sorting and pagination for table element

Added jquery.dataTables to customize table rendering in section "Import eventlogs".
This library includes the following: sorting, pagination, search and CSS styles.

Default to ascending order and 50 builds per page.

(Bitbake rev: f88f314cb2b071569acf3c7d43fb7256ba50762f)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 20:35:02 +00:00
Adrian Freihofer
85f84b4090 oe-selftest: add tests for C and C++ build tools
Add new file for C and C++ build tools. The initial implemmentation
contains a class for CMake and one for Meson. At least these first
tests for the qemu-usermode share most of the code. That's why there
is only one c_ccp.py file and not for example a cmake.py and a
meson.py file.

(From OE-Core rev: 41390f5202a6ee7472cb82d12c7c32f89d6e52ff)

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>
2023-12-13 11:58:15 +00:00
Adrian Freihofer
1ec91141e5 oeqa/core/decorator: add skip if not qemu-usermode
Add a decorator to skip tests which require the qemu-usermode machine
feature.

(From OE-Core rev: 3d79615d6c9ccb1ff3766ce05389bc22cbd656e1)

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>
2023-12-13 11:58:15 +00:00
Adrian Freihofer
2df986746b oe-selftest: add a cpp-example recipe
This simple C++ project supports compilation with CMake and Meson.
(Autotool support could be added later on.)
It's supposed to be used with oe-selftest.

An artificial project has several advantages over compiling a normal
CMake or Meson based project for testing purposes:
- It is much faster because it can be kept minimalistic
- It can cover multiple odd corner cases
- No one will change it in an unpredictable way
- It can support multiple build tools with only one C++ codebase

(From OE-Core rev: 4904e772470b0d6e5d98ef0344b3f2bf54214661)

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>
2023-12-13 11:58:15 +00:00
Adrian Freihofer
d7c05e4eed cmake-qemu.bbclass: make it more usable
Make the cmake-qemu.bbclass more usable:
- Drop the CMAKE_EXEWRAPPER_ENABLED variable (which does not make much
  sense without the second commit of the original patch series).
- Inherit qemu to make the cmake-qemu a drop in replacement for cmake.

(From OE-Core rev: 5cb05ca6542aa6239e0371dd9df4705b168d245e)

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>
2023-12-13 11:58:15 +00:00
Alex Kiernan
66ba893285 rust: Upgrade 1.71.0 -> 1.71.1
https://blog.rust-lang.org/2023/08/03/Rust-1.71.1.html

(From OE-Core rev: ad4369d7901c1239e5f07473b1f2517edc4a23ea)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:43 +00:00
Alex Kiernan
93292feac4 rust: Upgrade 1.70.0 -> 1.71.0
Switch libstd-rs to use the dummy `sysroot` crate which represents the
standard library crates. Target getrandom-open64.patch at 0.2.8 (merged
for 0.2.9). Drop bootstrap_fail.patch (backport merged).

https://blog.rust-lang.org/2023/07/13/Rust-1.71.0.html

(From OE-Core rev: c3eba94ee44adcd3a0aa61f6b087c15c02e4697f)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:42 +00:00
Yash Shinde
7a20381430 rust: Disable rust oe-selftest
After rust is upgraded to 1.71 and later versions, the rust oe-selftest gives
build errors due to unstable nightly options(see the error mentioned below). Thus, disable the test suite
until the issue is fixed

error: the option `Z` is only accepted on the nightly compiler
thread 'main' panicked at 'failed to gather the target spec for x86_64-poky-linux-gnu', synthetic_targets.rs:66:9

Following issues are created in Yocto bugzilla and rust upstream to track this issue-

https://bugzilla.yoctoproject.org/show_bug.cgi?id=15275
https://github.com/rust-lang/rust/issues/115642
https://users.rust-lang.org/t/does-rust-test-suite-supports-nightly-options-during-bootstrapping-in-rust/103108
https://users.rust-lang.org/t/unable-to-read-target-specs-when-rust-1-73-is-bootstrapped-in-yocto-poky/102959

(From OE-Core rev: fa2d3cda8f7f932c0ed5c534c4bc820af2761cd5)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:42 +00:00
Alexander Lussier-Cullen
dc608a5bbe bitbake: bitbake: toaster: add functional testing toaster error details
Functional tests can sometimes fail to initialize toaster.
Most often this is due to a conflict on port 8000.
Add command information about whichever other process is running on
that port to better describe the initialization failure.

(Bitbake rev: da7f91d6dbe8703fb12d58ec95f077349d0005c8)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:18 +00:00
Marlon Rodriguez Garcia
799c131d92 bitbake: toaster: remove test and update setup to avoid rebuilding image
Update build test to fix setUp, by including the built, the system was rebuilding the image on every test, causing the database to lock
Delete test for unique order, this test was the only test using the self.built element and breaking the system.

(Bitbake rev: 9f1ad015051d4a4b363787c4a1f2b943d55eb8cb)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:18 +00:00
Alassane Yattara
8a7dffc278 bitbake: toaster/test: fix Copyright
(Bitbake rev: 4967c3f3b3c5971e9ac65cb833eb8617e8c3445c)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:49:18 +00:00
Julien Stephan
5d6a41b265 oeqa/selftest/recipetool: fix metadata corruption on meta layer
[YOCTO #15314]

test_recipetool_appendsrcfile_update_recipe_basic is using base-files as
test recipe but modifies it directly which can corrupt metadata for other
tests relying on this recipe.

So use mtd-utils-selftest as test recipe from meta-selftest to avoid
this kind of issues

(From OE-Core rev: bf5e6c1b6ceca5a2eda30359d5e5e330278a97e1)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Julien Stephan
94c4d9e35f oeqa/selftest/recipetool: remove left over from development
Remove leftover code needed for development that was unintentionally
committed

(From OE-Core rev: b9a11e6495a27164d095673915edddb2474fdbd7)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Robert Yang
bb0566eafd archiver.bbclass: Improve work-shared checking
There are other recipes except the listed ones which use work-shared, improve
the checking to make other recipes such as llvm-project-source work with
do_ar_patched.

(From OE-Core rev: 5fbb4ca8da4f4f1ea426275c45634802dcb5a575)

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>
2023-12-13 11:34:27 +00:00
Robert Yang
b3f6a6d87d nfs-utils: Upgrade 2.6.3 -> 2.6.4
* Remove backported patch 0001-configure.ac-libevent-and-libsqlite3-checked-when-nf.patch.
* Add 0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch to fix build with musl

(From OE-Core rev: ff416e9fd6a1a65cf59ecd662613581b6190e05e)

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>
2023-12-13 11:34:27 +00:00
Ross Burton
7cf0c30096 go: set vendor in CVE_PRODUCT
It's not uncommon for specific third party modules to use "go" as the
product[1]. However, the canonical CPE for the official Go
language/runtime is always golang:go[2], so use that explicitly.

[1] e.g. https://nvd.nist.gov/vuln/detail/CVE-2023-49292
[2] e.g. https://nvd.nist.gov/vuln/detail/CVE-2023-39320

(From OE-Core rev: fc3e9cce9e1a5aa5dc9a5ad4abdd4eb61f868d37)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Julien Stephan
f32178a246 oeqa/selftest/recipetool: add back checksum checks on pypi tests
recipetool pypi plugin was originally clobbering SRC_URI checksums.

Now it doesn't do this anymore:
78ef0313ee - recipetool: pypi: do not clobber SRC_URI checksums
so add back the checksum checks on pypi tests.

Also this commit restrict the checksums:
45d2f8d4bc - recipetool: create: Only include the expected SRC_URI checksums
so add only the needed ones.

(From OE-Core rev: 86164f770032bb66d4497c4e3e7591b7246ac2d9)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Khem Raj
c39adf61d3 opkg: Use own version of portable basename function
Fixes build with upcoming musl release.

(From OE-Core rev: f76d44192919c0b9a2f66ba93190322fe5bcb3ed)

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>
2023-12-13 11:34:27 +00:00
Dhairya Nagodra
0ce61d9b8b cve-update-nvd2-native: increase the delay between subsequent request failures
Sometimes NVD servers are unstable and return too many errors.
There is an option to have higher fetch attempts to increase the chances
of successfully fetching the CVE data.

Additionally, it also makes sense to progressively increase the delay
after a failed request to an already unstable or busy server.
The increase in delay is reset after every successful request and
the maximum delay is limited to 30 seconds.

Also, the logs are improved to give more clarity.

(From OE-Core rev: 7101d654635b707e56b0dbae8c2146b312d211ea)

Signed-off-by: Dhairya Nagodra <dnagodra@cisco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Dhairya Nagodra
ef371d1cb3 cve-update-nvd2-native: faster requests with API keys
As per NVD, the public rate limit is 5 requests in 30s (6s delay).
Using an API key increases the limit to 50 requests in 30s (0.6s delay).
However, NVD still recommends sleeping for several seconds so that the
other legitimate requests are serviced without denial or interruption.
Keeping the default sleep at 6 seconds and 2 seconds with an API key.

For failures, the wait time is unchanged (6 seconds).

Reference: https://nvd.nist.gov/developers/start-here#RateLimits

(From OE-Core rev: 5c32e2941d1dc3d04a799a1b7cbd275c1ccc9e79)

Signed-off-by: Dhairya Nagodra <dnagodra@cisco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Khem Raj
bebebac37d attr: Fix build with latest musl
Include libgen.h to get basename() signature

(From OE-Core rev: bc05ad35c02ac63b6c5428111aec3f455b17d75f)

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>
2023-12-13 11:34:27 +00:00
Khem Raj
ad645dc8b2 sysvinit: Include libgen.h for basename API
This fixes build with latest musl which drops basename declaration API from string.h

(From OE-Core rev: 63732c7accf802aab106a85d7d3852a689d9beaf)

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>
2023-12-13 11:34:27 +00:00
Khem Raj
86a377ebe7 util-linux: Fix build with latest musl
Musl has removed basename declaration in string.h which exposes this
error.

(From OE-Core rev: c9ac0d6136bfb126c022d13fcafb94f8ee16052e)

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>
2023-12-13 11:34:27 +00:00
Khem Raj
52ec79a6d3 elfutils: Use own basename API implementation
This helps in building it for musl libc after this change [1]

[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7

(From OE-Core rev: ce0a4084fcb1f5da2c3210f681534cc4c4485589)

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>
2023-12-13 11:34:27 +00:00
Khem Raj
b8bbd1ca93 kmod: Fix build with latest musl
implement glibc compatible basename() funciton for portability

(From OE-Core rev: 3a49ef1155d210fc9adeaed2d35df48fc29ba7f3)

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>
2023-12-13 11:34:27 +00:00
Ross Burton
b9eeb3b386 qemurunner: remove unused import
Removes unused logging import

(From OE-Core rev: 1f21509a2fadb66888589e9946b34dddf5becc72)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Ross Burton
1d19f6c527 tcl: skip timing-dependent tests in run-ptest
There are several tests in the test suite which are very dependent on
timing and fail on a loaded host system, so skip them.

[ YOCTO #14825 #14882 #15081 ]

(From OE-Core rev: 68beb4f4b5a0bea5d431decddf7656f18ac7a04a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Daniel Ammann
01e8455768 base: Unpack .7z files with p7zip
(From OE-Core rev: b129a45288ce465888b609e463cf94538de22a3c)

Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Tim Orling
2d7cea74d7 python3-setuptools-rust: BBCLASSEXTEND + nativesdk
We would like to build python3-maturin for nativesdk use
and nativesdk-python3-setuptools-rust is a dependency.

(From OE-Core rev: 193e467cdaad9d2b0ee3dddecbe6631c7244fbbe)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Zang Ruochen
a931742677 musl: add typedefs for Elf64_Relr and Elf32_Relr
The absence of this typedef causes elfutils to report the following error:
/usr/include/gelf.h:86:9: error: unknown type name 'Elf64_Relr'

https://git.musl-libc.org/cgit/musl/commit/?id=6be76895f6863100a311d474a42abdbb6466189d

(From OE-Core rev: 161bb7923bed67c91f45e8383b5a487b6107e431)

Signed-off-by: Zang Ruochen <zangruochen@loongson.cn>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13 11:34:27 +00:00
Alexander Lussier-Cullen
effe2498eb bitbake: toaster: Add verbose printout for missing chrome(driver) dependencies
If the chrome driver binary is missing dependencies, it was near impossible
to work out which ones from just the logs. Add code to help debug things
if this happens by including the ldd output.

(Bitbake rev: 0ffe5fccbb7db5aca5c409fe00be2be69a6e37d9)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-12 15:58:57 +00:00
Marlon Rodriguez Garcia
df5c8d6471 bitbake: toaster: Added new feature to import eventlogs from command line into toaster using replay functionality
Added a new button on the base template to access a new template.
Added a model register the information on the builds and generate access links
Added a form to include the option to load specific files
Added jquery and ajax functions to block screen and redirect to build page when import eventlogs is trigger
Added a new button on landing page linked to import build page, and set min-height of buttons in landing page for uniformity
Removed test assertion to check command line build in content, because new button contains text
Updated toaster_eventreplay to use library
Fix test in test_layerdetails_page
Rebased from master

This feature uses the value from the variable BB_DEFAULT_EVENTLOG to read the files created by bitbake
Exclude listing of files that don't contain the allvariables definitions used to replay builds
This part of the feature should be revisited. Over a long period of time, the BB_DEFAULT_EVENTLOG
will exponentially increase the size of the log file and cause bottlenecks when importing.

(Bitbake rev: ab96cafe03d8bab33c1de09602cc62bd6974f157)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-12 15:58:57 +00:00
Richard Purdie
4bb222e0d7 useradd: Fix useradd do_populate_sysroot dependency bug
If a task is adde which has a dependency on the do_populate_sysroot task of
the recipe, it will cause it to be installed into the sysroot (similar to
do_addto_recipe_sysroot). This fails since the postinst script is an overlapping
file:

Exception: FileExistsError: [Errno 17] File exists:
'tmp/sysroots-components/all/useraddbadtask/usr/bin/postinst-useradd-useraddbadtask'
  ->
'tmp/work/all-poky-linux/useraddbadtask/1.0/recipe-sysroot/usr/bin/postinst-useradd-useraddbadtask'

The copy written out at do_prepare_recipe_sysroot time is just for debug so
rename it, meaning there are no longer overlapping files and the installation
can be successful, removing the error.

[YCOTO #14961]

With the bug fixed, enable the test.

(From OE-Core rev: 564339afb73fc52a66c1a08437587cad1c4d46e7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-10 09:24:01 +00:00
Pavel Zhukov
61805f6d60 oeqa/selftest/bbtests: Add test for unexpanded variables in the dirname
Regression test for [Yocto #15255]

(From OE-Core rev: 4c31cc114f2cf13c11b7ffd60db0eda1b63cc27b)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Alex Kiernan
6543d3c5e9 cargo: Add CARGO_LOCK_PATH for path to Cargo.lock
When building a workspace enabled project, the Cargo.lock is found at
the root of the project, not alongside the Cargo.toml. Expose
CARGO_LOCK_PATH so it can be explicitly configured.

(From OE-Core rev: 30159f88a97c73d234f69c5800ba2adb0e26ad44)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Alex Kiernan
dddfe1e3f4 rust: cargo: Convert single-valued variables to weak defaults
All of these variables are single-valued, so we can use weak-defaults
for them and only see the final assignment after parsing.

(From OE-Core rev: 3221e82a35a149fdf38fe66dcd5de758ac1b9185)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Alex Kiernan
43df94f7af cargo: Move CARGO_MANIFEST_PATH/CARGO_SRC_DIR to cargo_common
cargo_common_do_configure uses CARGO_MANIFEST_PATH (which depends on
CARGO_SRC_DIR), but their definition was in cargo.bbclass.

(From OE-Core rev: 740374a13ad5359767b421666decf50c158ea0df)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Archana Polampalli
db73316fea bluez5: fix CVE-2023-45866
Bluetooth HID Hosts in BlueZ may permit an unauthenticated Peripheral role
HID Device to initiate and establish an encrypted connection, and accept HID
keyboard reports,potentially permitting injection of HID messages when no user
interaction has occurred in the Central role to authorize such access. An example
affected package is bluez 5.64-0ubuntu1 in Ubuntu 22.04LTS. NOTE: in some cases,
a CVE-2020-0556 mitigation would have already addressed this Bluetooth HID Hosts issue.

References:
https://nvd.nist.gov/vuln/detail/CVE-2023-45866

Upstream patches:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/profiles/input?id=25a471a83e02e1effb15d5a488b3f0085eaeb675

(From OE-Core rev: ef93aa6a815f2732dadf14e2d7e62c15c46b6007)

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Ross Burton
0b4a4952e1 insane: ensure more paths have the workdir removed
When showing paths to the user we don't want to include the whole build
directory.  Passing the package name to package_qa_clean_path strips
this completely.

(From OE-Core rev: 7f1a862d2a432f216e37bf63648bef787422a43d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Ross Burton
c2f44a6e97 images: remove redundant IMAGE_BASENAME assignments
core-image-tiny-initramfs and core-image-testcontroller-initramfs just
repeat PN, which is the default value.

core-image-minimal-initramfs adds MLPREFIX, but that's also covered by
PN:

$ bitbake-getvar -r lib32-core-image-minimal-initramfs IMAGE_BASENAME
IMAGE_BASENAME="lib32-core-image-minimal-initramfs"

As these assignments are all redundant, remove them.

(From OE-Core rev: 68c2c9e9383fcd60434b101e7b7d7e811369dc0c)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Tim Orling
78ef0313ee recipetool: pypi: do not clobber SRC_URI checksums
The pypi change:
"85a2a6f68af recipetool: create_buildsys_python: add pypi support"
deleted all the SRC_URI variables, including the SRC_URI checksums.
These are not generated by the pypi.bbclass (how could they be trusted?)

Without the checksum(s), we are vulnerable to a man-in-the-middle attack
and zero checks on the validity of the downloaded tarball from pypi.org.

Fix by only setting S and SRC_URI to None.

(From OE-Core rev: 560181a52111569f7bc57b09139b42510e0d0325)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Alexander Kanavin
95c187e54e sstatesig/find_siginfo: special-case gcc-source when looking in sstate caches
This is already done for local stamps just above, and will allow enabling
the full selftest that compares gcc-source signatures via printdiff
(that is, both local stamp and sstate variants).

(From OE-Core rev: 29775b5ecfc8d811293962f050fcfc3b3ad7efde)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Alexander Kanavin
3befa37ae7 selftest/sstatetests: do not delete custom $TMPDIRs under build-st when testing printdiff
If the tests fail, these contain useful artefacts, and so should
be kept. If the test succeeds the whole build-st/ is deleted.

Also, give them unique names, as otherwise the tests would
step on each other.

(From OE-Core rev: 92e33a19fbcc6c59199fcd8b17ad8ca29ebcd4fd)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Alexander Kanavin
97a7fe536d selftest/sstatetest: print output from bitbake with actual newlines, not \n
Assert*() functions from python unittest would join the multiline output with \n, making it
almost unreadable.

(From OE-Core rev: 1b01a71e77f70af77887c27be21265ac61f2c9a7)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Richard Purdie
b3d1a7297f pseudo: Update to pull in syncfs probe fix
Pulls in the changes:

Eilís 'pidge' Ní Fhlannagáin (1):
      subports: Add _GNU_SOURCE for syncfs probe

Richard Purdie (1):
      SECURITY.md: Add file

Wu Zhenyu (1):
      pseudo.1: Fix a typo

(From OE-Core rev: 9aab5be508c0dd88a4d9767f65ba5b6fcd5fb9dd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 19:17:11 +00:00
Richard Purdie
b32dbb3747 bitbake: toaster/tests/builds: Add BB_HASHSERVE passthrough
As well as BB_HASHSERVE_UPSTREAM, ensure BB_HASHSERVE is passed through
to allow sstate resuse on the autobuilder.

(Bitbake rev: f18a647d998670cc37a8832cb36ffe03da43d1c5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 10:04:12 +00:00
Richard Purdie
4d14176aa6 bitbake: toaster: Update to use qemux86-64 machine by default
Toaster currently uses qemux86 as the default, update to match the
local.conf default changes, i.e. qemux86-64.

(Bitbake rev: 27fbba9ee15994a69284a7f8579c22d85e0ce863)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-09 10:04:12 +00:00
Eilís 'pidge' Ní Fhlannagáin
e70f491b7e usergrouptests.py: Add test for switching between static-ids
This test is related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=12107

At the moment it doesn't seem to be able to actually replicate this
issue in the bug, which tells me it's likely fixed.

(From OE-Core rev: 2b3fa9981252d41d3f23592715657fe810f834ad)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:51:10 +00:00
Eilís 'pidge' Ní Fhlannagáin
e3ce7ce215 useradd: Add testcase for bugzilla issue (currently disabled)
Add a disabled a test for 14961 - addtask between do_populate_sysroot and do_package breaks useradd class.
A fix is still needed for this.

(From OE-Core rev: b6af5788f7f8fb1e9d8ad14bd12168ff9d6baa21)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:51:10 +00:00
Eilís 'pidge' Ní Fhlannagáin
ecef665062 useradd: Fix issues with useradd dependencies
If recipe A requires the useradd actions of recipe B we need to
ensure that recipe B is part of the recipe A dependancy chain. In
order to do that, we introduce USERADD_DEPENDS. This makes sure
that the do_populate_sysroot_setscene of recipe B exists for
recipe A in case of a missing TMPDIR. This requires changes made in
runqueue.py by RP.

This commit along with the runqueue fixes effects:
Bug 13419 - recipes that add users to groups cannot rely on other recipes creating those groups (when population from sstate happens)
Bug 13904 - do_prepare_recipe_sysroot: postinst-useradd-* does not run in order of dependency and sometimes fails
Bug 13279 - Make sure users/groups exist for package_write_* tasks
Bug 15084 - For some reason using of same user in two recipes does not work properly

I've included the start of self-testing for useradd by adding tests for
13419 (which ends up testing 13904, 13279, 15084 by virtue of them all
      having the same root cause)

(From OE-Core rev: b47f2352376bd16b7e7087b4dab143403e67e094)

Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:51:10 +00:00
Pavel Zhukov
d14eb12deb bitbake: utils: Do not create directories with ${ in the name
In some cases ${ may not be expanded in the WORKDIR (one of the cases is
undefined variable) and causes cryptic failures [1]. Guard this by
erroring out if directory name contains ${

Fixes: [Yocto #15255]

[1]
ERROR: x-native-1.0+${SRCPV}-r0 do_deploy_source_date_epoch: 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:sstate_hardcode_path(d)
     0003:
File: '/home/mischief/src/poky/meta/classes-global/sstate.bbclass', lineno: 654, function: sstate_hardcode_path
     0650:    bb.note("Removing hardcoded paths from sstate package: '%s'" % (sstate_hardcode_cmd))
     0651:    subprocess.check_output(sstate_hardcode_cmd, shell=True, cwd=sstate_builddir)
     0652:
     0653:        # If the fixmefn is empty, remove it..
 *** 0654:    if os.stat(fixmefn).st_size == 0:
     0655:        os.remove(fixmefn)
     0656:    else:
     0657:        bb.note("Replacing absolute paths in fixmepath file: '%s'" % (sstate_filelist_relative_cmd))
     0658:        subprocess.check_output(sstate_filelist_relative_cmd, shell=True)
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/mischief/src/poky/build/tmp/work/core2-64-poky-linux/x-native/1.0+${SRCPV}-r0/sstate-build-deploy_source_date_epoch/fixmepath'

(Bitbake rev: e91c256ec076e70cf8a18e369fe7862e50618c48)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Alassane Yattara
7fefb85888 bitbake: toaster/tests: bug-fix tests writing files into /tmp on the autobuilders
- Use build directory instead of /tmp
- Better handle delay between driver actions

(Bitbake rev: 234b125c11e4cca015e4d54fbddbfd3d276b88f6)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Alassane Yattara
6d91225651 bitbake: toaster/tests: Fixes warnings in autobuilder
../bitbake/lib/toaster/tests/functional/functional_helpers.py:66
  /home/pokybuild/yocto-worker/toaster/build/bitbake/lib/toaster/tests/functional/functional_helpers.py:66: DeprecationWarning: invalid escape sequence '\s'
    project_url=re.search("(projectPageUrl\s:\s\")(.*)(\",)",rc)

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/pokybuild/yocto-worker/toaster/build/bitbake/lib/toaster/tests/commands/test_runbuilds.py", line 39, in run
    os.kill(int(pid), signal.SIGTERM)
ProcessLookupError: [Errno 3] No such process

(Bitbake rev: 5a4732d5e4437cfc366c6b034868903ad6f0088c)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Alassane Yattara
23d3e2c718 bitbake: toaster/tests: Bug fixes, functional tests dependent on each other
refactor test_create_project and test_project_page to remove their dependencies

(Bitbake rev: 54f7c0bb6ff435c4936c3422532aa071bd5b66e8)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Alassane Yattara
d5a6e3b546 bitbake: toaster/tests: Refactorize tests/functional
- Split testcases from test_project_page_tab_config into tow files
- Added new testcases in test_project_config
    - Test changing distro variable
    - Test setting IMAGE_INSTALL:append variable
    - Test setting PACKAGE_CLASSES variable
    - Test creating new bitbake variable

(Bitbake rev: 649218c648b79a89b0e91aa80d8c9bf8fa2de645)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Alassane Yattara
49128ef8ba bitbake: toaster/tests: Added functional/utils, contains useful methods using by functional tests
(Bitbake rev: c39a0cceedce324c311d00634c5329fbec1ba6d4)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Alassane Yattara
f6cc0b360f bitbake: toaster/tests: Ensure to kill toaster process create for tests functional
Toaster background task runbuilds continu running when even if tests is
done
(Bitbake rev: e885863dffebab77f501a58df172926aafec5623)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Marlon Rodriguez Garcia
ad2f5a359e bitbake: toaster/tests: Update build test
Updated build tests in toaster, added SSTATE_MIRROR to package build, changed build directory and update test order
This builds include the core-minimal-image, on the test enviroment a smaller package was use to run the test for time purposes

(Bitbake rev: af31116f0017912fc5a58a5976c814b6b326985f)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:17:42 +00:00
Richard Purdie
1b14962c3f oeqa/runtime/systemd: Ensure test runs only on systemd images
When enabled in DISTRO_FEATURES the test may run on a system without systemd.
Fix this.

(From OE-Core rev: c2b473390dec0f5132d5b4bff6d3c35214eb898b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:09:59 +00:00
Richard Purdie
f73e52dd71 sstate: Remove unneeded code from setscene_depvalid() related to useradd
With recent changes to runqueue in bitbake, this horrible hack is no longer needed
and we can drop it.

(From OE-Core rev: f7f50b6013f7b636fe46448b1cbe1473de891527)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:09:34 +00:00
Richard Purdie
fcd9f34dcc sanity.conf: Require bitbake 2.6.1 for recent runqueue change
Require the presence of a recent change in bitbake 2.6.1 for runqueue
setscene dependency handling improvements.

(From OE-Core rev: a63bd8d5aa2cdcbfa899b1cfb8acad06dee44752)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 17:09:34 +00:00
Alexandre Belloni
e1931b5e0e oeqa/selftest/recipetool: stop looking for md5sum
The md5sum is no longer generated by recipetool, stop expecting it.

(From OE-Core rev: d9b5f6a2eefa68fcecfca20b293d593f5cd53b7c)

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Alex Kiernan
a8f959a8d3 cargo: Rename MANIFEST_PATH -> CARGO_MANIFEST_PATH
This variable is a piece of recipe configurable interface, scope it with
the class name to make that clear.

(From OE-Core rev: 0101de25832fbed3d08cd522512784133c628cad)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
9a5c1456ba devtool: modify: Make --no-extract work again
This avoids the following error when using --no-extract, introduced in
commit 900129cbdf (devtool: add support for git submodules):

  Traceback (most recent call last):
    File ".../scripts/devtool", line 349, in <module>
      ret = main()
    File ".../scripts/devtool", line 336, in main
      ret = args.func(args, config, basepath, workspace)
    File ".../scripts/lib/devtool/standard.py", line 995, in modify
      for commit in commits[name]:
  KeyError: '.'

(From OE-Core rev: 6a44fb10ef4b90ee24f470362007d56183abc593)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
dd2fb8f00a devtool: upgrade: Update all existing checksums for the SRC_URI
In addition to updating the sha256sum and removing the md5sum, update
all other existing checksums. If the only existing checksum is md5sum,
then replace it with the default expected checksums (currently only
sha256sum).

(From OE-Core rev: 8ea8827ee49b7f0443b1c4bd47d1344a689d73a3)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
45d2f8d4bc recipetool: create: Only include the expected SRC_URI checksums
Rather than including all SRC_URI checksums, include the ones that are
expected. These are the same as are output if no checksums are included
when building the recipe.

(From OE-Core rev: c2af83eb5e8573480179b6c0bcce50606b547099)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
decf6e66df recipetool: create: Improve identification of licenses
Rather than having a static list of crunched MD5 checksums for some of
the most common licenses, calculate it for all common licenses. This
should improve the identification of license text variantions.

(From OE-Core rev: 377f9513dc56e9b8e5f5813c1535be0206756949)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
3ef9ea88f1 lib/oe/recipeutils: Avoid wrapping any SRC_URI[sha*sum] variables
Before, a variable such as SRC_URI[sha512sum] would end up as:

SRC_URI[sha512sum] = "45ff3abce4dab24a8090409e6d7bb26afa7fa7812a51e067 \
28c2aa47d5b4de610d97ba4609cf13d9173087bd909fdf377235eee988a6fdcf52abb7 \
0341c40b5b"

when updated by patch_recipe_lines().

(From OE-Core rev: a67e2feed1420739504d2a59d018dff7e6e17e04)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
7481f8e916 oeqa/selftest/recipetool: Make test_recipetool_load_plugin more resilient
* Avoid trying to write to read-only directories and file systems.
* Support symbolic links in BBPATH.

(From OE-Core rev: 9a8b621c4d26ff349de88658e6ea21aee6ba6767)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
99bc21953a oeqa/selftest/devtool: Make test_devtool_load_plugin more resilient
* Avoid trying to write to read-only directories and file systems.
* Support symbolic links in BBPATH.

(From OE-Core rev: eba30ce546cda0ae4c3e433b6e79dbab0627157a)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
389ef0d9e4 oeqa/selftest/devtool: Avoid global Git hooks when amending a patch
To avoid potential problems due to global Git hooks, add --no-verify to
a `git commit --amend` command.

(From OE-Core rev: 802359c0ec6db0b3a4103f8ad8bc9bed67884555)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Peter Kjellerstedt
331f78ecc2 oeqa/selftest/devtool: Correct git clone of local repository
If the build environment is setup using `repo`, then poky/.git/object
is a symbolic link rather than a directory. To clone such repositories,
the source path must be prefixed with "file://". This avoids the
following error:

  fatal: failed to start iterator over '.../poky/.git/objects': Not a directory

(From OE-Core rev: 8e3d08cb9274832a346ac3dffa8c9d5f6e93c478)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Jose Quaresma
75b799635d go: update 1.20.11 -> 1.20.12
Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.11..go1.20.12
97c8ff8d53 (tag: go1.20.12, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.12
6446af942e [release-branch.go1.20] net/http: limit chunked data overhead
77397ffcb2 [release-branch.go1.20] crypto/rand,runtime: revert "switch RtlGenRandom for ProcessPrng"
d77307f855 [release-branch.go1.20] cmd/compile: fix findIndVar so it does not match disjointed loop headers
1bd76576fe [release-branch.go1.20] crypto/rand,runtime: switch RtlGenRandom for ProcessPrng
1b59b017db [release-branch.go1.20] path/filepath: consider \\?\c: as a volume on Windows
46bc33819a [release-branch.go1.20] cmd/go/internal/vcs: error out if the requested repo does not support a secure protocol
e1dc209be8 [release-branch.go1.20] cmd/go/internal/modfetch/codehost: set core.longpaths in Git repos on Windows

[1] https://github.com/golang/go/compare/go1.20.11...go1.20.12

(From OE-Core rev: 8515842b5c503b9a8840675d9cbcfe147d25c1d4)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Jose Quaresma
aadd15d13c go: update 1.20.10 -> 1.20.11
Upgrade to latest 1.20.x release [1]:

$ git log --oneline go1.20.10..go1.20.11
1d0d4b149c (tag: go1.20.11) [release-branch.go1.20] go1.20.11
46fb781685 [release-branch.go1.20] path/filepath: fix various issues in parsing Windows paths
998fdce3ae [release-branch.go1.20] net/http: pull http2 underflow fix from x/net/http2
d48639094b [release-branch.go1.20] cmd/link: split text sections for arm 32-bit
c8fdffb790 [release-branch.go1.20] all: tidy dependency versioning after release

[1] https://github.com/golang/go/compare/go1.20.10...go1.20.11

(From OE-Core rev: 09fb378fb9c60c383f0ac068bbe3692f047aa617)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Massimiliano Minella
38d94c34a1 zstd: fix LICENSE statement
zstd is dual-licensed under BSD _OR_ GPLv2. License wording in the
README for v1.5.5 is misleading, but license headers in the code clearly
state that there is a choice between the two licenses.

(From OE-Core rev: 40f85de590c188c9c3985e64a83efaf06b0b4fbc)

Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Zoltan Boszormenyi
e2165e26db update_gtk_icon_cache: Fix for GTK4-only builds
Try to execute both gtk-update-icon-cache and
gtk4-update-icon-cache after checking whether the
commands are available.

This attempts to match what gtk-icon-cache.bbclass is doing.

This fixes running update_gtk_icon_cache during do_rootfs
for an image that contains only GTK4 related packages.

(From OE-Core rev: 1e01ef59a5864f1261e9c0ca76fcccee2eb7e7f3)

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Hongxu Jia
b44ec49ba0 man-db: 2.11.2 -> 2.12.0
Drop obsolete autoconf-2.73.patch

(From OE-Core rev: 895840f8419791e25ae6f356bd95b00d3c7be30c)

Signed-off-by: Hongxu Jia <hongxu.jia@eng.windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:34 +00:00
Hongxu Jia
5b153cc115 socat: 1.7.4.4 -> 1.8.0.0
1. No chagne on license [1], original md5 is not right because
   beginline=241 does not match

2. Fix two compile and one install failures

[1] https://repo.or.cz/socat.git/blobdiff/c9ff62744f4140418f4edce7e395d1a30e9161b1..2da070164d454971d5c970b5278e645051f0d0f7:/README

(From OE-Core rev: a8cb052a78d0422acb52c402a3836f4ee174ee66)

Signed-off-by: Hongxu Jia <hongxu.jia@eng.windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:33 +00:00
Viswanath Kraleti
36b66553a7 image-uefi.conf: Add EFI_UKI_PATH variable
UEFI bootloader specification says the primary place for UKI images
is the /EFI/Linux/ directory under $boot. Defining a varaible for
the same to reuse in all UEFI-related packages.

(From OE-Core rev: f32a3f55a6602bb71effe28c931ac387f71af640)

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08 16:58:33 +00:00
Ross Burton
7d06e4e30b genericx86: remove redundant assignments
GLIBC_ADDONS was removed from the glibc recipe in 2018 (oe-core 9dc9983).

matchbox-panel-2 uses the ACPI battery by default if the machine has the
'acpi' feature, which genericx86 has.

(From meta-yocto rev: 0e50dbf558fda7595f5cb13667cbe0a01481a9f5)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:56:03 +00:00
Jason Andryuk
fd2c560997 linux-firmware: Create bnx2x subpackage
bnx2x is another broadcom ethernet adapter with its own firmware.  Place
it into its own subpackage.

(From OE-Core rev: 414f71bb692da7ca1899b07ebb689edeb53f8e0d)

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Jason Andryuk
bfae97c50d linux-firmware: Change bnx2 packaging
The bnx2 module uses both the mips and rv2p files, so package them all
together.  Remove -mips from the package name, but add an RPROVIDES for
compatibility.

(From OE-Core rev: 46f2b7b3bebc7efdb4199cdfe386dc16c049d8d7)

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Jason Andryuk
4bfbe2cffb linux-firmware: Package iwlwifi .pnvm files
The iwlwifi uses the .pnvm files for newer AX210+ cards, so package them
into the iwlwifi-misc subpackage.

(From OE-Core rev: 056c4de1422ff06745c5669f871a1bb6f5390d01)

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Khem Raj
2b32e0fd6e tiff: Backport fixes for CVE-2023-6277
(From OE-Core rev: d115e17ad7775cf5bbfd402e98e61f362ac96efa)

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>
2023-12-06 22:55:50 +00:00
Etienne Cordonnier
959b1f7de4 gdb/systemd: enable minidebuginfo support conditionally
Enabling minidebuginfo is not useful if gdb and systemd-coredump
are unable to parse it.

In order to parse it, gdb needs xz support. Systemd needs coredump enabled, as
well as elfutil enabled as well (systemd-coredump loads libdw which is part of elfutils using dlopen).

(From OE-Core rev: 0d2df803bebfd7e832ab7da54c4dacaaeeb424a9)

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>
2023-12-06 22:55:50 +00:00
Ross Burton
72342e8eea linux-yocto: update CVE exclusions
(From OE-Core rev: 34835847442c15ebe12970bc31b6a949e66da48e)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
1cd02effb0 linux-yocto/6.1: update to v6.1.65
Updating  to the latest korg -stable release that comprises
the following commits:

    c6114c845984 Linux 6.1.65
    66ecd1cd8b0c io_uring: fix off-by one bvec index
    812171018e47 USB: dwc3: qcom: fix wakeup after probe deferral
    72ef87bb8e5d USB: dwc3: qcom: fix software node leak on probe errors
    fc7b2fe26769 usb: dwc3: set the dma max_seg_size
    92b9eca53de8 usb: dwc3: Fix default mode initialization
    451c5a61722d USB: dwc2: write HCINT with INTMASK applied
    d9be7a129778 usb: typec: tcpm: Skip hard reset when in error recovery
    c15cb712da41 USB: serial: option: don't claim interface 4 for ZTE MF290
    5a657b34fe83 USB: serial: option: fix FM101R-GL defines
    4fccb016ffcd USB: serial: option: add Fibocom L7xx modules
    f70b0b6fd8c6 usb: cdnsp: Fix deadlock issue during using NCM gadget
    f9ba5dd0d9c9 bcache: fixup lock c->root error
    c736af32a82b bcache: fixup init dirty data errors
    c37aca3dd513 bcache: prevent potential division by zero error
    366f3648f10e bcache: check return value from btree_node_alloc_replacement()
    4241b51f3ef8 dm-delay: fix a race between delay_presuspend and delay_bio
    c4d395751079 hv_netvsc: Mark VF as slave before exposing it to user-mode
    5dd83db613be hv_netvsc: Fix race of register_netdevice_notifier and VF register
    e8ef65c17460 hv_netvsc: fix race of netvsc and VF register_netdevice
    043c8e0306e2 USB: serial: option: add Luat Air72*U series products
    dc96fde8fcb2 s390/dasd: protect device queue against concurrent access
    b964a0a3910b io_uring/fs: consider link->flags when getting path for LINKAT
    12f497158900 bcache: fixup multi-threaded bch_sectors_dirty_init() wake-up race
    fa9bacc1d5d6 md: fix bi_status reporting in md_end_clone_io
    415f644b1f59 bcache: replace a mistaken IS_ERR() by IS_ERR_OR_NULL() in btree_gc_coalesce()
    354d162ba527 swiotlb-xen: provide the "max_mapping_size" method
    05591c0d1761 ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CVA
    1ed904f424d4 arm64: dts: imx8mn-var-som: add 20ms delay to ethernet regulator enable
    5d9ddbf4b5e7 NFSD: Fix checksum mismatches in the duplicate reply cache
    b597f3c85d2e NFSD: Fix "start of NFS reply" pointer passed to nfsd_cache_update()
    d7eb37615b93 ext4: make sure allocate pending entry not fail
    8384d8c5cc39 ext4: fix slab-use-after-free in ext4_es_insert_extent()
    9164978bce49 ext4: using nofail preallocation in ext4_es_insert_extent()
    614b383d0158 ext4: using nofail preallocation in ext4_es_insert_delayed_block()
    51cef2a5c6f9 ext4: using nofail preallocation in ext4_es_remove_extent()
    f1c236936674 ext4: use pre-allocated es in __es_remove_extent()
    ce581f8631a4 ext4: use pre-allocated es in __es_insert_extent()
    594a5f00e50c ext4: factor out __es_alloc_extent() and __es_free_extent()
    9381ff651224 ext4: add a new helper to check if es must be kept
    3a14f4fd7bda media: qcom: camss: Fix genpd cleanup
    df5bb7b408cc media: qcom: camss: Fix V4L2 async notifier error path
    fdfcdf969719 media: qcom: Initialise V4L2 async notifier later
    153a4396c304 media: camss: Convert to platform remove callback returning void
    4ae3c85e7369 media: camss: Split power domain management
    8bdcaa7c03f6 MIPS: KVM: Fix a build warning about variable set but not used
    e9c3d6b09c21 cifs: fix leak of iface for primary channel
    b24d42b52bd1 cifs: account for primary channel in the interface list
    548893404c44 cifs: distribute channels across interfaces based on speed
    5607a415d49c cifs: print last update time for interface list
    f4dff371119b smb3: allow dumping session and tcon id to improve stats analysis and debugging
    fbc666a9ac5a cifs: minor cleanup of some headers
    c2d336140a10 lockdep: Fix block chain corruption
    e9611e840431 USB: dwc3: qcom: fix ACPI platform device leak
    eaa315288b32 USB: dwc3: qcom: fix resource leaks on probe deferral
    0e485f12ebb7 nvmet: nul-terminate the NQNs passed in the connect command
    573fa2b70808 i40e: Fix adding unsupported cloud filters
    f7f3e69cedb9 i40e: use ERR_PTR error print in i40e messages
    27f5dd22af56 arm64: mm: Fix "rodata=on" when CONFIG_RODATA_FULL_DEFAULT_ENABLED=y
    558b8ee45f7f mm,kfence: decouple kfence from page granularity mapping judgement
    48b3ee0134db afs: Fix file locking on R/O volumes to operate in local mode
    f9cf17836ec3 afs: Return ENOENT if no cell DNS record can be found
    8025fd0706c8 net: axienet: Fix check for partial TX checksum
    3481ff38118c amd-xgbe: propagate the correct speed and duplex status
    73d114dd5703 amd-xgbe: handle the corner-case during tx completion
    4bcc07bb360e amd-xgbe: handle corner-case during sfp hotplug
    76b088b63958 octeontx2-pf: Fix ntuple rule creation to direct packet to VF with higher Rx queue than its PF
    97703eb199a3 arm/xen: fix xen_vcpu_info allocation alignment
    94a0ae698b4d net/smc: avoid data corruption caused by decline
    a573b334be26 net: usb: ax88179_178a: fix failed operations during ax88179_reset
    e784313dd00a ipv4: Correct/silence an endian warning in __ip_do_redirect
    377c4c7e97c6 HID: fix HID device resource race between HID core and debugging support
    8e9a64996528 drm/rockchip: vop: Fix color for RGB888/BGR888 format on VOP full
    84a6e475451d drm/i915: do not clean GT table on error path
    84c9d30dbc0e ata: pata_isapnp: Add missing error check for devm_ioport_map()
    cfbdb367277e octeontx2-pf: Fix memory leak during interface down
    4206f46d3f04 wireguard: use DEV_STATS_INC()
    7dfa5147444f drm/panel: simple: Fix Innolux G101ICE-L01 timings
    7f5eae8585c8 drm/panel: simple: Fix Innolux G101ICE-L01 bus flags
    39f11604e55d drm/panel: auo,b101uan08.3: Fine tune the panel power sequence
    84b232a9c81b drm/panel: boe-tv101wum-nl6: Fine tune the panel power sequence
    d2b3bc8c7f63 afs: Make error on cell lookup failure consistent with OpenAFS
    790ea5bc4022 afs: Fix afs_server_list to be cleaned up with RCU
    6ac30d748bb0 Linux 6.1.64
    04ff8a5107a5 RISC-V: drop error print from riscv_hartid_to_cpuid()
    9e1e0887ea21 cxl/port: Fix NULL pointer access in devm_cxl_add_port()
    c88cfbb18a5e mmc: sdhci-pci-gli: GL9755: Mask the replay timer timeout of AER
    2132941b453f Input: xpad - add VID for Turtle Beach controllers
    2fa74d29fc18 tracing: Have trace_event_file have ref counters
    6460508dce00 powerpc/powernv: Fix fortify source warnings in opal-prd.c
    4c55be085534 drm/amd/display: Change the DMCUB mailbox memory location from FB to inbox
    68d774eb10e2 drm/amd/display: Enable fast plane updates on DCN3.2 and above
    fb5c134ca589 drm/amd/display: fix a NULL pointer dereference in amdgpu_dm_i2c_xfer()
    51ffa1a3792e drm/amdgpu: lower CS errors to debug severity
    c52aac5884bc drm/amdgpu: fix error handling in amdgpu_bo_list_get()
    2ab6c1237bd4 drm/amdgpu: don't use ATRM for external devices
    965dce07a4fc drm/amdgpu: don't use pci_is_thunderbolt_attached()
    8e54a91d3e66 drm/amdgpu/smu13: drop compute workload workaround
    454d0cdd7c12 drm/amd/pm: Fix error of MACO flag setting code
    07e94f204f38 drm/i915: Fix potential spectre vulnerability
    9457636a4926 drm/i915: Bump GLK CDCLK frequency when driving multiple pipes
    e973f40de161 drm/amd/pm: Handle non-terminated overdrive commands.
    dc4542861ec8 ext4: properly sync file size update after O_SYNC direct IO
    e1d0f68bc07f ext4: add missed brelse in update_backups
    1793dc461e5a ext4: remove gdb backup copy for meta bg in setup_new_flex_group_blocks
    80ddcf21e7e0 ext4: correct the start block of counting reserved clusters
    ec4ba3d62f0f ext4: correct return value of ext4_convert_meta_bg
    32b9fb9a67ec ext4: mark buffer new if it is unwritten to avoid stale data exposure
    f0cc1368fafd ext4: correct offset of gdb backup in non meta_bg group to update_backups
    af075d06b34f ext4: apply umask if ACL support is disabled
    e795a56654fd Revert "net: r8169: Disable multicast filter for RTL8168H and RTL8107E"
    eb2f435be2c4 media: qcom: camss: Fix csid-gen2 for test pattern generator
    eeab07ddd020 media: qcom: camss: Fix invalid clock enable bit disjunction
    18a06f2eeb84 media: qcom: camss: Fix missing vfe_lite clocks check
    ddc424aedbd3 media: qcom: camss: Fix VFE-480 vfe_disable_output()
    0f3e5f93fe77 media: qcom: camss: Fix VFE-17x vfe_disable_output()
    04ef31a3e38a media: qcom: camss: Fix vfe_get() error jump
    3166c3af55fe media: qcom: camss: Fix pm_domain_on sequence in probe
    6dcb2605c284 mmc: sdhci-pci-gli: GL9750: Mask the replay timer timeout of AER
    f7164cb0371f r8169: add handling DASH when DASH is disabled
    862565f32494 r8169: fix network lost after resume on DASH systems
    9e9e2107ae36 mptcp: fix setsockopt(IP_TOS) subflow locking
    dba6f08cef19 mptcp: add validity check for sending RM_ADDR
    70ff9b65a728 mptcp: deal with large GSO size
    16fcda24b175 mm: kmem: drop __GFP_NOFAIL when allocating objcg vectors
    a7fd03355027 mm: fix for negative counter: nr_file_hugepages
    2594bdaa16b4 mmc: sdhci-pci-gli: A workaround to allow GL9750 to enter ASPM L1.2
    97fb6013f318 riscv: kprobes: allow writing to x0
    645257ad8d30 riscv: correct pt_level name via pgtable_l5/4_enabled
    fb1b16f04135 riscv: mm: Update the comment of CONFIG_PAGE_OFFSET
    9f74b261e4e2 LoongArch: Mark __percpu functions as always inline
    1bb61fb7908c nfsd: fix file memleak on client_opens_release
    a5d4be493afc dm-verity: don't use blocking calls from tasklets
    002d2473ddec drm/mediatek/dp: fix memory leak on ->get_edid callback error path
    5e9fcba176f9 drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection
    e08232647386 media: ccs: Correctly initialise try compose rectangle
    424fc4638119 media: venus: hfi: add checks to handle capabilities from firmware
    9ebb3c14ec95 media: venus: hfi: fix the check to handle session buffer requirement
    a3e0b55deaf7 media: venus: hfi_parser: Add check to keep the number of codecs within range
    997639c100fa media: sharp: fix sharp encoding
    41c269083c4d media: lirc: drop trailing space from scancode transmit
    526dd7540a09 f2fs: avoid format-overflow warning
    6122b72ce54a f2fs: do not return EFSCORRUPTED, but try to run online repair
    e6fa9ac60fae i2c: i801: fix potential race in i801_block_transaction_byte_by_byte
    f5617a21c71c net: phylink: initialize carrier state at creation
    105d29fa8dba net: dsa: lan9303: consequently nested-lock physical MDIO
    eef592e71ae1 net: ethtool: Fix documentation of ethtool_sprintf()
    57e35d922996 s390/ap: fix AP bus crash on early config change callback invocation
    75d5c85cf402 i2c: designware: Disable TX_EMPTY irq while waiting for block length byte
    ba1a9eef3e53 sbsa_gwdt: Calculate timeout with 64-bit math
    cfcb1e7c17c3 lsm: fix default return value for inode_getsecctx
    7a048a90ac3e lsm: fix default return value for vm_enough_memory
    b3fd9db79e30 Revert "i2c: pxa: move to generic GPIO recovery"
    677fc3780fa4 Revert ncsi: Propagate carrier gain/loss events to the NCSI controller
    31f6ff62dfc0 cxl/region: Fix x1 root-decoder granularity calculations
    683b6a7324c6 tools/testing/cxl: Define a fixed volatile configuration to parse
    8cdc6b8b816d cxl/mem: Move devm_cxl_add_endpoint() from cxl_core to cxl_mem
    8fce427169ec cxl: Unify debug messages when calling devm_cxl_add_port()
    e841a59ac1d8 i3c: master: svc: fix random hot join failure since timeout error
    a807a44189d1 i3c: master: svc: add NACK check after start byte sent
    90db4c1d5eba cxl/region: Do not try to cleanup after cxl_region_setup_targets() fails
    c415f113d90e cxl/region: Move region-position validation to a helper
    008b08ab0773 cxl/region: Cleanup target list on attach error
    93d242f63ed3 cxl/region: Validate region mode vs decoder mode
    3b70d45c7ea8 drm/amd/display: enable dsc_clk even if dsc_pg disabled
    1d1cc275d1d7 Bluetooth: btusb: Add 0bda:b85b for Fn-Link RTL8852BE
    6c6a39080bd2 Bluetooth: btusb: Add RTW8852BE device 13d3:3570 to device tables
    ba9302fd936c bluetooth: Add device 13d3:3571 to device tables
    fc3423d55c86 bluetooth: Add device 0bda:887b to device tables
    f1c7f81e973f Bluetooth: btusb: Add Realtek RTL8852BE support ID 0x0cb8:0xc559
    1f026218f8a3 clk: visconti: Fix undefined behavior bug in struct visconti_pll_provider
    b2a28287209a clk: visconti: remove unused visconti_pll_provider::regmap
    e785584e0a0b cpufreq: stats: Fix buffer overflow detection in trans_stats()
    c2d14682b36d pmdomain: imx: Make imx pgc power domain also set the fwnode
    8bd370cc3cd6 pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enable
    68620ef460df ALSA: hda/realtek: Add quirks for HP Laptops
    4d50004416df ALSA: hda/realtek: Enable Mute LED on HP 255 G10
    4645d3bcd5ff ALSA: hda/realtek - Enable internal speaker of ASUS K6500ZC
    eaa4e4ba7ace ALSA: hda/realtek - Add Dell ALC295 to pin fall back table
    0fcc2cf28f6c ALSA: hda/realtek: Enable Mute LED on HP 255 G8
    fa7c9cc3cb31 ALSA: info: Fix potential deadlock at disconnection
    a0d43e0f7ce4 btrfs: zoned: wait for data BG to be finished on direct IO allocation
    9ad4c7f065bf xfs: recovery should not clear di_flushiter unconditionally
    209379924a85 cifs: do not reset chan_max if multichannel is not supported at mount
    c9569bfd2868 cifs: force interface update before a fresh session setup
    5bdf34ca3242 cifs: reconnect helper should set reconnect for the right channel
    9eb44db68c5b smb: client: fix potential deadlock when releasing mids
    558817597d5f smb: client: fix use-after-free bug in cifs_debug_data_proc_show()
    49d0ff613f4d smb3: fix caching of ctime on setxattr
    34828baf81ef smb3: fix touch -h of symlink
    9d96ac07aee2 smb3: fix creating FIFOs when mounting with "sfu" mount option
    5691e1569569 fs: add ctime accessors infrastructure
    b50ca24c3ec1 xhci: Enable RPM on controllers that support low-power states
    72a90e7eb4a1 parisc/power: Fix power soft-off when running on qemu
    40b6914f4278 parisc/pgtable: Do not drop upper 5 address bits of physical address
    1651b334f1f6 parisc: Prevent booting 64-bit kernels on PA1.x machines
    3ddb2fa5ec1c i3c: master: svc: fix SDA keep low when polling IBIWON timeout happen
    1ea1fb221662 i3c: master: svc: fix check wrong status register in irq handler
    65d9f61324fc i3c: master: svc: fix ibi may not return mandatory data byte
    e32e9cba564e i3c: master: svc: fix wrong data return when IBI happen during start frame
    3a8e03f133c0 i3c: master: svc: fix race condition in ibi work thread
    de6ca501addc i3c: master: cdns: Fix reading status register
    3b93096d29c5 mtd: cfi_cmdset_0001: Byte swap OTP info
    aee642ae995e mm/memory_hotplug: use pfn math in place of direct struct page manipulation
    5a2768b9de0c mm/cma: use nth_page() in place of direct struct page manipulation
    20412ca356e5 s390/cmma: fix detection of DAT pages
    7fc465d2653a dmaengine: stm32-mdma: correct desc prep when channel running
    55d699e2d2ef mcb: fix error handling for different scenarios when parsing
    afcde812ddf5 driver core: Release all resources during unbind before updating device links
    f7ab9dee2200 tracing: Have the user copy of synthetic event address use correct context
    185f3617adc8 i2c: core: Run atomic i2c xfer when !preemptible
    59cb785919fd kernel/reboot: emergency_restart: Set correct system_state
    4f3135e2dd5b quota: explicitly forbid quota files from being encrypted
    ed3cc4f3cac4 jbd2: fix potential data lost in recovering journal raced with synchronizing fs bdev
    e166cc2bf51f ASoC: codecs: wsa-macro: fix uninitialized stack variables with name prefix
    479a120a043f hid: lenovo: Resend all settings on reset_resume for compact keyboards
    9ea5df7290e5 selftests/resctrl: Reduce failures due to outliers in MBA/MBM tests
    72f5a918b450 selftests/resctrl: Move _GNU_SOURCE define into Makefile
    e6526e403aaf selftests/resctrl: Remove duplicate feature check from CMT test
    3f100cc63a0c netfilter: nf_tables: split async and sync catchall in two functions
    13e2d49647a7 netfilter: nf_tables: remove catchall element in GC sync path
    143f450c6cb2 ima: detect changes to the backing overlay file
    2c63b9d7f7c8 ima: annotate iint mutex to avoid lockdep false positive warnings
    db98de0809f1 mfd: qcom-spmi-pmic: Fix revid implementation
    5231eb119079 mfd: qcom-spmi-pmic: Fix reference leaks in revid helper
    4d259683bc1c arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size
    c754a6f5c3c7 ACPI: FPDT: properly handle invalid FPDT subtables
    95e747c3c60d firmware: qcom_scm: use 64-bit calling convention only when client is 64-bit
    cd222fc61e12 arm64: dts: qcom: ipq8074: Fix hwlock index for SMEM
    e866ef947a65 btrfs: don't arbitrarily slow down delalloc if we're committing
    ddf42b7c8d81 rcu: kmemleak: Ignore kmemleak false positives when RCU-freeing objects
    d15029481813 PM: hibernate: Clean up sync_read handling in snapshot_write_next()
    567c6f64950e PM: hibernate: Use __get_safe_page() rather than touching the list
    2c9222b7dc58 arm64: dts: qcom: ipq6018: Fix hwlock index for SMEM
    8d837850d3ec rcu/tree: Defer setting of jiffies during stall reset
    6aa3cab6be11 svcrdma: Drop connection after an RDMA Read error
    4b0d6ddb6466 wifi: wilc1000: use vmm_table as array in wilc struct
    efd8e6d19c14 PCI: exynos: Don't discard .remove() callback
    75bf9a8b0e89 PCI: kirin: Don't discard .remove() callback
    e02b9c6a832e PCI/ASPM: Fix L1 substate handling in aspm_attr_store_common()
    51dcd20a4a25 mmc: Add quirk MMC_QUIRK_BROKEN_CACHE_FLUSH for Micron eMMC Q2J54A
    07d425242e4f mmc: sdhci_am654: fix start loop index for TAP value parsing
    4542aa756914 mmc: vub300: fix an error code
    8387c94d73ec ksmbd: fix slab out of bounds write in smb_inherit_dacl()
    482aaa72f950 ksmbd: handle malformed smb1 message
    8e76941a1672 clk: qcom: ipq6018: drop the CLK_SET_RATE_PARENT flag from PLL clocks
    877080a34901 clk: qcom: ipq8074: drop the CLK_SET_RATE_PARENT flag from PLL clocks
    3291d3ecf331 clk: socfpga: Fix undefined behavior bug in struct stratix10_clock_data
    ea2c6e85b6b0 parisc/power: Add power soft-off when running on qemu
    783645be98c8 parisc/pdc: Add width field to struct pdc_model
    ef0224ee5399 arm64: Restrict CPU_BIG_ENDIAN to GNU as or LLVM IAS 15.x or newer
    938c4c731803 PCI: keystone: Don't discard .probe() callback
    b7d27cbfef5c PCI: keystone: Don't discard .remove() callback
    fe0b2a20f780 KEYS: trusted: Rollback init_trusted() consistently
    454ad98f31f0 KEYS: trusted: tee: Refactor register SHM usage
    3ef9944681eb genirq/generic_chip: Make irq_remove_generic_chip() irqdomain aware
    17381882fcce mmc: meson-gx: Remove setting of CMD_CFG_ERROR
    0cf7577b6b31 wifi: ath11k: fix gtk offload status event locking
    e3199b3fac65 wifi: ath11k: fix htt pktlog locking
    ca420ac4f945 wifi: ath11k: fix dfs radar event locking
    f0ea9e472611 wifi: ath11k: fix temperature event locking
    164fa9a0b1e9 regmap: Ensure range selector registers are updated after cache sync
    e10facbd25a6 ACPI: resource: Do IRQ override on TongFang GMxXGxx
    08a98c345f62 mm/damon/sysfs: check error from damon_sysfs_update_target()
    b0fc14428ca2 mm/damon: implement a function for max nr_accesses safe calculation
    834a800c58ea mm/damon/ops-common: avoid divide-by-zero during region hotness calculation
    2b38f0dbe8ba mm/damon/lru_sort: avoid divide-by-zero in hot threshold calculation
    cf2641099c02 watchdog: move softlockup_panic back to early_param
    f0f3328af912 mm/damon/sysfs: update monitoring target regions for online input commit
    9275f65d7729 mm/damon/sysfs: remove requested targets when online-commit inputs
    4e0fbf318803 PCI/sysfs: Protect driver's D3cold preference from user space
    1a2c7a2f3594 hvc/xen: fix event channel handling for secondary consoles
    b772e415e168 hvc/xen: fix error path in xen_hvc_init() to always register frontend driver
    74db59e63bd8 hvc/xen: fix console unplug
    e5b0e2308088 tty: serial: meson: fix hard LOCKUP on crtscts mode
    5e3b2141c759 tty/sysrq: replace smp_processor_id() with get_cpu()
    5b2352c64c48 proc: sysctl: prevent aliased sysctls from getting passed to init
    d91fd028c9f6 audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare()
    38968c63e98e audit: don't take task_lock() in audit_exe_compare() code path
    43cea54109e1 KVM: x86: Clear bit12 of ICR after APIC-write VM-exit
    27976fa91754 KVM: x86: Ignore MSR_AMD64_TW_CFG access
    7e218114a219 KVM: x86: hyper-v: Don't auto-enable stimer on write from user-space
    41689ef19b7e x86/cpu/hygon: Fix the CPU topology evaluation for real
    f0732c646a8e crypto: x86/sha - load modules based on CPU features
    1fc94de1c1a8 scsi: qla2xxx: Fix system crash due to bad pointer access
    b16ea57d6c0f scsi: megaraid_sas: Increase register read retry rount from 3 to 30 for selected registers
    bb5e307366ef scsi: mpt3sas: Fix loop logic
    dd56d432445e bpf: Fix precision tracking for BPF_ALU | BPF_TO_BE | BPF_END
    947635fa174b bpf: Fix check_stack_write_fixed_off() to correctly spill imm
    3bdbe399b82f randstruct: Fix gcc-plugin performance mode to stay in group
    bee4f891fe1f powerpc/perf: Fix disabling BHRB and instruction sampling
    4cb064f6174a perf intel-pt: Fix async branch flags
    a1d8f675ea58 media: venus: hfi: add checks to perform sanity on queue pointers
    55db76caa782 i915/perf: Fix NULL deref bugs with drm_dbg() calls
    d1a04a5219e8 cifs: fix check of rc in function generate_smb3signingkey
    17cfba4aeb2d cifs: spnego: add ';' in HOST_KEY_LEN
    4b91ba060f2e tools/power/turbostat: Enable the C-state Pre-wake printing
    c5fcba7ff98b tools/power/turbostat: Fix a knl bug
    ca56cdfab3a9 macvlan: Don't propagate promisc change to lower dev in passthru
    f9b592a9e606 net/mlx5e: Check return value of snprintf writing to fw_version buffer for representors
    0ab53cd69ffc net/mlx5e: Check return value of snprintf writing to fw_version buffer
    7f2feab70152 net/mlx5e: Reduce the size of icosq_str
    e2d93cfd1b4f net/mlx5e: Fix pedit endianness
    991ba648983b net/mlx5e: fix double free of encap_header in update funcs
    e8ae37f86368 net/mlx5e: fix double free of encap_header
    7414a28de1b3 net: stmmac: avoid rx queue overrun
    49fb68040326 net: stmmac: fix rx budget limit check
    18a169810cff netfilter: nf_tables: fix pointer math issue in nft_byteorder_eval()
    6a15d971040e netfilter: nf_conntrack_bridge: initialize err to 0
    d179189eec42 af_unix: fix use-after-free in unix_stream_read_actor()
    14b11892a6da net: ethernet: cortina: Fix MTU max setting
    1a1efaed5fc2 net: ethernet: cortina: Handle large frames
    4794b6b16a90 net: ethernet: cortina: Fix max RX frame define
    19554aa901b5 bonding: stop the device in bond_setup_by_slave()
    f84846731b93 ptp: annotate data-race around q->head and q->tail
    ceae93d76a51 xen/events: fix delayed eoi list handling
    ab3e13b35c1a ppp: limit MRU to 64K
    00768b3e90e6 net: mvneta: fix calls to page_pool_get_stats
    1e83edbc422b tipc: Fix kernel-infoleak due to uninitialized TLV value
    a28ec8322dd3 net: hns3: fix VF wrong speed and duplex issue
    55d82e092c68 net: hns3: fix VF reset fail issue
    f47c6fba7293 net: hns3: fix variable may not initialized problem in hns3_init_mac_addr()
    07f5b8c47152 net: hns3: fix out-of-bounds access may occur when coalesce info is read via debugfs
    83a177b942fa net: hns3: fix incorrect capability bit display for copper port
    5dc440293db7 net: hns3: add barrier in vf mailbox reply process
    61c5ba5042b3 net: hns3: fix add VLAN fail issue
    76bd42849ce4 tty: Fix uninit-value access in ppp_sync_receive()
    732a67ca4368 ipvlan: add ipvlan_route_v6_outbound() helper
    12af02d24a49 net: set SOCK_RCU_FREE before inserting socket into hashtable
    c0f8b8fb7df9 vhost-vdpa: fix use after free in vhost_vdpa_probe()
    58278cc71d34 gfs2: Silence "suspicious RCU usage in gfs2_permission" warning
    7749fd2dbef7 SUNRPC: Fix RPC client cleaned up the freed pipefs dentries
    af0095a559f4 NFSv4.1: fix SP4_MACH_CRED protection for pnfs IO
    19d7dbf71ecc SUNRPC: Add an IS_ERR() check back to where it was
    c65b915641d8 NFSv4.1: fix handling NFS4ERR_DELAY when testing for session trunking
    5ee813da0c18 mtd: rawnand: meson: check return value of devm_kasprintf()
    b2a9ba69dfd5 mtd: rawnand: intel: check return value of devm_kasprintf()
    8d02b6fb3c67 SUNRPC: ECONNRESET might require a rebind
    11f6aadd1f59 sched/core: Optimize in_task() and in_interrupt() a bit
    3a6ad749e9ef wifi: iwlwifi: Use FW rate for non-data frames
    2fa178e2cd5f mtd: rawnand: tegra: add missing check for platform_get_irq()
    1fb3a9c59e7f pwm: Fix double shift bug
    6586b5f8e456 drm/amdgpu: fix software pci_unplug on some chips
    8a1552e908d6 ALSA: hda/realtek: Add quirk for ASUS UX7602ZM
    07ab6615a9d2 drm/qxl: prevent memory leak
    09297e3ffc1d ASoC: ti: omap-mcbsp: Fix runtime PM underflow warnings
    aff8be2cad74 i2c: dev: copy userspace array safely
    72d02adae320 kgdb: Flush console before entering kgdb on panic
    8a06894666e0 drm/amd/display: Avoid NULL dereference of timing generator
    b083aaf5db2e media: imon: fix access to invalid resource for the second interface
    65335aef1ab6 media: ccs: Fix driver quirk struct documentation
    b8dcbbd0c4bf media: cobalt: Use FIELD_GET() to extract Link Width
    e2ccedd4d182 gfs2: fix an oops in gfs2_permission
    53fc16c1ad84 gfs2: ignore negated quota changes
    329a8d1d60ba media: vivid: avoid integer overflow
    a647f27a7426 media: gspca: cpia1: shift-out-of-bounds in set_flicker
    e64d23dc6581 i3c: master: mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
    472bd4787406 virtio-blk: fix implicit overflow on virtio_max_dma_size
    32b17bc21f8e i2c: sun6i-p2wi: Prevent potential division by zero
    0b5e729d4e35 i2c: fix memleak in i2c_new_client_device()
    8be39f66915b i3c: mipi-i3c-hci: Fix out of bounds access in hci_dma_irq_handler
    07c11a5249cb 9p: v9fs_listxattr: fix %s null argument warning
    3851d844d790 9p/trans_fd: Annotate data-racy writes to file::f_flags
    c7b0ce54b11d usb: gadget: f_ncm: Always set current gadget in ncm_bind()
    ff9500758381 f2fs: fix error handling of __get_node_page
    a82bd79cbfe9 soundwire: dmi-quirks: update HP Omen match
    7932afa9bb61 usb: dwc3: core: configure TX/RX threshold for DWC3_IP
    7cebc86481bf tty: vcc: Add check for kstrdup() in vcc_probe()
    d6957635de8f thunderbolt: Apply USB 3.x bandwidth quirk only in software connection manager
    b80aaff5f781 iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe()
    c92de3bf6ccf mfd: intel-lpss: Add Intel Lunar Lake-M PCI IDs
    b469227b1d1e exfat: support handle zero-size directory
    24e222a54e4c HID: Add quirk for Dell Pro Wireless Keyboard and Mouse KM5221W
    4ee3b3a0ff02 crypto: hisilicon/qm - prevent soft lockup in receive loop
    a70cb0d59d91 ASoC: Intel: soc-acpi-cht: Add Lenovo Yoga Tab 3 Pro YT3-X90 quirk
    cbf304de78c0 PCI: Use FIELD_GET() in Sapphire RX 5600 XT Pulse quirk
    52cd51ba5769 misc: pci_endpoint_test: Add Device ID for R-Car S4-8 PCIe controller
    6f9557a5c971 PCI: Disable ATS for specific Intel IPU E2000 devices
    161767bb7c5d PCI: Extract ATS disabling to a helper function
    6b4608458205 PCI: Use FIELD_GET() to extract Link Width
    442fd24d7b6b scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()
    dabc0ee84d0d PCI: Do error check on own line to split long "if" conditions
    146badf18e2c atm: iphase: Do PCI error checks on own line
    1a7c3d2e1dfa PCI: mvebu: Use FIELD_PREP() with Link Width
    aac90c719781 PCI: tegra194: Use FIELD_GET()/FIELD_PREP() with Link Width fields
    43b91df291c8 ALSA: hda: Fix possible null-ptr-deref when assigning a stream
    fa7abd3c5cd4 ARM: 9320/1: fix stack depot IRQ stack filter
    6e2076cad887 HID: lenovo: Detect quirk-free fw on cptkbd and stop applying workaround
    8c68af2af697 jfs: fix array-index-out-of-bounds in diAlloc
    a50b796d3671 jfs: fix array-index-out-of-bounds in dbFindLeaf
    5013f8269887 fs/jfs: Add validity check for db_maxag and db_agpref
    0cb567e72733 fs/jfs: Add check for negative db_l2nbperpage
    88984ec47927 scsi: ibmvfc: Remove BUG_ON in the case of an empty event pool
    33331b265aac scsi: hisi_sas: Set debugfs_dir pointer to NULL after removing debugfs
    f1521fe0b411 RDMA/hfi1: Use FIELD_GET() to extract Link Width
    af493dde68e8 ASoC: SOF: ipc4: handle EXCEPTION_CAUGHT notification from firmware
    c55fc098fd9d crypto: pcrypt - Fix hungtask for PADATA_RESET
    62c65e799fb4 ASoC: SOF: Pass PCI SSID to machine driver
    14107cbeb5f7 ASoC: soc-card: Add storage for PCI SSID
    0aaf8077564e selftests/efivarfs: create-read: fix a resource leak
    c68535657f3c arm64: dts: ls208xa: use a pseudo-bus to constrain usb dma size
    6c1b3d89a2dd drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL
    2806f8803792 drm/amdkfd: Fix shift out-of-bounds issue
    7017e835007c drm/panel: st7703: Pick different reset sequence
    33fb1a555354 drm/amdgpu/vkms: fix a possible null pointer dereference
    16fa59e273f8 drm/radeon: fix a possible null pointer dereference
    d0bc9ab0a161 drm/panel/panel-tpo-tpg110: fix a possible null pointer dereference
    79813cd59398 drm/panel: fix a possible null pointer dereference
    9b70fc7d70e8 drm/amdgpu: Fix potential null pointer derefernce
    d0725232da77 drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga
    fc9ac0e8e0bc drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7
    09b900fc2cb1 drm/msm/dp: skip validity check for DP CTS EDID checksum
    412ce8966934 drm: vmwgfx_surface.c: copy user-array safely
    0f5f56745188 drm_lease.c: copy user-array safely
    6995df256e4f kernel: watch_queue: copy user-array safely
    8332523b13db kernel: kexec: copy user-array safely
    2fabc3289ba1 string.h: add array-wrappers for (v)memdup_user()
    24faa2740b3f drm/amd/display: use full update for clip size increase of large plane source
    09d4f579d300 drm/amd: Update `update_pcie_parameters` functions to use uint8_t arguments
    50f35a907c4f drm/amdkfd: Fix a race condition of vram buffer unref in svm code
    5b978a8ce497 drm/amdgpu: not to save bo in the case of RAS err_event_athub
    0c8eda600ed8 drm/komeda: drop all currently held locks if deadlock happens
    4048cf4615b6 drm/gma500: Fix call trace when psb_gem_mm_init() fails
    a57a54a8bc21 platform/x86: thinkpad_acpi: Add battery quirk for Thinkpad X120e
    6edd5ea5040b platform/chrome: kunit: initialize lock for fake ec_dev
    c90c7bf7b1b3 tsnep: Fix tsnep_request_irq() format-overflow warning
    70997012d8dd ACPI: EC: Add quirk for HP 250 G7 Notebook PC
    87624b1f9b78 Bluetooth: Fix double free in hci_conn_cleanup
    a556f2ef556a Bluetooth: btusb: Add date->evt_skb is NULL check
    0a40c609e2a3 bpf: Ensure proper register state printing for cond jumps
    8093dd759ee2 vsock: read from socket's error queue
    459970363e7c wifi: ath10k: Don't touch the CE interrupt registers after power up
    1c6a6c926abf net: annotate data-races around sk->sk_dst_pending_confirm
    e7960d2a09d4 net: annotate data-races around sk->sk_tx_queue_mapping
    46537b45972e wifi: ath10k: fix clang-specific fortify warning
    de979982ebfb wifi: ath9k: fix clang-specific fortify warnings
    aa42a7cb9264 bpf: Detect IP == ksym.end as part of BPF program
    57e44ff9c2c9 atl1c: Work around the DMA RX overflow issue
    2be24c47ac19 wifi: mac80211: don't return unset power in ieee80211_get_tx_power()
    9c2e4a81d3e7 wifi: mac80211_hwsim: fix clang-specific fortify warning
    d0fc4cb9d23b wifi: plfxlc: fix clang-specific fortify warning
    b5046b253236 x86/mm: Drop the 4 MB restriction on minimal NUMA node memory size
    2652d199dd72 workqueue: Provide one lock class key per work_on_cpu() callsite
    3410b7023547 cpu/hotplug: Don't offline the last non-isolated CPU
    b7441453ff96 smp,csd: Throw an error if a CSD lock is stuck for too long
    6680d55aba60 clocksource/drivers/timer-atmel-tcb: Fix initialization on SAM9 hardware
    ff8370a0d8cb clocksource/drivers/timer-imx-gpt: Fix potential memory leak
    9f4c391dc2bc selftests/lkdtm: Disable CONFIG_UBSAN_TRAP in test config
    e9a27fdce56b srcu: Fix srcu_struct node grpmask overflow on 64-bit systems
    9ce4e87a8efd perf/core: Bail out early if the request AUX area is out of bound
    784d01f9bbc2 lib/generic-radix-tree.c: Don't overflow in peek()
    c56df79d6867 locking/ww_mutex/test: Fix potential workqueue corruption
    69e434a1cb21 Linux 6.1.63
    830c11c9c085 virtio/vsock: fix header length on skb merging
    cd12535b97dd virtio/vsock: Fix uninit-value in virtio_transport_recv_pkt()
    a6650e78c428 virtio/vsock: fix leaks due to missing skb owner
    bb1c9a5907d2 vsock/loopback: use only sk_buff_head.lock to protect the packet queue
    1e5f00e9dbdb virtio/vsock: don't drop skbuff on copy failure
    883a3db2212c virtio/vsock: remove redundant 'skb_pull()' call
    5852a2b573f7 virtio/vsock: don't use skbuff state to account credit
    25bc87768cef wifi: cfg80211: fix kernel-doc for wiphy_delayed_work_flush()
    fc3a19543e32 btrfs: use u64 for buffer sizes in the tree search ioctls
    c606c43ab6a7 Revert "mmc: core: Capture correct oemid-bits for eMMC cards"
    acca43d813bb x86/amd_nb: Use Family 19h Models 60h-7Fh Function 4 IDs
    129debbb4178 io_uring/net: ensure socket is marked connected on connect retry
    b80b85f4945d tracing/kprobes: Fix the order of argument descriptions
    28e7153418b1 fbdev: fsl-diu-fb: mark wr_reg_wa() static
    7bc7b82fb219 fbdev: imsttfb: fix a resource leak in probe
    985845828220 fbdev: imsttfb: Fix error path of imsttfb_probe()
    6d53668c438b spi: spi-zynq-qspi: add spi-mem to driver kconfig dependencies
    b4843bf39d9f ASoC: dapm: fix clock get name
    f5350c6f7887 ASoC: hdmi-codec: register hpd callback on component probe
    acc36089bc36 ASoC: mediatek: mt8186_mt6366_rt1019_rt5682s: trivial: fix error messages
    3bbf06efb8ed drm/syncobj: fix DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE
    3df98bd31966 RISC-V: Don't fail in riscv_of_parent_hartid() for disabled HARTs
    587e6308d69b netfilter: nat: fix ipv6 nat redirect with mapped and scoped addresses
    8fa280d1a9f4 netfilter: nft_redir: use `struct nf_nat_range2` throughout and deduplicate eval call-backs
    d85670128f24 netfilter: xt_recent: fix (increase) ipv6 literal buffer length
    7ee2070589d2 i2c: iproc: handle invalid slave state
    b5974b0c893c r8169: respect userspace disabling IFF_MULTICAST
    1fecefb0920c vsock/virtio: remove socket from connected/bound list on shutdown
    baddcc2c7157 virtio/vsock: replace virtio_vsock_pkt with sk_buff
    46c541fa6680 blk-core: use pr_warn_ratelimited() in bio_check_ro()
    4e9b3ec84dc9 nbd: fix uaf in nbd_open
    b0310063d4b2 tg3: power down device only on SYSTEM_POWER_OFF
    2dbafb0081d7 nvme: fix error-handling for io_uring nvme-passthrough
    f4277cb5626b net/smc: put sk reference if close work was canceled
    2d563aa75226 net/smc: allow cdc msg send rather than drop it with NULL sndbuf_desc
    9d976cd3e320 net/smc: fix dangling sock under state SMC_APPFINCLOSEWAIT
    4a12fb7d1af6 octeontx2-pf: Free pending and dropped SQEs
    a1e8e68204c8 octeontx2-pf: qos send queues management
    479d344a929b octeontx2-pf: Rename tot_tx_queues to non_qos_queues
    f9c2807e2a7d selftests: pmtu.sh: fix result checking
    490dfbf65191 net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs
    0b8ffe3cb0b7 Fix termination state for idr_for_each_entry_ul()
    7f4a2c296774 net: r8169: Disable multicast filter for RTL8168H and RTL8107E
    db68ac51fe86 dccp/tcp: Call security_inet_conn_request() after setting IPv6 addresses.
    414d36c1178e dccp: Call security_inet_conn_request() after setting IPv4 addresses.
    e129327d80a7 net: page_pool: add missing free_percpu when page_pool_init fail
    a95acc2099b6 octeontx2-pf: Fix holes in error code
    00376cc74347 octeontx2-pf: Fix error codes
    612c22e92848 inet: shrink struct flowi_common
    89d92e4fc5c6 bpf: Check map->usercnt after timer->timer is assigned
    4c731e98fe4d tipc: Change nla_policy for bearer-related names to NLA_NUL_STRING
    6086258bd5ea hsr: Prevent use after free in prp_create_tagged_frame()
    f980e9a57dfb llc: verify mac len before reading mac header
    8803da01fe1b watchdog: ixp4xx: Make sure restart always works
    7082b1fb5321 Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()
    f8225c3c6555 pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume
    679d2ab67e09 pwm: sti: Reduce number of allocations and drop usage of chip_data
    713629765f25 regmap: prevent noinc writes from clobbering cache
    7ec7b7d3f2b8 media: cec: meson: always include meson sub-directory in Makefile
    103c66dcf54e media: dvb-usb-v2: af9035: fix missing unlock
    39c2ec94a829 media: cadence: csi2rx: Unregister v4l2 async notifier
    76d12296ee58 media: cedrus: Fix clock/reset sequence
    a254ee1ddc59 media: vidtv: mux: Add check and kfree for kstrdup
    5c26aae37239 media: vidtv: psi: Add check for kstrdup
    e7c96f4605d9 media: s3c-camif: Avoid inappropriate kfree()
    1620531a3dac media: mtk-jpegenc: Fix bug in JPEG encode quality selection
    b75fb8a2ee1e media: amphion: handle firmware debug message
    20568d06f606 media: bttv: fix use after free error due to btv->timeout timer
    825a7a6a3a5e media: ov5640: Fix a memory leak when ov5640_probe fails
    ba305517a1de media: i2c: max9286: Fix some redundant of_node_put() calls
    a7a8c49dc670 media: ov5640: fix vblank unchange issue when work at dvp mode
    9b1c0aca7fbf media: ov5640: Drop dead code using frame_interval
    6380621de364 media: verisilicon: Do not enable G2 postproc downscale if source is narrower than destination
    64f55cebb433 media: hantro: Check whether reset op is defined before use
    f258fd94abcd pcmcia: ds: fix possible name leak in error path in pcmcia_device_add()
    7c9947693b5e pcmcia: ds: fix refcount leak in pcmcia_device_add()
    fbdf451e7683 pcmcia: cs: fix possible hung task and memory leak pccardd()
    f9e17bce0aec rtc: pcf85363: fix wrong mask/val parameters in regmap_update_bits call
    b4dda701d057 virt: sevguest: Fix passing a stack buffer as a scatterlist target
    d889b7bc12b5 x86/sev: Change snp_guest_issue_request()'s fw_err argument
    a5b03f56d38d crypto: ccp - Name -1 return value as SEV_RET_NO_FW_CALL
    7c7371b41a14 cxl/mem: Fix shutdown order
    174ae0a3b89e i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs
    b9793c9c0338 9p/net: fix possible memory leak in p9_check_errors()
    8b184ebff60b perf hist: Add missing puts to hist__account_cycles
    8e1f41a853d9 perf machine: Avoid out of bounds LBR memory read
    209f4a67d8b7 usb: host: xhci-plat: fix possible kernel oops while resuming
    071666451e59 xhci: Loosen RPM as default policy to cover for AMD xHC 1.1
    abdd1f47efae powerpc/pseries: fix potential memory leak in init_cpu_associativity()
    257517c00b57 powerpc/imc-pmu: Use the correct spinlock initializer.
    8409ee076d0a powerpc/vas: Limit open window failure messages in log bufffer
    0f8dabe79a98 powerpc/xive: Fix endian conversion size
    b4bc030af7d6 powerpc/40x: Remove stale PTE_ATOMIC_UPDATES macro
    a204f9f3cb66 modpost: fix ishtp MODULE_DEVICE_TABLE built on big-endian host
    339148f78641 modpost: fix tee MODULE_DEVICE_TABLE built on big-endian host
    9d4f7441cddd powerpc: Only define __parse_fpscr() when required
    4a43be67d635 interconnect: qcom: sm8350: Set ACV enable_mask
    bfc019c7134a interconnect: qcom: sm8350: Retire DEFINE_QBCM
    ccbd1281a2d1 interconnect: qcom: sm8150: Set ACV enable_mask
    d7e501045ef4 interconnect: qcom: sm8150: Retire DEFINE_QBCM
    386a4d6f83fd interconnect: qcom: sm8150: Drop IP0 interconnects
    8979ed70da2f interconnect: move ignore_list out of of_count_icc_providers()
    bf7039825f04 interconnect: qcom: sm6350: Set ACV enable_mask
    d39e3249c04c interconnect: qcom: sm6350: Retire DEFINE_QBCM
    639ee7fbc095 interconnect: qcom: sdm845: Set ACV enable_mask
    808588804587 interconnect: qcom: sdm845: Retire DEFINE_QBCM
    e82d634fdb0d interconnect: qcom: sc8280xp: Set ACV enable_mask
    50e4e1ad3532 interconnect: qcom: sc8180x: Set ACV enable_mask
    673ced6e0178 interconnect: qcom: sc7280: Set ACV enable_mask
    8fe916ff8a84 interconnect: qcom: sc7180: Set ACV enable_mask
    3f884277f995 interconnect: qcom: sc7180: Retire DEFINE_QBCM
    695b3cfe1c28 f2fs: fix to initialize map.m_pblk in f2fs_precache_extents()
    7b863b8bcd67 dmaengine: pxa_dma: Remove an erroneous BUG_ON() in pxad_free_desc()
    2ed67a40ddb6 USB: usbip: fix stub_dev hub disconnect
    dae6fd974773 tools: iio: iio_generic_buffer ensure alignment
    06a1286345ac misc: st_core: Do not call kfree_skb() under spin_lock_irqsave()
    fc968818d547 dmaengine: ti: edma: handle irq_of_parse_and_map() errors
    03984e24db85 usb: chipidea: Simplify Tegra DMA alignment code
    c9095c743bf6 usb: chipidea: Fix DMA overwrite for Tegra
    6b21a2272885 usb: dwc2: fix possible NULL pointer dereference caused by driver concurrency
    0806a6afe155 dmaengine: idxd: Register dsa_bus_type before registering idxd sub-drivers
    1e03a2695995 perf record: Fix BTF type checks in the off-cpu profiling
    1c4eb1bc39d3 pinctrl: renesas: rzg2l: Make reverse order of enable() for disable()
    cd7d804f52c6 livepatch: Fix missing newline character in klp_resolve_symbols()
    f1cda3c5dd4d tty: tty_jobctrl: fix pid memleak in disassociate_ctty()
    fb4251dab3d1 f2fs: compress: fix to avoid redundant compress extension
    9375ea7f2690 f2fs: compress: fix to avoid use-after-free on dic
    071bbc5a669b f2fs: compress: fix deadloop in f2fs_write_cache_pages()
    ec67c83dd59b f2fs: convert f2fs_write_cache_pages() to use filemap_get_folios_tag()
    599befdd7996 filemap: add filemap_get_folios_tag()
    855516cb6e74 perf kwork: Set ordered_events to true in 'struct perf_tool'
    231665cc6ff7 perf kwork: Add the supported subcommands to the document
    16e02976cf37 perf kwork: Fix incorrect and missing free atom in work_push_atom()
    e27c2668ac8a iio: frequency: adf4350: Use device managed functions and fix power down issue.
    550711e007bb perf stat: Fix aggr mode initialization
    6cb0495d3623 apparmor: fix invalid reference on profile->disconnected
    cef064fddee8 apparmor: test: make static symbols visible during kunit testing
    cfce1e26b4c9 kunit: add macro to allow conditionally exposing static symbols to tests
    1d47d1abb4f3 leds: trigger: ledtrig-cpu:: Fix 'output may be truncated' issue for 'cpu'
    4198a7a6efa0 leds: pwm: Don't disable the PWM when the LED should be off
    63cdeb20ee3b leds: turris-omnia: Do not use SMBUS calls
    7d0e60e4ff84 leds: turris-omnia: Drop unnecessary mutex locking
    ce58f479b531 mfd: arizona-spi: Set pdata.hpdet_channel for ACPI enumerated devs
    26b534a3f0f4 dt-bindings: mfd: mt6397: Split out compatible for MediaTek MT6366 PMIC
    90155dfd990d dt-bindings: mfd: mt6397: Add binding for MT6357
    9ac0c0536572 mfd: dln2: Fix double put in dln2_probe
    ee6b91411d3f mfd: core: Ensure disabled devices are skipped without aborting
    f1ed6c4e59f9 mfd: core: Un-constify mfd_cell.of_reg
    437f033e30c8 IB/mlx5: Fix init stage error handling to avoid double free of same QP and UAF
    ad52f21e3dec ASoC: ams-delta.c: use component after check
    3dd998f78cb5 crypto: qat - fix deadlock in backlog processing
    c7c26d0ef5d2 padata: Fix refcnt handling in padata_free_shell()
    980a7fd5e57e ASoC: Intel: Skylake: Fix mem leak when parsing UUIDs fails
    9ee89579e69d HID: logitech-hidpp: Move get_wireless_feature_index() check to hidpp_connect_event()
    cf47abd7d8a1 HID: logitech-hidpp: Revert "Don't restart communication if not necessary"
    8eb1f933ccde HID: logitech-hidpp: Don't restart IO, instead defer hid_connect() only
    7f2ed86dde19 HID: logitech-hidpp: Remove HIDPP_QUIRK_NO_HIDINPUT quirk
    b1736354a7b9 Revert "HID: logitech-hidpp: add a module parameter to keep firmware gestures"
    693baca82d20 sh: bios: Revive earlyprintk support
    35ac8075aea2 hid: cp2112: Fix IRQ shutdown stopping polling for all IRQs on chip
    8a716eb7f8f5 HID: cp2112: Make irq_chip immutable
    cce6785b8401 RDMA/hfi1: Workaround truncation compilation error
    7a22e6fa51c5 scsi: ufs: core: Leave space for '\0' in utf8 desc string
    f9f4a6bdf934 ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe
    002bd3c874da ASoC: SOF: core: Ensure sof_ops_free() is still called when probe never ran.
    fe6efb2d1864 RDMA/hns: The UD mode can only be configured with DCQCN
    1a6806f27e9e RDMA/hns: Add check for SL
    d3a8efb9de59 RDMA/hns: Fix signed-unsigned mixed comparisons
    1000adbac3b2 RDMA/hns: Fix uninitialized ucmd in hns_roce_create_qp_common()
    7c09504c371d RDMA/hns: Fix printing level of asynchronous events
    3d559a5d5db3 IB/mlx5: Fix rdma counter binding for RAW QP
    c0f4144d0dec ASoC: fsl: mpc5200_dma.c: Fix warning of Function parameter or member not described
    4f13eab0e8a1 ext4: move 'ix' sanity check to corrent position
    242ba2e20baf ARM: 9321/1: memset: cast the constant byte to unsigned char
    0a7f9238f3f8 crypto: hisilicon/qm - fix PF queue parameter issue
    07eb93dbe1a7 crypto: hisilicon/qm - split a debugfs.c from qm
    2cec6774fd1e crypto: hisilicon/qm - modify the process of regs dfx
    56785a3a08e5 crypto: hisilicon/qm - delete redundant null assignment operations
    bafb12b629b7 hid: cp2112: Fix duplicate workqueue initialization
    aa804deca1c3 PCI: vmd: Correct PCI Header Type Register's multi-function check
    ed7f07ef84c4 crypto: qat - increase size of buffers
    17c890a887c1 crypto: caam/jr - fix Chacha20 + Poly1305 self test failure
    9857f811e5cd crypto: caam/qi2 - fix Chacha20 + Poly1305 self test failure
    f23859748e3d nd_btt: Make BTT lanes preemptible
    93aa88170cf3 libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value
    4795de8c046e scsi: ibmvfc: Fix erroneous use of rtas_busy_delay with hcall return code
    dc44e3fdb091 crypto: qat - fix unregistration of crypto algorithms
    5e989aeb4022 crypto: qat - extend buffer list interface
    443bde2a4ca6 crypto: qat - generalize crypto request buffers
    380f0a1de227 crypto: qat - change bufferlist logic interface
    2ad909a408d1 crypto: qat - rename bufferlist functions
    61c57bb98680 crypto: qat - relocate bufferlist logic
    e3294cccd818 crypto: qat - ignore subsequent state up commands
    bb55130d024a RDMA/core: Use size_{add,sub,mul}() in calls to struct_size()
    e39b84448ff9 hwrng: geode - fix accessing registers
    3c5c7f926a4b hwrng: bcm2835 - Fix hwrng throughput regression
    0c824b77ad48 crypto: hisilicon/hpre - Fix a erroneous check after snprintf()
    12d2087a7dd9 KEYS: Include linux/errno.h in linux/verification.h
    44dcf6d33e9e ALSA: hda: cs35l41: Undo runtime PM changes at driver exit time
    2d81896fe161 ALSA: hda: cs35l41: Fix unbalanced pm_runtime_get()
    06421269133f ASoC: cs35l41: Undo runtime PM changes at driver exit time
    ab3aa429c8df ASoC: cs35l41: Verify PM runtime resume errors in IRQ handler
    f20c4b0c015c module/decompress: use vmalloc() for gzip decompression workspace
    c8a235583304 selftests/resctrl: Ensure the benchmark commands fits to its array
    02c167c93fe2 selftests/pidfd: Fix ksft print formats
    6b7feafde79c arm64: tegra: Use correct interrupts for Tegra234 TKE
    87367bc3d9b0 arm64: dts: imx8mn: Add sound-dai-cells to micfil node
    fef0af22503f arm64: dts: imx8mm: Add sound-dai-cells to micfil node
    fafaf5a2f313 arm64: dts: imx8qm-ss-img: Fix jpegenc compatible entry
    37658e518958 clk: scmi: Free scmi_clk allocated when the clocks with invalid info are skipped
    db6db0af76f5 ARM: dts: am3517-evm: Fix LED3/4 pinmux
    d43c3e49744c firmware: arm_ffa: Allow the FF-A drivers to use 32bit mode of messaging
    5429ecbb1b8b firmware: arm_ffa: Assign the missing IDR allocation ID to the FFA device
    e0cf8e811f72 arm64: dts: ti: k3-am62a7-sk: Drop i2c-1 to 100Khz
    eccde2dbd93d firmware: ti_sci: Mark driver as non removable
    7efb91501ba2 kunit: Fix missed memory release in kunit_free_suite_set()
    f0ef883cae30 soc: qcom: llcc: Handle a second device without data corruption
    4653225f41ab ARM: dts: qcom: mdm9615: populate vsdcc fixed regulator
    d97268ce08c3 arm64: dts: qcom: apq8016-sbc: Add missing ADV7533 regulators
    7867e1d92622 ARM64: dts: marvell: cn9310: Use appropriate label for spi1 pins
    945f2e4f13f3 arm64: dts: qcom: sdm845-mtp: fix WiFi configuration
    89465723e0f6 arm64: dts: qcom: sm8350: fix pinctrl for UART18
    1a404795c401 arm64: dts: qcom: sm8150: add ref clock to PCIe PHYs
    cd952d43c00d arm64: dts: qcom: sc7280: Add missing LMH interrupts
    03a0a34f04a4 arm64: dts: qcom: msm8992-libra: drop duplicated reserved memory
    4109f7d1a852 arm64: dts: qcom: msm8916: Fix iommu local address range
    389a4aa5e327 arm64: dts: qcom: sc7280: link usb3_phy_wrapper_gcc_usb30_pipe_clk
    426d3c7c72a2 arm64: dts: qcom: sdm845: cheza doesn't support LMh node
    e65c1aa21ba1 ARM: dts: renesas: blanche: Fix typo in GP_11_2 pin name
    b660420f449d perf: hisi: Fix use-after-free when register pmu fails
    104fa6426a8f drivers/perf: hisi_pcie: Check the type first in pmu::event_init()
    c6e00bc30ea1 perf/arm-cmn: Fix DTC domain detection
    28fa550a49e8 perf/arm-cmn: Revamp model detection
    4589403a343b drivers/perf: hisi: use cpuhp_state_remove_instance_nocalls() for hisi_hns3_pmu uninit process
    1e88414e64a2 drm: mediatek: mtk_dsi: Fix NO_EOT_PACKET settings/handling
    025d2ac470a9 clocksource/drivers/arm_arch_timer: limit XGene-1 workaround
    96c3a1830434 drm/msm/dsi: free TX buffer in unbind
    8b072ab6c445 drm/msm/dsi: use msm_gem_kernel_put to free TX buffer
    5671bed3c0c8 xen-pciback: Consider INTx disabled when MSI/MSI-X is enabled
    934747e2f807 xenbus: fix error exit in xenbus_init()
    ace6403e7854 drm/rockchip: Fix type promotion bug in rockchip_gem_iommu_map()
    2836c72e8d60 arm64/arm: xen: enlighten: Fix KPTI checks
    008b2a93c5d7 drm/bridge: lt9611uxc: fix the race in the error path
    af19ebfc6a17 gpu: host1x: Correct allocated size for contexts
    9da019345405 drm/rockchip: cdn-dp: Fix some error handling paths in cdn_dp_probe()
    8045808be1c2 drm/mediatek: Fix iommu fault during crtc enabling
    5d30fedc20ad drm/mediatek: Fix iommu fault by swapping FBs after updating plane state
    32b15fef33e8 io_uring/kbuf: Allow the full buffer id space for provided buffers
    60db638be5f4 io_uring/kbuf: Fix check of BID wrapping in provided buffers
    03e334565d2d drm/amd/display: Bail from dm_check_crtc_cursor if no relevant change
    a99afba394a9 drm/amd/display: Refactor dm_get_plane_scale helper
    896066202757 drm/amd/display: Check all enabled planes in dm_check_crtc_cursor
    9eae81af9243 drm/amdkfd: fix some race conditions in vram buffer alloc/free of svm code
    78e998884d5d drm/bridge: tc358768: Fix tc358768_ns_to_cnt()
    9dbfdf5dcc38 drm/bridge: tc358768: Clean up clock period code
    3ed322a852ed drm/bridge: tc358768: Rename dsibclk to hsbyteclk
    14d546d067fb drm/bridge: tc358768: Use dev for dbg prints, not priv->dev
    4a1c4eff6545 drm/bridge: tc358768: Print logical values, not raw register values
    fb82b3b4acdd drm/bridge: tc358768: Use struct videomode
    e87a3c24ce5a drm/bridge: tc358768: remove unused variable
    1942dc48f482 drm/bridge: tc358768: Fix bit updates
    2fab90bcde42 drm/bridge: tc358768: Fix use of uninitialized variable
    3c0b681ba44b drm/bridge: lt8912b: Add missing drm_bridge_attach call
    5a521f6b68ec drm/bridge: lt8912b: Manually disable HPD only if it was enabled
    7bf0cb8f4028 drm/bridge: lt8912b: Fix crash on bridge detach
    2cfa9dc32c9e drm/bridge: lt8912b: Fix bridge_detach
    45350e5471dc drm/bridge: lt8912b: Add hot plug detection
    2c80c4f0d284 drm: bridge: it66121: Fix invalid connector dereference
    341e79f8aec6 drm/radeon: possible buffer overflow
    2d68194e1a01 drm/rockchip: vop2: Add missing call to crtc reset helper
    bc05621888d9 drm/rockchip: vop2: Don't crash for invalid duplicate_state
    b248ccaabfc1 drm/rockchip: vop: Fix call to crtc reset helper
    ffebe76e5049 drm/rockchip: vop: Fix reset of state in duplicate state crtc funcs
    4d37df40b103 hte: tegra: Fix missing error code in tegra_hte_test_probe()
    a671a41d60d3 hwmon: (sch5627) Disallow write access if virtual registers are locked
    4a3031298295 hwmon: (sch5627) Use bit macros when accessing the control register
    3385632de8ce Revert "hwmon: (sch56xx-common) Add automatic module loading on supported devices"
    581255403a64 Revert "hwmon: (sch56xx-common) Add DMI override table"
    dd06f92fd811 hwmon: (coretemp) Fix potentially truncated sysfs attribute name
    33de53a27060 hwmon: (axi-fan-control) Fix possible NULL pointer dereference
    44a96796d258 platform/x86: wmi: Fix opening of char device
    ae28868bbaec platform/x86: wmi: Fix probe failure when failing to register WMI devices
    7b8d88df171a clk: qcom: config IPQ_APSS_6018 should depend on QCOM_SMEM
    2a18dd653284 clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data
    a836efc21ef0 clk: mediatek: clk-mt7629: Add check for mtk_alloc_clk_data
    a540ca0aeae8 clk: mediatek: clk-mt7629-eth: Add check for mtk_alloc_clk_data
    357df1c2f6ac clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data
    df1c4a9efa3f clk: mediatek: clk-mt6779: Add check for mtk_alloc_clk_data
    dd1f30d68fa9 clk: mediatek: clk-mt6765: Add check for mtk_alloc_clk_data
    7d022726e384 clk: npcm7xx: Fix incorrect kfree
    cc1c2772c1e1 clk: ti: fix double free in of_ti_divider_clk_setup()
    e4df931fb424 clk: ti: change ti_clk_register[_omap_hw]() API
    cb6c38995f9c clk: keystone: pll: fix a couple NULL vs IS_ERR() checks
    0a3761410965 spi: nxp-fspi: use the correct ioremap function
    cdaa544dc473 clk: linux/clk-provider.h: fix kernel-doc warnings and typos
    a0b3b2cc2d73 clk: renesas: rzg2l: Fix computation formula
    e1809bb19a67 clk: renesas: rzg2l: Use FIELD_GET() for PLL register fields
    e6070f0cdad6 clk: renesas: rzg2l: Trust value returned by hardware
    c823ffba5d00 clk: renesas: rzg2l: Lock around writes to mux register
    77e233880234 clk: renesas: rzg2l: Wait for status bit of SD mux before continuing
    f26a440d0ec1 clk: renesas: rcar-gen3: Extend SDnH divider table
    d72c586809e0 clk: imx: imx8qxp: Fix elcdif_pll clock
    2c2f1fb3f857 clk: imx: imx8mq: correct error handling path
    0e2b08824072 clk: imx: Select MXC_CLK for CLK_IMX8QXP
    5b8d3ea0939c regulator: mt6358: Fail probe on unknown chip ID
    8d20252d96bd clk: qcom: gcc-sm8150: Fix gcc_sdcc2_apps_clk_src
    a588f440c47f clk: qcom: mmcc-msm8998: Fix the SMMU GDSC
    d2ffd85ee356 clk: qcom: mmcc-msm8998: Don't check halt bit on some branch clks
    06a7365e2bd8 clk: qcom: clk-rcg2: Fix clock rate overflow for high parent frequencies
    101c2d257c1f clk: qcom: gcc-msm8996: Remove RPM bus clocks
    5c25f89c00b9 spi: tegra: Fix missing IRQ check in tegra_slink_probe()
    51d4d3cd1836 regmap: debugfs: Fix a erroneous check after snprintf()
    30e77e3ee989 ipvlan: properly track tx_errors
    4836b94e5e38 net: add DEV_STATS_READ() helper
    fae5cc598ee6 ipv6: avoid atomic fragment on GSO packets
    35aff5362693 ACPI: sysfs: Fix create_pnp_modalias() and create_of_modalias()
    1ca7bc1b085f bpf: Fix unnecessary -EBUSY from htab_lock_bucket
    4bb26ec7ed76 Bluetooth: hci_sync: Fix Opcode prints in bt_dev_dbg/err
    6f505a013c85 wifi: iwlwifi: empty overflow queue during flush
    e2be4ab86a4a wifi: iwlwifi: pcie: synchronize IRQs before NAPI
    c56aed37b671 wifi: iwlwifi: call napi_synchronize() before freeing rx/tx queues
    6d88d4b1bb42 tcp: fix cookie_init_timestamp() overflows
    72c23b307173 chtls: fix tp->rcv_tstamp initialization
    2acedc5372ed net: skb_find_text: Ignore patterns extending past 'to'
    d860416236bd selftests: netfilter: test for sctp collision processing in nf_conntrack
    aa0a050c6569 r8169: fix rare issue with broken rx after link-down on RTL8125
    4789d93f94d9 r8169: use tp_to_dev instead of open code
    77ff34a56b69 thermal: core: prevent potential string overflow
    9709c6d7594d netfilter: nf_tables: Drop pointless memset when dumping rules
    100a75d56b0d wifi: wfx: fix case where rates are out of order
    f64a559f2d19 PM / devfreq: rockchip-dfi: Make pmu regmap mandatory
    0d30931f1fa0 can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds
    76378a8bae09 can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on()
    614d615d495e can: dev: can_restart(): don't crash kernel if carrier is OK
    d5342dafca3c wifi: ath11k: fix Tx power value during active CAC
    8a777b28d7d0 ACPI: video: Add acpi_backlight=vendor quirk for Toshiba Portégé R100
    396ec51b138e ACPI: property: Allow _DSD buffer data only for byte accessors
    75de6a664183 wifi: rtlwifi: fix EDCA limit set by BT coexistence
    14a7e73b28eb tcp_metrics: do not create an entry from tcp_init_metrics()
    52ec0669f457 tcp_metrics: properly set tp->snd_ssthresh in tcp_init_metrics()
    e850efcf2bb0 tcp_metrics: add missing barriers on delete
    586ce1064f66 wifi: ath: dfs_pattern_detector: Fix a memory initialization issue
    ebca9ae926df wifi: mt76: mt7915: fix beamforming availability check
    2b12aebbd324 wifi: mt76: mt7603: improve stuck beacon handling
    c2fd48179cf2 wifi: mt76: mt7603: improve watchdog reset reliablity
    e3c46ce78ddf wifi: mt76: mt7603: rework/fix rx pse hang check
    e01b3400d641 wifi: ath11k: fix boot failure with one MSI vector
    26e301a70d93 wifi: rtw88: debug: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
    365fe12f4529 net: ethernet: mtk_wed: fix EXT_INT_STATUS_RX_FBUF definitions for MT7986 SoC
    d97463c1f390 net: spider_net: Use size_add() in call to struct_size()
    254187a64a30 tipc: Use size_add() in calls to struct_size()
    065cb7ae3f15 tls: Use size_add() in call to struct_size()
    8ae187386420 tls: Only use data field in crypto completion function
    65e65a8b2de4 mlxsw: Use size_mul() in call to struct_size()
    a764c22bbc85 gve: Use size_add() in call to struct_size()
    5dd1344de3e6 tcp: call tcp_try_undo_recovery when an RTOd TFO SYNACK is ACKed
    a08ff0544b92 udp: add missing WRITE_ONCE() around up->encap_rcv
    ec18d7507f9d selftests/bpf: Correct map_fd to data_fd in tailcalls
    3e1d754b5ddf iavf: Fix promiscuous mode configuration flow messages
    42b452960a13 i40e: fix potential memory leaks in i40e_remove()
    36f0004fe5bd wifi: iwlwifi: honor the enable_ini value
    9c6269f5d11f wifi: mac80211: fix # of MSDU in A-MSDU calculation
    cee323e56c13 wifi: mac80211: move sched-scan stop work to wiphy work
    0568d1e8899e wifi: mac80211: move offchannel works to wiphy work
    ef413615197c wifi: mac80211: move scan work to wiphy work
    09915293c302 wifi: mac80211: move radar detect work to wiphy work
    697fb94e3e8d wifi: cfg80211: add flush functions for wiphy work
    36aa50d5782b genirq/matrix: Exclude managed interrupts in irq_matrix_allocated()
    4f834ad0341c string: Adjust strtomem() logic to allow for smaller sources
    63f637309baa pstore/platform: Add check for kstrdup
    0a1dab4a8e3d drivers/clocksource/timer-ti-dm: Don't call clk_get_rate() in stop function
    dbb558160323 x86/boot: Fix incorrect startup_gdt_descr.size
    21c5c3f95f25 x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot
    7807c269cbf4 ACPI/NUMA: Apply SRAT proximity domain to entire CFMWS window
    bf178c8b9c8e x86/numa: Introduce numa_fill_memblks()
    dce53a017ca2 futex: Don't include process MM in futex key on no-MMU
    3c1a20c122bc x86/srso: Fix SBPB enablement for (possible) future fixed HW
    2351c03529b2 writeback, cgroup: switch inodes with dirty timestamps to release dying cgwbs
    bc8e02850a59 vfs: fix readahead(2) on block devices
    8620933c3c53 sched: Fix stop_one_cpu_nowait() vs hotplug
    21f99a5adbc5 objtool: Propagate early errors
    df870d47d2af sched/uclamp: Ignore (util == 0) optimization in feec() when p_util_max = 0
    d77530a1d47f sched/uclamp: Set max_spare_cap_cpu even if max_spare_cap is 0
    b7839197719f iov_iter, x86: Be consistent about the __user tag on copy_mc_to_user()
    42bed989f0ef sched/fair: Fix cfs_rq_is_decayed() on !SMP
    71e3e7830b3e hwmon: (nct6775) Fix incorrect variable reuse in fan_div calculation

(From OE-Core rev: f9150ef12b283860e72fed59a1cc82721516c555)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
b2b38e5479 linux-yocto/6.5: update to v6.5.13
Updating  to the latest korg -stable release that comprises
the following commits:

    4631960b4700 Linux 6.5.13
    a9d6c0c5a6bd net/mlx5e: Track xmit submission to PTP WQ after populating metadata map
    c712654d6f36 net/mlx5e: Avoid referencing skb after free-ing in drop path of mlx5e_sq_xmit_wqe
    2c9de867ca28 tracing: Have trace_event_file have ref counters
    1f59a2a92855 powerpc/powernv: Fix fortify source warnings in opal-prd.c
    7aded92aeb75 drm/amd/display: Change the DMCUB mailbox memory location from FB to inbox
    353bc3849241 drm/amd/display: Enable fast plane updates on DCN3.2 and above
    5b14cf37b9f0 drm/amd/display: fix a NULL pointer dereference in amdgpu_dm_i2c_xfer()
    562176ea823a drm/amd/display: Fix DSC not Enabled on Direct MST Sink
    5b37ee61b89d drm/amd/display: Guard against invalid RPTR/WPTR being set
    f3385c9b8ed4 drm/amdgpu: Fix possible null pointer dereference
    ed8fc80b1950 drm/amdgpu: lower CS errors to debug severity
    b827ed7014a0 drm/amdgpu: fix error handling in amdgpu_bo_list_get()
    7c6574dd032c drm/amdgpu: fix error handling in amdgpu_vm_init
    8c3b198fac82 drm/amdgpu: don't use ATRM for external devices
    6f6177558004 drm/amdgpu: add a retry for IP discovery init
    a5bd0c0d3189 drm/amdgpu: fix GRBM read timeout when do mes_self_test
    045d5eec88d2 drm/amdgpu: don't use pci_is_thunderbolt_attached()
    02eb46bb2150 drm/amdgpu/smu13: drop compute workload workaround
    5392874af8ab drm/amd/pm: Fix error of MACO flag setting code
    5d614170fa1f drm/i915: Flush WC GGTT only on required platforms
    1e019d6bcb44 drm/i915: Fix potential spectre vulnerability
    0990bd1ff1bf drm/i915: Bump GLK CDCLK frequency when driving multiple pipes
    9dfc6bc4a6a2 drm/i915/mtl: Support HBR3 rate with C10 phy and eDP in MTL
    59d2eee68804 drm: bridge: it66121: ->get_edid callback must not return err pointers
    f0a11733bd03 drm/amd/pm: Handle non-terminated overdrive commands.
    e3b83d87c93e ext4: fix racy may inline data check in dio write
    8b7e09f9b955 ext4: properly sync file size update after O_SYNC direct IO
    13859f9e6493 ext4: add missed brelse in update_backups
    edfb7b8d36ab ext4: remove gdb backup copy for meta bg in setup_new_flex_group_blocks
    079d796c58f2 ext4: correct the start block of counting reserved clusters
    8547701c3b0a ext4: correct return value of ext4_convert_meta_bg
    ec51fb39b173 ext4: mark buffer new if it is unwritten to avoid stale data exposure
    a9ceb3e26c7c ext4: correct offset of gdb backup in non meta_bg group to update_backups
    aaa3bd727255 ext4: apply umask if ACL support is disabled
    d1769a4c92b3 ext4: make sure allocate pending entry not fail
    a937cf1c90d1 ext4: fix race between writepages and remount
    cdbfce536cfa Revert "net: r8169: Disable multicast filter for RTL8168H and RTL8107E"
    e33abcd82f9c media: qcom: camss: Fix csid-gen2 for test pattern generator
    51792b41ee52 media: qcom: camss: Fix invalid clock enable bit disjunction
    4122d47ad139 media: qcom: camss: Fix set CSI2_RX_CFG1_VC_MODE when VC is greater than 3
    c25c6d618eda media: qcom: camss: Fix missing vfe_lite clocks check
    d8cd7a8645c2 media: qcom: camss: Fix VFE-480 vfe_disable_output()
    e428d0f3e42f media: qcom: camss: Fix VFE-17x vfe_disable_output()
    820b967c0384 media: qcom: camss: Fix vfe_get() error jump
    2dbb91675d6b media: qcom: camss: Fix pm_domain_on sequence in probe
    967a522b5123 mmc: sdhci-pci-gli: GL9750: Mask the replay timer timeout of AER
    ddb96a13b277 r8169: add handling DASH when DASH is disabled
    89a0fc500471 r8169: fix network lost after resume on DASH systems
    533108f04a57 selftests: mptcp: fix fastclose with csum failure
    c8e74731fff0 mptcp: fix setsockopt(IP_TOS) subflow locking
    e729027888e9 mptcp: add validity check for sending RM_ADDR
    342b528c0e84 mptcp: deal with large GSO size
    9a7982259028 mm: kmem: drop __GFP_NOFAIL when allocating objcg vectors
    77227943445e mm: fix for negative counter: nr_file_hugepages
    641061405579 mmc: sdhci-pci-gli: A workaround to allow GL9750 to enter ASPM L1.2
    5fb6a480a0fa riscv: kprobes: allow writing to x0
    c93d4b75f58e riscv: correct pt_level name via pgtable_l5/4_enabled
    85efe51890ef riscv: mm: Update the comment of CONFIG_PAGE_OFFSET
    05b2911ac941 riscv: put interrupt entries into .irqentry.text
    8d497507ce26 riscv: Using TOOLCHAIN_HAS_ZIHINTPAUSE marco replace zihintpause
    9c3115d8549a LoongArch: Mark __percpu functions as always inline
    4ce011ebb640 NFSD: Update nfsd_cache_append() to use xdr_stream
    90ceb1e85869 nfsd: fix file memleak on client_opens_release
    3cdc6b90ef59 dm-verity: don't use blocking calls from tasklets
    f6af719e355d dm-bufio: fix no-sleep mode
    02d2f24aaeee drm/mediatek/dp: fix memory leak on ->get_edid callback error path
    d82dbbb169f2 drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection
    f310c613afdf media: ccs: Correctly initialise try compose rectangle
    da2617b32b4d media: venus: hfi: add checks to handle capabilities from firmware
    bc3ade714672 media: venus: hfi: fix the check to handle session buffer requirement
    8da410e429d2 media: venus: hfi_parser: Add check to keep the number of codecs within range
    c7f45dd39318 media: sharp: fix sharp encoding
    3163d9bf64e5 media: lirc: drop trailing space from scancode transmit
    9de787139b02 f2fs: split initial and dynamic conditions for extent_cache
    6fca08fd3085 f2fs: avoid format-overflow warning
    ea8df211997b f2fs: set the default compress_level on ioctl
    e08a8d94f982 f2fs: do not return EFSCORRUPTED, but try to run online repair
    3ec63129137e i2c: i801: fix potential race in i801_block_transaction_byte_by_byte
    1c5ffd27c542 gfs2: don't withdraw if init_threads() got interrupted
    e92237ba0704 net: phylink: initialize carrier state at creation
    55c7b046cd1f net: dsa: lan9303: consequently nested-lock physical MDIO
    82c9a9456b82 net: ethtool: Fix documentation of ethtool_sprintf()
    d67fce6b1368 s390/ap: fix AP bus crash on early config change callback invocation
    bc73f5ef079c i2c: designware: Disable TX_EMPTY irq while waiting for block length byte
    0e094322aad6 sbsa_gwdt: Calculate timeout with 64-bit math
    3a0a398bedeb lsm: fix default return value for inode_getsecctx
    b564c10d4e95 lsm: fix default return value for vm_enough_memory
    695a358a3905 Revert "i2c: pxa: move to generic GPIO recovery"
    db205ac66fda Revert ncsi: Propagate carrier gain/loss events to the NCSI controller
    30fb55283841 ALSA: hda/realtek: Add quirks for HP Laptops
    d9d0d1c1d880 ALSA: hda/realtek: Enable Mute LED on HP 255 G10
    1bc8a597307c ALSA: hda/realtek - Enable internal speaker of ASUS K6500ZC
    966b51c45080 ALSA: hda/realtek - Add Dell ALC295 to pin fall back table
    96865995ccd2 ALSA: hda/realtek: Enable Mute LED on HP 255 G8
    746820e6963a ALSA: info: Fix potential deadlock at disconnection
    0b214ccbc778 btrfs: zoned: wait for data BG to be finished on direct IO allocation
    f13f25184a9f xfs: recovery should not clear di_flushiter unconditionally
    64af62c8977a cifs: Fix encryption of cleared, but unset rq_iter data buffers
    50f4b57fc561 cifs: do not reset chan_max if multichannel is not supported at mount
    48a8c1891851 cifs: force interface update before a fresh session setup
    9bf434f12957 cifs: reconnect helper should set reconnect for the right channel
    b9bb9607b1fc smb: client: fix potential deadlock when releasing mids
    6db94d08359c smb: client: fix use-after-free in smb2_query_info_compound()
    89929ea46f9c smb: client: fix use-after-free bug in cifs_debug_data_proc_show()
    ef97cb5e93f7 smb3: fix caching of ctime on setxattr
    2d29a938bf62 smb3: allow dumping session and tcon id to improve stats analysis and debugging
    e0748969c6d7 smb3: fix touch -h of symlink
    34e11da3eb40 smb3: fix creating FIFOs when mounting with "sfu" mount option
    e28562567c72 fs: add ctime accessors infrastructure
    45fa91b09bdb xhci: Enable RPM on controllers that support low-power states
    b57e254d5ef4 parisc/power: Fix power soft-off when running on qemu
    339ac29c6811 parisc/pgtable: Do not drop upper 5 address bits of physical address
    c1b8ef9d7b8f parisc: Prevent booting 64-bit kernels on PA1.x machines
    6fc3231df968 mm/hugetlb: use nth_page() in place of direct struct page manipulation
    45b910169533 mm/hugetlb: prepare hugetlb_follow_page_mask() for FOLL_PIN
    a231a59ec94c rcutorture: Fix stuttering races and other issues
    c85633590547 torture: Make torture_hrtimeout_ns() take an hrtimer mode parameter
    05eb10004221 torture: Move stutter_wait() timeouts to hrtimers
    3bdabd7be640 torture: Make torture_hrtimeout_*() use TASK_IDLE
    aac54ca1a64c torture: Add lock_torture writer_fifo module parameter
    525bcb9c290c torture: Add a kthread-creation callback to _torture_create_kthread()
    ecc89436729b PCI: Lengthen reset delay for VideoPropulsion Torrent QN16e card
    776edaebd616 PCI: qcom-ep: Add dedicated callback for writing to DBI2 registers
    b5b24f7693fe pmdomain: imx: Make imx pgc power domain also set the fwnode
    d2cc57f71327 pmdomain: amlogic: Fix mask for the second NNA mem PD domain
    47ceb5151c49 pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enable
    37179fcc916b cxl/port: Fix delete_endpoint() vs parent unregistration race
    92ce68f7db0a cxl/region: Fix x1 root-decoder granularity calculations
    276c11fba093 i3c: master: svc: fix random hot join failure since timeout error
    d85cce9a5cbc i3c: master: svc: fix SDA keep low when polling IBIWON timeout happen
    ccf8c93a3cdb i3c: master: svc: fix check wrong status register in irq handler
    de3f849e2fb9 i3c: master: svc: fix ibi may not return mandatory data byte
    f448576547a1 i3c: master: svc: fix wrong data return when IBI happen during start frame
    3cce94303f3d i3c: master: svc: fix race condition in ibi work thread
    7dc6161114a3 i3c: master: cdns: Fix reading status register
    9090c5537c93 cxl/region: Do not try to cleanup after cxl_region_setup_targets() fails
    3c6facb35781 mtd: cfi_cmdset_0001: Byte swap OTP info
    b3759b87052f mm: make PR_MDWE_REFUSE_EXEC_GAIN an unsigned long
    cabf0ae76cc5 mm/memory_hotplug: use pfn math in place of direct struct page manipulation
    bec1ed638f26 mm/cma: use nth_page() in place of direct struct page manipulation
    569955a7bfa9 s390/cmma: fix detection of DAT pages
    61c903a28d73 s390/mm: add missing arch_set_page_dat() call to vmem_crst_alloc()
    6c4a91f9bb4a dmaengine: stm32-mdma: correct desc prep when channel running
    5f74466e7a1e mcb: fix error handling for different scenarios when parsing
    b2f00346f57b driver core: Release all resources during unbind before updating device links
    6d6b2578403a tracing: Have the user copy of synthetic event address use correct context
    1d221014dba1 selftests/clone3: Fix broken test under !CONFIG_TIME_NS
    8c3fa52a46ff i2c: core: Run atomic i2c xfer when !preemptible
    f81088082b15 kernel/reboot: emergency_restart: Set correct system_state
    21468aca2b52 quota: explicitly forbid quota files from being encrypted
    3925c0fb5932 jbd2: fix potential data lost in recovering journal raced with synchronizing fs bdev
    e0fe12248779 ASoC: codecs: wsa-macro: fix uninitialized stack variables with name prefix
    19ed109e1aba hid: lenovo: Resend all settings on reset_resume for compact keyboards
    496c5ca14f39 selftests/resctrl: Reduce failures due to outliers in MBA/MBM tests
    49ff765672bb selftests/resctrl: Move _GNU_SOURCE define into Makefile
    a91a4e52bfe7 selftests/resctrl: Remove duplicate feature check from CMT test
    23e60a15bbd0 selftests/resctrl: Fix uninitialized .sa_flags
    6f33bfaa762b ASoC: codecs: wsa883x: make use of new mute_unmute_on_trigger flag
    94da565664b0 ASoC: soc-dai: add flag to mute and unmute stream during trigger
    e31eb7d9b7e4 netfilter: nf_tables: split async and sync catchall in two functions
    e3e68e617bfa netfilter: nf_tables: remove catchall element in GC sync path
    0d29174959bc ima: detect changes to the backing overlay file
    f2f0144e826b ima: annotate iint mutex to avoid lockdep false positive warnings
    4ce77b023d42 mfd: qcom-spmi-pmic: Fix revid implementation
    5487d746f77c mfd: qcom-spmi-pmic: Fix reference leaks in revid helper
    db76d11bdad1 leds: trigger: netdev: Move size check in set_device_name
    c8a439e96aaa arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size
    0361d86f8a06 arm64: dts: qcom: ipq9574: Fix hwlock index for SMEM
    a7c6fa8ecdd3 ACPI: FPDT: properly handle invalid FPDT subtables
    8398f2209474 firmware: qcom_scm: use 64-bit calling convention only when client is 64-bit
    68d8d8c659ac arm64: dts: qcom: ipq8074: Fix hwlock index for SMEM
    1fe0d9fa75ce arm64: dts: qcom: ipq5332: Fix hwlock index for SMEM
    6a3866dbdcf3 thermal: intel: powerclamp: fix mismatch in get function for max_idle
    5b2ed3c04a06 btrfs: don't arbitrarily slow down delalloc if we're committing
    94fda7ef2f1c rcu: kmemleak: Ignore kmemleak false positives when RCU-freeing objects
    ca6769551657 PM: hibernate: Clean up sync_read handling in snapshot_write_next()
    54a964575b7a PM: hibernate: Use __get_safe_page() rather than touching the list
    3480c1cd3bcf dt-bindings: timer: renesas,rz-mtu3: Fix overflow/underflow interrupt names
    59fef3cc602a arm64: dts: qcom: ipq6018: Fix hwlock index for SMEM
    11b83785f525 rcu/tree: Defer setting of jiffies during stall reset
    1dc5f364e065 svcrdma: Drop connection after an RDMA Read error
    6aaf7cd8bdfe wifi: wilc1000: use vmm_table as array in wilc struct
    6a1cbc40579e PCI: exynos: Don't discard .remove() callback
    34198b3c544e PCI: kirin: Don't discard .remove() callback
    560ba0deb73e PCI/ASPM: Fix L1 substate handling in aspm_attr_store_common()
    d7769b51d85e mmc: Add quirk MMC_QUIRK_BROKEN_CACHE_FLUSH for Micron eMMC Q2J54A
    65204e28a0d0 mmc: sdhci_am654: fix start loop index for TAP value parsing
    c1008f77e6c9 mmc: vub300: fix an error code
    09d9d8b40a33 ksmbd: fix slab out of bounds write in smb_inherit_dacl()
    8434e0237913 ksmbd: handle malformed smb1 message
    b464f6c8df07 ksmbd: fix recursive locking in vfs helpers
    94e6378e1a70 clk: qcom: ipq6018: drop the CLK_SET_RATE_PARENT flag from PLL clocks
    499ebc29b6d6 clk: qcom: ipq8074: drop the CLK_SET_RATE_PARENT flag from PLL clocks
    75f9b1a3ec29 clk: visconti: Fix undefined behavior bug in struct visconti_pll_provider
    2718027d6bca clk: socfpga: Fix undefined behavior bug in struct stratix10_clock_data
    ea131894f000 powercap: intel_rapl: Downgrade BIOS locked limits pr_warn() to pr_debug()
    d3f1a2c43827 cpufreq: stats: Fix buffer overflow detection in trans_stats()
    7a238a80e03d parisc/power: Add power soft-off when running on qemu
    423d3944a2ae parisc/pdc: Add width field to struct pdc_model
    4fb88c548be1 parisc/agp: Use 64-bit LE values in SBA IOMMU PDIR table
    74d2059dc4dd arm64: module: Fix PLT counting when CONFIG_RANDOMIZE_BASE=n
    bd31e534721a arm64: Restrict CPU_BIG_ENDIAN to GNU as or LLVM IAS 15.x or newer
    d193f28146cf PCI: keystone: Don't discard .probe() callback
    01359f23420e PCI: keystone: Don't discard .remove() callback
    e0cecc2aa28d KEYS: trusted: Rollback init_trusted() consistently
    4745bd98ad9e KEYS: trusted: tee: Refactor register SHM usage
    ebd1f4898c3b sched/core: Fix RQCF_ACT_SKIP leak
    c62bad84b73d genirq/generic_chip: Make irq_remove_generic_chip() irqdomain aware
    611dda46d77d mmc: meson-gx: Remove setting of CMD_CFG_ERROR
    774de37c147f wifi: ath12k: fix dfs-radar and temperature event locking
    d908ca431e20 wifi: ath12k: fix htt mlo-offset event locking
    cf9c7d783a2b wifi: ath11k: fix gtk offload status event locking
    423762f02182 wifi: ath11k: fix htt pktlog locking
    1fd878e17501 wifi: ath11k: fix dfs radar event locking
    a9ad6fa9e582 wifi: ath11k: fix temperature event locking
    117ccba0288b regmap: Ensure range selector registers are updated after cache sync
    3055b7335604 ACPI: resource: Do IRQ override on TongFang GMxXGxx
    c85312edf701 parisc: Add nop instructions after TLB inserts
    d8cd49ff1fa3 mm/damon/sysfs: check error from damon_sysfs_update_target()
    2e4dec8e1ba6 mm/damon/sysfs-schemes: handle tried regions sysfs directory allocation failure
    fadc9f448f56 mm/damon/sysfs-schemes: handle tried region directory allocation failure
    47b6fa90875d mm/damon/core: avoid divide-by-zero during monitoring results update
    d44b509ba8af mm/damon: implement a function for max nr_accesses safe calculation
    dff884772b03 mm/damon/ops-common: avoid divide-by-zero during region hotness calculation
    771f3a57fdd1 mm/damon/lru_sort: avoid divide-by-zero in hot threshold calculation
    e93ac6410de3 dm crypt: account large pages in cc->n_allocated_pages
    369f7c467211 fbdev: stifb: Make the STI next font pointer a 32-bit signed offset
    836db2e7e456 iommufd: Fix missing update of domains_itree after splitting iopt_area
    38fae890594a watchdog: move softlockup_panic back to early_param
    81c5d125ff14 mm/damon/sysfs: update monitoring target regions for online input commit
    239a5a730e2a mm/damon/sysfs: remove requested targets when online-commit inputs
    93a063073cc4 PCI/sysfs: Protect driver's D3cold preference from user space
    5d93cb1ff604 hvc/xen: fix event channel handling for secondary consoles
    f17cba693e8a hvc/xen: fix error path in xen_hvc_init() to always register frontend driver
    b0ba80e8a6fe hvc/xen: fix console unplug
    fa71a72cd641 tty: serial: meson: fix hard LOCKUP on crtscts mode
    82ed32865a03 tty/sysrq: replace smp_processor_id() with get_cpu()
    9e4b54247cfd proc: sysctl: prevent aliased sysctls from getting passed to init
    0e8e06574ca4 audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare()
    6ccef3ff7e79 audit: don't take task_lock() in audit_exe_compare() code path
    3eacee28b152 sched: psi: fix unprivileged polling against cgroups
    c242318d0b92 mmc: sdhci-pci-gli: GL9755: Mask the replay timer timeout of AER
    b1f329180409 KVM: x86: Fix lapic timer interrupt lost after loading a snapshot.
    d09a0eaf01b2 KVM: x86: Clear bit12 of ICR after APIC-write VM-exit
    080e6d79066f KVM: x86: Ignore MSR_AMD64_TW_CFG access
    144b8472b699 KVM: x86: hyper-v: Don't auto-enable stimer on write from user-space
    e22352ec91e2 x86/cpu/hygon: Fix the CPU topology evaluation for real
    2d0463ee5add x86/apic/msi: Fix misconfigured non-maskable MSI quirk
    4a142ea152ba x86/PCI: Avoid PME from D3hot/D3cold for AMD Rembrandt and Phoenix USB4
    72a40e561f3d crypto: x86/sha - load modules based on CPU features
    8f15a7e3c054 scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR
    07bc6e424419 scsi: qla2xxx: Fix system crash due to bad pointer access
    32e63c396f78 scsi: ufs: qcom: Update PHY settings only when scaling to higher gears
    09bcc704da4b scsi: megaraid_sas: Increase register read retry rount from 3 to 30 for selected registers
    fc3166ddfbe8 scsi: mpt3sas: Fix loop logic
    69327243558f bpf: Fix precision tracking for BPF_ALU | BPF_TO_BE | BPF_END
    a101d1262799 bpf: Fix check_stack_write_fixed_off() to correctly spill imm
    a32e62eb903a randstruct: Fix gcc-plugin performance mode to stay in group
    6cfee0c86eee powerpc/perf: Fix disabling BHRB and instruction sampling
    6066567c5bd2 perf intel-pt: Fix async branch flags
    4edc7e66c014 media: venus: hfi: add checks to perform sanity on queue pointers
    2c86b24095fc drivers: perf: Check find_first_bit() return value
    8d60852e8cc9 perf: arm_cspmu: Reject events meant for other PMUs
    bf8e10503008 i915/perf: Fix NULL deref bugs with drm_dbg() calls
    c8ace8d25274 perf/core: Fix cpuctx refcounting
    109b452cc842 cifs: fix check of rc in function generate_smb3signingkey
    eeba3f02bb99 cifs: spnego: add ';' in HOST_KEY_LEN
    95cd9b8efb1c scsi: ufs: core: Expand MCQ queue slot to DeviceQueueDepth + 1
    8c7037da3d0e tools/power/turbostat: Enable the C-state Pre-wake printing
    b309f567636a tools/power/turbostat: Fix a knl bug
    9b2e63f1bea6 macvlan: Don't propagate promisc change to lower dev in passthru
    b4c2de028ea4 net: sched: do not offload flows with a helper in act_ct
    ba8d40609562 net/mlx5e: Check return value of snprintf writing to fw_version buffer for representors
    5f36c6760cc9 net/mlx5e: Check return value of snprintf writing to fw_version buffer
    3d764c41725c net/mlx5e: Reduce the size of icosq_str
    aee07f286930 net/mlx5: Increase size of irq name buffer
    42b11d1293e5 net/mlx5e: Update doorbell for port timestamping CQ before the software counter
    647eb36aaeca net/mlx5e: Add recovery flow for tx devlink health reporter for unhealthy PTP SQ
    e729382c297e net/mlx5e: Make tx_port_ts logic resilient to out-of-order CQEs
    11bffa0c4ef2 net/mlx5: Consolidate devlink documentation in devlink/mlx5.rst
    57fb34e36fad net/mlx5e: Fix pedit endianness
    3585f0b2afda net/mlx5e: fix double free of encap_header in update funcs
    ac2dd6c892e4 net/mlx5e: fix double free of encap_header
    8b9491d50ca4 net/mlx5: Decouple PHC .adjtime and .adjphase implementations
    e87fa62ebc59 io_uring/fdinfo: remove need for sqpoll lock for thread/pid retrieval
    a533c9763c3f gve: Fixes for napi_poll when budget is 0
    cb9e4507cca7 pds_core: fix up some format-truncation complaints
    9c9d97c88536 pds_core: use correct index to mask irq
    b435b4573240 net: stmmac: avoid rx queue overrun
    c40a19f57010 net: stmmac: fix rx budget limit check
    72caa17c14b4 netfilter: nf_tables: bogus ENOENT when destroying element which does not exist
    1a605657adc5 netfilter: nf_tables: fix pointer math issue in nft_byteorder_eval()
    cbb43d024952 netfilter: nf_conntrack_bridge: initialize err to 0
    eae0b295ce16 af_unix: fix use-after-free in unix_stream_read_actor()
    b971f116733c net: ethernet: cortina: Fix MTU max setting
    458cc008c723 net: ethernet: cortina: Handle large frames
    fbe560020a5f net: ethernet: cortina: Fix max RX frame define
    87c49806a37f bonding: stop the device in bond_setup_by_slave()
    fa9dac68ce73 ptp: annotate data-race around q->head and q->tail
    e9c309ded295 blk-mq: make sure active queue usage is held for bio_integrity_prep()
    36fcea86f71d xen/events: fix delayed eoi list handling
    ebbb5baa134a ppp: limit MRU to 64K
    230dc06e2495 net: mvneta: fix calls to page_pool_get_stats
    b70f095b30ee tipc: Fix kernel-infoleak due to uninitialized TLV value
    e4514960282d net: hns3: fix VF wrong speed and duplex issue
    96f9229c8459 net: hns3: fix VF reset fail issue
    cdae6292604c net: hns3: fix variable may not initialized problem in hns3_init_mac_addr()
    be1f703f39ef net: hns3: fix out-of-bounds access may occur when coalesce info is read via debugfs
    3a948d0aed3d net: hns3: fix incorrect capability bit display for copper port
    3d7e5e30124b net: hns3: add barrier in vf mailbox reply process
    53ba90be73c1 net: hns3: fix add VLAN fail issue
    0ad883132835 xen/events: avoid using info_for_irq() in xen_send_IPI_one()
    fdd76a1e9353 tty: Fix uninit-value access in ppp_sync_receive()
    8872dc638c24 ipvlan: add ipvlan_route_v6_outbound() helper
    d239d81b660b net: set SOCK_RCU_FREE before inserting socket into hashtable
    d31958f65e48 bpf: fix precision backtracking instruction iteration
    732b237269e0 bpf: handle ldimm64 properly in check_cfg()
    9aea191c29e1 gcc-plugins: randstruct: Only warn about true flexible arrays
    ae8ea4e20067 vhost-vdpa: fix use after free in vhost_vdpa_probe()
    ba9626b4c2bb vdpa_sim_blk: allocate the buffer zeroed
    50aa75671d30 drm/i915/tc: Fix -Wformat-truncation in intel_tc_port_init
    5e43db2d8c1d gfs2: Silence "suspicious RCU usage in gfs2_permission" warning
    a00a7a028bcd riscv: provide riscv-specific is_trap_insn()
    377befc2e809 RISC-V: hwprobe: Fix vDSO SIGSEGV
    1cdb52ffd660 SUNRPC: Fix RPC client cleaned up the freed pipefs dentries
    b8919192ab62 NFSv4.1: fix SP4_MACH_CRED protection for pnfs IO
    5d215bd58b1e SUNRPC: Add an IS_ERR() check back to where it was
    3c51fac1ae19 NFSv4.1: fix handling NFS4ERR_DELAY when testing for session trunking
    37c6ca6a1931 drm/i915/mtl: avoid stringop-overflow warning
    8250fdd1daa3 mtd: rawnand: meson: check return value of devm_kasprintf()
    6fc0bc01eef1 mtd: rawnand: intel: check return value of devm_kasprintf()
    0b8fb1758ef6 SUNRPC: ECONNRESET might require a rebind
    cc0ccee308e8 dt-bindings: serial: fix regex pattern for matching serial node children
    61576b7a0f28 samples/bpf: syscall_tp_user: Fix array out-of-bound access
    923697c686e7 samples/bpf: syscall_tp_user: Rename num_progs into nr_tests
    64cdff87126d sched/core: Optimize in_task() and in_interrupt() a bit
    de9b4f65e9e2 wifi: iwlwifi: Use FW rate for non-data frames
    e651a075d817 mtd: rawnand: tegra: add missing check for platform_get_irq()
    c19a8794bf4f pwm: Fix double shift bug
    81663506ed83 drm/amdgpu: fix software pci_unplug on some chips
    5764e6c861f2 ALSA: hda/realtek: Add quirk for ASUS UX7602ZM
    1acf0293d713 drm/qxl: prevent memory leak
    4e35ae99f85d ASoC: ti: omap-mcbsp: Fix runtime PM underflow warnings
    fe4eb2157d8c i2c: dev: copy userspace array safely
    1493baaf09e3 riscv: VMAP_STACK overflow detection thread-safe
    c99fff688529 kgdb: Flush console before entering kgdb on panic
    6d8653b1a7a8 drm/amd/display: Avoid NULL dereference of timing generator
    10ec5a97f8f5 media: imon: fix access to invalid resource for the second interface
    163c0a38dfaf media: ccs: Fix driver quirk struct documentation
    359f6509b342 media: cobalt: Use FIELD_GET() to extract Link Width
    ba5c85a4f30c gfs2: fix an oops in gfs2_permission
    212f112fe5e9 gfs2: ignore negated quota changes
    6928a428218e media: ipu-bridge: increase sensor_name size
    be36843c9691 media: vivid: avoid integer overflow
    93bddd6529f1 media: gspca: cpia1: shift-out-of-bounds in set_flicker
    3cb79a365e7c i3c: master: mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
    017278f14114 virtio-blk: fix implicit overflow on virtio_max_dma_size
    ef0de19402e5 i2c: sun6i-p2wi: Prevent potential division by zero
    43306cc76119 i2c: fix memleak in i2c_new_client_device()
    f10b93471818 i2c: i801: Add support for Intel Birch Stream SoC
    7c2b91b30d74 i3c: mipi-i3c-hci: Fix out of bounds access in hci_dma_irq_handler
    454a176943a2 9p: v9fs_listxattr: fix %s null argument warning
    e0f8790383ef 9p/trans_fd: Annotate data-racy writes to file::f_flags
    a65245d663ee usb: gadget: f_ncm: Always set current gadget in ncm_bind()
    95d3f58e1d4e usb: host: xhci: Avoid XHCI resume delay if SSUSB device is not present
    ecf58b678d4b f2fs: fix error handling of __get_node_page
    184b4e42d929 f2fs: fix error path of __f2fs_build_free_nids
    38f43d43f20a soundwire: dmi-quirks: update HP Omen match
    5b13bb603d05 usb: ucsi: glink: use the connector orientation GPIO to provide switch events
    5a6afa6a8427 usb: dwc3: core: configure TX/RX threshold for DWC3_IP
    11fbc8357820 phy: qualcomm: phy-qcom-eusb2-repeater: Zero out untouched tuning regs
    d86b03dc9041 phy: qualcomm: phy-qcom-eusb2-repeater: Use regmap_fields
    5fe0d30ecdc4 dt-bindings: phy: qcom,snps-eusb2-repeater: Add magic tuning overrides
    4a24a3182624 tty: vcc: Add check for kstrdup() in vcc_probe()
    5440e83534ee thunderbolt: Apply USB 3.x bandwidth quirk only in software connection manager
    b028f89c56e9 iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe()
    d6703d4a0686 mfd: intel-lpss: Add Intel Lunar Lake-M PCI IDs
    807ee5504236 exfat: support handle zero-size directory
    e9cf5b36ef98 HID: Add quirk for Dell Pro Wireless Keyboard and Mouse KM5221W
    5b6af0a7196a crypto: hisilicon/qm - prevent soft lockup in receive loop
    9e7c0059fbe1 ASoC: Intel: soc-acpi-cht: Add Lenovo Yoga Tab 3 Pro YT3-X90 quirk
    4113955cb689 PCI: Use FIELD_GET() in Sapphire RX 5600 XT Pulse quirk
    4c525492f1c5 misc: pci_endpoint_test: Add Device ID for R-Car S4-8 PCIe controller
    1567af9a411c PCI: dwc: Add missing PCI_EXP_LNKCAP_MLW handling
    89973bbce2c8 PCI: dwc: Add dw_pcie_link_set_max_link_width()
    27622f8b50ba PCI: Disable ATS for specific Intel IPU E2000 devices
    0ac15627471b PCI: Extract ATS disabling to a helper function
    5bb6d731d45e PCI: Use FIELD_GET() to extract Link Width
    f6fe7261b92b scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()
    668b8ec30762 PCI: Do error check on own line to split long "if" conditions
    db8e4d8567a7 atm: iphase: Do PCI error checks on own line
    4faeebe638ca PCI: mvebu: Use FIELD_PREP() with Link Width
    7f7d54926b39 PCI: tegra194: Use FIELD_GET()/FIELD_PREP() with Link Width fields
    def5e864ca2d gpiolib: of: Add quirk for mt2701-cs42448 ASoC sound
    fe7c1a0c2b25 ALSA: hda: Fix possible null-ptr-deref when assigning a stream
    c23ff8ea21bd ARM: 9320/1: fix stack depot IRQ stack filter
    9de5ae56f4f3 HID: lenovo: Detect quirk-free fw on cptkbd and stop applying workaround
    665b44e55c27 jfs: fix array-index-out-of-bounds in diAlloc
    88b7894a8f87 jfs: fix array-index-out-of-bounds in dbFindLeaf
    dca403bb035a fs/jfs: Add validity check for db_maxag and db_agpref
    491085258185 fs/jfs: Add check for negative db_l2nbperpage
    d2af4ef80601 scsi: ibmvfc: Remove BUG_ON in the case of an empty event pool
    75a2656260fe scsi: hisi_sas: Set debugfs_dir pointer to NULL after removing debugfs
    b3e52db0e9d1 RDMA/hfi1: Use FIELD_GET() to extract Link Width
    f5437f4a3ec9 ASoC: SOF: ipc4: handle EXCEPTION_CAUGHT notification from firmware
    e134f3aba98e crypto: pcrypt - Fix hungtask for PADATA_RESET
    355946538c39 ASoC: SOF: Pass PCI SSID to machine driver
    e670059e8c20 ASoC: soc-card: Add storage for PCI SSID
    0adc6613c263 ASoC: mediatek: mt8188-mt6359: support dynamic pinctrl
    9da3382085dc selftests/efivarfs: create-read: fix a resource leak
    a7e2f27557df arm64: dts: ls208xa: use a pseudo-bus to constrain usb dma size
    5b4574b663d0 drm/amd: check num of link levels when update pcie param
    3b0135937936 drm/amd/display: fix num_ways overflow error
    1f20cb1da4dd drm/amd: Disable PP_PCIE_DPM_MASK when dynamic speed switching not supported
    820daf9ffe2b drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL
    d33a35b13cbf drm/amdkfd: Fix shift out-of-bounds issue
    16f77d4264c4 drm/panel: st7703: Pick different reset sequence
    8c6c85a07376 drm/amdgpu/vkms: fix a possible null pointer dereference
    22d7ec972cd9 drm/radeon: fix a possible null pointer dereference
    9268bfd76beb drm/panel/panel-tpo-tpg110: fix a possible null pointer dereference
    4fa930ba046d drm/panel: fix a possible null pointer dereference
    b0702ee4d811 drm/amdgpu: Fix potential null pointer derefernce
    7c68283f3166 drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga
    6dffdddfca81 drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7
    dec5469ce9f5 drm/msm/dp: skip validity check for DP CTS EDID checksum
    1eacb4c96e73 drm: vmwgfx_surface.c: copy user-array safely
    301e597e7b81 drm_lease.c: copy user-array safely
    c7acf02df167 kernel: watch_queue: copy user-array safely
    b0ed017a2b97 kernel: kexec: copy user-array safely
    5562f0a42844 string.h: add array-wrappers for (v)memdup_user()
    811539a2ec93 drm/amd/display: use full update for clip size increase of large plane source
    e9b638de04b0 drm/amd: Update `update_pcie_parameters` functions to use uint8_t arguments
    c772eacbd6d0 drm/amdkfd: Fix a race condition of vram buffer unref in svm code
    3ec74308f17a drm/amdgpu: not to save bo in the case of RAS err_event_athub
    77eee682f437 md: don't rely on 'mddev->pers' to be set in mddev_suspend()
    c2a7847c0d4b drm/edid: Fixup h/vsync_end instead of h/vtotal
    de7550fe430f drm/amd/display: add seamless pipe topology transition check
    356dee34f5db drm/amd/display: Don't lock phantom pipe on disabling
    f1035d36fd45 drm/amd/display: Blank phantom OTG before enabling
    11c3ebd1d2b7 drm/komeda: drop all currently held locks if deadlock happens
    c7f81cd3e9c9 drm/amdkfd: ratelimited SQ interrupt messages
    d6f17735d8da drm/gma500: Fix call trace when psb_gem_mm_init() fails
    54d7dd51345a platform/x86: thinkpad_acpi: Add battery quirk for Thinkpad X120e
    99171d81c5bc of: address: Fix address translation when address-size is greater than 2
    3df4c7945390 platform/chrome: kunit: initialize lock for fake ec_dev
    ad1b721c9d16 gpiolib: acpi: Add a ignore interrupt quirk for Peaq C1010
    6165ae149eaa tsnep: Fix tsnep_request_irq() format-overflow warning
    6a2c311fd0dc ACPI: EC: Add quirk for HP 250 G7 Notebook PC
    fc666d1b4751 Bluetooth: Fix double free in hci_conn_cleanup
    0048ddf045bd Bluetooth: btusb: Add date->evt_skb is NULL check
    dd860dff8058 wifi: iwlwifi: mvm: fix size check for fw_link_id
    cc8de9383c72 bpf: Ensure proper register state printing for cond jumps
    cb2cfbec0982 vsock: read from socket's error queue
    104922ba6602 net: sfp: add quirk for FS's 2.5G copper SFP
    aa47f6382bd1 wifi: ath10k: Don't touch the CE interrupt registers after power up
    b2e99ba69ce6 wifi: ath12k: mhi: fix potential memory leak in ath12k_mhi_register()
    fb3a71a8383f net: annotate data-races around sk->sk_dst_pending_confirm
    37e1a89a8728 net: annotate data-races around sk->sk_tx_queue_mapping
    437538c00f19 wifi: mt76: mt7921e: Support MT7992 IP in Xiaomi Redmibook 15 Pro (2023)
    cde2a1d8c9da net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI
    8d95caf80366 ACPI: APEI: Fix AER info corruption when error status data has multiple sections
    dfe13eaab043 wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps()
    0b8e7c1169a6 wifi: ath10k: fix clang-specific fortify warning
    79527c21a3ce wifi: ath12k: fix possible out-of-bound read in ath12k_htt_pull_ppdu_stats()
    c4992b79fadc wifi: ath9k: fix clang-specific fortify warnings
    327b92e8cb52 bpf: Detect IP == ksym.end as part of BPF program
    54a6152da499 atl1c: Work around the DMA RX overflow issue
    adc2474d823f wifi: mac80211: don't return unset power in ieee80211_get_tx_power()
    6100f6013af0 wifi: mac80211_hwsim: fix clang-specific fortify warning
    b8966720c3a0 wifi: ath12k: Ignore fragments from uninitialized peer in dp
    ed0ac28cbc2a wifi: plfxlc: fix clang-specific fortify warning
    66e460eeaa70 x86/mm: Drop the 4 MB restriction on minimal NUMA node memory size
    d112c682c47f workqueue: Provide one lock class key per work_on_cpu() callsite
    335a47ed71e3 cpu/hotplug: Don't offline the last non-isolated CPU
    2ca04946b4ea smp,csd: Throw an error if a CSD lock is stuck for too long
    d4d2297d04bf srcu: Only accelerate on enqueue time
    c05cbfcb6eee clocksource/drivers/timer-atmel-tcb: Fix initialization on SAM9 hardware
    8ea7a452dc7d clocksource/drivers/timer-imx-gpt: Fix potential memory leak
    161a323c60d0 selftests/lkdtm: Disable CONFIG_UBSAN_TRAP in test config
    8c3b1175d152 srcu: Fix srcu_struct node grpmask overflow on 64-bit systems
    2424410f94a9 perf/core: Bail out early if the request AUX area is out of bound
    c485c94c0b8b x86/retpoline: Make sure there are no unconverted return thunks due to KCSAN
    ec298b958cb0 lib/generic-radix-tree.c: Don't overflow in peek()
    96612b6f99d5 btrfs: abort transaction on generation mismatch when marking eb as dirty
    e36407713163 locking/ww_mutex/test: Fix potential workqueue corruption

(From OE-Core rev: e28367970d90ffdd501c1876a950e645486bdaf1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
baa9a89ef4 linux-yocto/6.5: update to v6.5.12
Updating  to the latest korg -stable release that comprises
the following commits:

    fa1be4637aad Linux 6.5.12
    39ee8317876f btrfs: make found_logical_ret parameter mandatory for function queue_scrub_stripe()
    1c44debc30d2 perf parse-events: Fix driver config term
    9a955334c112 bpf, x86: initialize the variable "first_off" in save_args()
    3dccc81f9ea9 btrfs: use u64 for buffer sizes in the tree search ioctls
    7fbd30155906 Revert "mmc: core: Capture correct oemid-bits for eMMC cards"
    2ee1f00866ac Revert "PCI/ASPM: Disable only ASPM_STATE_L1 when driver, disables L1"
    b592cec2a478 x86/amd_nb: Use Family 19h Models 60h-7Fh Function 4 IDs
    9e1c7fe85391 io_uring/net: ensure socket is marked connected on connect retry
    c0ba439a4333 selftests: mptcp: fix wait_rm_addr/sf parameters
    8a0ba7e4b2e8 Revert "drm/ast: report connection status on Display Port."
    718dfd5b1646 tracing/kprobes: Fix the order of argument descriptions
    afc10d0ca630 fbdev: fsl-diu-fb: mark wr_reg_wa() static
    6e6676c34078 ALSA: hda/realtek: Add support dual speaker for Dell
    18d26f9baca7 fbdev: imsttfb: fix a resource leak in probe
    32310dbf0aa9 fbdev: imsttfb: fix double free in probe()
    7446c44198a5 arm64/arm: arm_pmuv3: perf: Don't truncate 64-bit registers
    68b1ad75906b spi: spi-zynq-qspi: add spi-mem to driver kconfig dependencies
    033ade77d851 ASoC: dapm: fix clock get name
    18795fc33915 ASoC: hdmi-codec: register hpd callback on component probe
    a3ef9afd315a ASoC: mediatek: mt8186_mt6366_rt1019_rt5682s: trivial: fix error messages
    2f769f4c557b drm/syncobj: fix DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE
    fe131f6d71c5 drm/vc4: tests: Fix UAF in the mock helpers
    b2628d195a02 module/decompress: use kvmalloc() consistently
    990345880a1c RISC-V: Don't fail in riscv_of_parent_hartid() for disabled HARTs
    c59f92817719 net/sched: act_ct: Always fill offloading tuple iifidx
    61fd0c64e3bf netfilter: nat: fix ipv6 nat redirect with mapped and scoped addresses
    a95ea2622afb netfilter: xt_recent: fix (increase) ipv6 literal buffer length
    52f7f210bd3d i2c: iproc: handle invalid slave state
    f706e2c9adf2 net: enetc: shorten enetc_setup_xdp_prog() error message to fit NETLINK_MAX_FMTMSG_LEN
    93e7f8feacb1 r8169: respect userspace disabling IFF_MULTICAST
    dbe7967095a5 vsock/virtio: remove socket from connected/bound list on shutdown
    0828d76ba2f9 blk-core: use pr_warn_ratelimited() in bio_check_ro()
    879947f4180b nbd: fix uaf in nbd_open
    d5d744277c03 tg3: power down device only on SYSTEM_POWER_OFF
    57efa187cda5 riscv: boot: Fix creation of loader.bin
    209a13dc04d0 nvme: fix error-handling for io_uring nvme-passthrough
    bf6571bb260b net/smc: put sk reference if close work was canceled
    8d6a49fc39ed net/smc: allow cdc msg send rather than drop it with NULL sndbuf_desc
    6904598dd970 net/smc: fix dangling sock under state SMC_APPFINCLOSEWAIT
    a63ff94ae244 octeontx2-pf: Free pending and dropped SQEs
    d888fcdaa87d selftests: pmtu.sh: fix result checking
    5917a439643b net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs
    aeb378667a00 Fix termination state for idr_for_each_entry_ul()
    28220ff13ac3 net: r8169: Disable multicast filter for RTL8168H and RTL8107E
    0577f93e8481 dccp/tcp: Call security_inet_conn_request() after setting IPv6 addresses.
    9e5386d494fd dccp: Call security_inet_conn_request() after setting IPv4 addresses.
    59f1841a9b14 net: page_pool: add missing free_percpu when page_pool_init fail
    c84f297964fe octeontx2-pf: Fix holes in error code
    b3e4e1162368 octeontx2-pf: Fix error codes
    688f277d0592 inet: shrink struct flowi_common
    d5574d0ad4c4 bpf: Check map->usercnt after timer->timer is assigned
    fe4d6a419062 rxrpc: Fix two connection reaping bugs
    abc1582119e8 tipc: Change nla_policy for bearer-related names to NLA_NUL_STRING
    1787b9f0729d hsr: Prevent use after free in prp_create_tagged_frame()
    0a720d0259ad llc: verify mac len before reading mac header
    f1fd72c06d8e watchdog: ixp4xx: Make sure restart always works
    cc56c4d17721 Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()
    3448b7ba8c56 pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume
    98965075e630 pwm: sti: Reduce number of allocations and drop usage of chip_data
    da97367c938d drm/amdgpu: don't put MQDs in VRAM on ARM | ARM64
    5bb28ff319bf drm/amdgpu/gfx10,11: use memcpy_to/fromio for MQDs
    f6ac81f82692 regmap: prevent noinc writes from clobbering cache
    f232770077e8 cpupower: fix reference to nonexistent document
    531129a7e935 media: cec: meson: always include meson sub-directory in Makefile
    d4076de583f3 media: platform: mtk-mdp3: fix uninitialized variable in mdp_path_config()
    af9c02dd5962 media: imx-jpeg: notify source chagne event when the first picture parsed
    963ac643508a media: verisilicon: Fixes clock list for rk3588 av1 decoder
    1180f59a5b3c media: dvb-usb-v2: af9035: fix missing unlock
    a7ee4299b025 media: cadence: csi2rx: Unregister v4l2 async notifier
    b9be6d023c3e media: cedrus: Fix clock/reset sequence
    cb1300141199 media: vidtv: mux: Add check and kfree for kstrdup
    5cfcc8de7d73 media: vidtv: psi: Add check for kstrdup
    88bdfe1a2439 media: s3c-camif: Avoid inappropriate kfree()
    f589aad0768a media: mtk-jpegenc: Fix bug in JPEG encode quality selection
    1ef450564770 media: amphion: handle firmware debug message
    1871014d6ef4 media: bttv: fix use after free error due to btv->timeout timer
    b43848690b3f media: ov5640: Fix a memory leak when ov5640_probe fails
    220f763dcad3 media: i2c: max9286: Fix some redundant of_node_put() calls
    c4c8324eb142 media: ov5640: fix vblank unchange issue when work at dvp mode
    e028c9573dde media: verisilicon: Do not enable G2 postproc downscale if source is narrower than destination
    66b4c5f980d7 media: hantro: Check whether reset op is defined before use
    a2e2190d994a media: imx-jpeg: initiate a drain of the capture queue in dynamic resolution change
    7ef4cebe945e pcmcia: ds: fix possible name leak in error path in pcmcia_device_add()
    65559a64c276 pcmcia: ds: fix refcount leak in pcmcia_device_add()
    7b3607be4576 pcmcia: cs: fix possible hung task and memory leak pccardd()
    d98f43ab71e5 cxl/hdm: Remove broken error path
    ce82bfafd6f9 cxl/port: Fix @host confusion in cxl_dport_setup_regs()
    f2783b8a218a cxl/core/regs: Rename @dev to @host in struct cxl_register_map
    fb2306ec5099 cxl/region: Fix cxl_region_rwsem lock held when returning to user space
    7ca00fb8c99d cxl/region: Use cxl_calc_interleave_pos() for auto-discovery
    043facdd8d5d cxl/region: Calculate a target position in a region interleave
    5d86b34317d5 cxl/region: Prepare the decoder match range helper for reuse
    c2723a64b63b rtc: pcf85363: fix wrong mask/val parameters in regmap_update_bits call
    5e9051bf642e rtc: pcf85363: Allow to wake up system without IRQ
    a8a063f2c5ec virt: sevguest: Fix passing a stack buffer as a scatterlist target
    cad22a757029 cxl/mem: Fix shutdown order
    516fba3bd586 cxl/memdev: Fix sanitize vs decoder setup locking
    8e09215aadde cxl/pci: Fix sanitize notifier setup
    d50d70827e2a cxl/pci: Clarify devm host for memdev relative setup
    ba524b221cb4 cxl/pci: Remove inconsistent usage of dev_err_probe()
    a1124adef547 cxl/pci: Cleanup 'sanitize' to always poll
    7be8c47426cf cxl/pci: Remove unnecessary device reference management in sanitize work
    e7afa8a065a0 rtc: brcmstb-waketimer: support level alarm_irq
    b24cf43d9bab i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs
    bcf5e18c0beb rtla: Fix uninitialized variable found
    48b318939955 9p/net: fix possible memory leak in p9_check_errors()
    9a4cc8e1ad73 perf vendor events intel: Add broadwellde two metrics
    e5270cbe0252 perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric
    ccbe6d8c6b4a perf hist: Add missing puts to hist__account_cycles
    57c01bae6c24 libperf rc_check: Make implicit enabling work for GCC
    64fe182e0b20 perf machine: Avoid out of bounds LBR memory read
    a43bdc6ba342 usb: host: xhci-plat: fix possible kernel oops while resuming
    7b8ae3c24efd xhci: Loosen RPM as default policy to cover for AMD xHC 1.1
    056a83850468 perf vendor events: Update PMC used in PM_RUN_INST_CMPL event for power10 platform
    ed905e38c0f2 powerpc/pseries: fix potential memory leak in init_cpu_associativity()
    104f083c5df3 powerpc/imc-pmu: Use the correct spinlock initializer.
    c3f620809a61 powerpc/vas: Limit open window failure messages in log bufffer
    d9d00713b8f7 perf trace: Use the right bpf_probe_read(_str) variant for reading user data
    3af067e50b0e powerpc: Hide empty pt_regs at base of the stack
    fc7957384d7e powerpc/xive: Fix endian conversion size
    1fe1c98a72d2 powerpc/40x: Remove stale PTE_ATOMIC_UPDATES macro
    ea654911b8ee perf tools: Do not ignore the default vmlinux.h
    35278545af13 modpost: fix ishtp MODULE_DEVICE_TABLE built on big-endian host
    db40f538c825 modpost: fix tee MODULE_DEVICE_TABLE built on big-endian host
    6fbbf9f14a53 s390/ap: re-init AP queues on config on
    e94732825a5a perf mem-events: Avoid uninitialized read
    34ca27039e1f perf pmu: Remove logic for PMU name being NULL
    4890aaf24b0c perf parse-events: Fix for term values that are raw events
    63e14dbe45f8 perf build: Add missing comment about NO_LIBTRACEEVENT=1
    49dc517a904e interconnect: fix error handling in qnoc_probe()
    4eb6e78b3f81 powerpc: Only define __parse_fpscr() when required
    7e324e99321c interconnect: qcom: sm8350: Set ACV enable_mask
    ed261c06fcf9 interconnect: qcom: sm8350: Retire DEFINE_QBCM
    6bbf49794fb4 interconnect: qcom: sm8150: Set ACV enable_mask
    389fd2613208 interconnect: qcom: sm8150: Retire DEFINE_QBCM
    57ba6e84bc32 interconnect: qcom: sm6350: Set ACV enable_mask
    ff36f2775bea interconnect: qcom: sm6350: Retire DEFINE_QBCM
    885139b6a071 interconnect: qcom: sdm845: Set ACV enable_mask
    1940f9a3f735 interconnect: qcom: sdm845: Retire DEFINE_QBCM
    f82f1ddb7ec5 interconnect: qcom: sdm670: Set ACV enable_mask
    e8720308de88 interconnect: qcom: sdm670: Retire DEFINE_QBCM
    b7d939c28f80 interconnect: qcom: sc8280xp: Set ACV enable_mask
    9640f78cdc0e interconnect: qcom: sc8180x: Set ACV enable_mask
    0f1b8085a42f interconnect: qcom: sc7280: Set ACV enable_mask
    b5db623daed9 interconnect: qcom: sc7180: Set ACV enable_mask
    4ca7387d611b interconnect: qcom: sc7180: Retire DEFINE_QBCM
    899b86659064 interconnect: qcom: qdu1000: Set ACV enable_mask
    00ca5edeaed1 f2fs: fix to initialize map.m_pblk in f2fs_precache_extents()
    c8fff2c9225f dmaengine: pxa_dma: Remove an erroneous BUG_ON() in pxad_free_desc()
    9a8656a5300c USB: usbip: fix stub_dev hub disconnect
    356a5f8bdb6d tools: iio: iio_generic_buffer ensure alignment
    4428cd427855 misc: st_core: Do not call kfree_skb() under spin_lock_irqsave()
    9bbdea45ea79 tools/perf: Update call stack check in builtin-lock.c
    21e32bf0bb27 dmaengine: ti: edma: handle irq_of_parse_and_map() errors
    5356ca664710 usb: chipidea: Simplify Tegra DMA alignment code
    ac69dc32af3b usb: chipidea: Fix DMA overwrite for Tegra
    3e851a77a13c usb: dwc2: fix possible NULL pointer dereference caused by driver concurrency
    50daad99bd7a dmaengine: idxd: Register dsa_bus_type before registering idxd sub-drivers
    faa48ed2647c perf record: Fix BTF type checks in the off-cpu profiling
    25a88c08352d pinctrl: renesas: rzg2l: Make reverse order of enable() for disable()
    432909464fd9 livepatch: Fix missing newline character in klp_resolve_symbols()
    ad3fa6cc3e23 perf parse-events: Fix tracepoint name memory leak
    bd64a16ba2c5 perf tools: Revert enable indices setting syntax for BPF map
    acd50fcdd4e4 perf parse-events: Remove ABORT_ON
    ee4558a6e062 perf parse-events: Remove unused PE_KERNEL_PMU_EVENT token
    84d2e3f3e74c perf parse-events: Remove unused PE_PMU_EVENT_FAKE token
    49a22ed339a5 tty: tty_jobctrl: fix pid memleak in disassociate_ctty()
    eb42e1862aa7 f2fs: fix to drop meta_inode's page cache in f2fs_put_super()
    d759d1d271f6 f2fs: compress: fix to avoid redundant compress extension
    932ddb5c29e8 f2fs: compress: fix to avoid use-after-free on dic
    f783e3507b09 f2fs: compress: fix deadloop in f2fs_write_cache_pages()
    03832670f99e perf kwork: Set ordered_events to true in 'struct perf_tool'
    7990bb48feea perf kwork: Add the supported subcommands to the document
    83237a95d315 perf kwork: Fix incorrect and missing free atom in work_push_atom()
    0c0044a01cb7 iio: frequency: adf4350: Use device managed functions and fix power down issue.
    89ad251b6f99 perf stat: Fix aggr mode initialization
    f997e1b08f88 apparmor: fix invalid reference on profile->disconnected
    74e5ce33ed3b scripts/gdb: fix usage of MOD_TEXT not defined when CONFIG_MODULES=n
    b76057527912 leds: trigger: ledtrig-cpu:: Fix 'output may be truncated' issue for 'cpu'
    dd88eb7b0c60 leds: pwm: Don't disable the PWM when the LED should be off
    5a237df850f0 leds: turris-omnia: Do not use SMBUS calls
    48c32d8df085 leds: turris-omnia: Drop unnecessary mutex locking
    e84a57ce0435 mfd: arizona-spi: Set pdata.hpdet_channel for ACPI enumerated devs
    49797594d234 dt-bindings: mfd: mt6397: Split out compatible for MediaTek MT6366 PMIC
    e97de887bd28 mfd: dln2: Fix double put in dln2_probe
    b8af0a637afc mfd: core: Ensure disabled devices are skipped without aborting
    b666088a7df2 mfd: core: Un-constify mfd_cell.of_reg
    4f4a7a7d1404 IB/mlx5: Fix init stage error handling to avoid double free of same QP and UAF
    531a6b22b5af erofs: fix erofs_insert_workgroup() lockref usage
    300041583ea5 ASoC: ams-delta.c: use component after check
    837afdc92f69 crypto: qat - fix deadlock in backlog processing
    e7c29266f520 certs: Break circular dependency when selftest is modular
    1e901bcb8af1 padata: Fix refcnt handling in padata_free_shell()
    65f881a0a90d PCI: endpoint: Fix double free in __pci_epc_create()
    f013769f70d3 ASoC: Intel: Skylake: Fix mem leak when parsing UUIDs fails
    cfe88cf748cc HID: logitech-hidpp: Move get_wireless_feature_index() check to hidpp_connect_event()
    c8836943bd4e HID: logitech-hidpp: Revert "Don't restart communication if not necessary"
    aedb6041da69 HID: logitech-hidpp: Don't restart IO, instead defer hid_connect() only
    b4f35870a9b9 sh: bios: Revive earlyprintk support
    08420113b468 HID: uclogic: Fix a work->entry not empty bug in __queue_work()
    64da1f6147da HID: uclogic: Fix user-memory-access bug in uclogic_params_ugee_v2_init_event_hooks()
    f06c2b93502f hid: cp2112: Fix IRQ shutdown stopping polling for all IRQs on chip
    8ef4b7548dcb HID: cp2112: Make irq_chip immutable
    abc6ac81a306 RDMA/hfi1: Workaround truncation compilation error
    8a517831ca9f scsi: ufs: core: Leave space for '\0' in utf8 desc string
    e1fc0752d5e8 ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe
    cd666d29c1ad ASoC: SOF: core: Ensure sof_ops_free() is still called when probe never ran.
    87820275278d RDMA/hns: The UD mode can only be configured with DCQCN
    aaf04e12b60a RDMA/hns: Add check for SL
    37d9b4a8842f RDMA/hns: Fix signed-unsigned mixed comparisons
    3e7665413c0d RDMA/hns: Fix uninitialized ucmd in hns_roce_create_qp_common()
    035a843df60a RDMA/hns: Fix printing level of asynchronous events
    767e4c76e0da IB/mlx5: Fix rdma counter binding for RAW QP
    13ee0d9bae3b dlm: fix no ack after final message
    f67500a59f82 ASoC: fsl-asoc-card: Add comment for mclk in the codec_priv
    b66d7d971467 ASoC: Intel: sof_sdw_rt_sdca_jack_common: add rt713 support
    afdf67c1a521 backlight: pwm_bl: Disable PWM on shutdown, suspend and remove
    f9501d0c1015 ASoC: fsl: mpc5200_dma.c: Fix warning of Function parameter or member not described
    73be585b2912 kselftest: vm: fix mdwe's mmap_FIXED test case
    8575339a5f7c ext4: move 'ix' sanity check to corrent position
    3456dad3d723 ARM: 9323/1: mm: Fix ARCH_LOW_ADDRESS_LIMIT when CONFIG_ZONE_DMA
    1d09354dca6e ARM: 9321/1: memset: cast the constant byte to unsigned char
    11eb0faaae67 crypto: hisilicon/qm - fix PF queue parameter issue
    fb5718bc6733 hid: cp2112: Fix duplicate workqueue initialization
    2f0367ea3a9e PCI: vmd: Correct PCI Header Type Register's multi-function check
    531f107ee700 ASoC: SOF: ipc4-topology: Use size_add() in call to struct_size()
    461b4df72256 crypto: qat - increase size of buffers
    60f93c3b75ff crypto: caam/jr - fix Chacha20 + Poly1305 self test failure
    886e2995b42b crypto: caam/qi2 - fix Chacha20 + Poly1305 self test failure
    b27751fb1f27 nd_btt: Make BTT lanes preemptible
    4f08f132c996 libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value
    4778c1dd656e ASoC: soc-pcm.c: Make sure DAI parameters cleared if the DAI becomes inactive
    ffce1dc8457e scsi: ibmvfc: Fix erroneous use of rtas_busy_delay with hcall return code
    f666c814dc5b crypto: qat - fix unregistration of compression algorithms
    adeee72f0e3b crypto: qat - fix unregistration of crypto algorithms
    99fe5f7b6c99 crypto: qat - ignore subsequent state up commands
    36f45cb3d919 crypto: qat - fix state machines cleanup paths
    8946a17a70c5 RDMA/core: Use size_{add,sub,mul}() in calls to struct_size()
    64254a5b9427 hwrng: geode - fix accessing registers
    b9f8f249a551 hwrng: bcm2835 - Fix hwrng throughput regression
    bc49891f9871 crypto: hisilicon/hpre - Fix a erroneous check after snprintf()
    fce1075147a5 KEYS: Include linux/errno.h in linux/verification.h
    cb759656ffb0 ALSA: hda: cs35l41: Undo runtime PM changes at driver exit time
    bcb94863b056 ALSA: hda: cs35l41: Fix unbalanced pm_runtime_get()
    8cd0ae3660b1 ASoC: cs35l41: Undo runtime PM changes at driver exit time
    22f034db12a2 ASoC: cs35l41: Verify PM runtime resume errors in IRQ handler
    809ec9f7d474 ASoC: cs35l41: Initialize completion object before requesting IRQ
    30a7908fdc18 ASoC: cs35l41: Handle mdsync_down reg write errors
    065d45141019 module/decompress: use vmalloc() for gzip decompression workspace
    1475a083ccee iommufd: Add iopt_area_alloc()
    0a54ac6ff6cc ARM: dts: BCM5301X: Explicitly disable unused switch CPU ports
    bd3cab2d710e soc: qcom: pmic_glink: fix connector type to be DisplayPort
    59a31165fe6d selftests/resctrl: Ensure the benchmark commands fits to its array
    ab13ca1ef2dd selftests/pidfd: Fix ksft print formats
    87483b30fad2 arm64: tegra: Use correct interrupts for Tegra234 TKE
    8e3f93cd849f memory: tegra: Set BPMP msg flags to reset IPC channels
    e3e711ef8a10 firmware: tegra: Add suspend hook and reset BPMP IPC early on resume
    ef3a7c256462 arm64: tegra: Fix P3767 QSPI speed
    d2ab1d75e486 arm64: tegra: Fix P3767 card detect polarity
    0a6baa9b5b64 arm64: dts: imx8mn: Add sound-dai-cells to micfil node
    a1a4d82e99b7 arm64: dts: imx8mm: Add sound-dai-cells to micfil node
    2e79e826233a arm64: dts: imx8mp-debix-model-a: Remove USB hub reset-gpios
    117a07e2e9e2 arm64: dts: imx8qm-ss-img: Fix jpegenc compatible entry
    b0a20843664e clk: scmi: Free scmi_clk allocated when the clocks with invalid info are skipped
    50fc96f3616b ARM: dts: am3517-evm: Fix LED3/4 pinmux
    507d5ffd1af9 firmware: arm_ffa: Allow the FF-A drivers to use 32bit mode of messaging
    90776e2a2f8d firmware: arm_ffa: Assign the missing IDR allocation ID to the FFA device
    128e4aff2c13 arm64: dts: ti: k3-am62a7-sk: Drop i2c-1 to 100Khz
    e1c755a2d0da arm64: dts: ti: k3-am625-beagleplay: Fix typo in ramoops reg
    99639d09f491 firmware: ti_sci: Mark driver as non removable
    2ff42f2d6450 kunit: Fix missed memory release in kunit_free_suite_set()
    3565684309e5 soc: qcom: llcc: Handle a second device without data corruption
    9f388768d380 ARM: dts: qcom: mdm9615: populate vsdcc fixed regulator
    cad2fdf734bc ARM: dts: qcom: apq8026-samsung-matisse-wifi: Fix inverted hall sensor
    895faac163db arm64: dts: qcom: apq8016-sbc: Add missing ADV7533 regulators
    769c5e9d15f6 riscv: dts: allwinner: remove address-cells from intc node
    04be6547e407 arm64: dts: qcom: msm8939: Fix iommu local address range
    f4b77d63a52c arm64: dts: qcom: msm8976: Fix ipc bit shifts
    d71128a962ed ARM64: dts: marvell: cn9310: Use appropriate label for spi1 pins
    19af445c6e45 arm64: dts: qcom: sdm845-mtp: fix WiFi configuration
    a96940caa86a arm64: dts: qcom: sm8350: fix pinctrl for UART18
    27ce256c1f08 arm64: dts: qcom: sm8150: add ref clock to PCIe PHYs
    d1423675ae95 arm64: dts: qcom: sc7280: drop incorrect EUD port on SoC side
    320f5ecb4528 arm64: dts: qcom: qrb2210-rb1: Swap UART index
    732a7b414f99 arm64: dts: qcom: sc7280: Add missing LMH interrupts
    845966edbf49 arm64: dts: qcom: sm6125: Pad APPS IOMMU address to 8 characters
    f9670c979946 arm64: dts: qcom: msm8992-libra: drop duplicated reserved memory
    5a360ea043ec arm64: dts: qcom: msm8916: Fix iommu local address range
    0d28ee4d3034 arm64: dts: qcom: sc7280: link usb3_phy_wrapper_gcc_usb30_pipe_clk
    ad523cd4258b arm64: dts: qcom: sdm845: cheza doesn't support LMh node
    e3d5e71ab28a arm64: dts: qcom: sdm845: Fix PSCI power domain names
    f3531725a243 ARM: dts: renesas: blanche: Fix typo in GP_11_2 pin name
    3405f364f82d perf: hisi: Fix use-after-free when register pmu fails
    3d92672e71d9 drivers/perf: hisi_pcie: Check the type first in pmu::event_init()
    b4a182cd0336 perf/arm-cmn: Fix DTC domain detection
    f0c771695a3f drm/amd/pm: Fix a memory leak on an error path
    3f5827371763 drivers/perf: hisi: use cpuhp_state_remove_instance_nocalls() for hisi_hns3_pmu uninit process
    98812fb0df70 drm: mediatek: mtk_dsi: Fix NO_EOT_PACKET settings/handling
    211267cc420b clocksource/drivers/arm_arch_timer: limit XGene-1 workaround
    57a90fb6ab11 drm/msm/dsi: free TX buffer in unbind
    a4522c7612f3 drm/msm/dsi: use msm_gem_kernel_put to free TX buffer
    2a57291a1131 xen-pciback: Consider INTx disabled when MSI/MSI-X is enabled
    ce60d6cc40fd xenbus: fix error exit in xenbus_init()
    bc27e08ecb09 drm/rockchip: Fix type promotion bug in rockchip_gem_iommu_map()
    1556f041b844 arm64/arm: xen: enlighten: Fix KPTI checks
    0a3d2b736bb9 drm/bridge: lt9611uxc: fix the race in the error path
    4ed0b4b2e49f gpu: host1x: Correct allocated size for contexts
    e30054a351ab drm/rockchip: cdn-dp: Fix some error handling paths in cdn_dp_probe()
    b720a10346a4 accel/habanalabs/gaudi2: Fix incorrect string length computation in gaudi2_psoc_razwi_get_engines()
    5190f8b3cf22 drm/mediatek: Fix iommu fault during crtc enabling
    c34934d7c2e0 drm/mediatek: Fix iommu fault by swapping FBs after updating plane state
    e5c2edb09edd drm/mediatek: Add mmsys_dev_num to mt8188 vdosys0 driver data
    cafff2cfb710 io_uring/kbuf: Allow the full buffer id space for provided buffers
    aabcc4c49967 io_uring/kbuf: Fix check of BID wrapping in provided buffers
    8c18de99dfcc drm/amd/display: Bail from dm_check_crtc_cursor if no relevant change
    7e4702c7b668 drm/amd/display: Refactor dm_get_plane_scale helper
    37289873d183 drm/amd/display: Check all enabled planes in dm_check_crtc_cursor
    97ef07182ac4 drm/amd/display: Fix null pointer dereference in error message
    35a00ee37ab4 drm/amdkfd: Handle errors from svm validate and map
    75800841b2e8 drm/amdkfd: Remove svm range validated_once flag
    96dc6e62eb99 drm/amdkfd: retry after EBUSY is returned from hmm_ranges_get_pages
    68ccd61c8d01 drm/amdkfd: fix some race conditions in vram buffer alloc/free of svm code
    1406172d5b11 drm/amdgpu: Increase IH soft ring size for GFX v9.4.3 dGPU
    84021fa4cf19 drm: Call drm_atomic_helper_shutdown() at shutdown/remove time for misc drivers
    2e6f00e063aa drm/tve200: Convert to platform remove callback returning void
    68da712aa242 drm/stm: Convert to platform remove callback returning void
    813ef38bb98b drm/aspeed: Convert to platform remove callback returning void
    b53575a965c9 drm/bridge: tc358768: Fix tc358768_ns_to_cnt()
    da8168f111ea drm/bridge: tc358768: Clean up clock period code
    194a13ed464a drm/bridge: tc358768: Rename dsibclk to hsbyteclk
    9b7cf64ec8c4 drm/bridge: tc358768: Use dev for dbg prints, not priv->dev
    9ddf3ac09716 drm/bridge: tc358768: Print logical values, not raw register values
    e56561d0354e drm/bridge: tc358768: Use struct videomode
    b85fb1a0721f drm/bridge: tc358768: Fix bit updates
    2ef9177fb721 drm/bridge: tc358768: Fix use of uninitialized variable
    2191950d35d8 x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro
    0d8a1df39d3f drm/mediatek: Fix coverity issue with unintentional integer overflow
    66e2bbbacaf8 drm/bridge: lt8912b: Add missing drm_bridge_attach call
    07a28632f744 drm/bridge: lt8912b: Manually disable HPD only if it was enabled
    fcd9895e3654 drm/bridge: lt8912b: Fix crash on bridge detach
    dd57f6864a59 drm/bridge: lt8912b: Fix bridge_detach
    1669d7b21a66 drm: bridge: it66121: Fix invalid connector dereference
    d9b4fa249dea drm/radeon: possible buffer overflow
    06a7c295473b drm/rockchip: vop2: Add missing call to crtc reset helper
    dbb193beab88 drm/rockchip: vop2: Don't crash for invalid duplicate_state
    ef76ecd31a81 drm/rockchip: vop: Fix call to crtc reset helper
    bf50a93fdca8 drm/rockchip: vop: Fix reset of state in duplicate state crtc funcs
    8b27fbec3dec drm: bridge: samsung-dsim: Fix waiting for empty cmd transfer FIFO on older Exynos
    7da5a7173ddc drm: bridge: for GENERIC_PHY_MIPI_DPHY also select GENERIC_PHY
    1d714586b36d drm: bridge: samsung-dsim: Initialize ULPS EXIT for i.MX8M DSIM
    97c8e2a7bc1f spi: omap2-mcspi: Fix hardcoded reference clock
    9f236f9f4d0d spi: omap2-mcspi: switch to use modern name
    3c266e619ac8 spi: omap2-mcspi: remove redundant dev_err_probe()
    332973079a2f platform/chrome: cros_ec_lpc: Separate host command and irq disable
    19e557524ded hte: tegra: Fix missing error code in tegra_hte_test_probe()
    2c7c5602622e hwmon: (sch5627) Disallow write access if virtual registers are locked
    0a31b778eed7 hwmon: (sch5627) Use bit macros when accessing the control register
    3c3c2d34a4d5 Revert "hwmon: (sch56xx-common) Add automatic module loading on supported devices"
    e323a3990f65 Revert "hwmon: (sch56xx-common) Add DMI override table"
    4833a85169a6 hwmon: (coretemp) Fix potentially truncated sysfs attribute name
    f62b89698478 hwmon: (axi-fan-control) Fix possible NULL pointer dereference
    6d9ce15c5fa1 regulator: qcom-rpmh: Fix smps4 regulator for pm8550ve
    36d85fa7ae0d platform/x86: wmi: Fix opening of char device
    7298b80337aa platform/x86: wmi: Fix probe failure when failing to register WMI devices
    e6fed83e33af clk: mediatek: fix double free in mtk_clk_register_pllfh()
    63d552f9dae8 clk: qcom: ipq5332: drop the CLK_SET_RATE_PARENT flag from GPLL clocks
    6f6ea5133aba clk: qcom: ipq9574: drop the CLK_SET_RATE_PARENT flag from GPLL clocks
    3731eb54fbef clk: qcom: apss-ipq-pll: Fix 'l' value for ipq5332_pll_config
    5b6384ed71dc clk: qcom: apss-ipq-pll: Use stromer plus ops for stromer plus pll
    3015361a505d clk: qcom: clk-alpha-pll: introduce stromer plus ops
    ddaada8cc4d2 clk: qcom: config IPQ_APSS_6018 should depend on QCOM_SMEM
    e61934720af4 clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data
    1d89430fc315 clk: mediatek: clk-mt7629: Add check for mtk_alloc_clk_data
    b20cfe007a46 clk: mediatek: clk-mt7629-eth: Add check for mtk_alloc_clk_data
    be3f12f16038 clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data
    a90239551abc clk: mediatek: clk-mt6779: Add check for mtk_alloc_clk_data
    10cc81124407 clk: mediatek: clk-mt6765: Add check for mtk_alloc_clk_data
    a9e4a47f89d9 clk: npcm7xx: Fix incorrect kfree
    ba88f032ff9f clk: ti: fix double free in of_ti_divider_clk_setup()
    67ee360e138c clk: keystone: pll: fix a couple NULL vs IS_ERR() checks
    2e4db0148cb2 clk: ralink: mtmips: quiet unused variable warning
    99bb148bd565 spi: nxp-fspi: use the correct ioremap function
    da164c3c4a2f clk: linux/clk-provider.h: fix kernel-doc warnings and typos
    55de4ff94fb4 clk: renesas: rzg2l: Fix computation formula
    7fdb4ef9812a clk: renesas: rzg2l: Use FIELD_GET() for PLL register fields
    4be4c8e224f9 clk: renesas: rzg2l: Trust value returned by hardware
    5cb18d032293 clk: renesas: rzg2l: Lock around writes to mux register
    8afb9e94e3a9 clk: renesas: rzg2l: Wait for status bit of SD mux before continuing
    40d3370bf2c0 clk: renesas: rcar-gen3: Extend SDnH divider table
    cebb0fe4aa9a clk: imx: imx8qxp: Fix elcdif_pll clock
    b2931c28e1f5 clk: imx: imx8mq: correct error handling path
    fbbcc60999c0 clk: imx: Select MXC_CLK for CLK_IMX8QXP
    3d0eb456567e regulator: mt6358: Fail probe on unknown chip ID
    a3c73486e80e clk: qcom: gcc-sm8150: Fix gcc_sdcc2_apps_clk_src
    efa39c1e151e clk: qcom: mmcc-msm8998: Fix the SMMU GDSC
    08f003231c36 clk: qcom: mmcc-msm8998: Don't check halt bit on some branch clks
    22de7cb08bc6 clk: qcom: clk-rcg2: Fix clock rate overflow for high parent frequencies
    db96de8d8d4a clk: qcom: gcc-msm8996: Remove RPM bus clocks
    577165aa4989 clk: qcom: ipq5332: Drop set rate parent from gpll0 dependent clocks
    4eb8065494ca spi: tegra: Fix missing IRQ check in tegra_slink_probe()
    80a5d81d4cd2 regmap: debugfs: Fix a erroneous check after snprintf()
    a043d6210114 ipvlan: properly track tx_errors
    1589a9ab2566 net: add DEV_STATS_READ() helper
    d2683d7e949b virtio_net: use u64_stats_t infra to avoid data-races
    1c3b6106b64f ipv6: avoid atomic fragment on GSO packets
    cd524da2cb0a mptcp: properly account fastopen data
    729c4521d976 ACPI: sysfs: Fix create_pnp_modalias() and create_of_modalias()
    978f0f776d68 bpf: Fix unnecessary -EBUSY from htab_lock_bucket
    49e30526fa4d Bluetooth: hci_sync: Fix Opcode prints in bt_dev_dbg/err
    e9f708beada5 Bluetooth: Make handle of hci_conn be unique
    cfe86064f3b2 Bluetooth: ISO: Pass BIG encryption info through QoS
    c03a10bd5b6c Bluetooth: ISO: Use defer setup to separate PA sync and BIG sync
    2dae48035862 wifi: iwlwifi: empty overflow queue during flush
    23afa6598cf9 wifi: iwlwifi: mvm: update IGTK in mvmvif upon D3 resume
    e8e2baaee4cb wifi: iwlwifi: pcie: synchronize IRQs before NAPI
    3cccddd70eb0 wifi: iwlwifi: mvm: fix netif csum flags
    e03348361533 wifi: iwlwifi: increase number of RX buffers for EHT devices
    b78cbb0236cf wifi: iwlwifi: mvm: remove TDLS stations from FW
    9c3bd60f393b wifi: iwlwifi: mvm: fix iwl_mvm_mac_flush_sta()
    dbe89643a5cf wifi: iwlwifi: mvm: change iwl_mvm_flush_sta() API
    8ddf2212cfa5 wifi: iwlwifi: mvm: Don't always bind/link the P2P Device interface
    6ff7022af4f9 wifi: iwlwifi: mvm: Fix key flags for IGTK on AP interface
    67abefa1b6a2 wifi: iwlwifi: mvm: Correctly set link configuration
    85998fb855d5 wifi: iwlwifi: yoyo: swap cdb and jacket bits values
    a989fe88b4da wifi: mac80211: Fix setting vif links
    fb506ef6073c wifi: mac80211: don't recreate driver link debugfs in reconfig
    8bb8769a5be4 wifi: iwlwifi: mvm: use correct sta ID for IGTK/BIGTK
    02b4f94db6a9 wifi: iwlwifi: mvm: fix removing pasn station for responder
    eec6e3a038f2 wifi: iwlwifi: mvm: update station's MFP flag after association
    a37178ca64e5 tcp: fix cookie_init_timestamp() overflows
    5a8444edba46 chtls: fix tp->rcv_tstamp initialization
    3ea25904699d thermal: core: Don't update trip points inside the hysteresis range
    25fb2d77d864 net: skb_find_text: Ignore patterns extending past 'to'
    ddd13ab729e8 selftests: netfilter: test for sctp collision processing in nf_conntrack
    36b6a910966a bpf: Fix missed rcu read lock in bpf_task_under_cgroup()
    0e26bd87a123 thermal/drivers/mediatek: Fix probe for THERMAL_V2
    8c38926925e6 r8169: fix rare issue with broken rx after link-down on RTL8125
    0f6b3be28c4d thermal: core: prevent potential string overflow
    1a33a7eed322 wifi: rtw88: Remove duplicate NULL check before calling usb_kill/free_urb()
    6809ededee0c netfilter: nf_tables: Drop pointless memset when dumping rules
    564f5b55c491 wifi: wfx: fix case where rates are out of order
    adf59b43d1c1 PM / devfreq: rockchip-dfi: Make pmu regmap mandatory
    53c468008a7c can: dev: can_put_echo_skb(): don't crash kernel if can_priv::echo_skb is accessed out of bounds
    b20ffe03852c can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on()
    e999bb83bc24 can: dev: can_restart(): don't crash kernel if carrier is OK
    aecdee9ea305 wifi: ath11k: fix Tx power value during active CAC
    6c8a21833542 can: etas_es58x: add missing a blank line after declaration
    a7c770dad30d can: etas_es58x: rework the version check logic to silence -Wformat-truncation
    6fefd3a91f9d ACPI: video: Add acpi_backlight=vendor quirk for Toshiba Portégé R100
    3c243765ecff ACPI: property: Allow _DSD buffer data only for byte accessors
    dc40d464a6e2 wifi: rtlwifi: fix EDCA limit set by BT coexistence
    033ea0297afa tcp_metrics: do not create an entry from tcp_init_metrics()
    9b248b297c5d tcp_metrics: properly set tp->snd_ssthresh in tcp_init_metrics()
    f49ce3b36f19 tcp_metrics: add missing barriers on delete
    1946b7ee4639 wifi: ath: dfs_pattern_detector: Fix a memory initialization issue
    0137d53ad903 wifi: mt76: mt7915: fix beamforming availability check
    c8cbbafb9257 wifi: mt76: fix per-band IEEE80211_CONF_MONITOR flag comparison
    a3974410431a wifi: mt76: get rid of false alamrs of tx emission issues
    53680becbf98 wifi: mt76: fix potential memory leak of beacon commands
    0e39acefbd81 wifi: mt76: update beacon size limitation
    9876a27f8bab wifi: mt76: mt7996: fix TWT command format
    03b551ea5793 wifi: mt76: mt7996: fix rx rate report for CBW320-2
    919eb49073ad wifi: mt76: mt7996: fix wmm queue mapping
    85670c859798 wifi: mt76: mt7996: fix beamformee ss subfield in EHT PHY cap
    c3bcca36485f wifi: mt76: mt7996: fix beamform mcu cmd configuration
    0f646b7673c5 wifi: mt76: mt7996: set correct wcid in txp
    c2deba4c5d44 wifi: mt76: remove unused error path in mt76_connac_tx_complete_skb
    d8633bde468c wifi: mt76: connac: move connac3 definitions in mt76_connac3_mac.h
    c67c80221728 wifi: mt76: mt7603: improve stuck beacon handling
    f65f47ebd64a wifi: mt76: mt7603: improve watchdog reset reliablity
    33f73d154e4e wifi: mt76: mt7603: rework/fix rx pse hang check
    9c6b20fd5e8d cpufreq: tegra194: fix warning due to missing opp_put
    e6db756dea7e PM: sleep: Fix symbol export for _SIMPLE_ variants of _PM_OPS()
    57ec37162d91 wifi: mac80211: fix check for unusable RX result
    5a9f55efa933 wifi: ath11k: fix boot failure with one MSI vector
    c58a1ed71752 wifi: ath12k: fix DMA unmap warning on NULL DMA address
    002835b8594c wifi: rtw88: debug: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
    c4d57007947b net: ethernet: mtk_wed: fix EXT_INT_STATUS_RX_FBUF definitions for MT7986 SoC
    2996a509c0c9 net: spider_net: Use size_add() in call to struct_size()
    26ff419dfd91 tipc: Use size_add() in calls to struct_size()
    7c13d9cce81b tls: Use size_add() in call to struct_size()
    d648260e44a2 mlxsw: Use size_mul() in call to struct_size()
    3f7955a902d8 gve: Use size_add() in call to struct_size()
    1e5788c94e97 bpf: Fix kfunc callback register type handling
    71b468c11ac2 tcp: call tcp_try_undo_recovery when an RTOd TFO SYNACK is ACKed
    861279e5fce0 selftests/bpf: Skip module_fentry_shadow test when bpf_testmod is not available
    91df7ecb5e7d udplite: fix various data-races
    ab764daadadd udplite: remove UDPLITE_BIT
    645d838018f7 udp: annotate data-races around udp->encap_type
    b92fd3e60d7d udp: lockless UDP_ENCAP_L2TPINUDP / UDP_GRO
    f3c11d077a5f udp: move udp->accept_udp_{l4|fraglist} to udp->udp_flags
    f835f0c6252c udp: add missing WRITE_ONCE() around up->encap_rcv
    71e5417cee0f udp: move udp->gro_enabled to udp->udp_flags
    d18aa214b26a udp: move udp->no_check6_rx to udp->udp_flags
    06073e04aeec udp: move udp->no_check6_tx to udp->udp_flags
    f0fe1abb2826 udp: introduce udp->udp_flags
    c7072b00bd09 wifi: cfg80211: fix kernel-doc for wiphy_delayed_work_flush()
    028480eaf2a1 bpf, x64: Fix tailcall infinite loop
    8d650d035ac7 bpf, x86: allow function arguments up to 12 for TRACING
    3953ef4ca975 bpf, x86: save/restore regs with BPF_DW size
    dbb56575b86f selftests/bpf: Correct map_fd to data_fd in tailcalls
    dadda161609c iavf: Fix promiscuous mode configuration flow messages
    e381bf9edc9b i40e: fix potential memory leaks in i40e_remove()
    446d03186fe9 wifi: iwlwifi: don't use an uninitialized variable
    6313926b3e32 wifi: iwlwifi: honor the enable_ini value
    ebda7f6fe90a wifi: mac80211: fix # of MSDU in A-MSDU calculation
    fc658d36928d wifi: cfg80211: fix off-by-one in element defrag
    13455e5b9864 wifi: mac80211: fix RCU usage warning in mesh fast-xmit
    0d7d812fcfde wifi: mac80211: move sched-scan stop work to wiphy work
    f293f4ebcbdc wifi: mac80211: move offchannel works to wiphy work
    63aa1a0fa677 wifi: mac80211: move scan work to wiphy work
    8eb0012a0936 wifi: mac80211: move radar detect work to wiphy work
    a591a106f36c wifi: cfg80211: add flush functions for wiphy work
    364816d0c5d2 wifi: ath12k: fix undefined behavior with __fls in dp
    982ea0aa2bc5 irqchip/sifive-plic: Fix syscore registration for multi-socket systems
    a979a1cc9aea genirq/matrix: Exclude managed interrupts in irq_matrix_allocated()
    4410c1bc4868 string: Adjust strtomem() logic to allow for smaller sources
    728835dc03a3 PCI/MSI: Provide stubs for IMS functions
    9e1d81681317 selftests/x86/lam: Zero out buffer for readlink()
    414d48289cd0 perf: Optimize perf_cgroup_switch()
    1c426da79f9f pstore/platform: Add check for kstrdup
    d15950c49046 x86/nmi: Fix out-of-order NMI nesting checks & false positive warning
    d3dd62fcfa6b drivers/clocksource/timer-ti-dm: Don't call clk_get_rate() in stop function
    8152efcae888 srcu: Fix callbacks acceleration mishandling
    b427ae0ccf13 x86/apic: Fake primary thread mask for XEN/PV
    efd6e0851071 cpu/SMT: Make SMT control more robust against enumeration failures
    15141adf85b1 cpu/SMT: Create topology_smt_thread_allowed()
    2909a6404460 cpu/hotplug: Remove dependancy against cpu_primary_thread_mask
    147a1ba15c5f x86/boot: Fix incorrect startup_gdt_descr.size
    c87f1c452ca1 x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot
    b776e9161ab6 ACPI/NUMA: Apply SRAT proximity domain to entire CFMWS window
    9011702db2c7 x86/numa: Introduce numa_fill_memblks()
    5c758ec2f5b1 futex: Don't include process MM in futex key on no-MMU
    9c39fa2992c3 x86/srso: Fix unret validation dependencies
    e310a2eb785f x86/srso: Fix vulnerability reporting for missing microcode
    1f7f6ef03896 x86/srso: Print mitigation for retbleed IBPB case
    68f9ff154168 x86/srso: Fix SBPB enablement for (possible) future fixed HW
    6ef3d8bed0cb writeback, cgroup: switch inodes with dirty timestamps to release dying cgwbs
    e1d6675d4baf vfs: fix readahead(2) on block devices
    3aa811a186df nfsd: Handle EOPENSTALE correctly in the filecache
    ef90e6ef5cb4 sched: Fix stop_one_cpu_nowait() vs hotplug
    761c20be2c45 objtool: Propagate early errors
    311485482fa4 sched/uclamp: Ignore (util == 0) optimization in feec() when p_util_max = 0
    f4988493495f sched/uclamp: Set max_spare_cap_cpu even if max_spare_cap is 0
    126e7873d4e7 iov_iter, x86: Be consistent about the __user tag on copy_mc_to_user()
    1ba876f33d96 sched/fair: Fix cfs_rq_is_decayed() on !SMP
    107688f52ae3 sched/topology: Fix sched_numa_find_nth_cpu() in non-NUMA case
    e213ce7956cd sched/topology: Fix sched_numa_find_nth_cpu() in CPU-less case
    5efa13258d8f numa: Generalize numa_map_to_online_node()
    ef041fcee0bf hwmon: (nct6775) Fix incorrect variable reuse in fan_div calculation

(From OE-Core rev: d4fc2c7ff53db1b914b9830a71f8fab5e2a27254)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
0947d61e3d linux-yocto-dev: bump to v6.7
(From OE-Core rev: f8ef4cdbc6c68c2ae8650ab343b34f3494d30d2e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
e876d3bcd3 linux-yocto/6.1: update to v6.1.62
Updating  to the latest korg -stable release that comprises
the following commits:

    fb2635ac69ab Linux 6.1.62
    585da49ad62c ASoC: SOF: sof-pci-dev: Fix community key quirk detection
    c1c15b09f456 ALSA: hda: intel-dsp-config: Fix JSL Chromebook quirk detection
    5c59879031ea misc: pci_endpoint_test: Add deviceID for J721S2 PCIe EP device support
    6bebd303ad7e tty: 8250: Add Brainboxes Oxford Semiconductor-based quirks
    3017a17ad6b9 tty: 8250: Add support for Intashield IX cards
    c3444894e855 tty: 8250: Add support for additional Brainboxes PX cards
    31ebf431ed02 tty: 8250: Fix up PX-803/PX-857
    bfe9bde05fcd tty: 8250: Fix port count of PX-257
    b75ee2d9d792 tty: 8250: Add support for Intashield IS-100
    cdd260b220d9 tty: 8250: Add support for Brainboxes UP cards
    8af676c69815 tty: 8250: Add support for additional Brainboxes UC cards
    abcb12f3192d tty: 8250: Remove UC-257 and UC-431
    df6cfab66ff2 tty: n_gsm: fix race condition in status line change on dead connections
    23107989be8e usb: raw-gadget: properly handle interrupted requests
    e7a802447c49 usb: typec: tcpm: Fix NULL pointer dereference in tcpm_pd_svdm()
    6f17be270003 usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility
    b25a2f247083 PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device
    977ae4dbe231 ALSA: usb-audio: add quirk flag to enable native DSD for McIntosh devices
    9411dbe2c66c mmap: fix error paths with dup_anon_vma()
    21ca008c53a5 mm/mempolicy: fix set_mempolicy_home_node() previous VMA pointer
    7ab62e3415fb x86: KVM: SVM: always update the x2avic msr interception
    e83359126567 perf evlist: Avoid frequency mode for the dummy event
    b3eed1111048 power: supply: core: Use blocking_notifier_call_chain to avoid RCU complaint
    803cc77a3acc ceph_wait_on_conflict_unlink(): grab reference before dropping ->d_lock
    9eab5008db6c io_uring: kiocb_done() should *not* trust ->ki_pos if ->{read,write}_iter() failed
    ed0ba37e7b9b powerpc/mm: Fix boot crash with FLATMEM
    31ae7876da36 r8152: Check for unplug in r8153b_ups_en() / r8153c_ups_en()
    f90656fbf618 r8152: Check for unplug in rtl_phy_patch_request()
    98567c9d849b net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
    ff86d69b2e50 drm/amdgpu: Reserve fences for VM update
    8e4a77ba25ec platform/mellanox: mlxbf-tmfifo: Fix a warning message
    0f2840dabfea netfilter: nf_tables: audit log object reset once per table
    ec80ad4585d7 LoongArch: Replace kmap_atomic() with kmap_local_page() in copy_user_highpage()
    afe80b58eea3 LoongArch: Export symbol invalid_pud_table for modules building
    9f9b2ec53aca gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
    cafa191b27dd drm/amdgpu: Unset context priority is now invalid
    0eb733b53ebf scsi: mpt3sas: Fix in error path
    4e000daf394a fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()
    50736464a75a fbdev: omapfb: fix some error codes
    6a87b333ba47 drm/ttm: Reorder sys manager cleanup step
    9951b2309ea7 ASoC: codecs: tas2780: Fix log of failed reset via I2C.
    b7ed4aa0c2e6 ASoC: rt5650: fix the wrong result of key button
    8e1a6594d782 efi: fix memory leak in krealloc failure handling
    678edd2dfd55 netfilter: nfnetlink_log: silence bogus compiler warning
    c6f6a505277f spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0
    6a7a2d5a0864 fs/ntfs3: Avoid possible memory leak
    84aabd18c8d7 fs/ntfs3: Fix directory element type detection
    3bff4bb7f9c7 fs/ntfs3: Fix NULL pointer dereference on error in attr_allocate_frame()
    c8cbae3cbbc4 fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
    6fe32f79abea fs/ntfs3: Use kvmalloc instead of kmalloc(... __GFP_NOWARN)
    92f9c7c7ddbf fs/ntfs3: Write immediately updated ntfs state
    fc91bb3e1b2b fs/ntfs3: Add ckeck in ni_update_parent()
    768e857ac3e0 fbdev: atyfb: only use ioremap_uc() on i386 and ia64
    dd6d75eb00ee Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport
    c64c237275b4 powerpc/85xx: Fix math emulation exception
    96c7aac8d804 dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
    9ef4697548c2 irqchip/stm32-exti: add missing DT IRQ flag translation
    7378415da048 irqchip/riscv-intc: Mark all INTC nodes as initialized
    d3204c0fdd33 net: sched: cls_u32: Fix allocation size in u32_init()
    f15dbcda2ce8 ASoC: tlv320adc3xxx: BUG: Correct micbias setting
    30ed99860437 coresight: tmc-etr: Disable warnings for allocation failures
    6618e7a740de ASoC: simple-card: fixup asoc_simple_probe() error handling

(From OE-Core rev: 611da3dcd87a595be77f72bea3d2637d5d869ae5)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
0020b23900 linux-yocto/6.5: update to v6.5.11
Updating  to the latest korg -stable release that comprises
the following commits:

    799441832db1 Linux 6.5.11
    dd1756d79179 ASoC: SOF: sof-pci-dev: Fix community key quirk detection
    aab16960e6e7 ALSA: hda: intel-dsp-config: Fix JSL Chromebook quirk detection
    575d3966a7da serial: core: Fix runtime PM handling for pending tx
    9f625a9ec6ad misc: pci_endpoint_test: Add deviceID for J721S2 PCIe EP device support
    fe3545fb7c39 dt-bindings: serial: rs485: Add rs485-rts-active-high
    71a913eb5331 tty: 8250: Add Brainboxes Oxford Semiconductor-based quirks
    7ffbf5db6963 tty: 8250: Add support for Intashield IX cards
    8435b1f55760 tty: 8250: Add support for additional Brainboxes PX cards
    21b8147a36f8 tty: 8250: Fix up PX-803/PX-857
    98f984ff81de tty: 8250: Fix port count of PX-257
    256a534427e9 tty: 8250: Add support for Intashield IS-100
    933dde5b2082 tty: 8250: Add support for Brainboxes UP cards
    a4a09f0ed3cd tty: 8250: Add support for additional Brainboxes UC cards
    ca7f138b2c52 tty: 8250: Remove UC-257 and UC-431
    19d34b73234a tty: n_gsm: fix race condition in status line change on dead connections
    fd277724946d Bluetooth: hci_bcm4377: Mark bcm4378/bcm4387 as BROKEN_LE_CODED
    885108988763 usb: raw-gadget: properly handle interrupted requests
    9ee038590d80 usb: typec: tcpm: Fix NULL pointer dereference in tcpm_pd_svdm()
    de5ac4d46304 usb: typec: tcpm: Add additional checks for contaminant
    80105fc04b44 usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility
    c99f302ea679 PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device
    52d89332fbc6 ALSA: usb-audio: add quirk flag to enable native DSD for McIntosh devices
    c75a5e421b07 mmap: fix error paths with dup_anon_vma()
    578c20ab383f mmap: fix vma_iterator in error path of vma_merge()
    cd91606eff46 perf evlist: Avoid frequency mode for the dummy event
    65d457433a08 power: supply: core: Use blocking_notifier_call_chain to avoid RCU complaint
    a58f5fabcab0 rust: types: make `Opaque` be `!Unpin`
    7fba72536eb5 rust: make `UnsafeCell` the outer type in `Opaque`
    07256dc046b1 drm/amd/display: Don't use fsleep for PSR exit waits
    4ec5def87694 ceph_wait_on_conflict_unlink(): grab reference before dropping ->d_lock
    fd652af1e1f9 io_uring: kiocb_done() should *not* trust ->ki_pos if ->{read,write}_iter() failed
    fd318cc5b221 powerpc/mm: Fix boot crash with FLATMEM
    c1d14ab7d666 r8152: Check for unplug in r8153b_ups_en() / r8153c_ups_en()
    b233d39f7e15 r8152: Check for unplug in rtl_phy_patch_request()
    19471af243b2 net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
    17002b8f2606 riscv: dts: thead: set dma-noncoherent to soc bus
    9f0400d31e56 drm/amdgpu: Reserve fences for VM update
    6ca3c25f5472 platform/mellanox: mlxbf-tmfifo: Fix a warning message
    6cca6f997088 netfilter: nf_tables: audit log object reset once per table
    99d311781fe5 LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc()
    6b43fea5f245 LoongArch: Replace kmap_atomic() with kmap_local_page() in copy_user_highpage()
    c86a4fbc2d5a LoongArch: Export symbol invalid_pud_table for modules building
    74f9c03ecf79 LoongArch: Use SYM_CODE_* to annotate exception handlers
    19fe554e5fcf gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
    4ca54e8b459d drm/amdgpu: Unset context priority is now invalid
    4debab37b1bc ASoC: da7219: Correct the process of setting up Gnd switch in AAD
    22da32b45717 scsi: mpt3sas: Fix in error path
    8377f82beacf fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()
    0a997e6eeee8 fbdev: omapfb: fix some error codes
    93ff3297b04a drm/ttm: Reorder sys manager cleanup step
    0074d0980bf8 s390/kasan: handle DCSS mapping in memory holes
    652d60ecb7a5 ASoC: codecs: tas2780: Fix log of failed reset via I2C.
    4dd62532e05c ASoC: rt5650: fix the wrong result of key button
    ce5329ee79e5 efi: fix memory leak in krealloc failure handling
    c76be4af694e x86/efistub: Don't try to print after ExitBootService()
    5c4e4f31643d net/mlx5: Bridge, fix peer entry ageing in LAG mode
    ead8d9a6b6ff netfilter: nfnetlink_log: silence bogus compiler warning
    988ed1c96c42 ASoC: soc-dapm: Add helper for comparing widget name
    c68a8c5b50b9 spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0
    6777f23bca89 fs/ntfs3: Avoid possible memory leak
    b9ec0e799a2d fs/ntfs3: Fix directory element type detection
    0030ccd87a87 fs/ntfs3: Fix NULL pointer dereference on error in attr_allocate_frame()
    3228a2e0e5a7 fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
    d408008a881a fs/ntfs3: Do not allow to change label if volume is read-only
    da05aa786c20 fs/ntfs3: Add more info into /proc/fs/ntfs3/<dev>/volinfo
    31baaf864b39 fs/ntfs3: Fix alternative boot searching
    1d7dd485108d fs/ntfs3: Add more attributes checks in mi_enum_attr()
    36ffca949ab2 fs/ntfs3: Use kvmalloc instead of kmalloc(... __GFP_NOWARN)
    28ece3bd8596 fs/ntfs3: Write immediately updated ntfs state
    8d3d7dbdbddd fs/ntfs3: Add ckeck in ni_update_parent()
    78b4576f0e38 fbdev: atyfb: only use ioremap_uc() on i386 and ia64
    83a28f46ed3c Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport
    a18a7cc55c5b media: i2c: ov8858: Don't set fwnode in the driver
    d4c3cb925e65 powerpc/85xx: Fix math emulation exception
    0cae483a9c8e ata: pata_parport: fit3: implement IDE command set registers
    e2fa6f732a73 ata: pata_parport: add custom version of wait_after_reset
    142ac0fda553 dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
    5976e4ed1405 irqchip/stm32-exti: add missing DT IRQ flag translation
    b65f1eec2d8e irqchip/riscv-intc: Mark all INTC nodes as initialized
    4b0dfa2fc745 can: flexcan: remove the auto stop mode for IMX93
    4bd493ce8d74 arm64: dts: imx93: add the Flex-CAN stop mode by GPR
    92705546718b net: sched: cls_u32: Fix allocation size in u32_init()
    6f9195596a6f ASoC: tlv320adc3xxx: BUG: Correct micbias setting
    31af9e3be3cd ASoC: core: Do not call link_exit() on uninitialized rtd objects
    0716f52fa334 ASoC: fsl-asoc-card: use integer type for fll_id and pll_id
    ac947c0992ef coresight: tmc-etr: Disable warnings for allocation failures
    4dfa1e33d481 ASoC: simple-card: fixup asoc_simple_probe() error handling
    8555438a0d87 ASoC: Intel: sof_sdw: add support for SKU 0B14

(From OE-Core rev: 0f56f12e7353f97855befb765ca8c0117736cb96)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Bruce Ashfield
f8140d3296 linux-yocto/6.5: cfg: split runtime and symbol debug
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: Bruce Ashfield
    Email: bruce.ashfield@gmail.com
    Subject: debug: move PREEMPT_DEBUG to a runtime debug fragment
    Date: Thu, 9 Nov 2023 12:08:31 -0500

    For tools like spdx and debuggers to work with the kernel, we
    require extra information. That is provided by the DEBUG_INFO
    flags.

    In that same fragment, some runtime debugging is being enabled
    and that adds signficant overhead to the kernel.

    Let's start a new runtime debug fragment with DEBUG_PREEMPT
    and locking. We can add more to this in the future.

    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 8cd829de8e8770aa4a46e984f6ef2cab3194fd29)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Julien Stephan
ec340f14da oeqa/selftest/recipetool: appendsrc: add test for update mode
add a basic test for testing the update mode of recipetool
appendsrcfile(s)

(From OE-Core rev: f999092c772f10d23106c355e2787259befb6e30)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Julien Stephan
7ff486d556 oeqa/selftest/recipetool: appendsrfile: add test for machine
Add a new test for machine specific bbappend override

(From OE-Core rev: 1c510a21487fa71e88eb46e9a0de00a82a7ba4e4)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Julien Stephan
bc9291c5fd recipetool: appendsrcfile(s): add a mode to update the recipe itself
Add a new option -u/--update-recipe to update the recipe itself instead
of creating/updating a bbappend file

(From OE-Core rev: c9a80f55ed0bf9ce249205d6a9ba670fbb7f59ba)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:50 +00:00
Julien Stephan
0ae9cf2373 recipeutils: bbappend_recipe: allow to patch the recipe itself
Add a new parameter update_original_recipe to allow to patch a recipe
instead of creating/updating a bbappend

(From OE-Core rev: 2f68ab2464bfad1b377df44a7b51203df59d66ce)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
29dc0d7315 recipetool: appendsrcfile(s): use params instead of extraline
appendsrc function relies on oe.recipeutils.bbappend_recipe to
copy files and add the corresponding entries in SRC_URI.

Currently, appendsrc function build itself the new SRC_URI entry to add the
correct subdir param, and gives it using the extralines parameter.
This has 2 drawbacks:
- oe.recipeutils.bbappend_recipe can already do this if we specify the
  correct params, so we have duplicate code
- the duplicated code is not fully functional: for example, it doesn't
  take into account the -m/--machine parameter

So fix this by not using extralines but give correctly formatted params.

Also remove the check for already existing entries as
oe.recipeutils.bbappend_recipe already implement it

The new bbappend file now have the SRC_URI entry after the
FILESEXTRAPATHS so fix the selftest.

Update test_recipetool_appendsrcfile_existing_in_src_uri_diff_params
test because recipetool appendsrcfiles used to not add new src_uri entry
if the entry already exist even with different parameters while
oe.recipeutils.bbappend_recipe adds it if parameters are different (and
remove the old entry)

(From OE-Core rev: cd5de8d53849a6f3bb6f82e45fb301e39892c789)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
165626f7b9 recipeutils: bbappend_recipe: remove old srcuri entry if parameters are different
Currently we do not add a new src_ury entry if the entry already exists
AND the parameters are the same.

I believe that when an entry already exist with different parameters,
we should remove it and add the new entry otherwise we end up with two
entries with different parameters

(From OE-Core rev: a4628fffcfecb5cd95dc2558dfd39ebd71121eab)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
11d4d437d5 recipeutils: bbappend_recipe: add a way to specify the name of the file to add
bbappend_recipe can take a dict of source files to add to SRC_URI where
the key is the full path to the file to be added and the value is a dict

Add a new optionnal entry "newname" to specify the name of the newly added file

(From OE-Core rev: e7bc09e5c9d7a0f4f8f4eba40730b68857b00677)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
b45cab4e1c recipeutils: bbappend_recipe: fix docstring
Add missing patchdir key in docstring description for srcfiles
parameters.

Also fix typo: value --> key in srcfile docstring description

(From OE-Core rev: 302dccaef46418d0e0731870a882b54a525739ed)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
eb0b664c8c recipeutils: bbappend_recipe: fix undefined variable
In the case get_bbappend_path returns None (could not find the layer
containing the recipe) the error message tries to print the recipefile,
but it is not defined. Fix it.

(From OE-Core rev: 234111fb67ffbcc5492cb0cd96db25ed8f5acea0)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
de5ab8e863 recipetool: appendsrcfile(s): add dry-run mode
Add dry-run mode for recipetool appendsrcfile and appendsrcfiles, with
if necessary, a diff of changes

(From OE-Core rev: 456c726e6b52f4dc57ff605e1cf1687097537002)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Yoann Congal
2c59f5ad01 lib/oe/patch: handle creating patches for CRLF sources
Using devtool to patch CRLF based sources creates patch files which have
mixed end of lines : LF for headers and CRLF for source context and
modified lines.

Python open(..., newline=None) (default for newline arg)does detect
end-of-line in this mixed file but only outputs LF EOL data. This
result in patch files that does not apply on the original sources.

Switching to open(..., newline='') allows to detect end-of-line but keep
the original end-of-line intact. This generate correct patches for CRLF
based sources.

Fixes [YOCTO #15285]

(From OE-Core rev: 58f845499c0277a2b8069eefa235430b5f5f7661)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Victor Kamensky
463d56b9f0 systemtap-uprobes: removed as obsolete
systemtap-uprobes package was not used for a long time - since kernel
itself provided uprobes support. Now source code of old uprobes kernel
module was removed from systemtap git repo by "PR30434 continuation:
Removed old uprobes, uprobes2 implementation, uprobes-inc.h & any
 mentions of CONFIG_UTRACE." it is good time for us to gid rid of it
too.

(From OE-Core rev: 42fd5abedb835b6f87721674001c52304e43cfc5)

Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Victor Kamensky
5e8b43f8ca systemtap: do not install uprobes and uprobes sources
Addresses the following do_package_qa warning:

WARNING: systemtap-5.0-r0 do_package_qa: QA Issue: File /usr/share/systemtap/runtime/linux/uprobes/Makefile in package systemtap contains reference to TMPDIR
File /usr/share/systemtap/runtime/linux/uprobes/git_version.h in package systemtap contains reference to TMPDIR
File /usr/share/systemtap/runtime/linux/uprobes2/git_version.h in package systemtap contains reference to TMPDIR [buildpaths]

(From OE-Core rev: db668fdba9920fc4066eda8af0ff112f341ee09b)

Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Victor Kamensky
720ad02ae6 systemtap: upgrade 4.9 -> 5.0
Similar to 4.9 release, in 5.0 release release-5.0 tag is off any branch,
release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the master
branch. Use this value for SRCREV and add catch up patch,
0001-prerelease-datestamp-fixes.patch, to bring source up to release-5.0 tag
level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

(From OE-Core rev: 2d0cb9b21ccee93027fd12a51b74d3821cd03d2e)

Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Ross Burton
2a20575e52 meta-yocto-bsp/oeqa/parselogs: add BSP-specific ignores
Add machine-specific ignores from oe-core to meta-yocto-bsp.

(From OE-Core rev: 97dacfa0ff170cfe411563e93af8890f3ced6132)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Ross Burton
9406c0d28f oeqa/runtime/parselogs: migrate ignores
Move the ignores from a huge dict in the parselogs.py module to .txt
files. This is just the common, tune, and qemu machine ignores; the
machine ignores that are not in oe-core will be added to the relevant
layers.

The list of ignores has not been reviewed in any meaningful way, this
should be done soon as I suspect a number of these are redundant.

(From OE-Core rev: bba243e1d18b954578afcdb3c727d8f687187ee8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Ross Burton
41ffa16912 oeqa/runtime/parselogs: load ignores from disk
Instead of hardcoding the list of ignored errors/warnings in the test
itself, read them plain text files on disk.

This uses importlib to try to open a file called
oeqa.runtime.cases.parselogs-ignores-[candidate].txt, where the
candidate will be:

- "common"
- The TARGET_ARCH
- Each of the MACHINEOVERRDES

This allows the common and tune-specific ignores to be retained in
oe-core, and machine-specific ignores added to the layer where the
machine is defined.

[ YOCTO #14604 ]

(From OE-Core rev: 7a04063f7cff243fe2bee09664ad7979612110cb)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Robert Yang
66734b787a gettext: Upgrade 0.22.3 -> 0.22.4
From NEWS:
Version 0.22.4 - November 2023
* Bug fixes:
  - AM_GNU_GETTEXT now recognizes a statically built libintl on macOS and AIX.
  - Build fixes on AIX.

(From OE-Core rev: 9add9e7b0da99b1530fcc12d3f8e6705a4af15fc)

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>
2023-12-06 22:55:49 +00:00
Ross Burton
a9168feacb avahi: update URL for new project location
Avahi has moved to a new parent organisation on GitHub, so update the
URLs to match.

(From OE-Core rev: 02caef1567186f250e64ae3ef84fcff33d7323e4)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Zang Ruochen
9feb8f9284 ell: upgrade 0.60 -> 0.61
(From OE-Core rev: f3e59827e86ae9dccd1dc0a2c5d544d14f591558)

Signed-off-by: Zang Ruochen <zangruochen@loongson.cn>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Yi Zhao
58c6ae0818 psplash: upgrade to latest revision
* ecc19137 SECURITY.md: Add file

(From OE-Core rev: 866113b42bacc8fa571f0cc51e18385d864ec7b7)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Yi Zhao
b4db98289b json-glib: upgrade 1.6.6 -> 1.8.0
Overview of changes for 1.8
==============================
* Build fixes
* Add current node accessor to JsonReader
* Make xgettext optional
* Avoid leaking memory in error paths
* Update test suite to conform with TAP
* Ensure valid output for exponential notation of numbers
* Translation updates

(From OE-Core rev: c4777f7b050c62f5d223f3deb4f3e07dc2e7975e)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Markus Volk
280267d379 gtk4: upgrade 4.12.3 -> 4.12.4
Overview of Changes in 4.12.4, 17-11-2023
=========================================

* a11y:
 - Tweak name computation for some corner cases

* gdk:
 - gl: Improve our use of GLES a bit (use vertex arrays and
   GL_BGRA if available)
 - Fix some errors in our memory format tables

* gsk:
 - gl: handle texture-scale nodes more faithfully
 - gl: Fix icon padding in the atlas

* Windows:
 - Stop relying on glib for build configuration

* Tools:
 - Add a --undecorated option to gtk4-rendernode-tool

* Translation updates
 Catalan
 French
 Romanian
 Russian
 Spanish
 Turkish

(From OE-Core rev: 1cf2c6992b1e16a253e519dfaa031a1c3166daf7)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Lukas Funke
2da0213eee selftest: wic: add test for zerorize option of empty plugin
Add test for empty plugin which tests whether the plugin creates
partitions with actual data which is 'zero'.

(From OE-Core rev: 6c6b236b34b35d0e2c020e0f9c447ac35adf8faf)

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Malte Schmidt
29b2bda786 wic: extend empty plugin with options to write zeros to partiton
Adds features to explicitly write zeros to the start of the
partition. This is useful to overwrite old content like
filesystem signatures which may be re-recognized otherwise.

The new features can be enabled with
'--soucreparams="[fill|size=<N>[S|s|K|k|M|G]][,][bs=<N>[S|s|K|k|M|G]]"'
Conflicting or missing options throw errors.

The features are:
- fill
  Fill the entire partition with zeros. Requires '--fixed-size' option
  to be set.
- size=<N>[S|s|K|k|M|G]
  Set the first N bytes of the partition to zero. Default unit is 'K'.
- bs=<N>[S|s|K|k|M|G]
  Write at most N bytes at a time during source file creation.
  Defaults to '1M'. Default unit is 'K'.

(From OE-Core rev: d19d4529e7a2056caeb526fed980cc1df19a5f6e)

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Tim Orling
ef7ba05995 python3-pygments: upgrade 2.16.1 -> 2.17.2
* Drop redundant DEPENDS
* PEP-517 backend is now hatchling -> inherit python_hatchling
* Drop PYPI_PACKAGE as upstream download filename is now "pygments"
* Add UPSTREAM_CHECK_PYPI_PACKAGE since upstream path is still "/Pygments/"

https://github.com/pygments/pygments/blob/2.17.2/CHANGES

(From OE-Core rev: 426ec8595233203034d06dd30041c551f2622d90)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Tim Orling
37076ad1e1 python3-bcrypt: upgrade 4.0.1 -> 4.1.1
* Refresh -crates.inc

https://github.com/pyca/bcrypt/blob/4.1.1/README.rst#changelog

4.1.1
  * Fixed the type signature on the kdf method.
4.1.0
  * Dropped support for Python 3.6.
  * Bumped MSRV to 1.64. (Note: Rust 1.63 can be used by setting
    the BCRYPT_ALLOW_RUST_163 environment variable)

(From OE-Core rev: 9851e8a4b7f138cd8346eca3cdc831b12ee9d9e2)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
a02279663f oeqa/selftest/recipetool/devtool: add test for pypi class
recipetool now supports the pypi class and python recipes can by created
using the new following syntax:

* recipetool create https://pypi.org/project/<package>
* recipetool create https://pypi.org/project/<package>/<version>
* recipetool create https://pypi.org/project/<package> --version <version>

or the old syntax:
* recipetool create https://files.pythonhosted.org/packages/<...>

So add tests for the new syntax and modify old tests

(From OE-Core rev: 50779b7d45a492e9564005274f1858234a871e10)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
9f4df13f64 oeqa/selftest/recipetool: remove spaces on empty lines
(From OE-Core rev: 365c3fd9def03e07af025a949e27c4f324fd6094)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
85a2a6f68a recipetool: create_buildsys_python: add pypi support
Today, we can use devtool/recipetool to create recipes for python projects
using the github url or the direct release tarball of the project, but the
create_buildsys_python plugin doesn't support the pypi class, since we cannot
know from the extracted source if the package is available on pypi or not.

By implementing the new optional process_url callback, we can detect
that the url is a pypi one (i.e 'https://pypi.org/project/<package>')
and retrieve the release tarball location.
Also detect if the url points to a release tarball hosted on
"files.pythonhosted.iorg" (i.e https://files.pythonhosted.org/packages/...)

In both cases, adds the pypi class, remove 'S' and 'SRC_URIxxx'
variables from the created recipe as they will be handled by the pypi class
and add the PYPI_PACKAGE variable

This helps to produce cleaner recipes when package is hosted on pypi.

If the url points to a github url or a release tarball not coming from
"files.pythonhosted.org", the created recipe is the same as before.
One can also use the newly added "--no-pypi" switch to NOT inherit
from pypi class on matching url, to keep legacy behaviour.

To create a recipe for a pypi package, one can now use one of the
new following syntax (using recipetool create / devtool add):

* recipetool create https://pypi.org/project/<package>
* recipetool create https://pypi.org/project/<package>/<version>
* recipetool create https://pypi.org/project/<package> --version <version>

or the old syntax:
* recipetool create https://files.pythonhosted.org/packages/<...>

(From OE-Core rev: 097a43846cd99a7d74d004efc57f583ce78970a4)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
6c06fb0a43 recipetool: create: add new optional process_url callback for plugins
Add a new process_url callback that plugins can optionally implement if
they which to handle url.

Plugins can implement this callback for example, to:
* transform the url
* add special variables using extravalues
* add extra classes
* ...

If a plugin handles the url, it must append 'url' to the handled
list and must return the fetchuri

No functional changes expected for plugins non implementing this
optional callback

(From OE-Core rev: 3e5ce351e7dbe283562bf1db1f2ce3b121c49b53)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
86b9510bd3 recipetool: create: add trailing newlines
create_recipe() function relies on oe.recipeutils.patch_recipe_lines()
which relies on bb.utils.edit_metadata(). edit_metada expect lines to
have trailing newlines, so add it to each lines before calling
patch_recipe_lines, otherwise edit_metadata will not be able to squash
blank line if there are two consecutive blanks after a removal

(From OE-Core rev: 31b27cc76a1b669e2b126c332608fd772c124d69)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Julien Stephan
344e10a21b recipetool: create_buildsys_python.py: initialize metadata
In the case pyproject.toml doesn't contains metadatas, the metadata
variable is not initialized and the plugin throws an error and falls back
to another plugin, which is not the desired behaviour. So just ignore
metadata if we don't have them

(From OE-Core rev: 88d15877ba18309c521740d7a9649e14d77189bc)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
Richard Purdie
3ee5c86da3 bitbake: toaster-eventreplay: Remove ordering assumptions
Currently the script assumes the variarables are dumped at the start of the
file which is hard to arrange safely in the bitbake code and no longer a true
assumption.

Rewrite the code so that it can cope with different ordering and event files
containing multiple builds.

(Bitbake rev: a833a403a8f7c05008108f3ec1710c211cfa9ec2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:46:29 +00:00
Alexander Lussier-Cullen
637fdcc2b1 bitbake: toaster: fix pytest build test execution and test discovery
Ensure the proper django settings are used by moving the variable to
the environment assignment.
Remove python file specifier as this works relative to the working
directory, which can vary. The test file directory can instead be
specified when executing the pytest command.
Add annotations required to allow database access with pytest to the
build tests.

(Bitbake rev: 7f4dfaa5bd28ccf1ae0122d984ffa7e02e693960)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:37:03 +00:00
Richard Purdie
28f57b8cee bitbake: bitbake: Move to version 2.6.1 to mark runqueue changes
(Bitbake rev: 651a6dcf6f8ff33a4e9290a37c23e4f243974ac3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:29:09 +00:00
Richard Purdie
73ef8d57e0 bitbake: toastergui: Fix regex markup issues
lib/toaster/toastergui/templatetags/projecttags.py:170: DeprecationWarning: invalid escape sequence '\$'
    value=re.sub('_\$.*', '', value)

tests/views/test_views.py::ViewTests::test_custom_incomplete_params
  lib/toaster/toastergui/urls.py:211: DeprecationWarning: invalid escape sequence '\d'
    '/packages/(?P<package_id>\d+|)$',

(Bitbake rev: 57c738a9118a7a900fc7353d88a385d52c8be6f5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Richard Purdie
786ba56074 bitbake: toastermain/settings: Avoid python filehandle closure warnings
Switch to using with blocks when accessing files to ensure file
descriptors are closed and avoid python warnings.

(Bitbake rev: e8574ee78eea23cc35900610bb15e47e40ef5ee1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Richard Purdie
c2484f3dec bitbake: toaster: Fix assertRegexpMatches deprecation warnings
Fix:
    DeprecationWarning: Please use assertRegex instead.

(Bitbake rev: 81ee203fd55d45b199d7c3af681855d254e0d876)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Richard Purdie
029e82d418 bitbake: bb/toaster: Fix assertEquals deprecation warnings
Fix:
    DeprecationWarning: Please use assertEqual instead

(Bitbake rev: dd990ea6843685927954101feb729f3faa3a16d9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Alassane Yattara
829953631b bitbake: toaster/test: delay driver action until elements to appear
Update  tests/browser/(test_landing_page.py and test_layerdetails_page.py)
to delay driver actions until for elements to appear

(Bitbake rev: 72908138bd2735c69f5e418ec5f0f2cf8215050a)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Alassane Yattara
8efe835e3b bitbake: toaster/test: from test_no_builds_message.py wait for the empty state div to appear
>From tests/browser/test_sample.py wait for the empty state div to appear

(Bitbake rev: 56ea671526d6ec81b0d69f1bab6ac8f6796b8018)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Alassane Yattara
2d1f6c055d bitbake: toaster/test: bug-fix on tests/browser/test_all_builds_page
- Bug-fix on table filtering on (CompletedOn, filter failed task)
- Better handle testcase used time.sleep and remove it

(Bitbake rev: 03a8657dd377f87be08dd149ec507d153cb10a07)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Richard Purdie
0f4fe4f763 bitbake: runqueue: Improve inter setscene task dependency handling
The way the code currently handles dependencies between setscene tasks is fairly
poor, basically by deleting chunks of dependencies and adding reversed dependency
relationships.

This was once the best way to handle things but now a lot of the surrounding code
has changed and this approach is suboptimal and can be improved.

This change firstly adds debug logging for "hard" setscene task dependencies since
previously the codepaths were missing from logs making them very hard to read.

The changes to the setscene dependency graph are removed entirely this these altered
graphs were a significant source of problems. Instead, if a hard dependency is run
into, we mark the hard dependency as buildable and defer the task until the hard
dependencies are met.

The code now also skips the check_dependencies() code for hard dependencies since
previously that code was having to list all possible hard dependencies. We don't
need to do that as we can safely assume hard dependencies are required.

With these changes to runqueue's behaviour, we stand some chance of being able to
fix other bugs in OE-Core related to useradd for example.

(Bitbake rev: 367789b53c1c22ec26e0f4836cdf2bdd9c7d84fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:28:03 +00:00
Ross Burton
028b6f6226 Revert "cve-check: Modify judgment processing using "=" in version comparison"
This change introduced a warning if version comparisons failed, but
this is far too common an issue in data that we don't control, so this
shouldn't cause a warning:

WARNING: automake-native-1.16.5-r0 do_cve_check: automake: Failed to compare 1.16.5 = branch_1-9 for CVE-2009-4029
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m1 for CVE-2010-4539
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m2 for CVE-2010-4539
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m3 for CVE-2010-4539
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m4\/m5 for CVE-2010-4539
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m1 for CVE-2010-4644
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m2 for CVE-2010-4644
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m3 for CVE-2010-4644
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m4\/m5 for CVE-2010-4644
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m1 for CVE-2011-0715
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m2 for CVE-2011-0715
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m3 for CVE-2011-0715
WARNING: subversion-1.14.2-r0 do_cve_check: subversion: Failed to compare 1.14.2 = m4\/m5 for CVE-2011-0715
WARNING: automake-1.16.5-r0 do_cve_check: automake: Failed to compare 1.16.5 = branch_1-9 for CVE-2009-4029
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s for CVE-2003-0577
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s for CVE-2004-0982
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s for CVE-2004-1284
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s_r11 for CVE-2006-3355
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s for CVE-2007-0578
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s_r11 for CVE-2007-0578
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s for CVE-2009-1301
WARNING: mpg123-1.32.3-r0 do_cve_check: mpg123: Failed to compare 1.32.3 = pre0.59s_r11 for CVE-2009-1301

This reverts commit a1989e4197178c2431ceca499e0b4876b233b131.

(From OE-Core rev: c7c7dbdd5474002cfd9ec24864e77a0df2b790ea)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-05 21:16:43 +00:00
Joshua Watt
70ad9b9b30 bitbake: hashserv: sqlite: Ensure sync propagates to database connections
When the sqlite database backend was restructured, the code to make the
databases run in WAL mode and to control if sync() is called was
accidentally dropped. This caused terrible database performance to the
point that server timeouts were occurring causing really slow builds.

Fix this by properly enabling WAL mode and setting the synchronous flag
as requested

(Bitbake rev: c5b8c91d325ed1ca8abe5fe28d989693555c0622)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 22:36:09 +00:00
Khem Raj
f89d9240b1 vte: Separate out gtk4 pieces of vte into individual packages
This avoids adding gtk4 dependencies when image may only desire the gtk3
pieces of vte.

(From OE-Core rev: d2c4e8cb85c6a5ca37c7990f879c3b650df5770b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 12:45:27 +00:00
Khem Raj
b6af0e3be7 vte: Upgrade to 0.74.1
* Inherit systemd class
* Add packageconfig for fribidi support

(From OE-Core rev: e3cd856f1ef66aefe2f5f6f1e7771376616d721a)

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>
2023-12-04 12:45:27 +00:00
Markus Volk
66d35dedcd vte: upgrade 0.72.2 -> 0.74.0
Rework recipe

- remove legacy of the autotools buildsystem
- remove BBCLASSEXTEND
- build	vapi dependent on gi-data
- docs require gir, add	a EXTRA_OEMESON:append to avoid	fail in
  a combination	where docs=true	and gir=false
- gtk+3 and gtk4 are requested by default-> add gtk4 depending
  on DISTRO_FEATURE
- install systemd support files	depending on DISTRO_FEATURE
- update 0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch

(From OE-Core rev: 47861220ab9358f1577d549eb367c2758e9f231e)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
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>
2023-12-04 12:45:27 +00:00
Patrick Williams
edc72a4bd1 shared-mime-info-native: handle old GCC for AlmaLinux8
shared-mime-info-native fails to build on AlmaLinux 8 due to its use of
GCC-8 and the upstream package missing a required `-lstdc++fs` on that
compiler.  Submitted a patch upstream which fixes this and am porting.

(From OE-Core rev: 664c7f09ddc15ec9bcb7d8a5bac453922be86a37)

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Alex Kiernan
de401f80ae rust: Drop targets and hosts override magic
`targets` and `hosts` could be overridden prior to 0a01b5ab97
("rust-cross-canadian: Simplify and fix"), that commit deleted this
usage, remove the remnant of it from here.

(From OE-Core rev: 6c93a71a9855cb0231d2f90f0412b6a49e3b1d99)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Kareem Zarka
95d8a12b31 oeqa/selftest/wic: Add tests for kernel image installation
- test_skip_kernel_install: This test verifies that the kernel is not
installed in the boot partition when the
'install-kernel-into-boot-dir' parameter is set to false.
- test_kernel_install: This test verifies that the kernel is installed
in the boot partition when the 'install-kernel-into-boot-dir'
parameter is set to true.

Both tests use a WKS (Kickstart) file to specify the desired
configuration, build a disk image using WIC, and extract the disk
image to a temporary directory to verify the results.

(From OE-Core rev: a99bc5ed8bf67f171be24c0e2220aae6cccf230e)

Signed-off-by: Kareem Zarka <kareem.zarka@huawei.com>
Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Kareem Zarka
0a39f1aa09 wic: bootimg-efi: Make kernel image installation configurable
The issue with installing the kernel image to both rootfs
and boot partition is that some systems rely on the kernel image in
rootfs and not in the boot partition.
This leads to duplication of the kernel image, which can cause
unnecessary storage usage.
This patch provides a solution to the problem by adding a new
parameter "install-kernel-into-boot-dir" to the wic kickstart file.
If this parameter is set to 'true', the plugin will install the
kernel image to the boot partition. If the parameter is set to
'false', the plugin will skip installing the kernel image, avoiding
duplication.

(From OE-Core rev: d3599afe5f604ea5afd9411e114934dcb52b2d48)

Signed-off-by: Kareem Zarka <kareem.zarka@huawei.com>
Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Zahir Hussain
e7a87eb762 cmake: Unset CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
As discussion in [YOCTO #14717] cmake contains a OEToolchainConfig.cmake
file to configure the toolchain correctly in cross-compile build for recipes
using cmake.

The variable CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES value updates incorrectly
during do_compile the code. Due to this getting sporadic error like below,

fatal error: stdlib.h: No such file or directory
|    75 | #include_next <stdlib.h>
|       |               ^~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.

As cmake already correctly initializes the variable from environment,
So we have to unset it in the toolchain file to avoid overwriting the
variable definition again.

(From OE-Core rev: 5aeada5793af53e8c93940952d4f314474dca4c2)

Signed-off-by: aszh07 <mail2szahir@gmail.com>
Signed-off-by: Zahir Hussain <zahir.basha@kpit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Joao Marcos Costa
0e6be258a5 documentation.conf: fix do_menuconfig description
The current description is only pertinent to the kernel, even though
do_menuconfig task is used by other projects, such as Busybox and
U-Boot.

Replace "for the kernel" by an agnostic alternative (i.e., "in the
compilation directory").

(From OE-Core rev: 52e053bce5e359995ebdaa21d6899f04ad2306a0)

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Xiangyu Chen
b0e7eda54f bash: changes to SIGINT handler while waiting for a child
It rarely observes the problem while running shell script aborting
test repeatedly, at the problem, the test shell script never returns
to shell

Steps to reproduce:
1. Run test script and ctrl-c repeatedly
2. Observe whether returns to shell after ctrl-c

(From OE-Core rev: 1b69769b52c888d74c0ba258b7450e05a6c82a5a)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Xiangyu Chen
377078dd94 shadow: Fix for CVE-2023-4641
shadow-utils: possible password leak during passwd(1) change

CVE: CVE-2023-4641

Upstream-Status: Backport
[65c88a43a2]

(From OE-Core rev: 7942df17d9dfcf690106b8b86506d496e6251327)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Alex Kiernan
d5813d502a eudev: Upgrade 3.2.12 -> 3.2.14
Drop merged patches:

  0001-Export-dummies-for.patch
  0002-Bump-udev-version-to-251.patch

Boian Bonev (13):
      Update as per IRC discussion
      Bump udev version to 251
      Export dummies for
      bump version to 3.2.14
      Fix := not preventing further assignments to RUN
      Add /usr/local/lib/udev/rules.d
      Move the changes from udev.7 to udev.xml
      Regenerate according to 0cf14fb and e5e4013
      Improve wording and restore lines lost in merges
      Improve wording
      Tabs to spaces
      Ensure that standard file descriptors are open
      Commit the generated man page

NaofumiHonda (1):
      Clear sysattr cache if a null pointer is passed (#255)

Vivien Kraus (6):
      Let libudev find hwdb.bin under UDEV_HWDB_BIN
      Add a generic --output argument to udevadm hwdb
      Dynamically get the udevadm hwdb files with a path variable
      fixup! Dynamically get the udevadm hwdb files with a path variable
      Remove references to /run/udev/hwdb.d
      Clarify the /etc/udev/hwdb.d file override with respect to UDEV_HWDB_PATH

(From OE-Core rev: 2e0f552cac05c2b9f5a80ac396374a7987238a34)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Niko Mauno
8bea1bd57c rust-llvm: Allow overriding LLVM target archs
Move the default value into a variable which can be overridden to
match more accurately the use case specific scenario.

(From OE-Core rev: 645370e85d8742d0614cd52ca7507b5df2d38ad8)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Trevor Gamblin
5c1070e258 patchtest: shorten patch signed-off-by test output
The patch Signed-off-by test's output line is excessively long, and can
trigger a failsafe in the patchtest automated service's email content
generation. Shorten the output by reducing redundant phrasing and using
os.path.basename to get only the failing patch's name, not the entire
path, as the submitter should have a good idea of where it is located
regardless.

(From OE-Core rev: cc7546ded87dd44a988d7a23f1d7645094b5cdd4)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Changhyeok Bae
2a88814342 iptables: upgrade 1.8.9 -> 1.8.10
- 0003-x is not required anymore because to xtables.conf is dropped.
- format-security.patch is already in upstream.
- Other patches are refreshed.

(From OE-Core rev: 4616ada82e7079f0cc7e995c2f421f43b54d4a08)

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Lee Chee Yang
5369e2f5c5 openssl: upgrade to 3.2.0
upgrade include fix for CVE-2023-5678.

Changes in 3.2.0
https://www.openssl.org/news/cl32.txt

drop upstreamed 0001-Link-libatomic-on-riscv32.patch.
drop fix_random_labels.patch as fixed by
0fbc50ef0c

(From OE-Core rev: 5a40f27051a1d40af41e7260b9f693a3c27c321f)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Viswanath Kraleti
87fdb2fb6f systemd-boot: Fix build issues on armv7a-linux
Backport a fix to address the build failure on armv7a introduced
in systemd v254-rc1.

see
https://github.com/systemd/systemd/issues/29381

(From OE-Core rev: 782790dc6423fe3ae1ce4cd674ab492bfc881230)

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 11:23:37 +00:00
Ross Burton
849bd6e300 autoconf: upgrade to 2.72d
This is the first proper beta, so upgrade and drop all of the backports.

(From OE-Core rev: 7d09335538ad9e0fa4cd5d421e08247deb5e2306)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-04 09:19:36 +00:00
Charlie Johnston
1f8a639a67 bitbake: fetch2: Ensure GCP fetcher checks if file exists before download.
The GCP fetcher was calling bb.fetch2.check_network_access with
"gsutil stat" as the command, but then never actually ran that
command to check if the file exists. In cases where the file did
not exist in a gs:// premirror, this would lead to an unhandled
exception from do_fetch when the GCP python API tried to perform
the download.

This change resolves that issue by adding a runfetchcmd to call
gsutil.

(Bitbake rev: 1ab1d36c0af6fc58a974106b61ff4d37da6cb229)

Signed-off-by: Charlie Johnston <charlie.johnston@loftorbital.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Richard Haar
64725a9c32 bitbake: bitbake: tests: Fix duplicate test_underscore_override test
Found a duplicate test, added  _2 suffix to one, 74 tests now pass up from 73.

(Bitbake rev: ae2a19dadb4f3065b8731a61f45f29e6a70af402)

Signed-off-by: Richard Haar <rh@richhaar.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Joshua Watt
6b6374c336 bitbake: bitbake-hashclient: Add commands to get hashes
Adds subcommands to query the server for equivalent hashes and for
output hashes.

(Bitbake rev: 36ba202232399738670c9fb11169ead5590a3e82)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
5b18ff6d6b bitbake: toaster/tests: Test single recipe page
Test recipe page
    - Check if title is displayed
    - Check add recipe layer displayed
    - Check left section is displayed
        - Check recipe: name, summary, description, Version, Section,
        License, Approx. packages included, Approx. size, Recipe file

(Bitbake rev: 4f16f6666ef7ccda0e7194f2107fcbbc8f915be4)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
eb2af42e0a bitbake: toaster/tests: Test single layer page
Test layer page
    - Check if title is displayed
    - Check add/remove layer button works
    - Check tabs(layers, recipes, machines) are displayed
    - Check left section is displayed
        - Check layer name
        - Check layer summary
        - Check layer description

(Bitbake rev: 740b37cc077803f134391c99fc4cae45550020f3)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
200541ec56 bitbake: toaster/tests: Bug-fix on tests/functional/test_project_page
- Generate a random name for create project while test
- Set timeout on method _wait_until_build
- update test_machines_page, test_softwareRecipe_page and
  test_single_layer_page to  fix exception "element not interactable"

(Bitbake rev: 51c051da61a0396bdaa965065796476de7340727)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
5cd899da39 bitbake: toaster/tests: Added distro page TestCase
Test distros page
    - Check if title "Compatible distros" is displayed
    - Check search input
    - Check "Add layer" button works
    - Check distro table feature(show/hide column, pagination)

(Bitbake rev: 8b56af0837e9f09f13d6892c1aa1d82ecd5ef87d)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
00fb8ffca3 bitbake: toaster/tests: Added Layers page TestCase
Test layers page
    - Check if title "Compatible layerss" is displayed
    - Check search input
    - Check "Add layer" button works
    - Check "Remove layer" button works
    - Check layers table feature(show/hide column, pagination)

(Bitbake rev: a7bdda5b31f95e39c70eefb8ddf0ec690b3786ef)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
9de0b70cc3 bitbake: toaster/tests: Added Machine page TestCase
Test Machine page
    - Check if title "Compatible machines" is displayed
    - Check search input
    - Check "Select machine" button works
    - Check "Add layer" button works
    - Check Machine table feature(show/hide column, pagination)

(Bitbake rev: 98b78d49e2169d57324e4e471d7ad353963c273a)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
9f78fee273 bitbake: toaster/tests: Test software recipe page
Test software recipe page
    - Check title "Compatible software recipes" is displayed
    - Check search input
    - Check "build recipe" button works
    - Check software recipe table feature(show/hide column, pagination)

(Bitbake rev: b9c8c77d73d19bd4ddf9b6e90b0aa71f92d36993)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
2ee91ebd9c bitbake: toaster/tests: Override table edit columns TestCase from image recipe page
Better handle TestCase of table  edit column feature

(Bitbake rev: 6adc708a1520f8c947f9c40fdc88ebe2b51ecc97)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:23 +00:00
Alassane Yattara
715898cb9a bitbake: toaster/tests: Update methods wait_until_~ to skip using time.sleep
Update Class Wait from selenium_helpers_base, to override
wait_until_visible and wait_until_present with poll argument to better
handle delay between driver actions

(Bitbake rev: 486817ac6ad28580d81dcf6e3789678d9259bb54)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 18:04:22 +00:00
Khem Raj
c55cb443d0 rust-common.bbclass: Define rust arch for x32 platforms
(From OE-Core rev: 02d6c89ca2e72e95d093282f5626e607060da588)

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>
2023-12-02 17:18:57 +00:00
Khem Raj
9e7de16884 llvm: Upgrade to 17.0.6
Bring in these changes

* 6009708b4367 Revert "[runtimes] Add missing test dependencies to check-all (#72955)"
* 04caadc61fa2 [Driver] Enable __float128 support on X86 on FreeBSD / NetBSD (#72788)
* e919a83f96fe eliminate python SyntaxWarnings from check-all output.
* f6c231c15ec8 [clang-format] Fix crashes in AlignArrayOfStructures (#72520)
* f74f3e6f58d3 [clang] Fix sorting module headers (#73146)
* 7e30ce9528d9 [JITLink][aarch32] Change writeRegister's return type to void.
* 03373fd9cb6c [CMake] Support building shared library for NetBSD
* 21af3b62b632 workflows/release-binaries: Do a preliminary build to fill ccache (#72576)
* 201faeca595e Add RV64 constraint to SRLIW (#69416)
* e957e6dcb29d [runtimes] Add missing test dependencies to check-all (#72955)
* f8575ff46f89 [clang-format] Fix a bug in aligning comments above PPDirective (#72791)
* a71237b9f67f [clangd] Avoid null result in FindRecordTypeAt()
* 308c816de5a4 Bump version to 17.0.6
* 442401f7c0ca remove tests from bad merge
* 76c7e0e1e2d1 Use the correct namespace for looking up matching operator!= (#68922)
* b5cbb35408a3 [libc++] Use correct size for deallocation of arrays in shared_ptr (#68233)
* e6de86cb9ef8 Revert "Reland [clang] Canonicalize system headers in dependency file when -canonical-prefixes" (#71697)
* bb66d8f8f73b [clang][WebAssembly] Link crt1 even in case of -shared

(From OE-Core rev: eab3ce3184d66a98fe9f5992c462552dfc89397f)

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>
2023-12-02 17:18:57 +00:00
Khem Raj
e0a7cccb95 virglrenderer: Fix build with clang
Fix warnigns seen with -Wembedded-directive -D_FORTIFY_SOURCE=2

(From OE-Core rev: 6e698bac55f785e84f52161cfab8fe6e764940cc)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Tim Orling
a5ee86fd99 python3-cryptography{-vectors}: 41.0.5 -> 41.0.7
https://github.com/pyca/cryptography/compare/41.0.5...41.0.7

https://cryptography.io/en/latest/changelog/#v41-0-7
https://cryptography.io/en/latest/changelog/#v41-0-6

41.0.7 - 2023-11-27
Fixed compilation when using LibreSSL 3.8.2.

41.0.6 - 2023-11-27
Fixed a null-pointer-dereference and segfault that could occur when loading
certificates from a PKCS#7 bundle. Credit to pkuzco for reporting the issue.

CVE: CVE-2023-49083

(From OE-Core rev: 25fba6dd44f64e1e476c2e537d4a20cdbdc7ed25)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Tim Orling
076862d68e python3-cryptography-vectors: add RECIPE_NO_UPDATE_REASON
Comments in the recipe are insufficient to prevent folks from attempting
to upgrade the recipe without also upgrading python3-cryptography.

These two recipes MUST be upgraded in lock step to the exact same version.

(From OE-Core rev: 3701bc4d30526c52be1e1789afb24c90a23beab6)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Matsunaga-Shinji
291bc9e96a cve-check: Modify judgment processing using "=" in version comparison
Judgment processing of vulnerable using "=" compares characters as strings rather than numbers,
and misjudges "cases that do not match in strings but do match in numbers" as "Patched".
(e.g. PV = "1.2.0" and Vulnerabilities Affected Versions (registered with NVD) = "1.2")

Therefore, if the comparison operator used in the judgment processing of vulnerable is "=",
add numeric comparison processing.

(From OE-Core rev: a1989e4197178c2431ceca499e0b4876b233b131)

Signed-off-by: Shinji Matsunaga <shin.matsunaga@fujitsu.com>
Signed-off-by: Shunsuke Tokumoto <s-tokumoto@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Wang Mingyu
2364a81460 resolvconf: upgrade 1.91 -> 1.92
Changelog:
===========
 * resolvconf(8): Fix new paragraph.
 * Move binaries to /usr.

(From OE-Core rev: 38d558ea63c66fd02d2c3fab79dae8ce65e4aa13)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
ea908dff17 python3-wheel: upgrade 0.41.3 -> 0.42.0
Changelog:
===========
-Allowed removing build tag with wheel tags --build ""
-Fixed wheel pack and wheel tags writing updated WHEEL fields after a blank
 line, causing other tools to ignore them
-Fixed wheel pack and wheel tags writing WHEEL with CRLF line endings or a
 mix of CRLF and LF
-Fixed wheel pack --build-number "" not removing build tag from WHEEL

(From OE-Core rev: 6079197265a6a3f615321bcbe7104479f1e29251)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
c3d97f203c python3-trove-classifiers: upgrade 2023.11.14 -> 2023.11.22
Changelog:
  Add "Framework :: Sphinx :: Domain" classifier

(From OE-Core rev: 55550dd042a6a2864458d4175c59c1bad4dd87b9)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
df8f9ed7ca python3-sphinx-rtd-theme: upgrade 1.3.0 -> 2.0.0
(From OE-Core rev: 20caa0463a5568036d66792a597b077ae50785a2)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
befba49629 ofono: upgrade 2.1 -> 2.2
Changelog:
==========
-Fix issue with udev tracking of devices.
-Fix issue with QMI WDA initialization.
-Fix issue with handling QMI premultiplexed contexts.
-Fix issue with additional context types in MBPI.
-Remove CDMA support.

(From OE-Core rev: 574d113dd56098e08fad9bfff79e93f0d35ca0b9)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
60fe92fa35 python3-idna: upgrade 3.4 -> 3.6
License-Update:
===============
Update copyright date; Prep for 3.5; Update maintainer email

Changelog:
==========
-Fix regression to include tests in source distribution.
-Update to Unicode 15.1.0
-String codec name is now "idna2008" as overriding the system codec "idna" was
 not working.
-Fix typing error for codec encoding
-"setup.cfg" has been added for this release due to some downstream lack of
 adherence to PEP 517. Should be removed in a future release so please prepare
 accordingly.
-Removed reliance on a symlink for the "idna-data" tool to comport with PEP 517
 and the Python Packaging User Guide for sdist archives.
-Added security reporting protocol for project

(From OE-Core rev: 30b23caeec25d2a029967fb60b8fb01329ea258b)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
3e8743831b libsolv: upgrade 0.7.26 -> 0.7.27
Changelog:
============
* add zstd support for the installcheck tool
* add putinowndirpool cache to make file list handling in
  repo_write much faster

(From OE-Core rev: 6728c2e348461c78b16cb55dbca9f76418de738e)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
61638b4d85 init-system-helpers: upgrade 1.65.2 -> 1.66
Changelog:
==========
* d/init.lintian-overrides: Silence warning about "Important" field
  'Important: yes' instructs APT to warn the user before removing this
  package.
* script/update-rc.d: DPKG_ROOT support for sysvinit
* Add "Protected: yes" to package "init" The "Protected" field does the
  same as "Important" already did in apt, but is also understood by dpkg
  (since dpkg 1.20.1).
* Bump Standards-Version to 4.6.2, no changes
* Override Lintian warning for Protected: yes
* deb-systemd-invoke: support reload/reexec. This is useful for the
  --user case, to provide a shortcut that loops over all active user
  sessions over D-Bus.
* deb-systemd-invoke: support --no-dbus for reload/reexec. Provide
  common implementation for SIGHUP/SIGRTMIN+25 to reload/reexec the
  system or user instances.

(From OE-Core rev: 1d3af466f58dc1e5299c55f7ad6179128da3a553)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
c795b63a8e gi-docgen: upgrade 2023.1 -> 2023.3
Changelog:
============
Fixed:
- Add missing dependency [#175]
- Add missing test data to the source archive
- Match dependencies list in the index and sidebar [!177]
- Use KeyboardEvent.key to focus search input [#151]
- Build fixes for subproject use [!185]
- Remove display:flex from headings [#147]
- Split transfer notes based on direction [#141]
- Clarify signal flags [!189]
- Hide build section if empty [#160]
- Always explicitely use utf-8 when reading/writing files [!193]
- use `color-scheme: dark` when in dark mode [!188]

Added:
- Use packaging module to properly compare versions
- Add "implements" in class definition pseudocode
- Ignore the first class instance struct field
- Parse default-value attribute [#103]
- Test the gtk-doc sigil parsing
- Support admonitions in docblocks [#170]
- Add link to the extra content files location in the source repository [#118]
- Search for GIR XML in `$GI_GIR_PATH` and `/usr/share/gir-1.0` [!196]
- Add fallback for missing "since" [!198]

Changed:
- Redesign the search results
- Redesign the index for enumeration types

(From OE-Core rev: 63eaf528e78819d479a12a3d2c7cdad5c55fe0e1)

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>
2023-12-02 17:18:57 +00:00
Wang Mingyu
629403e5ec ethtool: upgrade 6.5 -> 6.6
Changelog:
===========
* Feature: support for more CMIS transceiver modules (-m)
* Fix: fix build on systems with old kernel uapi headers

(From OE-Core rev: 37ab85d724ba2d435cb710a80efd3b2ed734b92a)

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>
2023-12-02 17:18:57 +00:00
Marco Felsch
6481e8b209 json-c: fix icecc compilation
Skip -Werror to make it possible to compile this recipe with ICECC else
all fallthrough comments will be removed since we pre-process the files
on the host before sending them to the compile nodes which then cause
errors because of default -Werror switch.

Fixes: caf64f85b5c5 ("json-c: update 0.13.1 - > 0.14")
(From OE-Core rev: 915f8307b063e17ddadd5dface83578b8ad254e2)

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Robert Yang
bd00c3de14 gettext: Upgrade 0.22 -> 0.22.3
(From OE-Core rev: 8c53a58ac6790aa2296f14a7a5d0d67ede1055da)

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>
2023-12-02 17:18:57 +00:00
Robert Yang
abea4369a2 gnu-config: Update to latest revision
(From OE-Core rev: 3e6c4274c6aa1874065351e218265ed717fbefcd)

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>
2023-12-02 17:18:57 +00:00
Peter Marko
30e986ea3f cve-update-nvd2-native: make number of fetch attemtps configurable
Sometimes NVD servers are unstable and return too many errors.

Last time we increased number of attempts from 3 to 5, but
further increasing is not reasonable as in normal case
too many retries is just abusive.

Keep retries low as default and allow to increase as needed.

(From OE-Core rev: 6b6fd8043d83b99000054ab6ad2c745d07c6bcc1)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Peter Marko
d6d94eed1e cve-update-nvd2-native: remove unused variable CVE_SOCKET_TIMEOUT
This variable is not referenced in oe-core anymore.

(From OE-Core rev: 905b45a814cb33327503b793741c19b44c8550b3)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Charlie Johnston
fdbf779245 bitbake.conf: Add gsutil as hosttool for gcp fetcher.
The gcp fetcher uses gsutil to check if the file exists before
fetching. This change ensures the tool is included as a nonfatal
hosttool so that it's included in the build environment when
available.

(From OE-Core rev: d5e481bbd96210e608fa0aa5f7b54c1398c7d273)

Signed-off-by: Charlie Johnston <charlie.johnston@loftorbital.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Markus Volk
4371f927bc cups: Add root,sys,wheel to system groups
The Cups documentation states:
The default contains "admin", "lpadmin", "root", "sys" and/or "system".
https://www.cups.org/doc/man-cups-files.conf.html#:~:text=SystemGroup

Add root and sys accordingly
Also add wheel group. This is required for systems with polkit support in order to
control the printer settings with cups-pk-helper.
Not only for gnome-control-center, but also when using plain system-config-printer on
a system with running polkit, cups-pk-helper would be a required rdepend.

(From OE-Core rev: 572fed0ac6dbcf5749e19c7b624826fc30cf301e)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Martin Hundeb?ll
ea96025188 libpam: split /etc/environment into pam-plugin-env package
Since systemd-v255, pam-plugin-umask is pulled in by by the logind
package config for systemd. This causes /etc/environment to be installed
as part of libpam-runtime. In our case, this broke do_rootfs for our
image, because /etc/environment is already provided by another (custom)
recipe.

Fix this by making the /etc/environment file part of the pam-plugin-env
package, which isn't automatically pulled in by systemd-logind. It also
happens to be the where it should be, as the file is installed as part
of the pam_env plugin.

(From OE-Core rev: 778fcc8d2e6eb1bd2c88a6abb14dbd6666720205)

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-02 17:18:57 +00:00
Michael Opdenacker
e2c364a642 migration-guides: release 3.5 is actually 4.0
(From yocto-docs rev: 7107e18bfa4cf24b912df6c60d8ffb8c74152bca)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 17:45:06 +00:00
Lee Chee Yang
275240132e migration-guides: add release notes for 4.3.1
(From yocto-docs rev: ab48159aa99a7bba38c81166e75f8b612cbadc65)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 17:45:06 +00:00
Michael Opdenacker
dbcc4df413 contributor-guide: fix command option
"--subject-prefix" applies to "git format-patch", not "git send-email"

(From yocto-docs rev: d0e255f4ace445e076f37d42bbc69378f5985c59)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 17:45:06 +00:00
Justin Bronder
9773b0c64c contributor-guide: add License-Update tag
Porting from the old wiki
https://www.openembedded.org/index.php?title=Commit_Patch_Message_Guidelines&oldid=10935#Describing_license_changes

(From yocto-docs rev: 51e55b44a4532ae16595bd5a712c34deeff5d47b)

Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 17:45:06 +00:00
Michael Opdenacker
5785754244 dev-manual: layers: update link to YP Compatible form
(From yocto-docs rev: bf69c60b6fafad2497d7c8de51c7e1eb85bcb756)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Megan Knight <megankn@amazon.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 17:45:06 +00:00
Alex Kiernan
8078310674 rust: Drop TARGET_VENDOR export
This was used by crossbeam_atomic.patch, but that patch was removed as
part of the 1.69.0 upgrade.

(From OE-Core rev: 3753997d6ec19e8cd082f9a602ebe4a7c1308c36)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Alex Kiernan
505dad0d67 rust: Delete python2 configparser code path
We no longer support python2, remove the python2 fallback code.

(From OE-Core rev: c7c17dcaf452abbf49fd05c15cd56aa4b4382284)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Bruce Ashfield
3f96cab3c4 lttng-modules: fix build for v6.7+
While working on the update to linux-yocto-dev lttng-modules
needed some tweaks (as usual).

With these three patches (submitted to lttng-dev), we can
once again build core-image-kernel-dev for v6.7+

(From OE-Core rev: b8b7b4d9274bde36f43c43207c463730f22e1f5f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Jan Vermaete
a1a87182d1 systemd: fixed typo
(From OE-Core rev: 2ffecdbfa3be53e2a36d9d54b19230f8c1f84c6c)

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Markus Volk
017b18f7d0 bluez5: fix connection for ps5/dualshock controllers
Bluez 5.69 added a regression. Bluetooth connection for playstation controllers
stopped working. This adds a backport patch for the issue

(From OE-Core rev: be05a177f943e9c8ce6c0fdbd157ee6f9103eef9)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Julien Stephan
49f549a142 oeqa/selftest/devtool: add test for git submodules
Add a test for gitsm recipes.
This tests that we can do changes on submodules, commit them and
properly extract the patches

(From OE-Core rev: 2fb69161fe9d25691b75a043ec5566ffe4a25b37)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Julien Stephan
89f1662484 devtool: add support for git submodules
Adding the support of submodules required a lot of changes on the
internal data structures:
* initial_rev/startcommit used as a starting point for looking at new
  / updated commits was replaced by a dictionary where the keys are the
  submodule name ("." for main repo) and the values are the
  initial_rev/startcommit

* the extractPatches function now extracts patch for the main repo and
  for all submodules and stores them in a hierarchical way describing the
    submodule path

* store initial_rev/commit also for all submodules inside the recipe
  bbappend file

* _export_patches now returns dictionaries that contains the 'patchdir'
  parameter (if any). This parameter is used to add the correct
  'patchdir=' parameter on the recipe

Also, recipe can extract a secondary git tree inside the workdir.

By default, at the end of the do_patch function, there is a hook in
devtool that commits everything that was modified to have a clean
repository. It uses the command: "git add .; git commit ..."

The issue here is that, it adds the secondary git tree as a submodule
but in a wrong way. Doing "git add <git dir>" declares a submodule but do
not adds a url associated to it, and all following "git submodule foreach"
commands will fail.

So detect that a git tree was extracted inside S and correctly add it
using "git submodule add <url> <path>", so that it will be considered as a
regular git submodule

(From OE-Core rev: 900129cbdf25297a42ab5dbd02d1adbea405c935)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Julien Stephan
17427db136 devtool: tag all submodules
In the case of a repository with submodules, we need to add the
"devtool-base" and "devtool-patched" tag on all submodules in order to
properly detect the added/removed/modified patches

(From OE-Core rev: 241da68805d177d4ec4b302c8a997645cc645286)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Julien Stephan
1ae4cc7a11 devtool: finish/update-recipe: restrict mode srcrev to recipes fetched from SCM
When specifying --mode / -m srcrev with devtool finish/update-recipe on
recipes that are not fetched from a SCM repository we get the following
error:

  Traceback (most recent call last):
  [..]
    File "<...>/poky/meta/lib/oe/patch.py", line 49, in runcmd
    raise CmdError(cmd, exitstatus >> 8, "stdout: %s\nstderr: %s" % (stdout, stderr))
oe.patch.CmdError: Command Error: 'sh -c 'git format-patch --no-signature --no-numbered INVALID -o /tmp/oepatchbj7pfmzj -- .'' exited with 0  Output:
stdout:
stderr: fatal: bad revision 'INVALID'

Fix this by adding a check and abort with a proper error message.

(From OE-Core rev: 5b77f60e85d07921ae5e808daa1fd7d8c3dc40ea)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-01 11:48:25 +00:00
Ross Burton
d069eb3af4 core-image-minimal-initramfs: don't install a kernel into the initramfs
There's obviously no point in installing a kernel into an initramfs, but
if we install kernel modules then they'll recommend the relevant kernel.

Set PACKAGE_EXCLUDE to ensure the initramfs for a kernel doesn't contain
the kernel.

(From OE-Core rev: 2914e6a912c9aa014a05015c3401675d10c0f13b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Sundeep KOKKONDA
a4ddc1415b binutils: stable 2.41 branch updates
Below commits on binutils-2.41 stable branch are updated.
eb49941e7e1 Gold/MIPS: Add targ_extra_size=64 for mips32 triples
c27eff41737 Gold/MIPS: Use EM_MIPS instead of EM_MIPS_RS3_LE for little endian
7fe76f02413 x86-64: fix suffix-less PUSH of symbol address

(From OE-Core rev: 580119844fd93eb7bbc778722a6117a31b7c1591)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Sundeep KOKKONDA
a9db3010b9 glibc: stable 2.38 branch updates
Below commits on glibc-2.38 stable branch are updated.
1e04dcec49 Revert "elf: Move l_init_called_next to old place of l_text_end in link map"
719866ab2f Revert "elf: Always call destructors in reverse constructor order (bug 30785)"
e0b6c9706c Revert "elf: Remove unused l_text_end field from struct link_map"

(From OE-Core rev: c14832a8cd40171e4081aadb613de185ae233851)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
5c1d35356a rt-tests: update 2.5 -> 2.6
(From OE-Core rev: b9cf245b57352157435f880abc879733c8d16349)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
8b88f0431c repo: update 2.37 -> 2.39
(From OE-Core rev: b9476848a1447b0e383b4a68615c4bc1e9aa89e0)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
90818b1c5d meson: update 1.2.2 -> 1.3.0
(From OE-Core rev: 98c2ee5cef5a0968d8f6f8d4b55ee4b29aabaee6)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
1b6368ed09 glib-2.0: install gio-querymodules into bindir as well as libexecdir for native
Latest meson expects it there and fails if it can't find it; meanwhile
we patch glib to put it into libexecdir for reasons of avoiding incorrect
debian package renaming in multilib scenarios.

(From OE-Core rev: cd530108e1b31ff3dff9e677e8e5af920e6609aa)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
c4f87eda9e p11-kit: upgrade 0.25.0 -> 0.25.2
Switch to gitsm:// to fetch https://github.com/p11-glue/pkcs11-json.git
as a submodule (otherwise meson will try to do that in do_configure).

(From OE-Core rev: 4331f57a45f144e6c156390d024c0e2d8bc9a991)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
df9d98a19c icu: upgrade 73-2 -> 74-1
License-Update: formatting
248b1c2a13

(From OE-Core rev: b61fe755dad55cdacc23176d0257bb158fa9a662)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
7b06237008 mpg123: upgrade 1.31.3 -> 1.32.3
--disable-lfs-alias removed upstream.

(From OE-Core rev: cc50d6939f678326ae56fee96267bc992b32bcdd)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
fb42c6a231 libxkbcommon: upgrade 1.5.0 -> 1.6.0
Add bash-completion support for xkbcli.

(From OE-Core rev: 2ff0f450037d58156c0fecbb320be34bfd4ea15a)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
7e545ebf2f virglrenderer: upgrade 0.10.4 -> 1.0.0
venus (virtual vulkan support) is no longer experimental.

(From OE-Core rev: 21ca5d6babc3d668044296b0fbbc3e101f7ce5bd)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
d2eade15b7 epiphany: upgrade 44.6 -> 45.1
(From OE-Core rev: 3c71df4e412954ac71f6b86ba6f616d34cfd24a8)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
4fbbc2609d webkitgtk: update 2.40.5 -> 2.42.2
Drop check-GST_GL_HAVE_PLATFORM_GLX.patch as upstream removed the code.

(From OE-Core rev: 1c75e894226656a1fe5613c1a238c3303df82b1c)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
4ab32e3f76 erofs-utils: upgrade 1.6 -> 1.7.1
(From OE-Core rev: 333e644466c7b6749481988b638e23ec78316c4a)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
f8199bc908 desktop-file-utils: upgrade 0.26 -> 0.27
Convert to meson.

(From OE-Core rev: 68302a613d504fabb83907b4ddf9d3e2a7d34f5c)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
c018b6e608 cmake: upgrade 3.27.5 -> 3.27.7
(From OE-Core rev: 0faec0c8606b31216702252d0db7aa88388df231)

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>
2023-11-30 08:43:04 +00:00
Alexander Kanavin
7b1b3f2abe python3-pyproject-hooks: fix upstream version check
(From OE-Core rev: 63992986a7558a4c252a69041fa35eab3a8f4e21)

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>
2023-11-30 08:43:04 +00:00
Tim Orling
71b3038979 vim: upgrade 9.0.2068 -> 9.0.2130
https://github.com/vim/vim/compare/v9.0.2068...v9.0.2130

CVE: CVE-2023-48231
CVE: CVE-2023-48232
CVE: CVE-2023-48233
CVE: CVE-2023-48234
CVE: CVE-2023-48235
CVE: CVE-2023-48236
CVE: CVE-2023-48237

(From OE-Core rev: 5978d565a9e700485fc563dfe2e3c0045dd74b59)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Trevor Gamblin
eea4746ef5 python3-ptest: skip test_storlines
[YOCTO #14933]

test_storlines is yet another Python ptest that fails intermittently on
the Yocto AB, so disable it during ptests for now.

(From OE-Core rev: d7b9f8157e6214a83b5495e8a32e11540ae65ff8)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Julien Stephan
c7ed37b5ff lib/oe/recipeutils.py: remove trailing white-spaces
Remove useless trailing white-spaces

(From OE-Core rev: 4aa28d5ea74016087979afd1faea478fda253cc3)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Julien Stephan
fcff067407 devtool: fix update-recipe dry-run mode
When running devtool update-recipe with --mode=srcrev AND --append switch
in dry-run, we get the following error:

  Traceback (most recent call last):
  [...]
  Exception: destpath should be set here

Fix this by removing a misplaced else statement in _update_recipe_srcrev

(From OE-Core rev: 85ba125703d5b442133fd7c470b915460ee68ac9)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-30 08:43:04 +00:00
Khem Raj
fad5756892 busybox: Enable utmp support on musl systems
runlevel misc applet is enabled when using init feature from busybox
however this applet does not build right now because it depends on utmp
feature and its disabled for musl systems. runlevel is used by
update-rd.d tool during system maintenance e.g. opkg upgrade etc.

(From OE-Core rev: de62069c32fedd094c279b99b2ff389c7e0012aa)

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>
2023-11-30 08:43:04 +00:00
Khem Raj
9f57bfb74e libsoup-2.4: Fix build with clang-17 and libxml2-2.12
(From OE-Core rev: 1dd0e731d5a02105633dc67ccbc04b3dd0d0a873)

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>
2023-11-30 08:43:04 +00:00
Khem Raj
3a9d725fb3 shared-mime-info: Fix build with clang-17+
This is needed with libxml2-2.12 and newer

(From OE-Core rev: 75c91f7e41b5840227590b1e6094cafe84a60163)

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>
2023-11-30 08:43:04 +00:00
Wang Mingyu
6a52222c11 python3-urllib3: upgrade 2.0.7 -> 2.1.0
Changelog:
============
-Removed support for the deprecated urllib3[secure] extra.
-Removed support for the deprecated SecureTransport TLS implementation.
-Removed support for the end-of-life Python 3.7.
-Allowed loading CA certificates from memory for proxies.
-Fixed decoding Gzip-encoded responses which specified x-gzip content-encoding.

(From OE-Core rev: 60cd3ac8c208f787b70fcbea4e6d4a86b3c6ed96)

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>
2023-11-30 08:43:04 +00:00
Wang Mingyu
1b0b4055dd python3-scons: upgrade 4.5.2 -> 4.6.0
Changelog:
https://github.com/SCons/scons/releases/tag/4.6.0

(From OE-Core rev: a72f9445ecff26187f5c7fe203658db76c86a04b)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
edadad94b0 python3-pyasn1: upgrade 0.5.0 -> 0.5.1
Changelog:
============
-Added support for PyPy 3.10 and Python 3.12
-Updated RTD configuration to include a dummy index.rst redirecting to
 contents.html, ensuring compatibility with third-party documentation and search
 indexes.
-Fixed the API breakage wih decoder.decode(substrateFun=...).

(From OE-Core rev: 42e32865f9c3f075243b2f4110c2c81bfbe78441)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
f020826156 python3-hypothesis: upgrade 6.89.0 -> 6.90.0
Changelog:
============
-makes it an error to assign settings = settings(...) as a class attribute on a
 RuleBasedStateMachine.
-refactors some internals.

(From OE-Core rev: f17603daac0ad98f5c7a4f56ca8e23b2b16cd9ed)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
7ea7bb735e python3-wcwidth: upgrade 0.2.9 -> 0.2.11
Changelog:
============
-Include tests files in the source distribution
-bugfix Emojis made wide by Variation Selector-16

(From OE-Core rev: 1cee88610624bfc8527cbeae85f9eb956ec7d267)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
376c20b686 python3-setuptools: upgrade 68.2.2 -> 69.0.2
Changelog:
============
-Added missing estimated date for removing setuptools.dep_util
-Fixed imports of setuptools.dep_util.newer_group. A deprecation warning is
 issued instead of a hard failure.
-Include type information (py.typed, *.pyi) by default
-Exported distutils.dep_util and setuptools.dep_util through setuptools.modified
-Merged with pypa/distutils@7a04cbda0f.
-Replaced hardcoded numeric values with dis.opmap, fixing problem with 3.13.0a1.

(From OE-Core rev: 159f1e8e3ec91fab5ab191821674b69626f0dc76)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
6169a630b8 python3-certifi: upgrade 2023.7.22 -> 2023.11.17
License-Update: Remove inaccurate date from LICENSE

(From OE-Core rev: a4a46f85406ce729c0393be4261d386c98b3ba00)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
5b5517bc16 log4cplus: upgrade 2.1.0 -> 2.1.1
Changelog:
===========
-Add missing source files to MSVC project files.
-Resolve environment variables in include directive in configuration file.

(From OE-Core rev: 33d49b14609d9b92a7c23d79f1bdfca79a5d8197)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
0bf9a1ba78 libxslt: upgrade 1.1.38 -> 1.1.39
Changelog:
===========
- extensions: Don't search imports for extension prefixes
- transform: Check maximum depth when processing default templates
- build: Add more missing includes
- python: Don't set deprecated global
- build: Add missing includes
- imports: Limit nesting depth
- extensions: Report top-level elements in xsltDebugDumpExtensions
- Add extern "C" { } block to xsltlocale.h
- python: Make it compatible with python3.12
- date: Fix check for localtime_s
- date: Fix check for gmtime_s
- pkg-config files include cflags for static builds
- Handle NOCONFIG case when setting locations from CMake target properties
- autotools: Make xslt-config executable
- tests: Structured error handler now passes a const xmlError
- python: Fix tests on MinGW
- fuzz: Fix xmlFuzzEntityLoader after recent libxml2 changes

(From OE-Core rev: 48b353f3fb8e5ab1853cba7faa3065d2fe6f36b4)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
858d1947f6 libksba: upgrade 1.6.4 -> 1.6.5
Changelog:
============
* Add Brainpool curve detection using parameters with compressed base point.
* New configure option --with-libtool-modification.

(From OE-Core rev: bf16fd0b7f4ec2b6967f239ab2d7997fbfa2d193)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
318978b539 libgcrypt: upgrade 1.10.2 -> 1.10.3
Changelog:
==========
- Fix public key computation for other EdDSA curves.
- Remove out of core handler diagnostic in FIPS mode.
- Check that the digest size is not zero in gcry_pk_sign_md and
  gcry_pk_verify_md.
- Make store an s-exp with \0 is considered to be binary.
- Various constant-time improvements.
- Use getrandom call only when supported by the platform.
- Change the default for --with-libtool-modification to never.

(From OE-Core rev: e21583896116cf37bf6b95aea466854e4fd5e54b)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
4ea5f4ec9f libdrm: upgrade 2.4.117 -> 2.4.118
(From OE-Core rev: 2ab8a0dd8293e9a19aa0af9b363c51b558301972)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
9a8af2a800 gnutls: upgrade 3.8.1 -> 3.8.2
Changelog:
============
** libgnutls: Fix timing side-channel inside RSA-PSK key exchange.
** libgnutls: Add API functions to perform ECDH and DH key agreement
** libgnutls: Added support for AES-GCM-SIV ciphers
** libgnutls: transparent KTLS support is extended to FreeBSD kernel
** gnutls-cli: New option --starttls-name

(From OE-Core rev: 3c01bb0be8ddafa0aa1ad996ec524b51fd28f512)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
124422a57f git: upgrade 2.42.1 -> 2.43.0
Changelog:
==========
https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.43.0.txt

(From OE-Core rev: fcd5d85de18073f9c062a4f88d9f239d0672f5be)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
07726cef77 ell: upgrade 0.59 -> 0.60
Changelog:
==========
-Fix issue with missing NETLINK_EXT_ACK definition.
-Fix issue with incorrect derivation of ECC compressed points.
-Add support for ECC usage from SPAKE2+ key exchange protocol.

(From OE-Core rev: 9b13c1ffadda0893561e804d2ab789bf1c401d3a)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
81827e8c67 diffoscope: upgrade 251 -> 252
Changelog:
============
* As UI/UX improvement, try and avoid printing an extended traceback if
  diffoscope runs out of memory.
* Mark diffoscope as stable in setup.py (for PyPI.org). Whatever diffoscope
  is, at least, not "alpha" anymore.

(From OE-Core rev: da43500a3c230f868ae53c73e0657b67e9dc9f25)

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>
2023-11-30 08:43:03 +00:00
Wang Mingyu
053af0fc1e bind: upgrade 9.18.19 -> 9.18.20
Changelog:
============
-Fix missing newlines in the output of "rndc nta -dump".
-Take into account local authoritative zones when falling back to serve-stale.
-Fix assertion failure when using lock-file configuration option together -X
 argument to named.
-The 'lock-file' file was being removed when it shouldn't have been making it
 ineffective if named was started 3 or more times.
-Fix a shutdown race in dns__catz_update_cb().
-B.ROOT-SERVERS.NET addresses are now 170.247.170.2 and 2801:1b8:10::b.
-The timeouts for resending zone refresh queries over UDP were lowered to enable
 named to more quickly determine that a primary is down.
-Don't schedule resign operations on the raw version of an inline-signing zone.
-Fix a possible assertion failure on an error path in resolver.c:fctx_query(),
 when using an uninitialized link.
-Add semantic patch to do an explicit cast from char to unsigned char in ctype.h
 class of functions.
-Python system tests have to be executed by invoking pytest directly. Executing
 them with the legacy test runner is no longer supported.
-The wrong covered value was being set by dns_ncache_current for RRSIG records
 in the returned rdataset structure. This resulted in TYPE0 being reported as
 the covered value of the RRSIG when dumping the cache contents.

(From OE-Core rev: 9b34124561d926d9273c52163853161515e5666a)

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>
2023-11-30 08:43:03 +00:00
Adrian Freihofer
0746299278 cmake-qemu.bbclass: support qemu for cmake
Define the CMAKE_CROSSCOMPILING_EMULATOR variable similar to what the
meson bbclass does. This allows for example to execute cross compilied
unit tests on the build machine when using an SDK.

CMAKE_CROSSCOMPILING_EMULATOR is a semi colon separated list of
paramters which could directly handle the -L and the -E parameters.
Creating a wrapper script is not absolutely mandatory. But anyway lets
do it similar to what the meson.bbclass does and also disable pseudo.

Further information can be found in the camke documentation in the
CMAKE_CROSSCOMPILING_EMULATOR section.

Keep the code optional, as the core does not need this function and does
not intend to use it in the future.

[YOCTO #15214]

(From OE-Core rev: b197d0b0de1fa5f295d32dbda2eb815ca0153299)

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>
2023-11-30 08:43:03 +00:00
Sundeep KOKKONDA
3e50e45917 rust: Split rustdoc into a separate package
The 'rustdoc' is moved to a separate 'rust-rustdoc' package. This is a
workaround to test if the main rust binary is reproducible even if
rustdoc isn't.

(From OE-Core rev: dfed7e63e199009ecca8e2e34f6a823c6e1677e0)

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Malte Schmidt
5d12c0a3dc wic: rawcopy: add support for zstd decompression
Add support for zstd decompression in rawcopy plugin. zstd claims
to reach higher, uniform decompression rates.

(From OE-Core rev: 707471b71a417187f1e581d0c540e058825f7242)

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Lee Chee Yang
dfedec4b2d wic: add test for partition hidden attributes
Add test for the --hidden argument introduced in Oe-Core
rev 7a111ff58d7390b79e2e63c8059f6c25f40f8977.

(From OE-Core rev: 819286cdce6471ca3dd048d3950b943b28e6d222)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Michael Opdenacker
0769ff28db systemd-compat-units.bb: fix postinstall script
This fixes an issue running "opkg upgrade" on a system with systemd
(and when there is an update to "systemd-compat-units",
for example between yocto 4.2.2 and 4.2.3):

//var/lib/opkg/info/systemd-compat-units.postinst: cd: line 3: can't cd to /etc/init.d: No such file or directory

The existence of /etc/init.d is now tested
without causing an error if doesn't exist.

Fixes [YOCTO #15292]

(From OE-Core rev: 0330331a1386fd2a34b410a7f62b29bfc8dc23c4)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Tim Orling
e59dcbc114 python3-sphinxcontrib-serializinghtml: 1.1.5 -> 1.1.9
* Upstream download filename changed from sphinxcontrib-serializinghtml*
  to sphinxcontrib_serializinghtml*
* build-backend is now flit (inherit python_flit_core)

Release 1.1.9 (2023-08-20)
==========================

* Serialise context["script_files"] and context["css_files"] as their filenames
  on Sphinx 7.2.0.

  Release 1.1.8 (2023-08-14)
  ==========================

  * Use ``os.PathLike`` over ``pathlib.Path``

  Release 1.1.7 (2023-08-09)
  ==========================

  * Fix tests for Sphinx 7.1 and below

  Release 1.1.6 (2023-08-07)
  ==========================

  * Drop support for Python 3.5, 3.6, 3.7, and 3.8
  * Raise minimum required Sphinx version to 5.0

https://github.com/sphinx-doc/sphinxcontrib-serializinghtml/compare/1.1.5...1.1.9

(From OE-Core rev: 38e035e1165a7d58a7de8b129b3f9e4a9faa275f)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Tim Orling
54a972040d python3-sphinxcontrib-qthelp: 1.0.3 -> 1.0.6
* Upstream download filename changed from sphinxcontrib-qthelp*
  to sphinxcontrib_qthelp*
* build-backend changed to flit (inherit python_flit_core)

Release 1.0.6 (2023-08-14)
==========================

* Use ``os.PathLike`` over ``pathlib.Path``

Release 1.0.5 (2023-08-09)
==========================

* Fix tests for Sphinx 7.1 and below

Release 1.0.4 (2023-08-07)
==========================

* Drop support for Python 3.5, 3.6, 3.7, and 3.8
* Raise minimum required Sphinx version to 5.0

https://github.com/sphinx-doc/sphinxcontrib-qthelp/compare/1.0.3...1.0.6

(From OE-Core rev: a38ec60aa0a3eece7060cc86f1aae161072e212e)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Tim Orling
4460123d04 python3-sphinxcontrib-htmlhelp: 2.0.1 -> 2.0.4
* Upstream download filename changed from sphinxcontrib-htmlhelp*
  to sphinxcontrib_htmlhelp*
* build-backend is now flit (inherit python_flit_core)

Release 2.0.4 (2023-08-14)
==========================

* Use ``os.PathLike`` over ``pathlib.Path``

Release 2.0.3 (2023-08-09)
==========================

* Fix tests for Sphinx 7.1 and below

Release 2.0.2 (2023-08-07)
==========================

* Drop support for Python 3.8
* Raise minimum required Sphinx version to 5.0

https://github.com/sphinx-doc/sphinxcontrib-htmlhelp/compare/2.0.1...2.0.4

(From OE-Core rev: 062d5f058f6b283f612fcf745f6bb76ad51aebe2)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Tim Orling
ba982b8ecf python3-sphinxcontrib-devhelp: 1.0.2 -> 1.0.5
* Upstream download filename changed from sphinxcontrib-devhelp*
  to sphinxcontrib_devhelp*
* build-backend is now flit (inherit python_flit_core)

Release 1.0.5 (2023-08-14)
==========================

* Use ``os.PathLike`` over ``pathlib.Path``

Release 1.0.4 (2023-08-09)
==========================

* Fix tests for Sphinx 7.1 and below

Release 1.0.3 (2023-08-07)
=========================

* Drop support for Python 3.5, 3.6, 3.7, and 3.8
* Raise minimum required Sphinx version to 5.0

https://github.com/sphinx-doc/sphinxcontrib-devhelp/compare/1.0.2...1.0.5

(From OE-Core rev: 2dfca75f697faafa84e896a2aae67071b8401ce6)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Tim Orling
1a07f7ab5e python3-sphinxcontrib-applehelp: 1.0.4 -> 1.0.7
* Upstream changed download file name from sphinxcontrib-applelhelp* to
  sphinxcontrib_applehelp*
* build-backend is now flit (inherit python_flit_core)

Release 1.0.7 (2023-08-14)
==========================

* Use ``os.PathLike`` over ``pathlib.Path``

Release 1.0.6 (2023-08-09)
==========================

* Fix tests for Sphinx 7.1 and below

Release 1.0.5 (2023-08-07)
==========================

* Drop support for Python 3.8
* Raise minimum required Sphinx version to 5.0

https://github.com/sphinx-doc/sphinxcontrib-applehelp/compare/1.0.4...1.0.7

(From OE-Core rev: a0cc690e50b83be6e9067ef81b3aefb16580acc7)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:54:59 +00:00
Richard Purdie
27f7ef2e44 bitbake: cooker: Avoid eventlog variable listing lockups
If the event log is enabled and parsing the metadata triggers log messages,
the event code and deadlock. Iterating the variables inside the event handling
code causes this. SOURCE_DATE_EPOCH triggers a python function which calls
bb.debug() and can trigger a lockup as one example.

Move the code around and add it to the BuildStarted events explictly. This
does mean runs without builds no longer get variables added to the eventlog
however we can look into a more targetted version of data if/as/where neded.

(Bitbake rev: 4135a617ae16d509362b5bf56378139cdc0876d2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:52:08 +00:00
Richard Purdie
7943caf90c bitbake: ui/ncurses: Add missing function call to avoid traceback
The ncurses UI wasn't working due to a missing function call. Add it
to avoid a traceback when starting builds.

(Bitbake rev: db8f36b69a68de2179e5685cf24a42ec10d68257)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-27 22:52:08 +00:00
Felix Moessbauer
2696bf8cf3 bitbake: fetch2/aws: forward env-vars used in gitlab-ci K8s
This patch adds the following variables to the allow-list, which are
used in the "IAM roles for AWS when using the GitLab chart":

- AWS_ROLE_ARN
- AWS_WEB_IDENTITY_TOKEN_FILE

These variables are set in the CI job environment and are needed to
access the sstate cache artifacts in a connected S3 bucket.

[1] https://docs.gitlab.com/charts/advanced/external-object-storage/aws-iam-roles.html

Reported-by: Zhi Bin Dong <zhibin.dong@siemens.com>
(Bitbake rev: c534526ea73805ee7cc16f3168b05ece10e0c03c)

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 17:55:08 +00:00
Julien Stephan
8a8d6fe132 bitbake: fetch2: git: add missing destsuffix and subpath parameters in docstrings
Docstring for git fetcher is missing destsuffix and subpath parameters,
so add them

(Bitbake rev: 7cea6c2efefbb0f789f654c04a61d9ba770c148b)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 17:44:59 +00:00
Desone Burns
7aab731f1e bitbake: bitbake: fetch2: git: Update Git-LFS download and tests
When downloading a Git repository containing an LFS, the Git hooks
are not always initialized correctly to perform the download. This
change updates the Git downloader to run the "git lfs install" command
in order to "smudge" the LFS files. The tests have also been updated
to do checks for situations in which git lfs is not installed, as
the application was required to be installed for any of the tests
to run previously.

The Git LFS functionality was working to some degree previously,
but this change also updates the fetcher to allow LFS downloads for
nobranch SRC_URIs.

(Bitbake rev: 05f8529fb439db93d85a892704b6f2f0ac0c9217)

Signed-off-by: Desone Burns II <dburns@seegrid.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 17:37:25 +00:00
Alexander Lussier-Cullen
6a87f5d53b bitbake: toaster: make django temp directory configurable
Modify the django settings to make cache, logs and databases save
to a configurable directory with TOASTER_DJANGO_TMPDIR instead of
the machine root level /tmp directory.

In addition, add this variable to the passthroughs for tox.

This change is made to facilitate cleaning test files for runs on
the autobuilder and avoid errors involving the persisted database.

(Bitbake rev: 887aaa91fd54ef24fc3cce42d584b381e37d3343)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 15:25:01 +00:00
Alexander Lussier-Cullen
6a9db991e7 bitbake: toaster/tests: add passthroughs for relevant build environment variables
Toaster build tests create new build environments which do not utlize
any existing build environment variables.
In particular, DL_DIR and SSTATE_DIR from an existing environment can
be passed in to allow for faster builds.

Adding these as passthroughs specifically resolves slow builds
related to the autobuilder integrations of the toaster test suite.

(Bitbake rev: 58cc3a4671878a425f52f9ec21636e366356bfc2)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 15:25:01 +00:00
Richard Purdie
1872cc9d50 Revert "binutils: Fix CVE-2022-47007"
This reverts commit 3f335913bbbabf48db1749d197c3bfaac9fb7236.

This CVE shouldn't affect master, it is for binutils versions 2.34
thru 2.38, while master is 2.41

See: https://nvd.nist.gov/vuln/detail/CVE-2022-47007

Later in commit:

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=19cacf672930cee20feaf1f3468e3d5ac3099ffd

elements of the CVE fix are reverted deliberately so match upstream for this
and drop this 'fix'.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 14:59:06 +00:00
Ross Burton
84e68041a2 rust-llvm: remove python3native dependency
LLVM doesn't actually need a native Python3 as the host Python is
sufficient, but as it then looks at the host for optional Python
dependencies explicitly disable their detection so that rust-llvm
remains deterministic.  As this is a minimal LLVM for Rust, we don't
need the optviewer tool.

(From OE-Core rev: c6971d9d9a9d9a83615508d244778ddc89a94b8a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Deepthi Hemraj
b7f0164393 binutils: Fix CVE-2022-47007
(From OE-Core rev: 3f335913bbbabf48db1749d197c3bfaac9fb7236)

Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Anuj Mittal
97170cf8ea vulkan: upgrade 1.3.261.1 -> 1.3.268.0
* Allow glslang to find external spirv-tools to build.
* Vulkan-validation-layers has been split. So a new recipe
Vulkan-Utility-Libraries has been added and vulkan-validation-layers now
depends on it.

(From OE-Core rev: 63bdeb74b133840f9d6f55093bf16f5a8a5d0ab7)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Peter Kjellerstedt
541868630f oeqa/selftest/tinfoil: Add tests that parse virtual recipes
Running `devtool search gcc` would result in errors for virtual recipes.
The reason was the newly introduced :layer-<layername> override.

When tinfoil parsed the recipes using the parseRecipeFile() function, it
failed to properly identify the layername for virtual recipes, which
resulted in the errors.

Add tests that exercise these code paths through parseRecipeFile().

(From OE-Core rev: cf7f34f93f9f90279412ea57d6d5930854d411ba)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Anuj Mittal
b6906962b7 sqlite3: upgrade 3.43.2 -> 3.44.0
(From OE-Core rev: 9d0aab7e94a5862e2a7003ebbc5704ec713dfb28)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Anuj Mittal
6e8a40e613 puzzles: upgrade to latest revision
(From OE-Core rev: 2d1364a9a590cfb84bb47ca38a6b626769e960a8)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Anuj Mittal
3fb0fe602d mmc-utils: upgrade to latest revision
(From OE-Core rev: b7f8e818a83772ecab14655f9e0fba56960ec282)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:42 +00:00
Anuj Mittal
b110b7624f libtirpc: upgrade 1.3.3 -> 1.3.4
(From OE-Core rev: bfddff1bd6503729eceb905412f9c5c944a59d55)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:41 +00:00
Anuj Mittal
6eac376e8b libnotify: upgrade 0.8.2 -> 0.8.3
(From OE-Core rev: 4176272fe33039302f0685ba96f5202a113bce7f)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:41 +00:00
Anuj Mittal
8aedcd7c41 harfbuzz: upgrade 8.2.2 -> 8.3.0
(From OE-Core rev: 5b5c9d86e7face83b7a5c21ca88056daaaede5e4)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:41 +00:00
Anuj Mittal
69ffd9d4c4 gsettings-desktop-schemas: upgrade 44.0 -> 45.0
(From OE-Core rev: 381d785bd35c11ea766c771663a1272fc359bb2c)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:41 +00:00
Anuj Mittal
7081513cf9 gstreamer1.0: upgrade 1.22.6 -> 1.22.7
(From OE-Core rev: f6be55ef1e862d93d8275fb5792e6c66b0a0beee)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:46:41 +00:00
Richard Purdie
18c5b54a95 package_ipk: Fix Source: field variable dependency
The Source: variable is generated from FILE but this is excluded from checksums
normally which results in a reproduciubility issue when the filename changes.

Add in a dependency by reworking the code a little to avoid this.

(From OE-Core rev: 3ea7da76c6930031a0071069027b1d71f737fbc9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:12:00 +00:00
Ross Burton
dde36b7b78 shared-mime-info: embed PV in the filename
As this recipe tracks the release tags we can embed the PV in the
filename.

(From OE-Core rev: 6eae2b57d01be9906d0933be22a99e370b529b2e)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:12:00 +00:00
Richard Purdie
69ed412751 bitbake.conf: Log events by default using BB_DEFAULT_EVENTLOG
By setting this, event data from during the build is saved out. This can
be used for analytic including toaster to allow builds to be examined
later. This will use some disk space but it is worth it for the ability
to look into what happened during the build. Users can set the value to
something else in local.conf to override if they wish.

(From OE-Core rev: 4719b68bb9e3cccb85aed55350e53a439360abcb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:12:00 +00:00
Richard Purdie
938abfa570 oeqa/selftest/sstatetests: Re-enable CDN tests
I believe other fixes and cleanup means the CDN tests are now working
correctly, so enable it.

(From OE-Core rev: baabe012e158e387a692b234920eeab977c27440)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:12:00 +00:00
Alassane Yattara
742323caf3 bitbake: toaster/tests: Add UI TestCase - Test the show rows feature in image recipe
Test the show rows feature in image recipe table on project page

(Bitbake rev: 0afbce01f8b037adb9311f63dcb63a2d180a5373)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
105f5a8d0d bitbake: toaster/tests: Add UI TestCase for the edit column feature in image recipe
BUILD IMAGE RECIPES: toastergui/project/{id}/images/
Test the edit column feature in image recipe table on project page

(Bitbake rev: 005f8e4a875d280268e0369d26aaaa9e5a65fd68)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
3d2d290157 bitbake: toaster/tests: Add UI TestCase - Test project page section images
BUILD IMAGE RECIPES: toastergui/project/{id}/images/
Test project page section images
    - Check image recipes are displayed
    - Check search input
    - Check image recipe build button works
    - Check image recipe table features(show/hide column, pagination)

(Bitbake rev: 9aa0aad6812730d4ffaa9b3adfae041176274475)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
2eb70a30d9 bitbake: toaster/tests: Add UI TestCase - Test project page tab "New custom image"
Test project page tab "New custom image" when no custom image

(Bitbake rev: fd8fe1d3b25679032a43c1dd25a945318e573cef)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
a303b37bd6 bitbake: toaster/tests: Add UI TestCase - Test project page tab import layer
(Bitbake rev: 857e6fdefa655fa73460c9bb008dc08abb4c3107)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
bc9da9aa64 bitbake: toaster/tests: Add UI TestCase - Test project config tab
Check if project config tab right section contains five blocks:
    - Machine:
        - check 'Machine' is displayed
        - check can change Machine
    - Distro:
        - check 'Distro' is displayed
        - check can change Distro
    - Most built recipes:
        - check 'Most built recipes' is displayed
        - check can select a recipe and build it
    - Project release:
        - check 'Project release' is displayed
        - check project has right release displayed
    - Layers:
        - check can add a layer if exists
        - check at least three layers are displayed
            - openembedded-core
            - meta-poky
            - meta-yocto-bsp

(Bitbake rev: cbf0df0604e6cb37aa8c4433e9af3c321be80010)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
363f19e75a bitbake: toaster/tests: Add UI TestCase - Test project config tab navigation:
- Check if the menu is displayed and contains the right elements:
    - Configuration
    - COMPATIBLE METADATA
    - Custom images
    - Image recipes
    - Software recipes
    - Machines
    - Layers
    - Distro
    - EXTRA CONFIGURATION
    - Bitbake variables
    - Actions
    - Delete project

(Bitbake rev: a12fe481aac82e1feebdb56afb67ba77a8904995)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
fd740a6b6d bitbake: toaster/tests: Add UI TestCase - Test project page has right tabs displayed
Test project tabs:
  - "configuration" tab
  - "Builds" tab
  - "Import layers" tab
  - "New custom image" tab
  Check search box used to build recipes

(Bitbake rev: 13a55ebe630ad20e8ab4cdcb3dc6dcbf4fa7243a)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
f002040d77 bitbake: toaster/tests: Add UI TestCase - Test edit project name on project page
Test edit project name:
  - Click on "Edit" icon button
  - Change project name
  - Click on "Save" button
  - Check project name is changed

(Bitbake rev: 0bd0bbf8df2a1043d5c768a70e4c4fabd5195227)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
4ff7c528dd bitbake: toaster/tests: Add UI TestCase - Check project header contains right items
Check page header in project page:
  - AT LEFT -> Logo of Yocto project, displayed, clickable
  - "Toaster"+" Information icon", displayed, clickable
  - "Server Icon" + "All builds", displayed, clickable
  - "Directory Icon" + "All projects", displayed, clickable
  - "Book Icon" + "Documentation", displayed, clickable
  - AT RIGHT -> button "New project", displayed, clickable

(Bitbake rev: 5b2b8fe16e2adb45ca88165162c65c0f7f9a0755)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
26ac6923e2 bitbake: toaster/tests/create_new_project: Code cleanup
Fixed
- Select import,
- Remove trailing whitespace,
- Set excepted 2lines after imports

(Bitbake rev: f0c91629fad2e556cd429f561cc244aef4b7b066)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
ff3a48920a bitbake: toaster/tests: Add UI TestCase for visualize all projects show rows
Test the show rows feature in the projects table on the all projects page

(Bitbake rev: d899a3cf9e186f78780415195c734fdef359d08d)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
f1230edc55 bitbake: toaster/tests: Add UI TestCase for visualize all projects edit column
Test the edit column feature in the projects table on the all projects page

(Bitbake rev: 16e05122b7298c449bf6cec1bcae75c3fb5d87db)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Alassane Yattara
6c5dff75f5 bitbake: toaster/tests: Add UI TestCase for Visualize all projects
Test the search box in the all project table on the all projects page

(Bitbake rev: a2c0e65e90619268da916a235a97df890697d22f)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Peter Kjellerstedt
2a2320001e bitbake: cache: Simplify virtualfn2realfn()
Also correct the description of variant2virtual().

(Bitbake rev: d766e9bd22ec6392fbf1694eea5032b9d09f1949)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Peter Kjellerstedt
02c2d31d4d bitbake: cookerdata: Be consistent with what type bb_data represents
In _parse_recipe(), bb_data was initially a datastore object, but then
after the call to bb.parse.handle() it was all of a sudden turned into a
dict of variant:datastore pairs. At the same time, parseRecipeVariants()
used bb_data for datastore objects, while parseRecipe() used it for the
dicts of variant:datastore pairs.

Change these functions to consistently use "bb_data" for datastore
objects and use "datastores" for the dicts of variant:datastore pairs.

(Bitbake rev: ed0f94c037476efd465db87726b2480406076beb)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Peter Kjellerstedt
370de0fa91 bitbake: command: Make parseRecipeFile() handle virtual recipes correctly
Running `devtool search gcc` would result in errors like this for
virtual recipes:

  ERROR: When reparsing
  .../meta/recipes-devtools/gcc/libgcc-initial_13.2.bb:do_populate_sysroot,
  the basehash value changed from
  b1cd809ed98cef9db0fb1b17d34c4083e739c336f9d5619b89715b0294d81af5 to
  44c2f92781dc4a20e98b7bb4724e204e64b101905fa75e71241a574b725997dc. The
  metadata is not deterministic and this needs to be fixed.
  ERROR: The following commands may help:
  ERROR: $ bitbake libgcc-initial -cdo_populate_sysroot -Snone
  ERROR: Then:
  ERROR: $ bitbake libgcc-initial -cdo_populate_sysroot -Sprintdiff

The reason was the newly introduced :layer-<layername> override, which
is used, e.g., in meta/classes-global/insane.bbclass to add the
patch-status QA test only for the meta layer:

  ERROR_QA:append:layer-core = " patch-status"

When tinfoil parsed the recipes using the parseRecipeFile() function, it
failed to properly identify the layername for virtual recipes, which
resulted in the error above.

The correct thing to do is to make parseRecipeFile() call
bb.cache.virtualfn2realfn() to convert the virtual filename into a real
filename and virtual class.

(Bitbake rev: da2aed134412f5de04d7b540f92d735983ad0108)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Richard Purdie
65bd1b3bf7 bitbake: cooker: Avoid sideeffects for autorev from getAllKeysWithFlags
If we expand the variable AUTOREV in OE-Core, it triggers side effects in the
fetcher. The situation isn't ideal and needs improvement but this breaks
and is blocking enabling BB_DEFAULT_EVENTLOG.

Hack around the issue for now so we unblock things until we can work out
a better plan for how to improve AUTOREV support.

(Bitbake rev: cb9b6530f3d12c56a8b48847af2e7461924205d2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Richard Purdie
6ca541175e bitbake: cooker: Add support for BB_DEFAULT_EVENTLOG
Currently it is only possible to specify an eventlog on the bitbake
commandline. Add a variable that can be used in bitbake.conf so that
we can log data by default more easily.

(Bitbake rev: ee174b231897a53cdde0f68769518342e53210cf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 12:06:06 +00:00
Tim Orling
4bc0346d8c python3-poetry-core: upgrade 1.7.0 -> 1.8.1
https://github.com/python-poetry/poetry-core/blob/1.8.1/CHANGELOG.md#181---2023-10-31
https://github.com/python-poetry/poetry-core/blob/1.8.1/CHANGELOG.md#180---2023-10-31

License-Update: add vendored fastjsonschema (BSD-3-Clause)
License-Update: drop vendored attr,attrs,jsonschema,pyrsistent (no change to LICENSEs)

(From OE-Core rev: abb8ae82f44feb1cdee489805677222322f58729)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-22 14:08:48 +00:00
Ross Burton
c15a717aa0 oeqa/selftest/debuginfod: improve selftest
This test was occasionally failing for no obvious reason, so refactor
and improve:

- While waiting for the daemon, check that it is still running and
  explicitly timeout after 10s when making the HTTP call.

- While waiting for the daemon to be ready, log the current state of the
  daemon so we can tell if we're timing out as it is still scanning.

- This was in fact the cause of the intermittant failures, because the
  TMPDIR is reused between tests and may contain a large number of
  packages. Do the tests in an isolated TMPDIR to hopefully mitigate this
  issue and increase the timeout to two minutes.

- Decorate the test using runqemu as such so that can be skipped in
  environments without runqemu

- Add a second test that doesn't use runqemu or images, which is faster
  but less realistic.

(From OE-Core rev: 88b660aaae2527736b6eccec4c952eee969e20a2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-22 14:08:48 +00:00
Javier Tia
cbdc226a99 kernel-arch: use ccache only for compiler
Attempting to use it with other tools is not beneficial, only with the
compiler. Confirmation from ccache's maintainer [1].

[1] https://github.com/ccache/ccache/discussions/1346#discussioncomment-7616180

(From OE-Core rev: 47fa8d81083f1ef594f8fe6fcab3e227e9607b3f)

Signed-off-by: Javier Tia <javier.tia@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-22 14:08:48 +00:00
Ross Burton
f841d7918d lib/oe/patch: ensure os.chdir restoring always happens
If we chdir(), do the chdir back to the original directory in a finally
block so they always run.

(From OE-Core rev: cdc40292818683b6df1c814498c7589450a163fa)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-22 14:08:48 +00:00
Archana Polampalli
5e19cc0006 vim: Upgrade 9.0.2048 -> 9.0.2068
This includes CVE fix for CVE-2023-46246.
9198c1f2b (tag: v9.0.2068) patch 9.0.2068: [security] overflow in :history

References:
https://nvd.nist.gov/vuln/detail/CVE-2023-46246

(From OE-Core rev: 63bc72ccb63d2f8eb591d7cc481657a538f0fd42)

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-22 14:07:21 +00:00
Adrian Freihofer
5ff688fe29 vscode: add minimal configuration
It is essential to configure VSCode indexer plugins to ignore the build
folder of bitbake. Otherwise, the indexer plugins run with 100% CPU load
until an OOM exception occurs. In practice, this makes VSCode more or
less unusable for working with Yocto until a file like the one added by
this commit is deployed before VSCode starts. From the user's point of
view, it is not obvious why the system runs at 100% CPU load and
eventually crashes.

It is even more misleading that VSCode starts the indexers immediately,
but does not stop or reconfigure them when the ignore list is updated.
In practice, this means that every time the ignore list is changed,
VSCode immediately starts indexing the build folder until the OOM
exception stops it. Depending on the system's OOM handler, the entire
build machine may crash.
Particularly annoying is the Python plugin that ignores the general
ignore list and requires an extra ignore section.

The settings are suitable for workflows like bitbake, devtool modify,
devtool reset. The settings are not intended to work on the source code
of a recipe. It is assumed that a separate instance of VSCode is used
per workspace folder. These per workspace instances can have different
settings depending on the details of the sources that come with the
recipe.

VSCode can change the contents of the .vscode folder, which often leads
to a dirty git status. Normally, these changes are not added to git.
Otherwise, -f can be used to add them explicitly. It is not perfect if
the folder is listed in .gitignore. But it is also not better if it is
not.

(From OE-Core rev: 52cff14a73c9f286da4f627dc1aabf5c80aee63d)

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>
2023-11-21 21:34:04 +00:00
Steve Sakoman
745bf44812 vim: use upstream generated .po files
A previous commit attempted to fix reproducibility errors by forcing
regeneration of .po files. Unfortunately this triggered a different
type of reproducibility issue.

Work around this by adjusting the timestamps of the troublesome .po
files so they are not regenerated and we use the shipped upstream
versions of the files.

The shipped version of ru.cp1251.po doesn't seem to have been created
with the vim tooling and specifies CP1251 instead of cp1251, fix that.

(From OE-Core rev: 13d9551ba626f001c71bf908df16caf1d739cf13)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-21 21:26:19 +00:00
Adam Johnston
cdd525b150 useradd_base: Fix sed command line for passwd-expire
A previous commit tried to add the --follow-symlinks option to
the perform_passwd_expire function in useradd_base.bbclass, however it used
a single -.

This is interpreted as --file=ollow-symlinks which results in...

sed: couldn't open file ollow-symlinks: No such file or directory

and...

ERROR: <image name>: passwd --expire operation did not succeed.

Fix by adding the missing -

(From OE-Core rev: 3c0deafcfcea3f610c7dd9a2d2884a16fbfe0497)

Signed-off-by:  Adam Johnston <adam.johnston@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-21 21:25:41 +00:00
Julien Stephan
4d6c63a56c bitbake: bitbake: utils: remove spaces on empty lines
(Bitbake rev: 979ff8b4228e4c6f90985e9a3faa5fc9f3922218)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:32:25 +00:00
Markus Volk
daee9d9eae ffmpeg: Upgrade 6.0 -> 6.1
-Remove patches that made it upstream

(From OE-Core rev: faa32bbb35e92a14b8064715c12e1007fd106b34)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Trevor Gamblin
a2d3b5a27f python3-numpy: upgrade 1.26.0 -> 1.26.2
There were 45 pull requests in 1.26.1 and 1.26.2. See changelog:
https://github.com/numpy/numpy/releases

(From OE-Core rev: 9bcec3b75a26e6f9c2560a156006fcc359de6f22)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Trevor Gamblin
51b7c019ea python3-trove-classifiers: upgrade 2023.10.18 -> 2023.11.14
Changelog:
0b8493f Add `Programming Language :: Go` (#159)
68d983d Update release.yml (#162)
bd86b09 Update release.yml (#160)
44d951c Added PySimpleGUI versions 4 and 5 as a Framework (#157)
29ca293 Add Odoo 17 trove classifier (#156)

(From OE-Core rev: 0b2c8e479fb1f1b666611d922c74e542a75735c4)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Trevor Gamblin
0d3640fa77 python3-mako: upgrade 1.2.4 -> 1.3.0
License-Update: Updated copyright year

Changelog: https://docs.makotemplates.org/en/latest/changelog.html#change-1.3.0

(From OE-Core rev: 990493a429b4bc542a060dbb6b8bbb57dc8c30ad)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Tim Orling
6638bfd51d python3-setuptools-scm: upgrade 7.1.0 -> 8.0.4
See 8.0.0 changelog for breaking changes.

8.0.1, 8.0.2 and 8.0.3 were bug fix releases
8.0.4 has bug fixes and other changes

https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.md#v804
https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.md#v803
https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.md#v802
https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.md#v801
https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.md#v800

* Drop PYPI_PACKAGE override (no longer needed)
* Wrap DESCRIPTION so the line length is <80 chars.

License-Update: use LICENSE file for checksum, remains MIT

(From OE-Core rev: e167dd40e54c227ea1035255e9f33674391adc38)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Tim Orling
260927ba53 python3-hypothesis: upgrade 6.88.3 -> 6.89.0
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-89-0
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-88-4

6.89.0 - 2023-11-16
This release teaches from_type() to handle constraints implied by the
annotated-types package - as used by e.g. Pydantic. This is usually
efficient, but falls back to filtering in a few remaining cases.

Thanks to Viicos for pull request #3780!

6.88.4 - 2023-11-13
This patch adds a warning when @st.composite wraps a function annotated
as returning a SearchStrategy, since this is usually an error (issue #3786).
The function should return a value, and the decorator will convert it to a
function which returns a strategy.

(From OE-Core rev: 041e0a5ceeb55d40ab22071c5d2c358455bc8e23)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Markus Volk
7e847cb969 gtk: Add rdepend on printbackend for cups
install the required printbackends

(From OE-Core rev: 0a97892920db46043102d54ef1623669241e9780)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
f9b4f9efc0 igt-gpu-tools: drop PR from /usr/src/debug paths
(From OE-Core rev: 5b13119b371090acee168b14fa651026ec71bb61)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
02922c07b2 python3-cython: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: 3ab3f2782fab9b4bf60f0efe68ce04401780b8a7)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
2b7e37b18c valgrind: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: cdfb7de5152fc6b8c785fb513393e566bef95288)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
5d32c24baa vulkan-samples: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: 23c40b46af0ede566b854fdeaeae9675c2f48549)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
d7a8a51cf5 rust: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: e4931b1d6f147fc7ced080e30c63f0aaf0d1e7ff)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
c8d40d079e perf: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: 4cac17c7de064b6d4e5d7dd252c5b4c610a0c6ee)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:53 +00:00
Martin Jansa
65569df51b ffmpeg: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: 25f821023c057ed2632ed1f99a6e28dfe857a5d8)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Martin Jansa
074323cfe5 libjpeg-turbo: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: c8cc766db04f490cebfdddd0cdfa0b20ae1638f5)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Martin Jansa
fc60f21779 acpica: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: adecbeb983cd1f18082f6afca2e5ea0d5a3a4b65)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Martin Jansa
bdeaf30f8d go-cross-canadian.inc: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: 0ad662f443dfc1850d818d96f9e223086ff99ef4)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Martin Jansa
649ec73076 ovmf: drop PE, PR from /usr/src/debug paths
(From OE-Core rev: d12ee54263e3a2ed8b1a84b72a2a1423fe09c3cf)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Martin Jansa
0904c4c34a bitbake.conf: drop ${PE} and ${PR} from -f{file,macro,debug}-prefix-map
* ${EXTENDPE} and ${PR} was already dropped from ${WORKDIR} in:
  https://lists.openembedded.org/g/openembedded-core/message/185818
  adjust -fmacro-prefix-map and -fdebug-prefix-map similarly.
  As we don't depend on PR in WORKDIR maybe we don't need it in
  /usr/src/debug paths as well anymore.

* add TARGET_DBGSRC_DIR variable with "/usr/src/debug/${PN}/${PV}"
  because there is quite a few places where this location is being
  used in various recipes

* The interesting side-effect of this is that for DISTROs which still
  use PR (e.g. webOS OSE), the difference in -fdebug-prefix-map causes
  all binaries to be slightly different when rebuilt with different PR
  (due to this path, even when otherwise they are binary reproducible)
  and when the number of digits in PR changes (e.g. from r9 to r10) it
  also results in slightly bigger binaries (and more unnecessary changes
  in buildhistory diffs).

  For example this foo binary, the difference between "new" and "old" is
  extra patch applied in SRC_URI (which doesn't affect the foo binary,
  but was the reason for PR bump).

  And the binary is bigger with r10, identical with r6 and slightly
  different due to debug-prefix-map between r6 and r7:

  $ ls -la 1.0.0-175-*/image/usr/sbin/foo
  -rwxr-xr-x 1 bitbake bitbake 30182460 Nov  8 08:29 1.0.0-175-new-r10/image/usr/sbin/foo
  -rwxr-xr-x 1 bitbake bitbake 30182224 Nov  8 08:02 1.0.0-175-new-r6/image/usr/sbin/foo
  -rwxr-xr-x 1 bitbake bitbake 30182224 Nov  8 07:49 1.0.0-175-new-r7/image/usr/sbin/foo
  -rwxr-xr-x 1 bitbake bitbake 30182224 Nov  8 07:39 1.0.0-175-old-r6/image/usr/sbin/foo

  $ md5sum 1.0.0-175-*/image/usr/sbin/foo
  8e3ab67d596f8cc2f9c6320dab10af01  1.0.0-175-new-r10/image/usr/sbin/foo
  f6ff1e64fe6affb9ba0d8f278cf7ed79  1.0.0-175-new-r6/image/usr/sbin/foo
  6469a0b10aac233911e63c5ea97b03c0  1.0.0-175-new-r7/image/usr/sbin/foo
  f6ff1e64fe6affb9ba0d8f278cf7ed79  1.0.0-175-old-r6/image/usr/sbin/foo

(From OE-Core rev: c84c8ba295eeaa0e0b7592364b0978f17a44c70b)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Richard Purdie
0769e8ef6b bitbake.conf: Drop oldincludedir
Autoconf defines this as:

"The directory for installing C header files for non-GCC compilers."

Whilst this is something autoconf does allow changing, I find it hard
to believe it has much use in the wild now and that headers don't get
split like this in reality, it would probably only be useful on really
old unixes.. The values are the same in our configuration anyway.

Drop the value and just use includedir everywhere.

(From OE-Core rev: 506c91cbc6a604a84e37e53ccff430436369802e)

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>
2023-11-20 15:30:52 +00:00
Julien Stephan
62ad6660e0 oeqa/selftest/devtool: fix test_devtool_modify_overrides test
This test fails for machines qemuarm and qemux86 because when doing
devtool modify, the default devtool branch contains the patch that match
the current configuration, so for both qemuarm and qemux86  machines the
corresponding override patch is applied and we get the following error
(for qemuarm machine):

  AssertionError: 'This is a test for qemuarm\n' != 'This is a test for something\n'
  - This is a test for qemuarm
  ?                    ^ ^^^^^
  + This is a test for something
  ?                    ^^^ ^^^^^

Fix the test by looking at the correct value depending on the current
machine configuration

(From OE-Core rev: fe03789d9555c025316325b559bbde40d5e770a8)

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Stefan Herbrechtsmeier
9b8c59b165 classes: go-mod: do not pack go mod cache
Clean go module cache from builddir to prevent it of beeing packed.

(From OE-Core rev: 328bea56dec8f83b5c118f567e122510f9243087)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Stefan Herbrechtsmeier
b8ae444d34 glibc: use nonarch libdir for tmpfiles.d
The documentation of systemd states that /etc/tmpfiles.d should be
reserved for the local administrator and packages should put their files
in /usr/lib/tmpfiles.d [1].

[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

(From OE-Core rev: e2bebef14a64c510b8f5b0a21f15347d6919c218)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Malte Schmidt
e45d4b4830 sysstat: use nonarch libdir for tmpfiles.d
The documentation of systemd states that /etc/tmpfiles.d should be
reserved for the local administrator and packages should put their files
in /usr/lib/tmpfiles.d [1].

[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

(From OE-Core rev: 4db3438d500936d94b55294f21db156fb049888c)

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Malte Schmidt
f1350f1896 pam: use nonarch libdir for tmpfiles.d
The documentation of systemd states that /etc/tmpfiles.d should be
reserved for the local administrator and packages should put their files
in /usr/lib/tmpfiles.d [1].

[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

(From OE-Core rev: 0a1d791e47b71b14c3dd7f41fc175c2aafacd392)

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Malte Schmidt
12da590768 systemd: use nonarch libdir for tmpfiles.d
The documentation of systemd states that /etc/tmpfiles.d should be
reserved for the local administrator and packages should put their files
in /usr/lib/tmpfiles.d [1].

[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

(From OE-Core rev: ee162bc2f5fccb5aab6adb48d0f449991b1a6a51)

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Meenali Gupta
34f496c2d4 avahi: fix CVE-2023-38473
A vulnerability was found in Avahi. A reachable assertion exists
in the avahi_alternative_host_name() function.

(From OE-Core rev: fbe506e7af1ce47f6d04c122cb77573e0527ab91)

Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Meenali Gupta
9580629d5b avahi: fix CVE-2023-38472
A vulnerability was found in Avahi. A reachable assertion exists
in the avahi_rdata_parse() function.

(From OE-Core rev: 988d115ca18db1872d7a4dab39040029e5c61d6b)

Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Meenali Gupta
fb61e440a5 avahi: fix CVE-2023-38471
A vulnerability was found in Avahi. A reachable assertion exists
in the dbus_set_host_name function.

(From OE-Core rev: 292956cd7b2ea909a0cb39973536ddd007f7e47d)

Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Meenali Gupta
820c282b7d avahi: fix CVE-2023-38470
A vulnerability was found in Avahi. A reachable assertion exists
in the avahi_escape_label() function.

(From OE-Core rev: 93b4489c84f5f21e3fbcd66a39d50b5d64001a58)

Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Meenali Gupta
4dd9e54a3b avahi: fix CVE-2023-38469
A vulnerability was found in Avahi, where a reachable assertion exists
in avahi_dns_packet_append_record.

(From OE-Core rev: 885d64f067b9ddaf890d9bdef7b76898ff90b04e)

Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Yoann Congal
93a9621df3 meta-selftest/files: add xuser to static-passwd/-group
As xuser-account creates a new user, we need to add it to the testing
static passwd file.

(From OE-Core rev: 6c0637a2ba7621a6398dc62b4d019cd525ee8908)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Dmitry Baryshkov
af1aea67ea libdrm: upgrade 2.4.116 -> 2.4.117
Bump the libdrm version, in particuar to get updated modetest with
support for custom video modes and writeback.

(From OE-Core rev: 0681cad2f0d8d1fc360d7245aa743e4c4be7dcff)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Wang Mingyu
d993bdfb7e stress-ng: upgrade 0.17.00 -> 0.17.01
Changelog:
 https://github.com/ColinIanKing/stress-ng/releases/tag/V0.17.01

(From OE-Core rev: a1d2d0e9fe4a0bb0e480ca05324af6330925b414)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
e54a29b902 shared-mime-info: upgrade 2.3 -> 2.4
0001-Fix-string-literal-concatenation.patch
0001-Fix-literal-as-per-c-11.patch
removed since they're included in 2.4

Changelog:
==========
* Restore mimetype name for *.bz2 and *.tar.bz2
* Improve detection of application/mac-binhex40
* Add application/x-msdownload and subtypes
* Add Windows app store types
* Give Windows Installer packages the package icon
* Lower priority for text/x-mpsub's magic, so it doesn't match pcb-drillFile.drl
* Add application/x-powershell
* Add application/wasm
* Change comment of text/x-mpsub
* Change comment of text/x-mpl2
* Add text/x-component
* Give higher priority to the more specific image/apng magic
* Recognize *.jfif as image/jpeg
* Add application/its+xml
* Add text/x-vb
* Add text/x-basic
* Add new group "chemical" in update-mime-database
* Add mimetype for Protein Data Bank (pdb) files
* Remove too generic magic from application/x-pak
* Add application/json5
* Add text/vbscript.encode
* Add text/jscript.encode
* Add text/jscript as synonym of text/javascript
* Fix backwards relationship between text/javascript and application/ecmascript
* Add application/vnd.cups-ppd
* Add application/x-ms-shortcut
* Give application/x-mswinurl the link icon
* Fix missing sentinel warning with clang
* Fix false positive fdatasync detection on darwin
* Fix string literal concatenation

(From OE-Core rev: ec0c733062e8d934c86698bedcd5628a60ef38a5)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
97f53ce1bb python3-testtools: upgrade 2.7.0 -> 2.7.1
Changelog:
============
* Remove various unused imports.
* Fix build backend. This should prevent version from being set to 0.0.0
  when building wheels.

(From OE-Core rev: a6c46a0074999d9460f273886734258f0bf788d2)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
018e721481 python3-pbr: upgrade 5.11.1 -> 6.0.0
(From OE-Core rev: 8f8b485acffba65430d0b9f53d7ebfaf1a918872)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
290cae6041 python3-hypothesis: upgrade 6.88.1 -> 6.88.3
Changelog:
============
-refactors from_type(typing.Tuple), allowing register_type_strategy() to take
 effect for tuples instead of being silently ignored (issue #3750).
-improves the speed of the explain phase on python 3.12+, by using the new
 sys.monitoring module to collect coverage, instead of sys.settrace.

(From OE-Core rev: 59405dee0be2d49418263d2954c50a644c0e8698)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
e078dd6396 python3-hatch-vcs: upgrade 0.3.0 -> 0.4.0
Changelog:
==========
Drop support for Python 3.7
Officially support Python 3.12
Prevent UserWarning when a template is not defined explicitly

(From OE-Core rev: db10b470d39cb131cf7a482dac028ca8ad8ddeec)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
66ce2e72aa dnf: upgrade 4.17.0 -> 4.18.1
Changelog:
==========
automatic: Fix applying the color option
repoquery: Do not translate time format strings (RhBz: 2245773)

(From OE-Core rev: 16bb67d1aa602831727fc4c8a9aeb933991af3f2)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
0206ba7fd7 bash: upgrade 5.2.15 -> 5.2.21
(From OE-Core rev: e941260ce996d8582f877e91c6fd9e45264d8e28)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
122fad505d libuv: upgrade 1.46.0 -> 1.47.0
Changelog:
===========
* test: fix license blurb
* linux: fix harmless warn_unused_result warning
* darwin: fix build warnings
* linux: don't use io_uring on pre-5.10.186 kernels
* fs: fix WTF-8 decoding issue
* test: enable disabled tcp_connect6_error_fault
* test: enable disabled fs_link
* test: enable disabled spawn_same_stdout_stderr
* linux: handle UNAME26 personality
* build: move cmake_minimum_required version to 3.9
* unix: set ipv6 scope id for link-local addresses
* unix: match kqueue and epoll code
* win,spawn: allow `%PATH%` to be unset
* doc: switch to Furo, a more modern Sphinx theme
* darwin: make TCP_KEEPINTVL and TCP_KEEPCNT available
* win,fs: avoid winapi macro redefinition
* linux: add missing riscv syscall numbers
* doc: fix broken "Shared library" Wikipedia link
* unix: get mainline kernel version in Ubuntu
* unix: get mainline kernel version in Debian
* build: fix qemu install in CI-unix workflow
* unix: disable io_uring close on selected kernels
* test: skip tests when ipv6 is not available
* ibmi: implement ifaddrs, getifaddrs, freeifaddrs
* unix: reset signal counters after fork
* win,process: avoid assert after spawning Store app
* unix: remove pread/preadv conditionals
* unix: remove pwrite/pwritev conditionals
* darwin: remove workaround for data corruption bug
* src: default to stream=stderr in handle printer
* test: switch to new-style ASSERT_EQ macros
* zos: correctly get cpu model in uv_cpu_info
* test: fix get_passwd2 on IBM i
* unix: don't malloc on sync uv_fs_read
* freebsd: get fs event path with fcntl
* test: switch from ASSERT_* to ASSERT_PTR_*
* darwin: workaround apple pthread_cond_wait bug
* doc: uv_close should be called after exit callback
* test: 192.0.2.0/24 is the actual -TEST-NET-1
* unix: add back preadv/pwritev fallback
* unix: rename variable for consistency
* unix: merge read/write code into single functions
* doc: filename arg to uv_fs_event_cb can be NULL
* build,win: we need to link against shell32.lib
* unix: no preadv/pwritev workaround if not needed
* build: add CI for Windows ARM64
* linux: disable io_uring on 32 bits arm systems
* build: run sanitizers on macos ci
* misc: export WTF8 conversion utilities
* build: fix libuv.a file name for cmake
* build: add windows ubsan and clang ci
* win: improve accuracy of ProductName between arch

(From OE-Core rev: a9a634e37c9af42b54b3bf09cb94553c641d6cf4)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
bd1a403967 libsolv: upgrade 0.7.25 -> 0.7.26
(From OE-Core rev: abd47f16a4ef8a50af4287795969832d1391d8d2)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
abb784927f libsdl2: upgrade 2.28.4 -> 2.28.5
Changelog:
============
Added support for the HP HyperX Clutch Gladiate controller
Fixed a crash if a controller is disconnected while SDL is opening it
Fixed a crash on Linux if XInput2 isn't available at runtime

(From OE-Core rev: 9a58979717885baec3edc80374d5b55574b13133)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
c8679a67e6 iproute2: upgrade 6.5.0 -> 6.6.0
(From OE-Core rev: 3ab71c67746754098b79af25c05c6bf0747d558d)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
e7fa1605b5 git: upgrade 2.42.0 -> 2.42.1
(From OE-Core rev: 5daa97e427031d472ca4409e28df897897cb8818)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
6f2ef71d96 diffoscope: upgrade 249 -> 251
(From OE-Core rev: 34519689bf1c0ea326c30a3a2833e42d9540c19b)

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>
2023-11-20 15:30:52 +00:00
Wang Mingyu
3d093bae14 dhcpcd: upgrade 10.0.4 -> 10.0.5
Changelog:
==========
DHCP: re-enter DISCOVER phase if server doesn't reply to our REQUEST
privsep: Allow __NR_dup3 syscall as some libc's use that instead of the dup2 dhcpcd uses
dev: Fix an issue where not opening the dev plugin folder if configured returned the wrong fd
privsep: Harden the launcher process detecting daemonisation.
compat: arc4random uses explicit_bzero if available

(From OE-Core rev: 4d2adb1112e24f8d3b22433d08d6ed4664bb8e8d)

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>
2023-11-20 15:30:52 +00:00
Xiangyu Chen
339d362a70 openssh: add systemd readiness notification support
The sshd keeps on terminating and restarting in servel minutes, we can observe
log from journalctl that the sshd was killed by systemd with signal 15:

    systemd[1]: sshd.service start operation timed out. Terminating.
    sshd[374]: Received signal 15; terminating.

When the sshd as a systemd service, it need to tell systemd with a "READY" status,
and when it is restarted, it need to tell systemd with a "RELOADING" status, otherwise,
systemd would treat it as failing service and restart it again.

Taken a patch from openssh upstream PR[1], that after using a signal to tell systemd
it is ready or reload now.

Ref:
[1] be18743591

(From OE-Core rev: 4090dca8e44ec79ccb9a674db31e835d20b51888)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Khem Raj
ff0c3a48e2 llvm: Upgrade to 17.0.5
Brings following changes

* 98bfdac5ce82 [BranchFolding] Remove dubious assert from operator< (#71639)
* 12c6ee8fd204 [GlobalOpt] Cache whether CC is changeable (#71381)
* 0a1274224ef8 [libc++] Fix UB in <expected> related to "has value" flag (#68552) (#68733)
* 42f8800b720f [clang] fix test PR69717.cpp (#72134)
* e666be92b44b [clang] Run test on x86 only
* aebee698ef16 [clang] Do not clear FP pragma stack when instantiating functions (#70646)
* 529aa6eadb27 [SLP]Fix PR70004: Do not change insert point for reduction gather nodes.
* 69b3baf9b87e [DAG] WidenVectorOperand - add basic handling for *_EXTEND_VECTOR_INREG nodes
* e7dc53b94212 [Mips] In LowerShift*Parts, xor with bits-1 instead of -1. (#71149)
* a6cbdae98272 [clang-format] Correctly annotate keyword operator function name (#66904)
* 094cfd14c813 Bump version to 17.0.5
* 05422e1dcf94 [Driver] Fix linking with -lm on Solaris (#65632)
* 910748f4ec5a [clang-repl] Fix BUILD_SHARED_LIBS symbols from libclangInterpreter on MinGW (#71393)
* 582f0469dae1 [CGExprConstant] stop calling into ConstExprEmitter for Reference type destinations (#70366)

(From OE-Core rev: d61add65014617c1e3c183fb1cf333b4b226d318)

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>
2023-11-20 15:30:52 +00:00
Joakim Tjernlund
a2ea2cb8d9 sed -i destroys symlinks
If /etc/passwd is a symlink, sed -i on same file will replace the
symlink with a new file. Prevent that by adding --follow-symlinks
option to sed

(From OE-Core rev: 6ec004b2e7b4342465af8e5e6cc66041834821a0)

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Markus Volk
35fa9488cb cups: Upgrade 2.4.6 -> 2.4.7
- enable tls by default to fix:
| hash.c:16:12: fatal error: gnutls/crypto.h: No such file or directory
|    16 | #  include <gnutls/crypto.h>

Changes in CUPS v2.4.7 (2023-09-20)
-----------------------------------

- CVE-2023-4504 - Fixed Heap-based buffer overflow when reading Postscript
  in PPD files
- Added OpenSSL support for cupsHashData (Issue #762)
- Fixed delays in lpd backend (Issue #741)
- Fixed extensive logging in scheduler (Issue #604)
- Fixed hanging of `lpstat` on IBM AIX (Issue #773)
- Fixed hanging of `lpstat` on Solaris (Issue #156)
- Fixed printing to stderr if we can't open cups-files.conf (Issue #777)
- Fixed purging job files via `cancel -x` (Issue #742)
- Fixed RFC 1179 port reserving behavior in LPD backend (Issue #743)
- Fixed a bug in the PPD command interpretation code (Issue #768)

(From OE-Core rev: 0e33d6fc646e76390e5bf8a0f7b38bd15c83729c)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Martin Jansa
fc5cb5ce35 staging.bbclass: process installed dependencies in deterministic order as well
* similarly as direct dependencies before
* this doesn't fix any issue (at least AFAIK),
  just keeps the log files more deterministic to avoid unnecessary churn like in:

  perl-native.log.do_configure:
  -NOTE: Installed into sysroot: ['zlib-native', 'make-native', 'perlcross-native', 'gdbm-native', 'xz-native', 'gettext-minimal-native', 'texinfo-dummy-native', 'libtool-native']
  +NOTE: Installed into sysroot: ['zlib-native', 'make-native', 'perlcross-native', 'gdbm-native', 'libtool-native', 'gettext-minimal-native', 'texinfo-dummy-native', 'xz-native']

  and similarly in "Note: Skipping as already exists in sysroot:

(From OE-Core rev: cedee02e1acaffd8932809ceb5b6f9bd4f861283)

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 15:30:52 +00:00
Lee Chee Yang
2f23231eb1 migration-guide: add release notes for 4.2.4
release notes based on 4.2.4 rc3.

(From yocto-docs rev: de4fb1f877ae9994c61dfc60447446da317bee0f)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 10:59:40 +00:00
Michael Opdenacker
dd67934e5f ref-manual: releases.svg: update nanbield release status
- nanbield is now released
- update the start and end dates

(From yocto-docs rev: 81afa3c95276f9e3fbd1f282ad5954d591fbbb95)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 10:59:40 +00:00
Michael Opdenacker
8e1302cf2d manuals: fix URL
[YOCTO #15279]

(From yocto-docs rev: 2a5373ca928ac402a97e108ffbb4d23507dec0fd)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by:  Steve Landherr <steve-yocto@chiquapin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 10:59:40 +00:00
Lee Chee Yang
7031a961f2 migration-guide: add release notes for 4.0.14
(From yocto-docs rev: 9c2e64fdc884f74bbeef5a830f098a714e3809a7)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 10:59:40 +00:00
Paul Barker
9723982ecf ref-manual: Fix reference to MIRRORS/PREMIRRORS defaults
After the following meta-yocto commits, MIRRORS & PREMIRRORS are no
longer set in the poky distro config file:

  67b79df4fbff ("poky.conf: remove redundant MIRRORS")
  1b71a3b9418f ("poky: Drop PREMIRRORS entries for scms")

(From yocto-docs rev: bc84dd0b6cdb1b2432ae60c036df9ee15cd53f34)

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 10:59:40 +00:00
Lee Chee Yang
dc2f087dc9 release-notes-4.3: add Repositories / Downloads section
Add Repositories/Downloads Section for 4.3 release notes.

(From yocto-docs rev: d8ee569524663ac738cb71ff2fd8cca49d0acf6c)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20 10:59:40 +00:00
Alassane Yattara
cdecc1f605 bitbake: toaster/tests: Add UI TestCase for deleting project
Test delete project:
    - Check delete modal is visible
    - Check delete modal has right text
    - Confirm delete
    - Check project is deleted

(Bitbake rev: 669b270b6839dbf8f2daaa20ad809b309957edfd)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-16 16:52:19 +00:00
Richard Purdie
22960747ea bitbake: toaster/tox.ini: Add py 3.11 and 3.12
Some of the autobuilder workers have python 3.11 or in the future 3.12.
Add these to allow toaster tests to work on those platforms.

(Bitbake rev: 04d5edd81f5e924370090d68fd4a254abaacbfe4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-16 14:49:00 +00:00
Richard Purdie
4817f0f1e2 bitbake: runqueue: Refactor StaleSetSceneTasks event out of build_scenequeue_data
The event at the end of the function doesn't really belong there,
move it out so the function becomes cleaner. It also avoids having
to pass a number of parameters around, another sign this is the correct
thing to do. This continues refactoring started a while ago to improve
and modularise the code.

(Bitbake rev: f712b927a84e8b8deaa8c907e8f9bcdec681f2aa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-16 14:49:00 +00:00
Richard Purdie
b6e49784ea bitbake: runqueue: Move 'cantskip' into sqdata
Conceptually, this belongs in sqdata so this is the next step in refactoring
this code, continuing what was started a while ago.

(Bitbake rev: 2cf267cb657cd1864db43955cc010abba7a64093)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-16 14:49:00 +00:00
Richard Purdie
abeea5c797 selftest/reproducible: Allow packages exclusion via config
OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES can be used to prevent known
not-reproducible packages to make the reproducible test fail.

For example, in local.conf:
  OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES = "example-not-reproducible"

To quote the original exclusion commit (4864764667)
> selftest/reproducible: add an exclusion list for items that are not yet reproducible
> [...]
> Non-reproducible excluded packages are not given to diffoscope and do not cause a
> failure, but still saved side-by-side with non-reproducible failing ones to make
> investigation easier.

NB: Patch was written by Richard with small fixes and a commit message
from Yoann.
(From OE-Core rev: bea0e3f5b8b383ae8590b874a5878f67832d6929)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-15 15:42:44 +00:00
Yoann Congal
cc2980ab7f selftest/reproducible: Split a long line
No other change.
Just cosmetic to avoid tripping the maximum line length of patchtest
when the next element will be  added to the list.

(From OE-Core rev: 7c401fe421c2085f2e7fc14589ca44ec1791db03)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-15 15:42:44 +00:00
Richard Purdie
8395e4723c vim: Improve locale handling
When making checkouts from git, the timestamps can vary and occasionally two files
can end up with the same stamp. This triggers make to regenerate ru.cp1251.po from
ru.po for example. If it isn't regenerated, the output isn't quite the same leading
to reproducibility issues (CP1251 vs cp1251).

Since we added all locales to buildtools tarball now, we can drop the locale
restrictions too. We need to generate a native binary for the sjis conversion
tool so also tweak that.

(From OE-Core rev: 042c1a501b1dae5ddb31307b461be02c3591c589)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-15 15:41:40 +00:00
Tim Orling
577ab316e4 bitbake: toaster: test_create_new_project typos, whitespace
* Cleanup an extraneous # at the end of the hash bang line.
* Cleanup some trailing whitespace errors.
* Fix typo inf dunfull -> dunfell.

(Bitbake rev: 3938b53f40960ff4a96a55fe5ef35b69737538a3)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:39:53 +00:00
Tim Orling
285a6ba4ee bitbake: toaster: fix obsolete use of find_element_by_link_text
The find_element_by_* commands were deprecated in 4.1.4 and have been
removed in 4.3.0:
https://github.com/SeleniumHQ/selenium/blob/selenium-4.3.0/py/CHANGES#L2
as they relied on the use of APIs only intended for internal use.

The recommended method is to use find_elements(By.*) instead.

https://www.selenium.dev/documentation/webdriver/elements/finders/#find-elements-from-element

Also fix some trailing whitespace errors.

(Bitbake rev: 745b555cce58414029b531d19c0dbb6768f036e3)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:39:53 +00:00
Tim Orling
f868384ec6 bitbake: toaster: use docs for BitBake link on landing page
With the webpage refresh in November 2023, the old BitBake link
https://www.yoctoproject.org/tools-resources/projects/bitbake on
the landing page is no longer valid.

Point the BitBake link in the landing page to https://docs.yoctoproject.org/bitbake.html

Fix the test_landing_page.py test case to test for the new link.

(Bitbake rev: 968c75852ec8be4f4b8204521c8eec18a7042cf5)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:39:53 +00:00
Joshua Watt
f5a4dc0c17 bitbake: asyncrpc: Add option to set log level when running as a process
When running an asyncrpc server as a subprocess, it is often desired to
run it with a lower logging level since the normal logging of clients
connecting and disconnecting is not desired.

As such, add an option to set the logging level of the server when
running as a subprocess and set the level to WARNING when starting a
local hashserver or PRserver

(Bitbake rev: 61dac7b99ad6d2a858f85d8ed1b5524d558be6c8)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:39:53 +00:00
Tim Orling
ca74df3a69 bitbake: toaster: drop deprecated USE_L10N from settings
Every build currently results in a warning because of the USE_L10N deprecation.

https://docs.djangoproject.com/en/4.2/ref/settings/#use-l10n

(Bitbake rev: 89df63d967dd3091fba7943f5fe5a98e2c3871e3)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:39:53 +00:00
Chris Laplante
f6aa17c2dd bitbake: codegen: cleanup deprecated AST usages
This code is just completely dead as of Python 3.8, like the comment
says.

(Bitbake rev: 92be21cde6fa40d6ba5768bd09dcc77b2efe3df8)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:39:53 +00:00
Alassane Yattara
221a7b752f bitbake: toaster/tests: Add UI TestCase to test "show rows" feature, change displaying rows in table
Test the "show rows" feature in the builds table, on the all builds page

(Bitbake rev: 04c1c46d117b98ee6ccc351323edaf90ac1436c5)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:38:13 +00:00
Alassane Yattara
b2db1c4e81 bitbake: toaster/tests: Add UI TestCase to test "edit column" feature show/hide column
Test the "edit column" feature in the builds table on the all builds page

(Bitbake rev: eb9f8ae240bb0b934da28474075a72a409e336ef)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:38:13 +00:00
Alassane Yattara
853deb8f75 bitbake: toaster/tests: Add UI TestCase to test filtering feature on 'completed_on' column
Test the filtering on completed_on column in the builds table on the all builds page

(Bitbake rev: bb459d5809ada703b551172c8dd3771565f80dec)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:38:13 +00:00
Alassane Yattara
2d73d6148e bitbake: toaster/tests: Add UI TestCase to test the filtering feature on 'failure tasks' column
Test the filtering on failure tasks column in the builds table on the all builds page

(Bitbake rev: 9e48818f08c71ae2529aa52166e3527850a6234f)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:38:13 +00:00
Alassane Yattara
3375714aa4 bitbake: toaster/tests: Add UI TestCase to test search box on all build page
Test the search box in the builds table on the all builds page

(Bitbake rev: 6ec40284e4fd173430cdc526716794b7da7d6523)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:38:13 +00:00
Alassane Yattara
0766f6cdc8 bitbake: toaster/tests: Add UI TestCase to test if 'no build' message is shown
In all builds page, check if 'no build' message is shown when there are no build.

(Bitbake rev: 4aa2a4e464a9bd85e1e22c87d0d7b54a5a899745)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-14 23:38:13 +00:00
Michael Halstead
abf3e54d11 docs: add support for nanbield (4.3) release
This adds support for the Nanbield (4.3) release and update the
current dev branch to Scarthgap.

(From yocto-docs rev: cfbb2cda2c3d221f944ae610c05039c9d12093bc)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-13 17:29:26 +00:00
Markus Volk
9d830bb2ea ghostscript: Build and install shared lib
libgs is eg. needed to build ghostscript support for gimp

also install the data target

(From OE-Core rev: cedd211d8b73076d1ef6f32af1c59e87a436d637)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-13 11:38:03 +00:00
Khem Raj
f62010de21 libsoup: Upgrade to 3.4.2 -> 3.4.4
(From OE-Core rev: 55481d5e40965894f9521474b7db479b02b01ce0)

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>
2023-11-13 11:38:03 +00:00
Markus Volk
d217ca41bf gnomebase.bbclass: Use meson as default buildsystem
The vast majority of gnome recipes uses meson. Set it as default
and override the few recipes that still use autotools.

This way we can remove a lot of lines in meta-oe and more important
it would not be needed to explicitly set GNOMEBASEBUILDCLASS = "meson" for newly
created gnome recipe anymore.

(From OE-Core rev: 8b061ea36f8b94b482c5867fe2ba7213288a5aa3)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-13 11:38:03 +00:00
Xiangyu Chen
3922466de3 sudo: upgrade 1.9.14p3 -> 1.9.15p2
Changelog:
===========
1.9.15p2:
- Fixed a bug on BSD systems where sudo would not restore the
terminal settings on exit if the terminal had parity enabled.

1.9.15p1:
- Fixed a bug introduced in sudo 1.9.15 that prevented LDAP-based
sudoers from being able to read the ldap.conf file.

1.9.15:
- Fixed an undefined symbol problem on older versions of macOS
when "intercept" or "log_subcmds" are enabled in sudoers.
- Fixed "make check" failure related to getpwent(3) wrapping
on NetBSD.
- Fixed the warning message for "sudo -l command" when the command
is not permitted.  There was a missing space between "list" and
the actual command due to changes in sudo 1.9.14.
- Fixed a bug where output could go to the wrong terminal if
"use_pty" is enabled (the default) and the standard input, output
or error is redirected to a different terminal.  Bug #1056.
- The visudo utility will no longer create an empty file when the
specified sudoers file does not exist and the user exits the
editor without making any changes.  GitHub issue #294.
- The AIX and Solaris sudo packages on www.sudo.ws now support
"log_subcmds" and "intercept" with both 32-bit and 64-bit
binaries.  Previously, they only worked when running binaries
with the same word size as the sudo binary.  GitHub issue #289.
- The sudoers source is now logged in the JSON event log.  This
makes it possible to tell which rule resulted in a match.
Running "sudo -ll command" now produces verbose output that
includes matching rule as well as the path to the sudoers file
the matching rule came from.  For LDAP sudoers, the name of the
matching sudoRole is printed instead.
- The embedded copy of zlib has been updated to version 1.3.
- The sudoers plugin has been modified to make it more resilient
to ROWHAMMER attacks on authentication and policy matching.
This addresses CVE-2023-42465.
- The sudoers plugin now constructs the user time stamp file path
name using the user-ID instead of the user name.  This avoids a
potential problem with user names that contain a path separator
('/') being interpreted as part of the path name.  A similar
issue in sudo-rs has been assigned CVE-2023-42456.
- A path separator ('/') in a user, group or host name is now
replaced with an underbar character ('_') when expanding escapes
in @include and @includedir directives as well as the "iolog_file"
and "iolog_dir" sudoers Default settings.
- The "intercept_verify" sudoers option is now only applied when
the "intercept" option is set in sudoers.  Previously, it was
also applied when "log_subcmds" was enabled.  Sudo 1.9.14
contained an incorrect fix for this.  Bug #1058.
- Changes to terminal settings are now performed atomically, where
possible.  If the command is being run in a pseudo-terminal and
the user's terminal is already in raw mode, sudo will not change
the user's terminal settings.  This prevents concurrent sudo
processes from restoring the terminal settings to the wrong values.
GitHub issue #312.
- Reverted a change from sudo 1.9.4 that resulted in PAM session
modules being called with the environment of the command to be
run instead of the environment of the invoking user.
GitHub issue #318.
- New Indonesian translation from translationproject.org.
- The sudo_logsrvd server will now raise its open file descriptor
limit to the maximum allowed value when it starts up.  Each
connection can require up to nine open file descriptors so the
default soft limit may be too low.
- Better log message when rejecting a command if the "intercept"
option is enabled and the "intercept_allow_setid" option is
disabled.  Previously, "command not allowed" would be logged and
the user had no way of knowing what the actual problem was.
- Sudo will now log the invoking user's environment as "submitenv"
in the JSON logs.  The command's environment ("runenv") is no
longer logged for commands rejected by the sudoers file or an
approval plugin.

(From OE-Core rev: 5ea298680a8f17d3b808a2c43b0182e9c391f663)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-10 17:44:27 +00:00
Khem Raj
b54ae11827 librsvg: Enable 64bit atomics in crossbeam again for riscv32
This works all fine now.

(From OE-Core rev: e9e802d4fe228ec3031f57d2db42454c9cd591a7)

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>
2023-11-10 17:44:27 +00:00
Khem Raj
f6b7585eb1 librsvg: Fix build for riscv32
Add missing support for linux-raw-sys

(From OE-Core rev: e453f6fb66ac95b449d5f3196f7f7e9121412a92)

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>
2023-11-10 17:44:27 +00:00
luca fancellu
0f25c8aa77 oeqa/ssh: Handle SSHCall timeout error code
The current code in ssh.py is terminating the ssh process that
does not finish its computation in a given timeout (when timeout
is passed), the SSHCall function is returning the process error
code.

The Openssl ssh before version 8.6_p1 is returning 0 when it is
terminated, from commit 8a9520836e71830f4fccca066dba73fea3d16bda
onwards (version >= 8.6_p1) ssh is returning 255 instead.

So for version of ssh older than 8.6_p1 when the SSHCall time out,
the return code will be 0, meaning success, which is wrong.

Fix this issue checking if the process has timeout (hence it's been
terminated) and checking if the returned code is 0, in that case
set it to 255 to advertise that an error occurred.

Add a test case excercising the timeout in the SSHTest, test_ssh
test function.

(From OE-Core rev: 948fecca1db4c7a30fcca5fcf5eef95cd12efb00)

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-10 17:44:27 +00:00
Khem Raj
2f08d6b840 libarchive: Add packageconfig knob for libb2
automatic detection could result in inconsistent host dependencies
since it will be enabled for libarchive-native if the build host has
libb2 installed and this can then fail on hosts which do not have
this library installed

Fixes errors like
recipe-sysroot-native/usr/bin/opkg: error while loading shared libraries: libb2.so.1: cannot open shared object file: No such file or directory

(From OE-Core rev: 5356afef9f0ee70fb804ff9fc8746bcaa47c02ba)

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>
2023-11-10 17:44:27 +00:00
Xiangyu Chen
8e73cd0445 grub: Fix for CVE-2023-4692 and CVE-2023-4693
CVE: CVE-2023-4692

Crafted file system images can cause heap-based buffer
overflow and may allow arbitrary code execution and secure boot bypass.

Upstream-Status: Backport
[https://git.savannah.gnu.org/cgit/grub.git/commit/?id=43651027d24e62a7a463254165e1e46e42aecdea]

CVE: CVE-2023-4693

There an out-of-bounds read at fs/ntfs.c, a physically present attacker
may leverage that by presenting a specially crafted NTFS file system
image to read arbitrary memory locations. A successful attack may allow
sensitive data cached in memory or EFI variables values to be leaked
presenting a high Confidentiality risk.

Upstream-Status: Backport
[https://git.savannah.gnu.org/cgit/grub.git/commit/?id=0ed2458cc4eff6d9a9199527e2a0b6d445802f94]

(From OE-Core rev: a8bc6f041599ce8da275c163c87f155a2f09369c)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-10 17:44:27 +00:00
Markus Fuchs
1f5d257006 systemd: Add 'no-ntp-fallback' PACKAGECONFIG option
systemd defines a default set of fallback NTP servers in
https://github.com/systemd/systemd/blob/v254/meson_options.txt#L343-L345

A no-dns-fallback option was added previously to comfortably allow to
disable the default set of DNS fallback servers. This patch does the
same for the default set of NTP servers.

(From OE-Core rev: c9d612e9f12c2bebcc77410943150f19aae5850a)

Signed-off-by: Markus Fuchs <mklntf@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-10 17:44:27 +00:00
Khem Raj
44dbbcd77b ptest-packagelists: Remove strace/valgrind/lttng-tools on riscv32
These packages are not yet ported to riscv32

(From OE-Core rev: 48b9ead023f0f073d1ffe9f288d3a164c866f9ed)

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>
2023-11-10 17:44:27 +00:00
Lukas Funke
9b2d4952fe udev-extraconf: mount.sh: check if filesystem is supported before mounting
Check if the filesystem is supported by the kernel before trying to
mount it. Systemd-mount will mount the directories asynchronously
resulting in stale directories if the devices filesystem is not
supported.

(From OE-Core rev: 695e0a41e3c1cb47484605934a57e7df591bd19f)

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-10 17:44:27 +00:00
Alassane Yattara
a9befd527e bitbake: Toaster: Write UI TestCase import new project using
* Test import new project using:
  - Project Name: Any string
  - Project type: select (Import command line project)
  - Import existing project directory: Wrong Path

(Bitbake rev: d9239f2d2235f2adb0322ecb2cedd507a00e1e90)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 22:52:42 +00:00
Alassane Yattara
36871610c3 bitbake: Toaster: Test create new project without project name
(Bitbake rev: 2670bacd5b2865ed825d24c96ecd12940218b65e)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 22:52:42 +00:00
Alassane Yattara
b4e16b96e1 bitbake: Toaster: Write UI TestCase create new project
Test create new project using:
- Project Name: Any string
- Release: Master/Kirkstone/Dunfell/Local
- Merge Toaster settings: False/True

(Bitbake rev: 8502ed9ce3e04e5e0f913a8af60828ac0cefa110)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 22:52:42 +00:00
Richard Purdie
278d1941a3 bitbake: Revert "toaster: Bug-fix webdriver No parameter named options"
This reverts commit 99305c25fafa61064a1bb0849616e4627e3453d7.

After discussion we found various versions of selenium don't work
with this change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 22:52:42 +00:00
Joshua Watt
95481c8668 bitbake: hashserv: server: Add owner if user is logged in
If a user is authenticated with the server, report them as the owner of
a report

(Bitbake rev: a9fd4a45bb6e5ac9832835897f594f3bbf67e1aa)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
33cde47e10 bitbake: hashserv: Allow self-service deletion
Allows users to self-service deletion of their own user accounts
(meaning, they can delete their own accounts without special
permissions).

(Bitbake rev: 2d4439948a5328a9768bca9eaec221eb82af3cb2)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
1699870a0c bitbake: hashserv: tests: Allow authentication for external server tests
If BB_TEST_HASHSERV_USERNAME and BB_TEST_HASHSERV_PASSWORD are provided
for a server admin user, the authentication tests for the external
hashserver will run. In addition, any users that get created will now be
deleted when the test finishes.

(Bitbake rev: 0e945d3dec02479df1157f48fd44223c2bfb34a3)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
407afec92a bitbake: bitbake-hashserver: Allow anonymous permissions to be space separated
Space separation is more natural when setting the value from an
environment variable, so allow that here for convenience.

(Bitbake rev: 07eb9176f8a7449c1d2cbfff072fa0873e97a336)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
a607f435de bitbake: bitbake-hashclient: Output stats in JSON format
Outputting the stats in JSON format makes more sense as it's easier for
a downstream tool to parse if desired.

(Bitbake rev: 3a18066e479ab06bdb08e258fc4aacad5e73222e)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
92a9d6d55d bitbake: hashserv: test: Add bitbake-hashclient tests
The bitbake-hashclient command-line tool now has a lot more features
which should be tested, so add some tests for them.

(Bitbake rev: 178cf99673d7ddf8e0bb63a5a43331a18f3286d5)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
c1574ae46f bitbake: hashserv: Add database column query API
Adds an API to retrieve the columns that can be queried on from the
database backend. This prevents front end applications from needing to
hardcode the query columns

(Bitbake rev: abfce2b68bdab02ea2e9a63fbb3b9e270428a0a6)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
3a2c5a6fa2 bitbake: hashserv: Add db-usage API
Adds an API to query the server for the usage of the database (e.g. how
many rows are present in each table)

(Bitbake rev: c9c1224447e147e0de92953bc85cea75670b898c)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
8cfb94c06c bitbake: hashserv: Add become-user API
Adds API that allows a user admin to impersonate another user in the
system. This makes it easier to write external services that have
external authentication, since they can use a common user account to
access the server, then impersonate the logged in user.

(Bitbake rev: 71e2f5b52b686f34df364ae1f2fc058f45cd5e18)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
1af725b2ec bitbake: hashserv: Add user permissions
Adds support for the hashserver to have per-user permissions. User
management is done via a new "auth" RPC API where a client can
authenticate itself with the server using a randomly generated token.
The user can then be given permissions to read, report, manage the
database, or manage other users.

In addition to explicit user logins, the server supports anonymous users
which is what all users start as before they make the "auth" RPC call.
Anonymous users can be assigned a set of permissions by the server,
making it unnecessary for users to authenticate to use the server. The
set of Anonymous permissions defines the default behavior of the server,
for example if set to "@read", Anonymous users are unable to report
equivalent hashes with authenticating. Similarly, setting the Anonymous
permissions to "@none" would require authentication for users to perform
any action.

User creation and management is entirely manual (although
bitbake-hashclient is very useful as a front end). There are many
different mechanisms that could be implemented to allow user
self-registration (e.g. OAuth, LDAP, etc.), and implementing these is
outside the scope of the server. Instead, it is recommended to
implement a registration service that validates users against the
necessary service, then adds them as a user in the hash equivalence
server.

(Bitbake rev: 69e5417413ee2414fffaa7dd38057573bac56e35)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
6e67b000ef bitbake: asyncrpc: client: Add disconnect API
Adds an API to explicitly disconnect a client. This can be useful for
testing the auto-reconnect behavior of clients

(Bitbake rev: cb2fec7eaca20608faf4b8ff11ec8590ac7f2229)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
66bcf57bfe bitbake: asyncrpc: client: Prevent double closing of loop
Invalidate the loop in the client close() call so that it is not closed
twice (which is an error in the asyncio code)

(Bitbake rev: ef22f8ee82c242383625f078baafb629e45dad7e)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
dabed6288a bitbake: asyncrpc: Add InvokeError
Adds support for Invocation Errors (that is, errors raised by the actual
RPC call instead of at the protocol level) to propagate across the
connection. If a server RPC call raises an InvokeError, it will be sent
across the connection and then raised on the client side also. The
connection is still terminated on this error.

(Bitbake rev: 50ee68175e7cf20a32bfbb176db2c47d7859da04)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:03 +00:00
Joshua Watt
e31396eb1c bitbake: hashserv: Implement read-only version of "report" RPC
When the hash equivalence server is in read-only mode, it should still
return a unihash for a given "report" call if there is one.

(Bitbake rev: d0bbb98553f5f3451606bd5f089b36cfe4219dc2)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
cfbb1d2cc0 bitbake: hashserv: Add SQLalchemy backend
Adds an SQLAlchemy backend to the server. While this database backend is
slower than the more direct sqlite backend, it easily supports just
about any SQL server, which is useful for large scale deployments.

(Bitbake rev: e0b73466dd7478c77c82f46879246c1b68b228c0)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
baa3e5391d bitbake: hashserv: Abstract database
Abstracts the way the database backend is accessed by the hash
equivalence server to make it possible to use other backends

(Bitbake rev: 04b53deacf857488408bc82b9890b1e19874b5f1)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
e90fccfefd bitbake: bitbake-hashserv: Allow arguments from environment
Allows the arguments to the bitbake-hashserv command to be specified in
environment variables. This is a very common idiom when running services
in containers as it allows the arguments to be specified from different
sources as desired by the service administrator

(Bitbake rev: f65c87fab07a730f2f4588764cb64508c2149b40)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
4cdb0f00f9 bitbake: asyncrpc: Prefix log messages with client info
Adds a logging adaptor to the asyncrpc clients that prefixes log
messages with the client remote address to aid in debugging

(Bitbake rev: f4d64ce73c2449c008ff5d9b32376a2893ef7195)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
8ae00cf20d bitbake: hashserv: tests: Add external database tests
Adds support for running the hash equivalence test suite against an
external hash equivalence implementation.

(Bitbake rev: c1fbc3f68b94905d19ffcf4a6da5b27f0bf14599)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
732ff20cf9 bitbake: asyncrpc: Add context manager API
Adds context manager API for the asyncrcp client class which allow
writing code that will automatically close the connection like so:

    with hashserv.create_client(address) as client:
       ...

Rework the bitbake-hashclient tool and PR server to use this new API to
fix warnings about unclosed event loops when exiting

(Bitbake rev: d01d684a0f6398270fe35ed59b7d28f3fd9b7e41)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
2484bd8931 bitbake: hashserv: Add websocket connection implementation
Adds support to the hash equivalence client and server to communicate
over websockets. Since websockets are message orientated instead of
stream orientated, and new connection class is needed to handle them.

Note that websocket support does require the 3rd party websockets python
module be installed on the host, but it should not be required unless
websockets are actually being used.

(Bitbake rev: 56dd2fdbfb6350a9eef43a12aa529c8637887a7e)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Joshua Watt
8f8501ed40 bitbake: asyncrpc: Abstract sockets
Rewrites the asyncrpc client and server code to make it possible to have
other transport backends that are not stream based (e.g. websockets
which are message based). The connection handling classes are now shared
between both the client and server to make it easier to implement new
transport mechanisms

(Bitbake rev: 2aaeae53696e4c2f13a169830c3b7089cbad6eca)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:33:02 +00:00
Richard Purdie
f97b686884 linux/cve-exclusion6.1/6.5: Update to latest kernel point releases
(From OE-Core rev: e17b76644b26ef832b632a03f537060f88344bd8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:16:08 +00:00
Alassane Yattara
2378e4bdfa bitbake: toaster: Bug-fix webdriver No parameter named options
Change options to chrome_options

(Bitbake rev: 99305c25fafa61064a1bb0849616e4627e3453d7)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:06:59 +00:00
Alassane Yattara
707ffa79af bitbake: toaster: Test jumbotron links visible and clickable
Test that the followings link are visible and clickable:
 - OpenEmbedded
 - BitBake
 - Yocto Project
 - Read the Toaster manual
 - Contribute to Toaster

 - Fixed typo: using instead of usign line:97
 - Remove whitespace

(Bitbake rev: d4c35eaff3c152ee864a886aac8ad5476f7f29f7)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:03:24 +00:00
Alassane Yattara
6031006582 bitbake: toaster: Test documentation link in landing header is displayed
- check that the documentation link is visible
- check browser open new tab toaster manual when clicking on the documentation link

(Bitbake rev: befe970fcc7742cf266e03849be36c733bb09de6)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:03:24 +00:00
Alassane Yattara
b1156a1a1b bitbake: toaster: Check info_sign is visible and clickable in landing page
Check the information icon is visible and clickable
Also if popup appearing when clicked and contain "Toaster version information"

(Bitbake rev: 0508fd74ebd43359473a9718edf0d146002041ad)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:03:24 +00:00
Alassane Yattara
0f12b4f389 bitbake: toaster: Added pytest.ini file
The main reason for using pytest is to be able to generate a positive test report
using the pytest-html plugin.

Integrating Pytest with Tox is a straightforward process, this can be
done using tox.ini instead of pytest.ini used to configure pytest, that
is another reason for using pytest. Tox is a tool that automates testing
across different virtual environments, it can help ensure application
will be tested against multiple Python versions and environments.
https://github.com/pytest-dev/pytest/blob/main/tox.ini

Generated reports create a historical record of test results over time.
This can help track the progress of the application's stability and quality

Documentation and Transparency: Test reports provide us a clear and detailed
documentation of the test results. They show what tests were executed,
which ones passed, and which ones failed. This transparency is critical
for understanding the current state of the application and its test coverage.

Communication: Test reports are an effective means of communication among community
to understand the testing progress and results.

Debugging, Troubleshooting Historical Tracking and Regression Testing:
In case of test failures, a detailed test report can be invaluable for debugging.
It provides information about the specific test case that failed,
the input data used, and any error messages.

(Bitbake rev: 6ba046b8d0d821e304c14b78ef6b00945e0ab453)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:01:18 +00:00
Alassane Yattara
8b957cf1fe bitbake: toaster: fixed: Tests fail when executed one after the other out of sequence
As mentionned in earlier commit, pytest-django takes a conservative approach
to enabling database access. By default our tests will fail if they try to access
the database, Only if we explicitly request database access will this be allowed,
using pytest marks to tell pytest-django our test needs database access.

A side effect of pytest mark, is test_case method marked is execute out of
scope of its module class, which create an inconsistance sequence and make fails
followings tests.

The scope of the ordering is global per default, e.g. tests with lower ordinal
numbers are always executed before tests with higher numbers in the same test session,
regardless of the module and class they reside in. This can be changed by using
the --order-scope option from module pytest-order.

To fix that i added execution order to tests suite using pytest-order.

(Bitbake rev: 8bf32459ab6d8ce7632fca0a4ce0f3aecc7495c2)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:01:18 +00:00
Alassane Yattara
5e46a34555 bitbake: toaster: Bug-fix django.db.utils.IntegrityError: Problem installing fixture
toastergui-unittest-data.xml fixture contains a release objects with
name="master" or an release with same name seem existing
- Change release name and fix bitbakeversion instead of bitbake_version

(Bitbake rev: 36b48905ea26e5173b5ab2369b90952bc13e9c0d)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:01:18 +00:00
Alassane Yattara
dcb6a5cca6 bitbake: toaster: fixed pytest error: Database access not allowed, use the "django_db"
Pytest failed on functional/test_functional_basic because database access not allowed
- we should use "django_db" fixture to allowed db access

Note: Pytest-django takes a conservative approach to enabling database access.
By default your tests will fail if they try to access the database.
Only if you explicitly request database access will this be allowed.

https://pytest-django.readthedocs.io/en/latest/helpers.html#pytest-mark-django-db-request-database-access

(Bitbake rev: 5f92a6b13cdea26b26ff939e9a3f746f7d0937b7)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:01:18 +00:00
Alassane Yattara
20705f46af bitbake: toaster: Bug-fix pytest and Failed: Database access not allowed
Remove load and create build environment from tests/functional/functional_helpers
- Testcases in the FunctionalTestCase do not require a build process,
- Also marked setUpClass or class with pytest django_db, db ... not
  working, as declared above of file functional_helpers.py, The database access
  process runs as an external process, separate from the test case process
  and outside the context of pytest.

(Bitbake rev: 35c02c26541c05a8d147f41d0855e09d8fba1a83)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:01:18 +00:00
Alassane Yattara
f8ee2cb52e bitbake: toaster: Update orm.models to catch error ProcessLookupError
- catch error ProcessLookupError and logs it

(Bitbake rev: a61a5f47dc56daafa9089adaad388b3c0b59155d)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 17:01:17 +00:00
Alassane Yattara
d34591ae7b bitbake: toaster: Add toaster-tests-requirements.txt to add pytest and some plugins
The pytest framework makes it easy to write small, readable tests, and can scale
to support complex functional testing for applications and libraries.
- Pytest-html is a plugin for pytest that generates a HTML report for test results.
- Pytest-django allows us to test Django project/applications with the pytest testing tool.
- Pytest-env is a pytest plugin that enables us to set environment variables in a pytest.ini or pyproject.toml file
- Pytest-metadata is a plugin for pytest that provides access to test session metadata, required by pytest-html plugin
to provides metadata information in the HTML report like below:

Python 3.10.12
Platform Linux-6.2.0-35-generic-x86_64-with-glibc2.35
Packages:
    - pytest: 7.4.2
    - pluggy: 1.3.0
Plugins	:
    - django: 4.5.2
    - metadata: 3.0.0
    - order: 1.1.0
    - html: 4.0.2
    - env: 1.1.0

To make difference between bitbake and toaster python requirements,
a dedicated requirements file is created for toaster in root of toaster dir.

(Bitbake rev: 804d17df22391b2d18a68d8cb05a04841d4e551b)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:59:37 +00:00
Ross Burton
ed4aed02b6 xwayland: upgrade to 23.2.2
e4487cae1 Bump version to 23.2.2
1e8478455 Xi/randr: fix handling of PropModeAppend/Prepend (CVE-2023-5367)
829a99117 Switch to libbsd-overlay
4f8a851b6 xwayland: Cancel the EI disconnect timer when freed
cc79b2a83 glamor: xv: Fix invalid accessing of plane attributes for NV12
07c18c90e xwayland: Give up on EI on setup failure
10353a01a xwayland: Add an option to enable EI portal support
4f8e209d2 xwayland/glamor/gbm: Set GBM_BO_USE_LINEAR if only LINEAR modifier is supported
c9a842e60 xwayland/present: Handle NULL window_priv in xwl_present_cleanup
2bd43be92 glamor: fixes GL_INVALID_ENUM errors on ES if there is no quads

(From OE-Core rev: 7d0fc94d09db76d4c4d6ca9d2da1b30768f68c9e)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Thomas Perrot
d7af718a27 opensbi: Upgrade to 1.3.1 release
Here is list of changes in this major release

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

(From OE-Core rev: 5d642c49e9354c105b1269555b646bb4afaef491)

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Massimiliano Minella
7ccff117e3 systemd: update LICENSE statement
As stated in the LICENSES/README.md "Unless otherwise noted, the systemd
project sources are licensed under the terms and conditions of the GNU
Lesser General Public License v2.1 or later", so replace LGPL-2.1-only
with LGPL-2.1-or-later.

With the exception of some udev sources that are licensed under
GPL-2.0-or-later (but are packaged separately), the project is licensed
under LGPL, and all the components are LGPL or under LGPL compatible
licenses. The package libsystemd is currently under the main package
license, which can cause problems when scanning for GPL software linked
to CLOSED one.  Add more granularity by setting a license for libsystemd
to LGPL-2.1-or-later.

(From OE-Core rev: 54975f4b2184fe12c4995c289eba8358958e6c21)

Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Max Krummenacher
683aff7a08 perf: fix build with latest kernel
Kernel 6.7-rc1 commit 02e85f74668e ("tools: arm64: Add a Makefile for
generating sysreg-defs.h") uses files from arch/arm64/tools/,
gen-sysreg.awk and sysreg.
Without the files the build of perf fails independent of the used
architecture (confirmed with armv7 and qemux86_64).

As arch/arm64/tools/ has been added with 5.13 allow perf to build
even it that directory does not exist.

Add arch/arm64/tools/ to PERF_SRC.

Fixes:
| make[3]: *** No rule to make target '.../qemux86_64-tdx-linux/perf/1.0/perf-1.0/arch/arm64/tools/gen-sysreg.awk', needed by '.../qemux86_64-tdx-linux/perf/1.0/perf-1.0/tools/arch/arm64/include/generated/asm/sysreg-defs.h'.  Stop.
| make[2]: *** [Makefile.perf:456: arm64-sysreg-defs] Error 2

(From OE-Core rev: 432b4ac20dadb9c08596266fce4f3941d4856c7e)

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Rasmus Villemoes
4a9824a209 perf: add jevents PACKAGECONFIG item
Building for an arm64 target, e.g. qemuarm64 or a raspberrypi3,
without "python" in PACKAGECONFIG, results in

| Makefile.config:892: *** ERROR: No python interpreter needed for jevents generation. Install python or build with NO_JEVENTS=1..  Stop.

(From OE-Core rev: df1905294690682496d8f8e8284964ab897f0cd4)

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Jermain Horsman
61e7c1d99c lib/bblayers/setupwriters/oe-setup-layers.py: Fix indentation
The writer always printed the script was written even if this
was not the case when specififying '--json-only'.

(From OE-Core rev: b2efb4c6c8bd938aac5146e14bd0c38f3f632bc4)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
fdec269d0a linux-yocto/6.5: update to v6.5.10
Updating  to the latest korg -stable release that comprises
the following commits:

    43a868577dfc Linux 6.5.10
    062c1ba88b4f accel/ivpu/37xx: Fix missing VPUIP interrupts
    cdb4daffc2d4 mm/damon/sysfs: check DAMOS regions update progress from before_terminate()
    a5c9f6289625 platform/x86: Add s2idle quirk for more Lenovo laptops
    adebf494e425 clk: stm32: Fix a signedness issue in clk_stm32_composite_determine_rate()
    302479e2d4c4 clk: socfpga: gate: Account for the divider in determine_rate
    5193aec42c45 clk: Sanitize possible_parent_show to Handle Return Value of of_clk_get_parent_name
    d1e039180f81 sparc32: fix a braino in fault handling in csum_and_copy_..._user()
    516177805997 perf/core: Fix potential NULL deref
    25de47d0d6e7 x86/cpu: Add model number for Intel Arrow Lake mobile processor
    3256ad9bb4ce x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility
    7f864ab94da3 x86/tsc: Defer marking TSC unstable to a worker
    cfa5aa4a5ea2 nvmem: imx: correct nregs for i.MX6UL
    4f6c3da9a978 nvmem: imx: correct nregs for i.MX6SLL
    3e325ac1eec9 nvmem: imx: correct nregs for i.MX6ULL
    bc0991e8e1fb misc: fastrpc: Unmap only if buffer is unmapped from DSP
    8e4afa8598d9 misc: fastrpc: Clean buffers on remote invocation failures
    c2400bfd8ce4 misc: fastrpc: Free DMA handles for RPC calls with no arguments
    0351f86266f6 misc: fastrpc: Reset metadata buffer to avoid incorrect free
    96790d33261c tracing/kprobes: Fix the description of variable length arguments
    63de22fdf851 tracing/kprobes: Fix symbol counting logic by looking at modules as well
    001b2dc822d3 i2c: aspeed: Fix i2c bus hang in slave read
    20062e7a248f i2c: stm32f7: Fix PEC handling in case of SMBUS transfers
    e505ca5d9ac0 i2c: muxes: i2c-demux-pinctrl: Use of_get_i2c_adapter_by_node()
    135e2858ab78 i2c: muxes: i2c-mux-gpmux: Use of_get_i2c_adapter_by_node()
    2f7671a14960 i2c: muxes: i2c-mux-pinctrl: Use of_get_i2c_adapter_by_node()
    5f6dc4a12d79 iio: adc: xilinx-xadc: Correct temperature offset/scale for UltraScale
    f763aa29992d iio: adc: xilinx-xadc: Don't clobber preset voltage/temperature thresholds
    f2bd3c005aba iio: exynos-adc: request second interupt only when touchscreen mode is used
    0a9bb3fa6870 iio: afe: rescale: Accept only offset channels
    56e08ccc9697 io_uring/fdinfo: lock SQ thread while retrieving thread cpu/pid
    1c43576ac2d1 kasan: print the original fault addr when access invalid shadow
    6cf937305199 blk-throttle: check for overflow in calculate_bytes_allowed
    c031d9a8383d scsi: sd: Introduce manage_shutdown device flag
    927c770488fe iavf: in iavf_down, disable queues when removing the driver
    de306715bc3f drm/i915/mcr: Hold GT forcewake during steering operations
    a90e92e77bb6 drm/logicvc: Kconfig: select REGMAP and REGMAP_MMIO
    180069f6b8e8 net/sched: act_ct: additional checks for outdated flows
    533c24b368d7 netfilter: flowtable: GC pushes back packets to classic path
    36cf7d1d79ec i40e: Fix wrong check for I40E_TXR_FLAGS_WB_ON_ITR
    4c898bdfc6a1 drm/i915/perf: Determine context valid in OA reports
    9ba154363a09 gtp: fix fragmentation needed check with gso
    62376a558db3 gtp: uapi: fix GTPA_MAX
    450d6bf74c28 net/handshake: fix file ref count in handshake_nl_accept_doit()
    8279cd3af8bf wifi: mac80211: don't drop all unprotected public action frames
    943431ee2a17 wifi: cfg80211: fix assoc response warning on failed links
    989ac939b1a5 wifi: cfg80211: pass correct pointer to rdev_inform_bss()
    9617c77f0c0e tcp: fix wrong RTO timeout when received SACK reneging
    a22e19386109 r8152: Release firmware if we have an error in probe
    0fd9553632fd r8152: Cancel hw_phy_work if we have an error in probe
    56e8946e1a25 r8152: Run the unload routine if we have errors during probe
    90b49a273de0 r8152: Increase USB control msg timeout to 5000ms as per spec
    c11f5c496f65 net: usb: smsc95xx: Fix uninit-value access in smsc95xx_read_reg
    0d3295a43c63 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
    8e0e94bf5b4a net: ethernet: adi: adin1110: Fix uninitialized variable
    fdba00877119 igc: Fix ambiguity in the ethtool advertising
    cf6fd6e0a831 neighbour: fix various data-races
    5f9d1995d040 net: do not leave an empty skb in write queue
    7462118b2083 igb: Fix potential memory leak in igb_add_ethtool_nfc_entry
    fd9d5ad3c865 treewide: Spelling fix in comment
    7e5beb46db3a i40e: Fix I40E_FLAG_VF_VLAN_PRUNING value
    f927602db213 iavf: initialize waitqueues before starting watchdog_task
    bcbf3f442903 r8169: fix the KCSAN reported data race in rtl_rx while reading desc->opts1
    03599d8d353a r8169: fix the KCSAN reported data-race in rtl_tx while reading TxDescArray[entry].opts1
    23473ffd3aec r8169: fix the KCSAN reported data-race in rtl_tx() while reading tp->cur_tx
    3dacf771d6e4 clk: ti: Fix missing omap5 mcbsp functional clock and aliases
    202f0a4266ca clk: ti: Fix missing omap4 mcbsp functional clock and aliases
    7e6cde9455e1 firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels()
    ec4a1eed8259 ARM: OMAP: timer32K: fix all kernel-doc warnings
    0bc72b967d82 btrfs: fix unwritten extent buffer after snapshotting a new subvolume
    ca9cd8fb3454 btrfs: remove v0 extent handling
    1df7ca358099 drm/dp_mst: Fix NULL deref in get_mst_branch_device_by_guid_helper()
    ed93977857fd drm/amd: Disable ASPM for VI w/ all Intel systems
    5692e4e09f0a drm/i915/pmu: Check if pmu is closed before stopping event
    7c05a73c3893 accel/ivpu: Don't enter d0i3 during FLR
    4bb5ed32bf06 ARM: dts: rockchip: Fix timer clocks for RK3128
    6d6e82fb8a94 ARM: dts: rockchip: Add missing quirk for RK3128's dma engine
    835fdd9a36cc ARM: dts: rockchip: Add missing arm timer interrupt for RK3128
    568192da05cb ARM: dts: rockchip: Fix i2c0 register address for RK3128
    f4b8ef292ec6 ARM: OMAP1: ams-delta: Fix MODEM initialization failure
    0a411c59897e vdpa/mlx5: Fix double release of debugfs entry
    37509b77aeeb vdpa_sim_blk: Fix the potential leak of mgmt_dev
    a3e7e0de21cf nfsd: lock_rename() needs both directories to live on the same fs
    11bc9f5c70bb maple_tree: add GFP_KERNEL to allocations in mas_expected_entries()
    257931b5d8b1 hugetlbfs: extend hugetlb_vma_lock to private VMAs
    a6d2f04abe6a mm/mempolicy: fix set_mempolicy_home_node() previous VMA pointer
    c0ade01d5369 selftests/mm: include mman header to access MREMAP_DONTUNMAP identifier
    941f6af9946e mm/migrate: fix do_pages_move for compat pointers
    5d6ea592222a mm/page_alloc: correct start page when guard page debug is enabled
    92c5ddea6a6c hugetlbfs: clear resv_map pointer if mmap fails
    e3f64e0bb2fa mm: fix vm_brk_flags() to not bail out while holding lock
    5ee66af50c41 i40e: sync next_to_clean and next_to_process for programming status desc
    6ba04d5dfd00 arm64: dts: rockchip: Fix i2s0 pin conflict on ROCK Pi 4 boards
    7bc99864cb91 arm64: dts: rockchip: Add i2s0-2ch-bus-bclk-off pins to RK3399
    7c5934f90db6 arm64: dts: qcom: sa8775p: correct PMIC GPIO label in gpio-ranges
    7f5d458012fa arm64: dts: rockchip: set codec system-clock-fixed on px30-ringneck-haikou
    51b3ef53fa5d arm64: dts: rockchip: use codec as clock master on px30-ringneck-haikou
    aa7df1844910 arm64: dts: qcom: msm8996-xiaomi: fix missing clock populate
    d8b34f309f36 arm64: dts: qcom: apq8096-db820c: fix missing clock populate
    368b3c788e99 vhost: Allow null msg.size on VHOST_IOTLB_INVALIDATE
    e83bce65ae80 vsock/virtio: initialize the_virtio_vsock before using VQs
    7efb5418f8cb virtio_pci: fix the common cfg map size
    91dacc7d5dbd virtio-crypto: handle config changed by work queue
    5f8c38e9538f virtio-mmio: fix memory leak of vm_dev
    84a50412e433 virtio_balloon: Fix endless deflation and inflation on arm64
    436be190fbf8 smb: client: prevent new fids from being removed by laundromat
    f806b7e98cb9 smb: client: make laundromat a delayed worker
    b8c0ab226fee smb: client: do not start laundromat thread on nohandlecache
    b483b64677a1 smb3: do not start laundromat thread when dir leases disabled
    3027d3064c71 smb3: allow controlling maximum number of cached directories
    9cb2ea5d7d2a smb3: allow controlling length of time directory entries are cached with dir leases
    c3b054a86347 vdpa/mlx5: Fix firmware error on creation of 1k VQs

(From OE-Core rev: ddbba0d5a997d428a3c63580f845c0d581cac460)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
3f71ba720a linux-yocto/6.5: cfg: restore CONFIG_DEVMEM
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: C. Andy Martin
    Email: cam@myfastmail.com
    Subject: security.cfg: restore strict-only /dev/mem access
    Date: Fri, 27 Oct 2023 11:22:06 -0400

    CONFIG_DEVMEM was mistakenly not enabled, which defeats
    CONFIG_STRICT_DEVMEM and friends, as it completely removes all
    /dev/mem support.

    Signed-off-by: C. Andy Martin <cam@myfastmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: c459be32000d703aad179a4bf5ef2479813f0404)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
477431d168 linux-yocto/6.1: update to v6.1.61
Updating  to the latest korg -stable release that comprises
the following commits:

    4a61839152cc Linux 6.1.61
    5926b0886d0c objtool/x86: add missing embedded_insn check
    2afa9f7eb15c ext4: avoid overlapping preallocations due to overflow
    fcefddf3a151 ext4: fix BUG in ext4_mb_new_inode_pa() due to overflow
    495c4c58d684 ext4: add two helper functions extent_logical_end() and pa_logical_end()
    d022e4ea9c2f platform/x86: Add s2idle quirk for more Lenovo laptops
    48ebeab0eda1 clk: Sanitize possible_parent_show to Handle Return Value of of_clk_get_parent_name
    65e5a9890e03 sparc32: fix a braino in fault handling in csum_and_copy_..._user()
    8b8cde8ebb87 perf/core: Fix potential NULL deref
    5e232f2205f2 x86/cpu: Add model number for Intel Arrow Lake mobile processor
    63cc3d5d343d x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility
    37495846b1ef nvmem: imx: correct nregs for i.MX6UL
    116671d25915 nvmem: imx: correct nregs for i.MX6SLL
    b90b8633ef62 nvmem: imx: correct nregs for i.MX6ULL
    cc87c73eac2d misc: fastrpc: Unmap only if buffer is unmapped from DSP
    38c5faf2a984 misc: fastrpc: Clean buffers on remote invocation failures
    7737e9384e2d misc: fastrpc: Free DMA handles for RPC calls with no arguments
    1e8851b51300 misc: fastrpc: Reset metadata buffer to avoid incorrect free
    5a35fc1c0091 tracing/kprobes: Fix the description of variable length arguments
    91b95e3b4ac8 i2c: aspeed: Fix i2c bus hang in slave read
    11602cadc9b4 i2c: stm32f7: Fix PEC handling in case of SMBUS transfers
    ff0312a156cf i2c: muxes: i2c-demux-pinctrl: Use of_get_i2c_adapter_by_node()
    f9a7b3b33c84 i2c: muxes: i2c-mux-gpmux: Use of_get_i2c_adapter_by_node()
    48a365ae4f31 i2c: muxes: i2c-mux-pinctrl: Use of_get_i2c_adapter_by_node()
    6ec84059b5e1 iio: adc: xilinx-xadc: Correct temperature offset/scale for UltraScale
    e26fd381bf11 iio: adc: xilinx-xadc: Don't clobber preset voltage/temperature thresholds
    cb01837e0f7a iio: exynos-adc: request second interupt only when touchscreen mode is used
    7a641bc52f00 iio: afe: rescale: Accept only offset channels
    9236d2ea6465 io_uring/fdinfo: lock SQ thread while retrieving thread cpu/pid
    1684909df3f4 kasan: print the original fault addr when access invalid shadow
    6a5b845b57b1 blk-throttle: check for overflow in calculate_bytes_allowed
    bb20a245df9c scsi: sd: Introduce manage_shutdown device flag
    93fa5786f972 iavf: in iavf_down, disable queues when removing the driver
    f7f660df65a1 drm/logicvc: Kconfig: select REGMAP and REGMAP_MMIO
    cb115b6688b6 i40e: Fix wrong check for I40E_TXR_FLAGS_WB_ON_ITR
    144f93c62239 gtp: fix fragmentation needed check with gso
    039a050740fc gtp: uapi: fix GTPA_MAX
    664a358b7966 tcp: fix wrong RTO timeout when received SACK reneging
    5b100bb0449c r8152: Release firmware if we have an error in probe
    ecb51a434e3d r8152: Cancel hw_phy_work if we have an error in probe
    87376143df3f r8152: Run the unload routine if we have errors during probe
    ee73f937c5e9 r8152: Increase USB control msg timeout to 5000ms as per spec
    9eb275fec602 net: usb: smsc95xx: Fix uninit-value access in smsc95xx_read_reg
    7c799bc32232 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
    55b01c5a847e net: ethernet: adi: adin1110: Fix uninitialized variable
    9d2b588fae86 igc: Fix ambiguity in the ethtool advertising
    fa28949c72db neighbour: fix various data-races
    c166dd51b628 igb: Fix potential memory leak in igb_add_ethtool_nfc_entry
    9a194064fab6 treewide: Spelling fix in comment
    b1ad0a147d08 i40e: Fix I40E_FLAG_VF_VLAN_PRUNING value
    d8ac13acfbf7 iavf: initialize waitqueues before starting watchdog_task
    66e879507b12 r8169: fix the KCSAN reported data race in rtl_rx while reading desc->opts1
    d10140916e6f r8169: fix the KCSAN reported data-race in rtl_tx while reading TxDescArray[entry].opts1
    4138a02c8953 r8169: fix the KCSAN reported data-race in rtl_tx() while reading tp->cur_tx
    29f365f4c3b8 clk: ti: Fix missing omap5 mcbsp functional clock and aliases
    2ba943c6d9eb clk: ti: Fix missing omap4 mcbsp functional clock and aliases
    8d8346ed3968 firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels()
    df4169fc9b8a ARM: OMAP: timer32K: fix all kernel-doc warnings
    6c668e2f338b drm/dp_mst: Fix NULL deref in get_mst_branch_device_by_guid_helper()
    024251bab25d drm/amd: Disable ASPM for VI w/ all Intel systems
    eded5f5261b8 drm/i915/pmu: Check if pmu is closed before stopping event
    4f46c177c03d nfsd: lock_rename() needs both directories to live on the same fs
    3262ff5826e1 maple_tree: add GFP_KERNEL to allocations in mas_expected_entries()
    b1b2750de123 hugetlbfs: extend hugetlb_vma_lock to private VMAs
    c9b066f6920d mm/migrate: fix do_pages_move for compat pointers
    a6fbf025e3cf mm/page_alloc: correct start page when guard page debug is enabled
    0aa7b24c068c hugetlbfs: clear resv_map pointer if mmap fails
    38d0d1c44255 mm: fix vm_brk_flags() to not bail out while holding lock
    38930ec7670a arm64: dts: rockchip: Fix i2s0 pin conflict on ROCK Pi 4 boards
    9d72254c2b7a arm64: dts: rockchip: Add i2s0-2ch-bus-bclk-off pins to RK3399
    08e6b680f264 vhost: Allow null msg.size on VHOST_IOTLB_INVALIDATE
    1f14ded0f165 vsock/virtio: initialize the_virtio_vsock before using VQs
    534487cc3eb8 virtio_pci: fix the common cfg map size
    86f467d3582e virtio-crypto: handle config changed by work queue
    a9d4a1ea6709 virtio-mmio: fix memory leak of vm_dev
    19b30a879065 virtio_balloon: Fix endless deflation and inflation on arm64
    bede8b4b5175 mcb-lpc: Reallocate memory region to avoid memory overlapping
    c9efc3efe450 mcb: Return actual parsed size when reading chameleon table
    e58ab834e48f pinctrl: qcom: lpass-lpi: fix concurrent register updates
    018b11ecba76 ASoC: codecs: wcd938x: fix runtime PM imbalance on remove
    508c3353fed8 ASoC: codecs: wcd938x: fix regulator leaks on probe errors
    877fc75d2cf7 ASoC: codecs: wcd938x: Simplify with dev_err_probe
    629ba75200a1 ASoC: codecs: wcd938x: Convert to platform remove callback returning void
    1fae817d3ecb mmc: core: Fix error propagation for some ioctl commands
    719c01f28130 mmc: block: ioctl: do write error check for spi
    651e66d20b59 mmc: core: Align to common busy polling behaviour for mmc ioctls
    d3466ce4f42e KVM: x86/pmu: Truncate counter value to allowed width on write

(From OE-Core rev: 8b5ec2f683f71f3e708d1c6401ebe07eec1986c7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
7a052b0664 linux-yocto/6.1: cfg: restore CONFIG_DEVMEM
Integrating the following commit(s) to linux-yocto/.:

1/1 [
    Author: C. Andy Martin
    Email: cam@myfastmail.com
    Subject: security.cfg: restore strict-only /dev/mem access
    Date: Fri, 27 Oct 2023 11:22:06 -0400

    CONFIG_DEVMEM was mistakenly not enabled, which defeats
    CONFIG_STRICT_DEVMEM and friends, as it completely removes all
    /dev/mem support.

    Signed-off-by: C. Andy Martin <cam@myfastmail.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: dfc0cc113eabb1160b6bfd630fa75c6a3cb9c7a5)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
d6b37f2230 kernel-yocto: improve metadata patching
The ability to patch the kernel-yocto metadata was added to support
debug and easier test cycles on kernel-cache provided fragments. As
such, it was very simple and has limited functionality.

That being said, it is an available feature and can be improved to
handle patches that fail to apply.

The main kernel patching is already handled by the kern-tools, so
we extend the patching of the meta-data to same tools and inherit
more functinality from the scripts.

[YOCTO #15266]

(From OE-Core rev: e867addd6c2f508f7a95e72222e750d37f3d19d8)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
798d954e8d kern-tools: update SRCREV to include SECURITY.md file
To be compliant with the recent security policy, bumping
the SRCREV to pickup the SECUIRTY.md of the kern-tools
repository. It's contents are repeated below:

   How to Report a Potential Vulnerability?
   ========================================

   If you would like to report a public issue (for example, one with a released
   CVE number), please report it using the [https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Security
   Security Bugzilla].  If you have a patch ready, submit it following the same procedure as any
   other patch as described in README.md.

   If you are dealing with a not-yet released or urgent issue, please send a
   message to security AT yoctoproject DOT org, including as many details as
   possible: the layer or software module affected, the recipe and its version,
   and any example code, if available.

   Branches maintained with security fixes
   ---------------------------------------

   See [https://wiki.yoctoproject.org/wiki/Stable_Release_and_LTS Stable release and LTS]
   for detailed info regarding the policies and maintenance of Stable branches.

   The [https://wiki.yoctoproject.org/wiki/Releases Release page] contains a list of all
   releases of the Yocto Project. Versions in grey are no longer actively maintained with
   security patches, but well-tested patches may still be accepted for them for
   significant issues.

(From OE-Core rev: fbdfc28b290ea3ed2dc3dbbaf461adc2839eb8f2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
7a7eaac727 kern-tools: bump SRCREV for queue processing changes
Bumping the SRCREV to pickup a new option to the patch and
merge queue handling scripts.

The new option '--prev' allows us to change the behaviour
of a subsequent runs to retry a failed patch, versus skipping
it.

(From OE-Core rev: 231256485ae528773a4da9fad8bf4baff26fc0d2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
935a2dbfe3 kern-tools: make lower context patches reproducible
It could be argued that it should be an error to have a
reduced context patch now that we've had many years to
ensure that our kernel path queues are clean.

But there are still some supported scenarios where a
patch is on multiple branches and reduced context makes
sense.

Applying the following patch to make sure these are
reproducible like the primary mode of application.

   kgit-s2q: use additional git-am options with reduced context as well

(From OE-Core rev: a76a31419e8f3c612699bc45dfc7637d6d542c08)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
cc3d09d89b linux-yocto/6.1: update to v6.1.60
Updating  to the latest korg -stable release that comprises
the following commits:

    32c9cdbe383c Linux 6.1.60
    7f5bb254be8d selftests: mptcp: join: no RST when rm subflow/addr
    0e0123e0e53d selftests: mptcp: join: correctly check for no RST
    300447c5722a mptcp: avoid sending RST when closing the initial subflow
    c04f416730ac Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name
    a429d65428d5 Bluetooth: hci_sock: fix slab oob read in create_monitor_event
    46de539282f2 net: move altnames together with the netdevice
    c1d531aa095b phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
    13a45130bb17 phy: mapphone-mdm6600: Fix runtime PM for remove
    7fcce3258b6e phy: mapphone-mdm6600: Fix runtime disable on probe
    4eac2cf444af gpio: vf610: mask the gpio irq in system suspend and support wakeup
    9b0f8a9dfdac gpio: vf610: make irq_chip immutable
    1f38ead73f25 tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbols
    e9b4b7256736 kallsyms: Add helper kallsyms_on_each_match_symbol()
    da359f699f59 kallsyms: Reduce the memory occupied by kallsyms_seqs_of_names[]
    3918cada8f1b serial: 8250: omap: convert to modern PM ops
    70a841eb4f99 serial: 8250: omap: Move uart_write() inside PM section
    6df4c9dee011 drm/bridge: ti-sn65dsi86: Associate DSI device lifetime with auxiliary device
    3d57f6ac641c ASoC: pxa: fix a memory leak in probe()
    14a1a7beb3d3 gpio: vf610: set value before the direction to avoid a glitch
    7ec224d98070 platform/x86: asus-wmi: Map 0x2a code, Ignore 0x2b and 0x2c events
    baf191abecf7 platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control
    4186c79c130d platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2e
    52d54f1d4e03 platform/x86: intel-uncore-freq: Conditionally create attribute for read frequency
    8a4b575d00ef platform/surface: platform_profile: Propagate error if profile registration fails
    fec769b9fd25 s390/cio: fix a memleak in css_alloc_subchannel
    7241c2627c14 selftests/ftrace: Add new test case which checks non unique symbol
    324c31b0e0d7 s390/pci: fix iommu bitmap allocation
    f6952655a612 perf: Disallow mis-matched inherited group reads
    908c62800584 USB: serial: option: add Fibocom to DELL custom modem FM101R-GL
    acced163ab6a USB: serial: option: add entry for Sierra EM9191 with new firmware
    1dce40c9e6d8 USB: serial: option: add Telit LE910C4-WWX 0x1035 composition
    59aa39697fc2 HID: input: map battery system charging
    ea0e0473093f KVM: x86/mmu: Stop zapping invalidated TDP MMU roots asynchronously
    3519cee444bc nvme-rdma: do not try to stop unallocated queues
    bec9cb90fee1 nvmet-auth: complete a request only after freeing the dhchap pointers
    0ec655ad659d nvme-pci: add BOGUS_NID for Intel 0a54 device
    2c0b40c310a5 nvme: sanitize metadata bounce buffer for reads
    a54974b0076f nfs42: client needs to strip file mode's suid/sgid bit after ALLOCATE op
    8d69b47443e8 ACPI: irq: Fix incorrect return value in acpi_register_gsi()
    c462bf4ef88a NFSv4.1: fixup use EXCHGID4_FLAG_USE_PNFS_DS for DS server
    ab65424d618b pNFS/flexfiles: Check the layout validity in ff_layout_mirror_prepare_stats
    730bbbbe16b7 pNFS: Fix a hang in nfs4_evict_inode()
    fbd8b28fe4a2 Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
    c4b7b119c56c mmc: core: Capture correct oemid-bits for eMMC cards
    85664ad23f8b mmc: core: sdio: hold retuning if sdio in 1-bit mode
    aaa476a7ad50 mmc: mtk-sd: Use readl_poll_timeout_atomic in msdc_reset_hw
    43f588b82070 mmc: sdhci-pci-gli: fix LPM negotiation so x86/S0ix SoCs can suspend
    55c2428658ec dt-bindings: mmc: sdhci-msm: correct minimum number of clocks
    73915d26b474 mtd: physmap-core: Restore map_rom fallback
    578687563e71 mtd: spinand: micron: correct bitmask for ecc status
    8b2b755a1a52 mtd: rawnand: arasan: Ensure program page operations are successful
    58277212f576 mtd: rawnand: marvell: Ensure program page operations are successful
    250feed792f8 mtd: rawnand: pl353: Ensure program page operations are successful
    58454486132c mtd: rawnand: qcom: Unmap the right resource upon probe failure
    a7f5558ec2db net/smc: fix smc clc failed issue when netdevice not in init_net
    2efcdbef13c9 tcp_bpf: properly release resources on error paths
    c3e70048ac25 selftests: openvswitch: Add version check for pyroute2
    a1a9e57037e0 Bluetooth: hci_event: Fix using memcmp when comparing keys
    758610516f0b ice: Remove redundant pci_enable_pcie_error_reporting()
    ec9bc89a0188 tcp: allow again tcp_disconnect() when threads are waiting
    9dc02f41d54e net/tls: split tls_rx_reader_lock
    76f96854aa25 net/mlx5e: Don't offload internal port if filter device is out device
    107ff0034bbc net/mlx5: Handle fw tracer change ownership event based on MTRC
    0aa1e83a20f1 net/mlx5: E-switch, register event handler before arming the event
    c21bff1c99b6 xfrm6: fix inet6_dev refcount underflow problem
    d91723f6ca3c net: xfrm: skip policies marked as dead while reinserting policies
    df2cc87f2c38 fprobe: Fix to ensure the number of active retprobes is not zero
    f177a579d2e8 fprobe: Add nr_maxactive to specify rethook_node pool size
    0806cb1e6c63 fprobe: Pass entry_data to handlers
    bacf8c749add cpufreq: schedutil: Update next_freq when cpufreq_limits change
    62733bbae12c platform/x86: touchscreen_dmi: Add info for the Positivo C4128B
    60dc7e39dff8 HID: nintendo: reinitialize USB Pro Controller after resuming from suspend
    ef8cdee81ef5 HID: multitouch: Add required quirk for Synaptics 0xcd7e device
    2a2df4f74f37 drm/amd/pm: add unique_id for gc 11.0.3
    1869638a1444 btrfs: error out when reallocating block for defrag using a stale transaction
    f174c8d2c634 btrfs: error when COWing block from a root that is being deleted
    c833f1e28d13 btrfs: error out when COWing block using a stale transaction
    9d99acb6a162 btrfs: fix some -Wmaybe-uninitialized warnings in ioctl.c
    c3657e5fa7b6 drm: panel-orientation-quirks: Add quirk for One Mix 2S
    ffbb01fe9a15 ipv4/fib: send notify when delete source address routes
    52080d6edc9a sky2: Make sure there is at least one frag_addr available
    d63d39e7f95e regulator/core: Revert "fix kobject release warning and memory leak in regulator_register()"
    2353f6476233 wifi: cfg80211: avoid leaking stack data into trace
    2fd88f5632e1 wifi: mac80211: allow transmitting EAPOL frames with tainted key
    9285fea3a22e wifi: mac80211: work around Cisco AP 9115 VHT MPDU length
    dbbb6090c9b2 wifi: cfg80211: Fix 6GHz scan configuration
    a55d53ad5c86 Bluetooth: hci_core: Fix build warnings
    aad0760c2607 Bluetooth: Avoid redundant authentication
    7045675fc916 Bluetooth: btusb: add shutdown function for QCA6174
    7d823a1071c6 HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
    f45752f1eb91 HID: logitech-hidpp: Add Bluetooth ID for the Logitech M720 Triathlon mouse
    e045b6a92129 wifi: iwlwifi: Ensure ack flag is properly cleared.
    eb7ae9ed63c6 wifi: mwifiex: Sanity check tlv_len and tlv_bitmap_len
    b812b3169628 tracing: relax trace_event_eval_update() execution with cond_resched()
    1c859abdd7de ata: libata-eh: Fix compilation warning in ata_eh_link_report()
    e4ce5ce29a1c ata: libata-core: Fix compilation warning in ata_dev_config_ncq()
    5075570a3ede gpio: timberdale: Fix potential deadlock on &tgpio->lock
    d0dab9dd327a overlayfs: set ctime when setting mtime and atime
    6133f63d4d87 i2c: mux: Avoid potential false error message in i2c_mux_add_adapter
    febcad3d32ab btrfs: initialize start_slot in btrfs_log_prealloc_extents
    563853bf3b84 btrfs: return -EUCLEAN for delayed tree ref with a ref count not equals to 1
    8a4e34fe1baa btrfs: prevent transaction block reserve underflow when starting transaction
    c194e184a899 fs-writeback: do not requeue a clean inode having skipped pages
    a7354d90642d ARM: dts: ti: omap: Fix noisy serial with overrun-throttle-ms for mapphone
    1c972cb674e3 pwr-mlxbf: extend Kconfig to include gpio-mlxbf3 dependency
    82a93c65a4e0 iio: adc: ad7192: Correct reference voltage
    ee1d783be55d iio: adc: ad7192: Simplify using devm_regulator_get_enable()
    3b02dbd1cd54 iio: cros_ec: fix an use-after-free in cros_ec_sensors_push_data()
    7bca0af538a4 iio: core: introduce iio_device_{claim|release}_buffer_mode() APIs
    681c8a2c238b serial: 8250_omap: Fix errors with no_console_suspend
    9424a0a45691 serial: 8250: omap: Fix imprecise external abort for omap_8250_pm()
    7067c3cf0823 serial: Reduce spinlocked portion of uart_rs485_config()
    147156b19cd0 serial: Rename uart_change_speed() to uart_change_line_settings()
    e4df8000bdd3 serial: Move uart_change_speed() earlier
    4d382ba65ddb usb: misc: onboard_hub: add support for Microchip USB2412 USB 2.0 hub
    8e939c21f60f usb: misc: onboard_usb_hub: add Genesys Logic GL3523 hub support
    a46907e1f6b6 usb: misc: onboard_usb_hub: add Genesys Logic GL852G hub support
    a2431e7e8bdd usb: misc: onboard_usb_hub: add Genesys Logic GL850G hub support
    5e7275e43292 selftests/mm: fix awk usage in charge_reserved_hugetlb.sh and hugetlb_reparenting_test.sh that may cause error
    673edcffa096 net: check for altname conflicts when changing netdev's netns
    9307f5f59a4a net: fix ifname in netlink ntf during netns move
    b92433493bcc net: avoid UAF on deleted altname
    1cf912054a08 net: pktgen: Fix interface flags printing
    2fb84f52142d net: phy: bcm7xxx: Add missing 16nm EPHY statistics
    e1512ff1ecb8 netfilter: nf_tables: revert do not remove elements if set backend implements .abort
    c2eaa8319f99 netfilter: nf_tables: do not remove elements if set backend implements .abort
    0e8cdddf010b netlink: Correct offload_xstats size
    0697918ec0c0 netfilter: nft_set_rbtree: .deactivate fails if element has expired
    d9d289b78c51 selftests: netfilter: Run nft_audit.sh in its own netns
    0bb15735121d selftests: openvswitch: Catch cases where the tests are killed
    e0914e5a05dd neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section
    d80bc191420a net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve
    ec7393fe63cb bonding: Return pointer to data after pull on skb
    3065fabd17c5 net: dsa: bcm_sf2: Fix possible memory leak in bcm_sf2_mdio_register()
    9c3d276fa866 i40e: prevent crash on probe if hw registers have invalid values
    f0ab9b0922fc octeon_ep: update BQL sent bytes before ringing doorbell
    1a68d440112a net: usb: smsc95xx: Fix an error code in smsc95xx_reset()
    2c6451d665fb ipv4: fib: annotate races around nh->nh_saddr_genid and nh->nh_saddr
    9570bee67850 tun: prevent negative ifindex
    8b9c79c0ecd2 tcp: Fix listen() warning with v4-mapped-v6 address.
    f534a513e8c3 tcp: tsq: relax tcp_small_queue_check() when rtx queue contains a single skb
    4e1f3457e9af tcp: fix excessive TLP and RACK timeouts from HZ rounding
    df5ee37bf29d net: rfkill: gpio: prevent value glitch during probe
    2a6fc637c625 net: ipv6: fix return value check in esp_remove_trailer
    55d794cef353 net: ipv4: fix return value check in esp_remove_trailer
    49b9165ead33 wifi: cfg80211: use system_unbound_wq for wiphy work
    405dbaf04981 xfrm: interface: use DEV_STATS_INC()
    b372db2b8d18 xfrm: fix a data-race in xfrm_gen_index()
    3065fa2cdd7a xfrm: fix a data-race in xfrm_lookup_with_ifid()
    2c7ec9e9ea70 qed: fix LL2 RX buffer allocation
    cc87f4db1417 ASoC: codecs: wcd938x: fix resource leaks on bind errors
    8092aed62375 ASoC: codecs: wcd938x: fix unbind tear down order
    b2974b20e40d ASoC: codecs: wcd938x: drop bogus bind error handling
    569afdedde68 ASoC: codecs: wcd938x-sdw: fix runtime PM imbalance on probe errors
    0d912daab475 ASoC: codecs: wcd938x-sdw: fix use after free on driver unbind
    d496b6638c20 ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq5xxx
    086babbbf8e0 ALSA: hda/realtek: Add quirk for ASUS ROG GU603ZV
    bcf883e244dd ALSA: hda/realtek - Fixed ASUS platform headset Mic issue
    a9519099e323 drm/mediatek: Correctly free sg_table in gem prime vmap
    add2eeda1d6e drm/i915: Retry gtt fault when out of fence registers
    f691ec5a5482 nvmet-tcp: Fix a possible UAF in queue intialization setup
    02322c5177e8 netfilter: nft_payload: fix wrong mac header matching
    36a315c923e0 fs/ntfs3: fix deadlock in mark_as_free_ex
    c1f2638e315b fs/ntfs3: fix panic about slab-out-of-bounds caused by ntfs_list_ea()
    fb80a28fef2b fs/ntfs3: Fix possible null-pointer dereference in hdr_find_e()
    d4ae85b883f3 mptcp: more conservative check for zero probes
    80990979a946 tcp: check mptcp-level constraints for backlog coalescing
    f7e65c03d5bf audit,io_uring: io_uring openat triggers audit reference count underflow
    a556a0df8df0 x86: KVM: SVM: refresh AVIC inhibition in svm_leave_nested()
    54f030271d6b x86: KVM: SVM: add support for Invalid IPI Vector interception
    482565df3508 KVM: x86: Constrain guest-supported xfeatures only at KVM_GET_XSAVE{2}
    20695711e298 x86/fpu: Allow caller to constrain xfeatures when copying to uabi buffer
    57d0639f60f1 x86/sev: Check for user-space IOIO pointing to kernel space
    def94eb9a804 x86/sev: Check IOBM for IOIO exceptions from user-space
    95ff590b8027 x86/sev: Disable MMIO emulation from user mode
    19ffa9b2515a KVM: x86: Mask LVTPC when handling a PMI
    d11cfd1f30d6 regmap: fix NULL deref on lookup
    d7dbdbe3800a nfc: nci: fix possible NULL pointer dereference in send_acknowledge()
    fb8e1608b0e5 btrfs: fix stripe length calculation for non-zoned data chunk allocation
    753ef5ef4c3b net/smc: return the right falback reason when prefix checks fail
    d994502fdc66 ice: reset first in crash dump kernels
    0f8d381adaa9 ice: fix over-shifted variable
    bbc5c96f8214 Bluetooth: avoid memcmp() out of bounds warning
    feffabdd0ace Bluetooth: hci_event: Fix coding style
    99ccf8d79bdd Bluetooth: vhci: Fix race when opening vhci device
    25e5d2883002 Bluetooth: Fix a refcnt underflow problem for hci_conn
    faa6366605d6 Bluetooth: Reject connection with the device which has same BD_ADDR
    8d76a44d2615 Bluetooth: hci_event: Ignore NULL link key
    84523aeeeaf9 igc: Fix race condition in PTP tx code
    ff996d61ddde igc: Add condition for qbv_config_change_errors counter
    cd7b19dc5f3c igc: Add qbv_config_change_errors counter
    88421f474136 igc: Remove reset adapter task for i226 during disable tsn config
    3c3418a58655 igc: enable Qbv configuration for 2nd GCL
    8420fe4dd2d9 igc: remove I226 Qbv BaseTime restriction
    db4677b35047 lib/Kconfig.debug: do not enable DEBUG_PREEMPT by default

(From OE-Core rev: 4ed9491931f90072f054db59e77472c1bc6a8ff4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
f9be9cb838 linux-yocto/6.5: update to v6.5.9
Updating  to the latest korg -stable release that comprises
the following commits:

    d0e42510ae83 Linux 6.5.9
    f879295c92b1 selftests: mptcp: join: correctly check for no RST
    85577dd61990 mptcp: avoid sending RST when closing the initial subflow
    1978b69212ed Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name
    2a3c9d689d6b kbuild: remove old Rust docs output path
    8436370b5a79 docs: rust: update Rust docs output path
    479935768842 net: rfkill: reduce data->mtx scope in rfkill_fop_open
    2ca5210807f1 Bluetooth: hci_sock: fix slab oob read in create_monitor_event
    5a7b9ca3ec2c net: move altnames together with the netdevice
    b583bfcc5a36 efi/unaccepted: Fix soft lockups caused by parallel memory acceptance
    1a19b7394a6c phy: qcom-qmp-combo: initialize PCS_USB registers
    5389ae6d399d phy: qcom-qmp-combo: Square out 8550 POWER_STATE_CONFIG1
    43196ab56d1a phy: qcom-qmp-usb: split PCS_USB init table for sc8280xp and sa8775p
    ddf000488df4 phy: qcom-qmp-usb: initialize PCS_USB registers
    2a90676f997a phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
    da02a53bd04a phy: mapphone-mdm6600: Fix runtime PM for remove
    9f35d798d13d phy: mapphone-mdm6600: Fix runtime disable on probe
    69cd19101248 rust: docs: fix logo replacement
    43f4e8e32b97 docs: Move rustdoc output, cross-reference it
    362a407559f5 powerpc/qspinlock: Fix stale propagated yield_cpu
    164e66ef89d1 powerpc/mm: Allow ARCH_FORCE_MAX_ORDER up to 12
    fefac8c4686f drm/amdgpu: Fix possible null pointer dereference
    935df6cfa78a drm/i915/cx0: Only clear/set the Pipe Reset bit of the PHY Lanes Owned
    fa8361159a12 drm/bridge: ti-sn65dsi86: Associate DSI device lifetime with auxiliary device
    f5d03923f8bd ASoC: cs42l42: Fix missing include of gpio/consumer.h
    2756d8399ea4 ASoC: pxa: fix a memory leak in probe()
    8247e4d5cba5 ASoC: cs35l56: Fix illegal use of init_completion()
    9955bc6e6be9 gpio: vf610: mask the gpio irq in system suspend and support wakeup
    96964c192aa2 gpio: vf610: set value before the direction to avoid a glitch
    204c78f852e6 gpiolib: acpi: Add missing memset(0) to acpi_get_gpiod_from_data()
    0236504746dd rust: error: fix the description for `ECHILD`
    56d2f7796ab8 platform/x86: asus-wmi: Map 0x2a code, Ignore 0x2b and 0x2c events
    119a52c632d7 platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control
    7422c4a4cbd9 platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2e
    a3939c1a96eb platform/x86: msi-ec: Fix the 3rd config
    61ab10af6843 platform/x86: intel-uncore-freq: Conditionally create attribute for read frequency
    18e77f174fc9 platform/surface: platform_profile: Propagate error if profile registration fails
    183aff269bfe s390/cio: fix a memleak in css_alloc_subchannel
    6ccb89a7010e apple-gmux: Hard Code max brightness for MMIO gmux
    efea19a2889c KEYS: asymmetric: Fix sign/verify on pkcs1pad without a hash
    3e25a4bc5023 selftests/ftrace: Add new test case which checks non unique symbol
    d78936d7da27 tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbols
    9a7f36028015 s390/pci: fix iommu bitmap allocation
    20f925d38e1e perf: Disallow mis-matched inherited group reads
    12614cd08c2c thunderbolt: Call tb_switch_put() once DisplayPort bandwidth request is finished
    7cb7903eb22e USB: serial: option: add Fibocom to DELL custom modem FM101R-GL
    d617569fc517 USB: serial: option: add entry for Sierra EM9191 with new firmware
    0b53c322db2f USB: serial: option: add Telit LE910C4-WWX 0x1035 composition
    06a2165f1d36 nvme-rdma: do not try to stop unallocated queues
    7d3641c2ed7a nvmet-auth: complete a request only after freeing the dhchap pointers
    f660a391e54c nvme-auth: use chap->s2 to indicate bidirectional authentication
    38f5ff32ccda nvme-pci: add BOGUS_NID for Intel 0a54 device
    2194ee65b29d nvme: sanitize metadata bounce buffer for reads
    16b99c6d6f34 nfs42: client needs to strip file mode's suid/sgid bit after ALLOCATE op
    8183b745d8cd NFS: Fix potential oops in nfs_inode_remove_request()
    4538b3bdcdef fanotify: limit reporting of event with non-decodeable file handles
    62b7f49d3a78 Revert "accel/ivpu: Use cached buffers for FW loading"
    7d6179ce5b4a perf dlfilter: Fix use of addr_location__exit() in dlfilter__object_code()
    b2c39ae29f2b ACPI: bus: Move acpi_arm_init() to the place of after acpi_ghes_init()
    14189248711e ACPI: irq: Fix incorrect return value in acpi_register_gsi()
    dba32abd641d NFSv4.1: fixup use EXCHGID4_FLAG_USE_PNFS_DS for DS server
    2f1c0be27909 pNFS/flexfiles: Check the layout validity in ff_layout_mirror_prepare_stats
    0026f4f9657d pNFS: Fix a hang in nfs4_evict_inode()
    1e8fa3dd1ddb Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
    914f9b0cbefa pinctrl: qcom: lpass-lpi: fix concurrent register updates
    1e3d8720507e mmc: core: Capture correct oemid-bits for eMMC cards
    67a5bfcf83dc mmc: core: sdio: hold retuning if sdio in 1-bit mode
    1226f14ae02c mmc: core: Fix error propagation for some ioctl commands
    3d83022bf9b9 mmc: mtk-sd: Use readl_poll_timeout_atomic in msdc_reset_hw
    14eb82d52117 mmc: sdhci-pci-gli: fix LPM negotiation so x86/S0ix SoCs can suspend
    b6aa73574dd4 dt-bindings: mmc: sdhci-msm: correct minimum number of clocks
    81f0c091c37a mtd: physmap-core: Restore map_rom fallback
    73df8fcfe785 mtd: spinand: micron: correct bitmask for ecc status
    13d605fb6b2b mtd: rawnand: Ensure the nand chip supports cached reads
    2cdca57606b1 mtd: rawnand: arasan: Ensure program page operations are successful
    d20ec8d2f31c mtd: rawnand: marvell: Ensure program page operations are successful
    6225891e7960 mtd: rawnand: pl353: Ensure program page operations are successful
    42a17fc11578 mtd: rawnand: qcom: Unmap the right resource upon probe failure
    6f3e86a85ab2 tcp_bpf: properly release resources on error paths
    057fabf0ba77 Bluetooth: hci_event: Fix using memcmp when comparing keys
    30fa7600e058 tcp: allow again tcp_disconnect() when threads are waiting
    3d45ae77292e net/tls: split tls_rx_reader_lock
    cb9a6db7a58f net/mlx5e: Fix VF representors reporting zero counters to "ip -s" command
    150de4a3f0c6 net/mlx5e: Don't offload internal port if filter device is out device
    8b7f7beba354 net/mlx5e: Take RTNL lock before triggering netdev notifiers
    f2997256d0d8 net/mlx5e: XDP, Fix XDP_REDIRECT mpwqe page fragment leaks on shutdown
    7bef60897d24 net/mlx5e: RX, Fix page_pool allocation failure recovery for legacy rq
    d630fe115ef9 net/mlx5e: RX, Fix page_pool allocation failure recovery for striding rq
    f0fbcbb70472 net/mlx5: Handle fw tracer change ownership event based on MTRC
    dc426bd9d813 net/mlx5: E-switch, register event handler before arming the event
    36eee433e85e Bluetooth: hci_sync: always check if connection is alive before deleting
    3b9e2e14ba36 Bluetooth: hci_sync: delete CIS in BT_OPEN/CONNECT/BOUND when aborting
    8f3a578a9fef Bluetooth: ISO: Fix invalid context error
    98c78aef17bc Bluetooth: hci_sync: Introduce PTR_UINT/UINT_PTR macros
    d924ba62fe86 Bluetooth: hci_sync: Fix not handling ISO_LINK in hci_abort_conn_sync
    054dfb821c6e io-wq: fully initialize wqe before calling cpuhp_state_add_instance_nocalls()
    c63d66006bdc cpufreq: schedutil: Update next_freq when cpufreq_limits change
    7bfc1d3e3d93 platform/x86: touchscreen_dmi: Add info for the Positivo C4128B
    ef8073649841 HID: Add quirk to ignore the touchscreen battery on HP ENVY 15-eu0556ng
    8db5b5641edb HID: nintendo: reinitialize USB Pro Controller after resuming from suspend
    37640aaacb3f HID: multitouch: Add required quirk for Synaptics 0xcd7e device
    ae02f63718e6 drm/amd/pm: add unique_id for gc 11.0.3
    ac0893f7a48a platform/x86: touchscreen_dmi: Add info for the BUSH Bush Windows tablet
    3149ea595239 btrfs: error out when reallocating block for defrag using a stale transaction
    71e385e8e042 btrfs: error when COWing block from a root that is being deleted
    55a0567f6461 btrfs: error out when COWing block using a stale transaction
    1472a1d9c294 btrfs: fix some -Wmaybe-uninitialized warnings in ioctl.c
    9c91266a003b drm: panel-orientation-quirks: Add quirk for One Mix 2S
    0fd1a377b08e ipv4/fib: send notify when delete source address routes
    7a0ed30fbb66 sky2: Make sure there is at least one frag_addr available
    c2d0245661f6 nfs: decrement nrequests counter before releasing the req
    a6e63b482084 SUNRPC/TLS: Lock the lower_xprt during the tls handshake
    e039d9b24920 SUNRPC: Fail quickly when server does not recognize TLS
    20eb79ccdaa3 regulator/core: Revert "fix kobject release warning and memory leak in regulator_register()"
    42dc95950d7d wifi: cfg80211: avoid leaking stack data into trace
    4d5ea9a1b21d wifi: mac80211: allow transmitting EAPOL frames with tainted key
    96b83be278ee wifi: mac80211: work around Cisco AP 9115 VHT MPDU length
    670894d8905a wifi: cfg80211: Fix 6GHz scan configuration
    5558f4312dca Bluetooth: hci_core: Fix build warnings
    c4ac1d80eaa6 Bluetooth: Avoid redundant authentication
    6dd41ebf7c9e Bluetooth: btusb: add shutdown function for QCA6174
    b095011d0dad HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
    b404427a7be2 HID: logitech-hidpp: Add Bluetooth ID for the Logitech M720 Triathlon mouse
    47a066e866aa rfkill: sync before userspace visibility/changes
    f19e6337aa9b wifi: iwlwifi: Ensure ack flag is properly cleared.
    22d405f5c1e6 wifi: cfg80211: validate AP phy operation before starting it
    84a89ef8acf3 wifi: mwifiex: Sanity check tlv_len and tlv_bitmap_len
    26feeeb70477 tracing: relax trace_event_eval_update() execution with cond_resched()
    72ec64ea0e12 ata: libata-eh: Fix compilation warning in ata_eh_link_report()
    5bd7eba2174c ata: libata-core: Fix compilation warning in ata_dev_config_ncq()
    21a696f3a91d gpio: timberdale: Fix potential deadlock on &tgpio->lock
    6d3ab53ab7f9 accel/ivpu: Don't flood dmesg with VPU ready message
    90647d0da861 overlayfs: set ctime when setting mtime and atime
    2bc65f2ef8da i2c: mux: Avoid potential false error message in i2c_mux_add_adapter
    c3d5ec9fe0ee btrfs: initialize start_slot in btrfs_log_prealloc_extents
    43cd1b16afbe btrfs: return -EUCLEAN for delayed tree ref with a ref count not equals to 1
    417753a1af5b btrfs: prevent transaction block reserve underflow when starting transaction
    e2829b94c62f btrfs: fix race when refilling delayed refs block reserve
    982142576477 fs-writeback: do not requeue a clean inode having skipped pages
    98e737c3e86c arm64: dts: mediatek: Fix "mediatek,merge-mute" and "mediatek,merge-fifo-en" types
    245cade8fc9a ARM: dts: ti: omap: Fix noisy serial with overrun-throttle-ms for mapphone
    94de81b46a83 pwr-mlxbf: extend Kconfig to include gpio-mlxbf3 dependency
    6ebc25a77ed5 iio: light: vcnl4000: Don't power on/off chip in config
    f7a69786fe5e net: check for altname conflicts when changing netdev's netns
    95e76a1f9988 net: fix ifname in netlink ntf during netns move
    d1d14bcc14bc net: avoid UAF on deleted altname
    f3036796e67d net: mdio-mux: fix C45 access returning -EIO after API change
    f53e11725233 net: more strict VIRTIO_NET_HDR_GSO_UDP_L4 validation
    bd076ba9d762 net: pktgen: Fix interface flags printing
    34f15aeeec57 net: phy: bcm7xxx: Add missing 16nm EPHY statistics
    d8bc92ce877b selftests: openvswitch: Add version check for pyroute2
    eeaa4fcd1f72 netfilter: nf_tables: revert do not remove elements if set backend implements .abort
    2ec18541f390 netfilter: nf_tables: do not remove elements if set backend implements .abort
    d6ba6de49c2d nf_tables: fix NULL pointer dereference in nft_inner_init()
    8a544721329e nf_tables: fix NULL pointer dereference in nft_expr_inner_parse()
    60a203111170 netfilter: nf_tables: do not refresh timeout when resetting element
    bfc88a6ce66e netlink: Correct offload_xstats size
    0317bd5e189f netfilter: nft_set_rbtree: .deactivate fails if element has expired
    6d466bfe7bf3 selftests: netfilter: Run nft_audit.sh in its own netns
    79fbd1c110b3 selftests: openvswitch: Fix the ct_tuple for v4
    7b624e1f9d20 selftests: openvswitch: Catch cases where the tests are killed
    4efeda952519 neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section
    a851f8c93533 net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve
    9e8ada3bf27e bonding: Return pointer to data after pull on skb
    b72539b62d24 net: dsa: bcm_sf2: Fix possible memory leak in bcm_sf2_mdio_register()
    bcfb10a8d722 i40e: prevent crash on probe if hw registers have invalid values
    3bbb112aa138 octeon_ep: update BQL sent bytes before ringing doorbell
    48984949e51d net: usb: smsc95xx: Fix an error code in smsc95xx_reset()
    394c8055fd0e ipv4: fib: annotate races around nh->nh_saddr_genid and nh->nh_saddr
    dd6a8651b98f gve: Do not fully free QPL pages on prefill errors
    e6386242b4cd tun: prevent negative ifindex
    50969e0e05d1 docs: fix info about representor identification
    5b62f58c8288 tcp: Fix listen() warning with v4-mapped-v6 address.
    5019131495d5 tcp: tsq: relax tcp_small_queue_check() when rtx queue contains a single skb
    f74b518c4bb7 tcp: fix excessive TLP and RACK timeouts from HZ rounding
    db4cf95a7636 net: rfkill: gpio: prevent value glitch during probe
    c5b46524c367 net: ipv6: fix return value check in esp_remove_trailer
    10b650138379 net: ipv4: fix return value check in esp_remove_trailer
    89ffd5e26ec3 wifi: cfg80211: use system_unbound_wq for wiphy work
    c91f8adb7414 fprobe: Fix to ensure the number of active retprobes is not zero
    e0cc481c1fa0 net: xfrm: skip policies marked as dead while reinserting policies
    071bba39638f xfrm: interface: use DEV_STATS_INC()
    abfe309fc6dc xfrm: fix a data-race in xfrm_gen_index()
    71998cd436fd xfrm6: fix inet6_dev refcount underflow problem
    de0bfd6026c8 xfrm: fix a data-race in xfrm_lookup_with_ifid()
    40aa935e9e6b qed: fix LL2 RX buffer allocation
    27e7ea6c3ad8 ASoC: codecs: wcd938x: fix runtime PM imbalance on remove
    f0c191c0977a ASoC: codecs: wcd938x: fix regulator leaks on probe errors
    3d4a0f272ff2 ASoC: codecs: wcd938x: fix resource leaks on bind errors
    6165999b6f65 ASoC: codecs: wcd938x: fix unbind tear down order
    2324407dbdfa ASoC: codecs: wcd938x: drop bogus bind error handling
    ea75399184ec ASoC: codecs: wcd938x-sdw: fix runtime PM imbalance on probe errors
    fe672874b968 ASoC: codecs: wcd938x-sdw: fix use after free on driver unbind
    15d4d00e27df ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq5xxx
    302a721307ad ALSA: hda/realtek: Add quirk for ASUS ROG GU603ZV
    56d5acef3b3c ALSA: hda/realtek - Fixed ASUS platform headset Mic issue
    ac1084e2b0b4 drm/edid: add 8 bpc quirk to the BenQ GW2765
    6eb4a83e612a drm/nouveau/disp: fix DP capable DSM connectors
    aa01884d6501 drm/mediatek: Correctly free sg_table in gem prime vmap
    2c9e90773fab drm/i915: Retry gtt fault when out of fence registers
    675f0e9bb716 nvmet-tcp: Fix a possible UAF in queue intialization setup
    7053f66e945d io_uring: fix crash with IORING_SETUP_NO_MMAP and invalid SQ ring address
    55b97a33e5aa netfilter: nft_payload: fix wrong mac header matching
    fd9c3d0fb488 Revert "net: wwan: iosm: enable runtime pm support for 7560"
    9312862d7d03 fs/ntfs3: fix deadlock in mark_as_free_ex
    93600a9e5d24 fs/ntfs3: Fix shift-out-of-bounds in ntfs_fill_super
    15db99c9c7c7 fs/ntfs3: fix panic about slab-out-of-bounds caused by ntfs_list_ea()
    ebcabbe6e00f fs/ntfs3: Fix possible null-pointer dereference in hdr_find_e()
    a1f9acb20402 fs/ntfs3: Fix OOB read in ntfs_init_from_boot
    40cadbcba00c mm: slab: Do not create kmalloc caches smaller than arch_slab_minalign()
    a9feea2fee9c selftests: mptcp: join: no RST when rm subflow/addr
    f080044ecc35 mptcp: more conservative check for zero probes
    b454bd5583a7 tcp: check mptcp-level constraints for backlog coalescing
    6952b951ac9b audit,io_uring: io_uring openat triggers audit reference count underflow
    a672863f5645 x86: KVM: SVM: refresh AVIC inhibition in svm_leave_nested()
    7996dc48ba78 x86: KVM: SVM: add support for Invalid IPI Vector interception
    94805f9d3a3f x86: KVM: SVM: always update the x2avic msr interception
    3365b42624bf KVM: x86: Constrain guest-supported xfeatures only at KVM_GET_XSAVE{2}
    3de2cf8d8287 KVM: x86/pmu: Truncate counter value to allowed width on write
    4d16224bcc3b x86/fpu: Allow caller to constrain xfeatures when copying to uabi buffer
    11b975cb82cc x86/sev: Check for user-space IOIO pointing to kernel space
    dcb55b683118 x86/sev: Check IOBM for IOIO exceptions from user-space
    f44a58134e6a x86/sev: Disable MMIO emulation from user mode
    ecaf25786553 KVM: x86: Mask LVTPC when handling a PMI
    9379a0ef1852 regmap: fix NULL deref on lookup
    bb6cacc439dd nfc: nci: fix possible NULL pointer dereference in send_acknowledge()
    e7acd6209f21 btrfs: fix stripe length calculation for non-zoned data chunk allocation
    c60f54a8868d net/smc: return the right falback reason when prefix checks fail
    74dcd829d94f ice: reset first in crash dump kernels
    9e1dd9401dff ice: Fix safe mode when DDP is missing
    df23c09a7441 ice: fix over-shifted variable
    06a5e7bf1cab Bluetooth: hci_conn: Fix modifying handle while aborting
    5b7a24872c2a Bluetooth: avoid memcmp() out of bounds warning
    75d889f69238 Bluetooth: hci_event: Fix coding style
    c4fb6456420a Bluetooth: vhci: Fix race when opening vhci device
    746dbb0fc639 Bluetooth: Fix a refcnt underflow problem for hci_conn
    2f6495fe89e8 Bluetooth: Reject connection with the device which has same BD_ADDR
    0d04728e2743 Bluetooth: hci_event: Ignore NULL link key

(From OE-Core rev: 6470f4c09ccc3e8a692cbaada0b60c0d61845ecc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
962725409e linux-yocto/6.1: update to v6.1.59
Updating  to the latest korg -stable release that comprises
the following commits:

    7d24402875c7 Linux 6.1.59
    eb26fa974c77 ALSA: hda/realtek - Fixed two speaker platform
    54357fcafa73 powerpc/64e: Fix wrong test in __ptep_test_and_clear_young()
    0afcc9d4a16d powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE
    9a995e11b23f dmaengine: mediatek: Fix deadlock caused by synchronize_irq()
    01b19fc6621d dmaengine: idxd: use spin_lock_irqsave before wait_event_lock_irq
    5b784489c815 x86/alternatives: Disable KASAN in apply_alternatives()
    033c0d5101e5 usb: cdnsp: Fixes issue with dequeuing not queued requests
    49fbc18378ae usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
    e5588fb39152 usb: gadget: udc-xilinx: replace memcpy with memcpy_toio
    71d323072af7 usb: typec: ucsi: Clear EVENT_PENDING bit if ucsi_send_command fails
    4d85f1ce6ca4 usb: typec: altmodes/displayport: Signal hpd low when exiting mode
    bc6725085925 counter: microchip-tcb-capture: Fix the use of internal GCLK logic
    0e3953b57735 counter: chrdev: fix getting array extensions
    9f6b391b0486 scsi: ufs: core: Correct clear TM error log
    97306abdeaca pinctrl: avoid unsafe code pattern in find_pinctrl()
    d67b5a2b97b6 dma-buf: add dma_fence_timestamp helper
    cb8f1dd1b73c cgroup: Remove duplicates in cgroup v1 tasks file
    57e7696b7852 usb: typec: ucsi: Use GET_CAPABILITY attributes data to set power supply scope
    062f16c4dd69 nfp: flower: avoid rmmod nfp crash issues
    1db0724a01b5 mctp: perform route lookups under a RCU read-side lock
    60c3e7a00db9 tee: amdtee: fix use-after-free vulnerability in amdtee_close_session
    862aa9818153 Input: goodix - ensure int GPIO is in input for gpio_count == 1 && gpio_int_idx == 0 case
    fbfb99ac5d4a Input: i8042 - add Fujitsu Lifebook E5411 to i8042 quirk table
    9c6a11a05bc7 Input: xpad - add PXN V900 support
    211f71c1c0a7 Input: psmouse - fix fast_reconnect function for PS/2 mode
    2efe67c581a2 Input: powermate - fix use-after-free in powermate_config_complete
    4d6c1845cba2 ceph: fix type promotion bug on 32bit systems
    9f43481c0d85 ceph: fix incorrect revoked caps assert in ceph_fill_file_size()
    086d885c200d libceph: use kernel_connect()
    8ac2689502f9 powerpc/47x: Fix 47x syscall return crash
    434e3522b9bd thunderbolt: Restart XDomain discovery handshake after failure
    5d206a77d48a thunderbolt: Check that lane 1 is in CL0 before enabling lane bonding
    0cf7ee2cc6e6 thunderbolt: Workaround an IOMMU fault on certain systems with Intel Maple Ridge
    23122e0c0e5d mcb: remove is_added flag from mcb_device struct
    125f495fa66a x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs
    386398949765 perf/x86/lbr: Filter vsyscall addresses
    55b51187d257 ksmbd: not allow to open file if delelete on close bit is set
    ac2d5e70fbb1 ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx
    7aac2f2c0036 ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CBA
    f0410917561c drm/amd/display: Don't set dpms_off for seamless boot
    a61d905a8687 drm/amdgpu: add missing NULL check
    0fb82afee55f drm/atomic-helper: relax unregistered connector check
    5bab10496324 arm64: dts: mediatek: mt8195-demo: update and reorder reserved memory regions
    f17e00fb0c9f arm64: dts: mediatek: mt8195-demo: fix the memory size to 8GB
    ff42d244b372 iio: addac: Kconfig: update ad74413r selections
    7d4ff34b6c33 iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
    b166ce527540 iio: pressure: dps310: Adjust Timeout Settings
    e93a7677f0ba iio: admv1013: add mixer_vgate corner cases
    8ab33ae244a9 iio: dac: ad3552r: Correct device IDs
    a6bd5e165382 iio: adc: imx8qxp: Fix address for command buffer registers
    92426b1f5f89 iio: imu: bno055: Fix missing Kconfig dependencies
    187939163b97 iio: pressure: bmp280: Fix NULL pointer exception
    88a204cc0c3d usb: musb: Modify the "HWVers" register address
    fecb419c62c6 usb: musb: Get the musb_qh poniter after musb_giveback
    fb9895ab9533 usb: hub: Guard against accesses to uninitialized BOS descriptors
    1edbf4b2850e usb: cdns3: Modify the return value of cdns_set_active () to void when CONFIG_PM_SLEEP is disabled
    357191036889 usb: dwc3: Soft reset phy on probe for host
    ea9ae69b0e11 net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read
    c5bfe67d9fa1 usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
    f049b10affc5 dmaengine: stm32-mdma: set in_flight_bytes in case CRQA flag is set
    721dbbabf14b dmaengine: stm32-mdma: use Link Address Register to compute residue
    fe15819408bc dmaengine: stm32-dma: fix residue in case of MDMA chaining
    1e3b981a25db dmaengine: stm32-dma: fix stm32_dma_prep_slave_sg in case of MDMA chaining
    8e7dfe9c2ac8 dmaengine: stm32-mdma: abort resume if no ongoing transfer
    0796c534242d tcp: enforce receive buffer memory limits by allowing the tcp window to shrink
    55027c1d99db workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()
    853dda54ba59 nfc: nci: assert requested protocol is valid
    684accd26dff pinctrl: renesas: rzn1: Enable missing PINMUX
    f05befe5c441 net/smc: Fix pos miscalculation in statistics
    e4f2611f07c8 net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
    ab8075d3a4a8 net/mlx5e: Again mutually exclude RX-FCS and RX-port-timestamp
    04753d5ae209 ixgbe: fix crash with empty VF macvlan list
    89be6ad344f7 net/mlx5e: macsec: use update_pn flag instead of PN comparation
    a698195f3a60 net: phy: mscc: macsec: reject PN update requests
    0d86ad068c3e net: macsec: indicate next pn update when offloading
    50bce6a051e8 net: refine debug info in skb_checksum_help()
    30ca523f287e bpf: Fix verifier log for async callback return values
    e1f1e3cc5b3c drm/vmwgfx: fix typo of sizeof argument
    5bfc5a28b53f riscv, bpf: Sign-extend return values
    72ae13954633 riscv, bpf: Factor out emit_call for kernel and bpf context
    30a835460293 xen-netback: use default TX queue size for vifs
    469bef81293f mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type
    217efe32a452 ieee802154: ca8210: Fix a potential UAF in ca8210_probe
    6f6fa8061f75 ravb: Fix use-after-free issue in ravb_tx_timeout_work()
    3f9295ad7f94 ravb: Fix up dma_free_coherent() call in ravb_remove()
    cfe535ee694d arm64: dts: mediatek: mt8195: Set DSU PMU status to fail
    53c6dc71bf35 can: sun4i_can: Only show Kconfig if ARCH_SUNXI is set
    789d125c0ebb can: isotp: isotp_sendmsg(): fix TX state detection and wait behavior
    881050b25b1d net: dsa: qca8k: fix potential MDIO bus conflict when accessing internal PHYs via management frames
    6f901f8448c6 phy: lynx-28g: serialize concurrent phy_set_mode_ext() calls to shared registers
    e173d9a2e548 phy: lynx-28g: lock PHY while performing CDR lock workaround
    e52c81a9e370 phy: lynx-28g: cancel the CDR check work item on the remove path
    5f9d0edff203 drm/msm/dp: Add newlines to debug printks
    61b595ede9e3 drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow
    3979a9e572a3 drm/msm/dsi: fix irq_of_parse_and_map() error checking
    3de09684defa drm/msm/dsi: skip the wait for video mode done if not applicable
    82cb81ea9688 drm/msm/dp: do not reinitialize phy unless retry during link training
    6c18c386fd13 pinctrl: nuvoton: wpcm450: fix out of bounds write
    37157830a97f ALSA: hda/realtek - ALC287 merge RTK codec with CS CS35L41 AMP
    171b791cc231 ALSA: hda/realtek - ALC287 I2S speaker platform support
    a8b85e47e311 ALSA: hda/realtek: Add quirk for mute LEDs on HP ENVY x360 15-eu0xxx
    e225f67d49ff ALSA: hda/realtek: Add quirk for HP Victus 16-d1xxx to enable mute LED
    8f7bb2b77bc4 ASoC: fsl_sai: Don't disable bitclock for i.MX8MP
    aacc508dd37d ASoC: fsl_sai: MCLK bind with TX/RX enable bit
    8276d65cf7ad ASoC: Use of_property_read_bool() for boolean properties
    8611606c765d ASoC: Intel: soc-acpi: Add entry for sof_es8336 in MTL match table.
    4a250b349287 ASoC: Intel: sof_sdw: add support for SKU 0B14
    307bbbbb940d ASoC: Intel: soc-acpi: Add entry for HDMI_In capture support in MTL match table
    988fba279db0 ASoC: simple-card-utils: fixup simple_util_startup() error handling
    e3353ad7db52 ASoC: SOF: amd: fix for firmware reload failure after playback
    2aa53213b661 ALSA: hda/realtek: Change model for Intel RVP board
    4cb0984557b9 ALSA: usb-audio: Fix microphone sound on Nexigo webcam.
    0f44423e355e ALSA: usb-audio: Fix microphone sound on Opencomm2 Headset
    3746b878efde KEYS: trusted: Remove redundant static calls usage
    b86ac71abbc0 irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source
    d6844187507a dt-bindings: interrupt-controller: renesas,rzg2l-irqc: Update description for '#interrupt-cells' property
    f4eaaa30d007 arm64: dts: qcom: sm8150: extend the size of the PDC resource
    020958c946c0 net: prevent address rewrite in kernel_bind()
    8fcdf7da9d4b ata: libata-scsi: Disable scsi device manage_system_start_stop
    abc918831a08 ASoC: amd: yc: Fix non-functional mic on Lenovo 82YM
    12a820a9923c quota: Fix slow quotaoff
    fd72ac9556a4 HID: logitech-hidpp: Fix kernel crash on receiver USB disconnect
    87aa3ca49746 scsi: Do not rescan devices with a suspended queue
    342f321af833 platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent section mismatch warning
    af21c9119a37 platform/x86: think-lmi: Fix reference leak
    1c8f6c7b8375 perf/arm-cmn: Fix the unhandled overflow status of counter 4 to 7
    3aade96e0c93 RDMA/cxgb4: Check skb value for failure to allocate
    f175665385fe drm/i915: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval
    f2060a3a5961 mptcp: fix delegated action races
    b67d7b1bfc46 net: mana: Fix TX CQE error handling
    adc4d740ad9e Linux 6.1.58
    38fd36728f40 lib/test_meminit: fix off-by-one error in test_pages()
    ff74bdc83847 Revert "NFS: Fix error handling for O_DIRECT write scheduling"
    b0cee281c433 Revert "NFS: Fix O_DIRECT locking issues"
    ebf5841ac1ed Revert "NFS: More O_DIRECT accounting fixes for error paths"
    506cf335d95a Revert "NFS: Use the correct commit info in nfs_join_page_group()"
    e8db8b55815d Revert "NFS: More fixes for nfs_direct_write_reschedule_io()"

(From OE-Core rev: dfe38212221373737ac8a8a243976bd627524eea)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Bruce Ashfield
59b7401012 linux-yocto/6.5: update to v6.5.8
Updating  to the latest korg -stable release that comprises
the following commits:

    8bbe7c640d76 Linux 6.5.8
    46fd4e1547f9 ALSA: hda/realtek - Fixed two speaker platform
    ae0c44ce454d ovl: fix regression in showing lowerdir mount option
    a8187a9ca253 ovl: make use of ->layers safe in rcu pathwalk
    58240ade86f2 ovl: fix regression in parsing of mount options with escaped comma
    cd86498418ed fs: factor out vfs_parse_monolithic_sep() helper
    87be623442a8 fs: Fix kernel-doc warnings
    9baee1becd64 powerpc/64e: Fix wrong test in __ptep_test_and_clear_young()
    909c0bfa08d5 powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE
    7b126f4402c2 dmaengine: mediatek: Fix deadlock caused by synchronize_irq()
    c6695a0ad6fb dmaengine: idxd: use spin_lock_irqsave before wait_event_lock_irq
    0c1773bf8f38 Revert "x86/smp: Put CPUs into INIT on shutdown if possible"
    a9b0e9e65106 usb: misc: onboard_hub: add support for Microchip USB2412 USB 2.0 hub
    91a9aaad5d8c usb: typec: qcom: Update the logic of regulator enable and disable
    f0c0314aac42 usb: cdnsp: Fixes issue with dequeuing not queued requests
    4bf1a9d20c65 usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
    098bc0565250 usb: gadget: udc-xilinx: replace memcpy with memcpy_toio
    3039b7d5ebb7 usb: typec: ucsi: Clear EVENT_PENDING bit if ucsi_send_command fails
    522b7d736575 usb: typec: altmodes/displayport: Signal hpd low when exiting mode
    d386632939e0 usb: typec: ucsi: Fix missing link removal
    d68c74f3b2db RISC-V: Fix wrong use of CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK
    3431cfe773ac riscv: Remove duplicate objcopy flag
    fdd3ceb0001d coresight: Fix run time warnings while reusing ETR buffer
    8c4f6d1a8e4d counter: microchip-tcb-capture: Fix the use of internal GCLK logic
    837b24646cfd counter: chrdev: fix getting array extensions
    6a4a432e616f riscv: Only consider swbp/ss handlers for correct privileged mode
    27f69c85f445 scsi: ufs: core: Correct clear TM error log
    d2180b58a8a1 pinctrl: avoid unsafe code pattern in find_pinctrl()
    a473943294f1 dma-buf: add dma_fence_timestamp helper
    da9de0b714d5 cgroup: Remove duplicates in cgroup v1 tasks file
    c3239301ef7a usb: typec: ucsi: Use GET_CAPABILITY attributes data to set power supply scope
    92437349c0f0 power: supply: qcom_battmgr: fix enable request endianness
    fbda26ff92e0 power: supply: qcom_battmgr: fix battery_id type
    704e0e2a0c60 can: sja1000: Always restart the Tx queue after an overrun
    fc9ea80fa4e9 nfp: flower: avoid rmmod nfp crash issues
    f7c949fa298f block: Don't invalidate pagecache for invalid falloc modes
    2405f64a95a7 mctp: perform route lookups under a RCU read-side lock
    1c95574350cd tee: amdtee: fix use-after-free vulnerability in amdtee_close_session
    b8f18fa39cec Input: goodix - ensure int GPIO is in input for gpio_count == 1 && gpio_int_idx == 0 case
    eb2b6503a6ff Input: xpad - add HyperX Clutch Gladiate Support
    8a2c1970a178 Input: i8042 - add Fujitsu Lifebook E5411 to i8042 quirk table
    9832f2274abe Input: xpad - add PXN V900 support
    eb12a7d348ed Input: psmouse - fix fast_reconnect function for PS/2 mode
    e528b1b9d607 Input: powermate - fix use-after-free in powermate_config_complete
    093f82c2b56b ceph: fix type promotion bug on 32bit systems
    afe8dcef4b7a ceph: fix incorrect revoked caps assert in ceph_fill_file_size()
    707ee6525987 libceph: use kernel_connect()
    70f6756ad96d powerpc/47x: Fix 47x syscall return crash
    e28ca99f2f9c powerpc/pseries: Fix STK_PARAM access in the hcall tracing code
    b6ab7f19a44f thunderbolt: Restart XDomain discovery handshake after failure
    9828a7fa65a6 thunderbolt: Correct TMU mode initialization from hardware
    7525edf6aca5 thunderbolt: Check that lane 1 is in CL0 before enabling lane bonding
    5e9e8b6448f4 thunderbolt: Workaround an IOMMU fault on certain systems with Intel Maple Ridge
    3953f7ca6521 mcb: remove is_added flag from mcb_device struct
    cd287cc208df x86/alternatives: Disable KASAN in apply_alternatives()
    12f8e4d71d99 x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs
    f71edacbd4f9 perf/x86/lbr: Filter vsyscall addresses
    f40723f20839 ksmbd: not allow to open file if delelete on close bit is set
    77d616b2b4ed binder: fix memory leaks of spam and pending work
    8459746f889d serial: core: Fix checks for tx runtime PM state
    02c7efd75c61 serial: 8250_omap: Fix errors with no_console_suspend
    031ddb94d4ef serial: Reduce spinlocked portion of uart_rs485_config()
    a20d0faed2f4 ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx
    351a16dff55b ACPI: resource: Add TongFang GM6BGEQ, GM6BG5Q and GM6BG0Q to irq1_edge_low_force_override[]
    e7a8ce872214 ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CBA
    1474b39f9617 drm/vmwgfx: Keep a gem reference to user bos in surfaces
    65059dc00a79 drm/amd/display: Don't set dpms_off for seamless boot
    ea7596e54ba9 drm/amdgpu: add missing NULL check
    d8bb7861a764 drm/atomic-helper: relax unregistered connector check
    7e34cec74ee1 drm/tiny: correctly print `struct resource *` on error
    8abd2793db0f drm: Do not overrun array in drm_gem_get_pages()
    5ecce079d8ef arm64: dts: mediatek: mt8195-demo: update and reorder reserved memory regions
    b2b2706b149d arm64: dts: mediatek: mt8195-demo: fix the memory size to 8GB
    a4442f43569c media: subdev: Don't report V4L2_SUBDEV_CAP_STREAMS when the streams API is disabled
    bcf670d1f6b3 iio: addac: Kconfig: update ad74413r selections
    5ad7badddf52 iio: adc: ad7192: Correct reference voltage
    96e1752330df iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
    a934a1a2b5ac iio: pressure: dps310: Adjust Timeout Settings
    727115b7c668 iio: admv1013: add mixer_vgate corner cases
    197f50f9699d iio: dac: ad3552r: Correct device IDs
    7488449fce1b iio: adc: imx8qxp: Fix address for command buffer registers
    833423930050 iio: cros_ec: fix an use-after-free in cros_ec_sensors_push_data()
    8a80ebbdc490 iio: imu: bno055: Fix missing Kconfig dependencies
    a130c5dacfe4 iio: pressure: bmp280: Fix NULL pointer exception
    4c7f9ce4e1ed usb: musb: Modify the "HWVers" register address
    9f13422e080b usb: musb: Get the musb_qh poniter after musb_giveback
    136f69a04e71 usb: hub: Guard against accesses to uninitialized BOS descriptors
    d33756339fe2 usb: cdns3: Modify the return value of cdns_set_active () to void when CONFIG_PM_SLEEP is disabled
    c39cb50e1b8a usb: dwc3: Soft reset phy on probe for host
    92d68868386d net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read
    41d00825cbff xhci: Preserve RsvdP bits in ERSTBA register correctly
    c247dfde7e40 xhci: Clear EHB bit only at end of interrupt handler
    c4ea3c85a64a xhci: track port suspend state correctly in unsuccessful resume cases
    acf5731ea0de usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
    86b3ba53b81d dmaengine: stm32-mdma: set in_flight_bytes in case CRQA flag is set
    70641b112b5b dmaengine: stm32-mdma: use Link Address Register to compute residue
    02544433d143 dmaengine: stm32-dma: fix residue in case of MDMA chaining
    fa03b3920caa dmaengine: stm32-dma: fix stm32_dma_prep_slave_sg in case of MDMA chaining
    f862dcfa849f dmaengine: stm32-mdma: abort resume if no ongoing transfer
    56f16bda27aa ovl: temporarily disable appending lowedirs
    8eaa7650056d riscv: signal: fix sigaltstack frame size checking
    c24f3b78692d workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()
    63ca6c516fe6 rswitch: Fix imbalance phy_power_off() calling
    8911d3485cec rswitch: Fix renesas_eth_sw_remove() implementation
    7164d177bd16 octeontx2-pf: Fix page pool frag allocation warning
    6584eba7688d nfc: nci: assert requested protocol is valid
    843e69515b04 af_packet: Fix fortified memcpy() without flex array.
    84a6f89acb77 pinctrl: renesas: rzn1: Enable missing PINMUX
    e8dc72cb8312 net: tcp: fix crashes trying to free half-baked MTU probes
    806f8e051903 net/smc: Fix pos miscalculation in statistics
    d1af8a39cf83 net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
    cf5b41a81fee s390/bpf: Fix unwinding past the trampoline
    beb59c1a3296 s390/bpf: Fix clobbering the caller's backchain in the trampoline
    96217b5df8ae net/mlx5e: Again mutually exclude RX-FCS and RX-port-timestamp
    915a812423ed net/smc: Fix dependency of SMC on ISM
    9c22611716b1 ixgbe: fix crash with empty VF macvlan list
    78004df64a76 drm/panel: boe-tv101wum-nl6: Completely pull GPW to VGL before TP term
    946b595277a7 net/mlx5e: macsec: use update_pn flag instead of PN comparation
    5bf8bd49315a net: phy: mscc: macsec: reject PN update requests
    f74aa471ee76 net: macsec: indicate next pn update when offloading
    e0a9630ad1d5 octeontx2-pf: mcs: update PN only when update_pn is true
    90baaf9ced76 net: refine debug info in skb_checksum_help()
    7067ebaf98a2 bpf: Fix verifier log for async callback return values
    67394149d7c4 drm/vmwgfx: fix typo of sizeof argument
    50c28a3bfe6e xdp: Fix zero-size allocation warning in xskq_create()
    5b01f4c71a03 riscv, bpf: Track both a0 (RISC-V ABI) and a5 (BPF) return values
    7f6ef07f8ab5 riscv, bpf: Sign-extend return values
    82d52f300e48 xen-netback: use default TX queue size for vifs
    a0cde56933f2 mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type
    becf5c147198 ieee802154: ca8210: Fix a potential UAF in ca8210_probe
    105abd68ad8f ravb: Fix use-after-free issue in ravb_tx_timeout_work()
    b3b8f0ea74cf ravb: Fix up dma_free_coherent() call in ravb_remove()
    f776656844b1 devlink: Hold devlink lock on health reporter dump get
    6dd5b1a37a73 arm64: dts: mediatek: mt8195: Set DSU PMU status to fail
    340e23477773 arm64: dts: mediatek: fix t-phy unit name
    2463f7061ce6 can: sun4i_can: Only show Kconfig if ARCH_SUNXI is set
    ed545e8ccc85 can: isotp: isotp_sendmsg(): fix TX state detection and wait behavior
    96c8f1141055 net: dsa: qca8k: fix potential MDIO bus conflict when accessing internal PHYs via management frames
    9515695b6a9d net: dsa: qca8k: fix regmap bulk read/write methods on big endian systems
    c2d7c79898b4 phy: lynx-28g: serialize concurrent phy_set_mode_ext() calls to shared registers
    1c68986b6950 phy: lynx-28g: lock PHY while performing CDR lock workaround
    3dea2f73f171 phy: lynx-28g: cancel the CDR check work item on the remove path
    ca98df1efda0 drm/msm/dpu: fail dpu_plane_atomic_check() based on mdp clk limits
    91f31c14f299 drm/msm/dp: Add newlines to debug printks
    4c90ae0ef321 drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow
    06b722ee3141 drm/msm/dsi: fix irq_of_parse_and_map() error checking
    66b54db0e8a4 drm/msm/dsi: skip the wait for video mode done if not applicable
    b945326b569f drm/msm/dp: do not reinitialize phy unless retry during link training
    098c06b6903c pinctrl: starfive: jh7110: Fix failure to set irq after CONFIG_PM is enabled
    c9d7cac0fd27 pinctrl: nuvoton: wpcm450: fix out of bounds write
    44ec7bd0bd83 ALSA: hda/realtek - ALC287 merge RTK codec with CS CS35L41 AMP
    4654dd54a0fa ALSA: hda/realtek - ALC287 I2S speaker platform support
    92e54a0648dd ALSA: hda/realtek: Add quirk for mute LEDs on HP ENVY x360 15-eu0xxx
    b94e563ae542 ALSA: hda/realtek: Add quirk for HP Victus 16-d1xxx to enable mute LED
    8cdbfcefbb37 ASoC: Intel: soc-acpi: Add entry for sof_es8336 in MTL match table.
    a2511b24670a ASoC: Intel: sof_sdw: add support for SKU 0B14
    3aa5bd4b8a2e ASoC: fsl_sai: Don't disable bitclock for i.MX8MP
    0cee8c73ea35 ASoC: Intel: soc-acpi: Add entry for HDMI_In capture support in MTL match table
    934c889a945b ASoC: Intel: soc-acpi: fix Dell SKU 0B34
    838cf77c7449 ASoC: simple-card-utils: fixup simple_util_startup() error handling
    ba1e7575a0bb ASoC: SOF: amd: fix for firmware reload failure after playback
    8380e411ab73 ALSA: hda/realtek: Change model for Intel RVP board
    9da0985b9f57 ALSA: hda: cs35l41: Cleanup and fix double free in firmware request
    235805a7a788 ALSA: usb-audio: Fix microphone sound on Nexigo webcam.
    f64401dec39c ALSA: usb-audio: Fix microphone sound on Opencomm2 Headset
    8a8ca58b89d5 KEYS: trusted: Remove redundant static calls usage
    b50b1d7e76aa irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source
    380aa2dfb419 dt-bindings: interrupt-controller: renesas,rzg2l-irqc: Update description for '#interrupt-cells' property
    862e2b015bbd arm64: dts: qcom: sm8150: extend the size of the PDC resource
    2f89f1515e13 net: prevent address rewrite in kernel_bind()
    bbbf096ea227 ata: libata-scsi: Disable scsi device manage_system_start_stop
    567558b4350e ASoC: hdmi-codec: Fix broken channel map reporting
    a70aec77d89b ASoC: amd: yc: Fix non-functional mic on Lenovo 82YM
    59073dfbc666 dm crypt: Fix reqsize in crypt_iv_eboiv_gen
    2a1ddddba654 quota: Fix slow quotaoff
    f7b2c7d9831a HID: logitech-hidpp: Fix kernel crash on receiver USB disconnect
    705c1eb72b74 ata: pata_parport: implement set_devctl
    cbb170a68ca4 ata: pata_parport: fix pata_parport_devchk
    e958cc021262 scsi: Do not rescan devices with a suspended queue
    4e76d4585daf drm/amd/display: apply edge-case DISPCLK WDIVIDER changes to master OTG pipes only
    f4b4b7448ccc drm/amd/display: implement pipe type definition and adding accessors
    50f84c0b1e2c media: dt-bindings: imx7-csi: Make power-domains not required for imx8mq
    fe76d3e58a81 platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent section mismatch warning
    c8647e25346e drm/amdgpu: Fix a memory leak
    fdae43a5b6ce cpuidle, ACPI: Evaluate LPI arch_flags for broadcast timer
    1d61ce0a321f drm/i915: Register engines early to avoid type confusion
    c6e3023579de platform/x86: think-lmi: Fix reference leak
    1cd61412f98d perf/arm-cmn: Fix the unhandled overflow status of counter 4 to 7
    7e879676635c RDMA/cxgb4: Check skb value for failure to allocate
    9dcc8f4dbe14 net: stmmac: remove unneeded stmmac_poll_controller

(From OE-Core rev: 76b9b8fde13c5345f0b4735c230f1f19133bf337)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Richard Purdie
36cb71bf95 libdnf: Fix arm arch mapping issues for qemuarmv5
qemuarmv5 currently fails with:

$ dnf --help
Error: Incorrect or unknown "arch": armv5hl

Fix this by removing the code in libdnf which is trying to be too
clever, we don't need this mappings given the way OE configures rpm.

(From OE-Core rev: 7d620c754c92da9dcc56a0a7ec9f3355c2ba733e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:57:26 +00:00
Richard Purdie
e81981e317 layer.conf: Switch layer to nanbield series only
(From OE-Core rev: e4d2bea88121f3600d1305fa2000def014e15280)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 16:26:02 +00:00
Richard Purdie
c6276d8e57 oeqa/selftest/sstatetests: Fix intermitttent errors and improve performance
You could reproduce an error in this test with:

bitbake core-image-minimal
bitbake tzcode-native -c cleansstate
oe-selftest -r sstatetests.SStatePrintdiff.test_image_minimal_vs_base_do_configure

since tzcode-native isn't needed once tzdata is available and isn't rebuilt
by "bitbake core-image-minimal" if it is missig. tzdata is allarch so if tzdata is
built on an x86 host, a aarch64 build machine would never build tzcode-native with
this set of calls.

Add a --runall option to the initial bitbake invocation to force these things to be
created if they're missing.

This explains why some failures were occurring on the infrastructure. With that issue
fixed, drop the hash mode change since I believe this fixes that issue. That
restriction was hurting performance, this should allow sstate reuse for the test
and improve the speed of it.

(From OE-Core rev: 8f03ac39e7fe21f3d6eca35b12b203a73a15285d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 11:45:37 +00:00
Richard Purdie
6f427822e8 bitbake: runqueue: Fix errors when using -S printdiff
When running printdiff, messages like:

"Can't find a task we're supposed to have written out?"

might be shown. This happens when hashequivalence is enabled and is due
to the use of "hash" when "unihash" should be used (which defaults back
to hash). Changing this fixed various errors oe-selftest highlighted.

Also print the task ID when erroring about a missing task as it aids
debugging.

(Bitbake rev: e7783bbe0559abb91f5038cf83575c0f25138af2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 11:28:16 +00:00
Richard Purdie
a4734d6b6a bitbake: runqueue: Fix runall option for setscene tasks
If --runall is used with setscene tasks, it will still skip them if it
can. By marking the tasks as targets, this avoids that skipping
and means --runall deploy_source_date_epoch works as expected for
example.

(Bitbake rev: 8c6cd1e8dd224bc1cc92736cbb7e113fd1fb5aae)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-09 11:28:16 +00:00
Marlon Rodriguez Garcia
6eb23b311d bitbake: toaster: replace deprecated tags ifequal and ifnotequal
Tags ifequal and ifnotequal are deprecated and were removed on version 3.1
https://django.readthedocs.io/en/stable/releases/3.1.html#deprecated-features-3-1

(Bitbake rev: d6dd2d091c18a888a237d986ae2bd6dae068be5a)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 18:59:02 +00:00
Ross Burton
3d2d75119c Revert "xserver-xorg: Fix for CVE-2023-5574"
These patches are not yet merged (so they're not backports) because they
have outstanding (undescribed) issues[1]. As this issue only affects
Xvfb and is a use-after-free with only a hypothetical attack, revert the
patches until the compromise is understood.

This reverts commit a193c0224a.

[1] https://lists.x.org/archives/xorg-announce/2023-October/003430.html

(From OE-Core rev: 1ed1c4f48203a8366519b40a094c7d9719c3ae32)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 16:42:49 +00:00
Ross Burton
832384fdc6 poky-tiny: fix PACKAGE_EXCLUDE
poky-tiny does a PACKAGE_EXCLUDE on shadow-base as the kernel doesn't
support multiple users.  However it does this by assigning to an
override, which makes it impossible for images or machines to extend
PACKAGE_EXCLUDE with their own exclusions.

(From meta-yocto rev: 5d86975934b46a64b36f60c097bce7a577c1b8b0)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 11:00:09 +00:00
Khem Raj
bafd53ec56 systemd: Make libnss-mymachines conditional upon packageconfig
nss-mymachines packageconfig controls this features therefore add this
dependency only when it is enabled.

Fixes
    ERROR: systemd-1_254.4-r0 do_package_qa: QA Issue: systemd-container rdepends on libnss-mymachines, but it isn't a build dependency? [build-deps]

(From OE-Core rev: 40f2e5776ebf6cf93694d05189488e8448767b3a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Florian Wickert <fw@ferncast.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 11:00:09 +00:00
Alexander Kanavin
e946b17cf1 populate_sdk_ext: split copy_buildsystem() into logical steps defined as functions
copy_buildsystem() has become far too large and needs to be split
into shorter and more understandable pieces; some of those
pieces will be reused for the purpose of providing esdk mode
directly from a plain yocto build.

(From OE-Core rev: a163b8f339f32bc9e3865736af321190bc89c61b)

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>
2023-11-08 11:00:09 +00:00
Wang Mingyu
dbded89a7f python3-cryptography(-vectors): upgrade 41.0.4 -> 41.0.5
Changelog:
=============
Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.1.4.
Added a function to support an upcoming pyOpenSSL release.

(From OE-Core rev: 46dd3a06bdb0784765749c5c0939a26dccee770c)

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>
2023-11-08 11:00:09 +00:00
Vijay Anusuri
a193c0224a xserver-xorg: Fix for CVE-2023-5574
Upstream-Status: Backport
[1953f460b9
&
b6fe3f924a
&
ab2c58ba47]

(From OE-Core rev: 9291d7e7aca8ff93d036770e4fb42901c3ea1d60)

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 11:00:09 +00:00
Trevor Gamblin
1c135f1d7a patchtest: rework license checksum tests
Remove the pretest_lic_files_chksum_modified_not_mentioned test entirely
and use pyparsing in test_lic_files_chksum_modified_not_mentioned to
scan the patches for lines starting with either "+LIC_FILES_CHKSUM" or
"-LIC_FILES_CHKSUM".  If either is found but no "License-Update" tag is
present in the commit, fail the test.

(From OE-Core rev: 8e1bda0eb225ada22fdf5990edfec512be1d6629)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 11:00:09 +00:00
Richard Purdie
b728951085 debianutils: Fix warnings
In the recent upgrade, which started to be installed as which.debianutils and the man
page was also renamed. Update the recipe to remove the now unneeded man page alternatives
and rename the binary to match what the code expects. This avoids warnings like:

WARNING: debianutils-5.14-r0 do_package: debianutils: alternative target (/usr/share/man/man1/which.1 or /usr/share/man/man1/which.1.debianutils) does not exist, skipping...
WARNING: debianutils-5.14-r0 do_package: debianutils: NOT adding alternative provide /usr/share/man/man1/which.1: /usr/share/man/man1/which.1.debianutils does not exist
WARNING: debianutils-5.14-r0 do_package: debianutils: alt_link == alt_target: /usr/share/man/man1/which.1 == /usr/share/man/man1/which.1

(From OE-Core rev: 9f8d3438530abceabdfd03d2ff2157bb79e4e034)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 10:56:35 +00:00
Richard Purdie
b177f37728 package/package_write: Improve packagedata code location
Move the do_packagedata dependencies into the package_write codeblocks
themselves. Also drop the dependency for the tar package backend which
was dropped.

(From OE-Core rev: 372a7f2e3c5c03da044e576e1501e86f8938f5e6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 10:56:35 +00:00
Richard Purdie
7e0e0ef000 go-vendor: Minor style tweaks
Drop a len() usage that isn't needed, drop a comment that isn't needed
and use bb.fatal() to end the task with an error.

(From OE-Core rev: 1b9cf9cc2a52902e1181d2dac2ba9f2c3172835a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 10:56:35 +00:00
Richard Purdie
d90fb73db5 insane: Move unpack tests to do_recipe_qa
The SRC_URI tests are a better fit for the new do_recipe_qa task, move them
there.

(From OE-Core rev: 5afde8e24e74c7b73c1da312cca65b3277a6c355)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 10:56:35 +00:00
Richard Purdie
3d35d09ff2 sstate: Ensure sstate searches update file mtime
Commands like "bitbake XXX -S printdiff" search for sstate files but don't download
them. This means that local files aren't touched as the download code would do, meaning
the sstate cleanup scripts can delete them. This can then lead to obtuse build failures.

Have the search code touch local files in the same way as the main code paths would to
avoid these files disappearing.

Move the function to a common touch() function in lib/oe instead of duplicating code.

(From OE-Core rev: a27fc0bd5706ab5b9c68a0271fcf57377a678cdf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-08 10:56:35 +00:00
Michael Opdenacker
6806bd2349 migration-guides: fix empty sections
(From yocto-docs rev: 897d5017eae6b3af2d5d489fc4e0915d9ce21458)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Michael Opdenacker
0593fd3416 ref-manual: classes: explain cml1 class name
(From yocto-docs rev: 0ee4b7417087c105a4419b316c6b2c195c343f82)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
9f966b15f8 migration-4.3: additional migration items
Add the following:

* Removed recipes
* One removed class
* Output file name changes
* Versioning changes
* tunctl removal

(From yocto-docs rev: 72114088bc9be184aab7b55087ea97a32a65cd6d)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
99926a4052 migration-4.3: adjustments to existing text
* Reword the layername side-effects commentary to be a bit more readable
* Extend edgerouter removal description
* Correct capitalisation of systemd
* For QEMU_USE_SLIRP, specify what to use instead, and adjust the
  following list item to use the same style
* Extend statement on -crossssdk / MLPREFIX change to indicate what
  needs to be done

(From yocto-docs rev: bfc49b59b6cd905cef0294792f05661b36181a6e)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
fe98b96022 migration-4.3: remove some unnecessary items
Remove some items from the 4.3 migration guide:

* The PERLVERSION and PERLARCH items are already mentioned under the
  removed variables section
* The jsDelivr item is interesting, but it isn't a backwards
  compatibility issue that the user would need to take action to
  resolve, and we already cover it in the release notes.

(From yocto-docs rev: c72d190cd8ccc471a0b93b90b272c95cd57ef3dc)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
042610fe4a release-notes-4.3: feature additions
Some additional feature items from combing through commits (not 100%
complete yet.)

(From yocto-docs rev: 05c13cf0964a892a38531e3cfac68687278ee601)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
610a4030ba release-notes-4.3: move new classes to Rust section
These are both Rust-related, let's move them the Rust section since they
are more notable there.

(From yocto-docs rev: 0510136abf8868d510125bae7f4096342bb94ec0)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
10e7cdea5b release-notes-4.3: remove the Distribution section
This section doesn't make a lot of sense to separate out. The SPDX
change is now no longer Poky-specific, and the poky-altcfg usrmerge
change is not really notable given that poky-altcfg is not widely used
outside of our testing and also itself selects systemd as INIT_MANAGER
and thus requires usrmerge anyway (as noted elsewhere).

(From yocto-docs rev: 234379c81db810c1fc3b860d51a59c200e97b2ca)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
dee87ea100 release-notes-4.3: add CVEs, recipe upgrades, license changes, contributors
Add the list of CVE fixes, recipe upgrades (from commits since layer
index version comparison not currently working), license changes and
contributor list.

(From yocto-docs rev: 32bc3d603894ddefb4766fdf4e10442f1aa75216)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
268710be0a release-notes-4.3: tweaks to existing text
A few grammar tweaks.

(From yocto-docs rev: a3e1258be27a08147b062603bd1b6526b26e9516)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:28 +00:00
Paul Eggleton
66fa00b224 release-notes-4.3: fix some typos
(From yocto-docs rev: 3c98d2a1bc023aed75261ed7f4e18977b587d2f0)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Paul Eggleton
7a026c41aa ref-manual: remove semicolons from *PROCESS_COMMAND variables
In nanbield these are no longer needed - spaces are sufficient.
The code still handles any semicolons (replacing them with spaces before
interpreting the value), but let's avoid people adding them from now on
in case we decide to change that in future.

(From yocto-docs rev: 2947f6309f86cdf5322a39d4420e77431a8e3572)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Paul Eggleton
27949b33b7 ref-manual: update SDK_NAME variable documentation
Update for changes in nanbield. Note that I am documenting what is set
by poky.conf here (since this is Yocto Project documentation), which is
slightly different from what is done in meta/conf/bitbake.conf.

(From yocto-docs rev: 9764cb9e19788eb1caea0d2e95fbe7a5c19887d4)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Paul Eggleton
736705804b Remove references to apm in MACHINE_FEATURES
apm is no longer supported in nanbield.

(From yocto-docs rev: fa07d34db3b5ba670ed2dc1228ffb3c0c09b3c08)

Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Michael Opdenacker
1b37c60493 bsp-guide: bsp.rst: update beaglebone example
(From yocto-docs rev: 8fb31b507c37d2c11e9dc98559bd7d145e1dce04)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
BELHADJ SALEM Talel
5abd1e1945 overview-manual: concepts: Add Bitbake Tasks Map
Create a Map to detail how BitBake handles a recipe's tasks
and its compile/runtime dependencies along with detailed comments.

(From yocto-docs rev: 7f0ab56aa302babab6c9d600a8d8a91708cf75f7)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Marta Rybczynska
1081a2617a dev-manual: extend the description of CVE patch preparation
Extend the description on how to prepare a patch for a CVE issue.
Add a more illustrative and current example of how to modify
the patch file. Add an example of how to use CVE_STATUS.

(From yocto-docs rev: f982f6be6b52ba0915b2e6f712270dec5dde64fc)

Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
7d6a77ce37 migration-guides: git recipes reword
(From yocto-docs rev: 9ef7cfd47a53ed45f3d0db8534a42cefbfdf63b3)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
553256bc8b migration-guides: packaging changes
(From yocto-docs rev: 7558c99f50f4d96e12299a5b3c1059a71281a475)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
d95d236add migration-guides: add BitBake changes
(From yocto-docs rev: c719d78cc9d7fb5092d2f5d0285b3eea9ad8acfe)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
589c1d85dc migration-guides: add utility notes
(From yocto-docs rev: ba0dcf57944058d9d5f2f791d463c72098c49561)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
9e10ca8159 migration-guides: add testing notes
(From yocto-docs rev: cd71d0406c96b44cc872f9eb4c8604bcdd62fed6)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
8ceb2bf960 migration-guides: enabling SPDX only for Poky, not a global default
(From yocto-docs rev: fae0b4af717602d04e06d8619389d6b50e0e8e2d)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
bb54a9a7dd migration-guides: remove SERIAL_CONSOLES_CHECK
(From yocto-docs rev: 364f8c17ba380107b2d837e17403307c3e04477c)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
8f860dc46c migration-guides: add kernel notes
(From yocto-docs rev: 45b67c5a37d560738037478b28cb7eb3d2f8e966)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
54d900ab6d migration-guides: mention CDN
(From yocto-docs rev: b7efe7984f9bd62891dc72a6763a6a5935454fdf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
d2ca69cbbf migration-guides: mention LLVM 17
(From yocto-docs rev: 64099ca9b89dd74df7b3a6a287b95a5a317cf916)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
f00da52ca3 migration-guides: remove non-notable change
(From yocto-docs rev: 7e6276993fa3ce9c87e4d7945f140f381a99a902)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
8eea2e1948 migration-guides: QEMU_USE_SLIRP variable removed
(From yocto-docs rev: f50e9fe501ccafd18ed2d8a9e505be503a721846)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
4a7af28d97 migration-guides: edgerouter machine removed
(From yocto-docs rev: e2f7b7feea061ee584c554b64efd583a70debcac)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Ross Burton
9c43ac2a11 migration-guides: add debian 12 to newly supported distros
(From yocto-docs rev: cccc13437d6172e6b0134288aa67972b001e8d28)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Michael Opdenacker
e80a5cb66d migration-guides: further updates for release 4.3
(From yocto-docs rev: fcd7490afba8e70740a2d4c17f759bf3e330e88a)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Michael Opdenacker
5466a06f17 ref-manual: variables: remove SERIAL_CONSOLES_CHECK
No longer in use in Poky (dropped in Nanbield through
multiple commits)

(From yocto-docs rev: e5d39e85a0db27bfc857fae9649f799179888eee)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Michael Opdenacker
f89f69bc04 ref-manual: variables: add RECIPE_MAINTAINER
(From yocto-docs rev: 30e41530402a4f9c37f77e89bae7469b68aad901)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Michael Opdenacker
e87f2f8e07 ref-manual: variables: mention new CDN for SSTATE_MIRRORS
(From yocto-docs rev: 4ef0c24b206d71c348ff657a2ab83ab857539fb6)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Michael Opdenacker
a79cfdf1e3 ref-manual: document cargo_c class
(From yocto-docs rev: 74fc6a70d4636b37fe4eab290ea974e0f1531dbf)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 22:52:27 +00:00
Vincent Davis Jr
e6342f7b18 acpica: add nativesdk to BBCLASSEXTEND
Enables use of the iasl compiler on the host
side of a given generated SDK.

via

TOOLCHAIN_HOST_TASK += "nativesdk-acpica"

(From OE-Core rev: 8b56191077ffb7f33061d95c350244e9346a1fb0)

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
b0a13bb7ed linux-firmware: package Robotics RB5 sensors DSP firmware
Add package with sensors DSP firmware for Qualcomm Robotics RB5
platform.

(From OE-Core rev: 195df10fcbfa1ef7e073d3332943458064519ae0)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
64b83fec67 linux-firmware: package Qualcomm Venus 6.0 firmware
Package firmware for the Qualcomm video encoder / decoder (venus) core,
version 6.0

(From OE-Core rev: 51a64bd01adf3a81086e6368af01abaf4081a515)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
007807e7e2 linux-firmware: package firmware for Qualcomm QCM2290 / QRB4210
Package firmware files for the Qualcomm QCM2290 and QRB4210 platforms.

(From OE-Core rev: bc4170ca691df3eefa39fffd31c280b3ead111a9)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
8c145b012a linux-firmware: package firmware for Qualcomm Adreno a702
Separate firmware for the Quacomm Adreno A702 GPU, found on Qualcomm
QCM2290 / QRB2210 platforms.

(From OE-Core rev: ad24c24dc534b2da7dbd858e1436f8c0d1e86809)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
13739007a1 linux-firmware: add audio topology symlink to the X13's audio package
Add new symlink required for the sound driver to find the audio topology
to the linux-firmware--qcom-sc8280xp-lenovo-x13s-audio package.

(From OE-Core rev: 313135eaa236872e4aa5f698515a3363eb75601f)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
8642da91e5 linux-firmware: add notice file to sdm845 modem firmware
Follow the upstream change (which moved wlanmdsp and notice files from
ath10k to sdm845 dir) and include notice file into the sdm845 modem
firmware package.

(From OE-Core rev: e03d1b9cc06ae23a8abc8a30b1c09bd997465400)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
c55e1c8785 linux-firmware: add missing depenencies on license packages
Several Adreno packages lack dependency on the package with the license
file. Add corresponding RDEPENDS.

Fixes: bf00a042d2fa ("linux-firmware: split platform-specific Adreno shaders to separate packages")
(From OE-Core rev: 9b9f7fef59cca72c3cd0aedd040a15e77ad5a2b2)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
299b2ea537 linux-firmware: upgrade 20230804 -> 20231030
License-Update: additional firmwares

(From OE-Core rev: 7c725d1f2ed9a271d39d899ac2534558c2d103fc)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Dmitry Baryshkov
33477e1bbe meson: use correct targets for rust binaries
Follow the example of rust and cargo classes and pass RUST_HOST_SYS and
RUST_BUILD_SYS to rustc's --target argument instead of bare HOST_SYS and
BUILD_SYS.

(From OE-Core rev: 1471c6c076f544ccd6f0722c82878311199881a7)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Sergei Zhmylev
251a5c88f6 classes: Move package RDEPENDS processing out of debian.bbclass
INHERIT_DIRSTO by default includes debian.bbclass which in turn properly
establishes dependencies between package management tasks and build
process. Debian class also unconditionally renames several packages in a
Debian way. In order to allow disabling of such renaming rules, the logic
of RDEPENDS handling is moved to a package.bbclass.
This commit also solves the SDK building issue without debian.bbclass.

(From OE-Core rev: 8313a4201cde39c444aa6fbe82e46a767fc31f6b)

Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:49:21 +00:00
Etienne Cordonnier
f1b0ab7e4b bitbake: bitbake-worker: add header with length of message
The IPC mechanism between runqueue.py and bitbake-worker is currently
not scalable:

The data is sent with the format <tag>pickled-data</tag>, and bitbake-worker
has no information about the size of the message. Therefore, the bitbake-worker
is calling select() and read() in a loop, and then calling "self.queue.find(b"</" + item + b">")"
for each chunk received.

This does not scale, because queue.find has a linear complexity relative to the size of the queue,
and workerdata messages get very big e.g. for builds which reference a lot of files in SRC_URI.
The number of chunks varies, but on my test system a lot of chunks of 65536 bytes are sent, and each
iteration takes 0.1 seconds, making the transfer of the "workerdata" data very slow (on my test setup
35 seconds before this fix, and 1.5 seconds after this fix).

This commit adds a 4 bytes header after <tag>, so that bitbake-worker knows how many bytes need to be
received, and does not need to constantly search the whole queue for </tag>.

(Bitbake rev: 595176d6be95a9c4718d3a40499d1eb576b535f5)

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>
2023-11-06 16:45:11 +00:00
Lukas Funke
7de36b25d1 recipetool: Add handler to create go recipes
[RP: Replace python 3.9 use of removeprefix()]
(From OE-Core rev: 049afb933f42851d56d2e6522150a32bcccf2a6f)

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:41:11 +00:00
Lukas Funke
f7f304fa3e recipetool: Ignore *.go files while scanning for licenses
(From OE-Core rev: 1765acc8bdc08e392daa8b77add8b4ce1a9e70b6)

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:41:11 +00:00
Lukas Funke
b2c07c2501 selftest: recipetool: Add test for go recipe handler
This commit adds a test for the go recipetool handler. The choosen go
project to test the created recipe was picked randomly. The SRC_URIs and
the LIC_FILES_CHKSUMs are checked against there reference values.

(From OE-Core rev: 3337b9ec069a21b87676a90d0f7819e6a8dc856a)

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:41:11 +00:00
Lukas Funke
22f8fdbe7f classes: go-vendor: Add go-vendor class
(From OE-Core rev: d61bdf392e10140671ca56f2a2b0dc824be8ab80)

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-06 16:41:11 +00:00
Wang Mingyu
78414de9bf xserver-xorg: upgrade 21.1.8 -> 21.1.9
Changelog:
===========
-present: Send a PresentConfigureNotify event for destroyed windows
-Switch to libbsd-overlay
-Xi/randr: fix handling of PropModeAppend/Prepend
-mi: reset the PointerWindows reference on screen switch

(From OE-Core rev: 82e87caedf84dcf5a933dbfc92718ac1cdd29734)

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>
2023-11-05 11:28:46 +00:00
Wang Mingyu
8cd95bdb6f shaderc: upgrade 2023.6 -> 2023.7
Changelog:
============
 - Update dependencies
 - Finish converting build instructions and flags to always use C++17
 - Add GitHub CI to test more flows

(From OE-Core rev: 12d4ed731fca69c928abc1af64a76be2c2392942)

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>
2023-11-05 11:28:46 +00:00
Wang Mingyu
131e1c0851 python3-wheel: upgrade 0.41.2 -> 0.41.3
Changelog:
===========
Updated vendored packaging to 23.2
Fixed ABI tag generation for CPython 3.13a1 on Windows

(From OE-Core rev: 18f56d041a3cc280146adbc113b7d33d16985f24)

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>
2023-11-05 11:28:45 +00:00
Wang Mingyu
db86a0aeda python3-wcwidth: upgrade 0.2.8 -> 0.2.9
Changelog:
===========
-Bugfix zero-width characters used in Emoji ZWJ sequences, Balinese,
 Jamo, Devanagari, Tamil, Kannada and others (PR #91).
-Updated to include a Specification of character measurements.

(From OE-Core rev: 6514e0126bfce25151aa9dd806e04358b2a22b55)

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>
2023-11-05 11:28:45 +00:00
Wang Mingyu
715396b727 python3-trove-classifiers: upgrade 2023.9.19 -> 2023.10.18
Changelog:
 dd Framework :: Mkdocs classifier (#154)

(From OE-Core rev: 43921fd27e3945965b9a3e9f1cb5a92bf531c8e5)

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>
2023-11-05 11:28:45 +00:00
Wang Mingyu
7ebb11fd23 python3-testtools: upgrade 2.6.0 -> 2.7.0
Changelog:
============
* Fix compatibility with Python 3.12.
* Add typing in various modules (still lacking full coverage).
* Drop the 'test' command for distutils. This has been
  deprecated since 2.6.0.
* Drop support for Python 3.6.

(From OE-Core rev: d331c9be4ea79aabb099a1ddd04d7c0b30c533d7)

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>
2023-11-05 11:28:45 +00:00
Wang Mingyu
e8a7dad4d0 python3-setuptools-rust: upgrade 1.7.0 -> 1.8.1
Changelog:
===========
-Fix regression in install_extension crashing since 1.8.0. #380
-Drop support for Python 3.7. #357
-Remove direct imports from pkg_resources. #359
-Add support for setting a custom cargo profile with the
 SETUPTOOLS_RUST_CARGO_PROFILE environment variable. #364

(From OE-Core rev: 4f6ce3ef10d0ea54438c023f7e4acef64c5c877e)

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>
2023-11-05 11:28:44 +00:00
Wang Mingyu
1a1b36b3ad python3-pytest: upgrade 7.4.2 -> 7.4.3
Changelog:
============
-Markers are now considered in the reverse mro order to ensure base class
 markers are considered first – this resolves a regression.
-Fixed := in asserts impacting unrelated test cases.
-Handled an edge case where sys.stderr might already be closed when Fault
 Handler is tearing down.

(From OE-Core rev: a6052eca73f28a80c13f4b586f056ae1ace0c332)

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>
2023-11-05 11:28:44 +00:00
Wang Mingyu
a96b67643a python3-pyopenssl: upgrade 23.2.0 -> 23.3.0
Changelog:
============
-Dropped support for Python 3.6.
-The minimum cryptography version is now 41.0.5.
-Removed OpenSSL.crypto.loads_pkcs7 and OpenSSL.crypto.loads_pkcs12 which had
 been deprecated for 3 years.
-Added OpenSSL.SSL.OP_LEGACY_SERVER_CONNECT to allow legacy insecure
 renegotiation between OpenSSL and unpatched servers. #1234.
-Changed OpenSSL.crypto.X509Store.add_crl to also accept cryptography's
 x509.CertificateRevocationList arguments in addition to the now deprecated
 OpenSSL.crypto.CRL arguments.
-Fixed test_set_default_verify_paths test so that it is skipped if no network
 connection is available.

(From OE-Core rev: 674e69b5ec58bc81d475a0726d982df2cf86c6e0)

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>
2023-11-05 11:28:44 +00:00
Wang Mingyu
9e9edea60f python3-pycairo: upgrade 1.25.0 -> 1.25.1
Changelog:
============
* Fix a crash with pypy3.10
* Fix the build with CPython 3.13.0a1

(From OE-Core rev: 2aef725b0d72a4af773139d4ed1e2ba00d6eef77)

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>
2023-11-05 11:28:43 +00:00
Wang Mingyu
18365b3a96 python3-psutil: upgrade 5.9.5 -> 5.9.6
(From OE-Core rev: 7eaf3295c592707c10c5fb23ab5cfc9dbdb8a195)

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>
2023-11-05 11:28:43 +00:00
Wang Mingyu
66cecb5c65 python3-pip: upgrade 23.2.1 -> 23.3.1
Changelog:
https://pip.pypa.io/en/stable/news/

(From OE-Core rev: 640c39009e88137d24c258c70e6712d9cf8c11c0)

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>
2023-11-05 11:28:43 +00:00
Wang Mingyu
a510cb378b python3-hypothesis: upgrade 6.87.4 -> 6.88.1
Changelog:
============
*improves register_type_strategy() when used with tuple subclasses, by
 preventing them from being interpreted as generic and provided to
 strategies like st.from_type(Sequence[int]) (issue #3767).
*allows strategy-generating functions registered with
 register_type_strategy() to conditionally not return a strategy,
 by returning NotImplemented (issue #3767).

(From OE-Core rev: 2660e656c775cc4bad779a47bd4e5473cd3446b2)

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>
2023-11-05 11:28:42 +00:00
Wang Mingyu
2efe1f3837 python3-git: upgrade 3.1.37 -> 3.1.40
Changelog:
============
Add missing info in Submodule.remove docstring
Have init script clone submodules unconditionally
Add missing assert keywords
Make clear every test's status in every CI run
Fix new link to license in readme
Drop unneeded flake8 suppressions
Update instructions and test helpers for git-daemon
Fix Git.execute shell use and reporting bugs
No longer allow CI to select a prerelease for 3.12
Clarify Git.execute and Popen arguments
Ask git where its daemon is and use that
Fix bugs affecting exception wrapping in rmtree callback
Fix dynamically-set all variable
Fix small #1662 regression due to #1659
Drop obsolete info on yanking from security policy
Have Dependabot offer submodule updates
Bump git/ext/gitdb from 49c3178 to 8ec2390
Bump git/ext/gitdb from 8ec2390 to 6a22706
Update readme for milestone-less releasing
Run Cygwin CI workflow commands in login shells

(From OE-Core rev: 3fc53e04736f6a5480b9e3537534146f5a1346ee)

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>
2023-11-05 11:28:42 +00:00
Wang Mingyu
4b3ec1fc62 python3-gitdb: upgrade 4.0.10 -> 4.0.11
Changelog:
==========
Use ZLIB_RUNTIME_VERSION if available
Add support for Python 3.12 and drop EOL 3.7
Enable Dependabot version updates for Actions
Test installing project on CI
Fix mkdir race condition in LooseObjectDB.store
Don't cancel other jobs from the 3.12 job failing
Use actions/checkout feature to fetch all commits
Revert "Drop support for EOL Python 3.7"
Fix top-of-file license URLs here in gitdb too
No longer treat 3.12 as experimental on CI
Add all to exc for linting
Have Dependabot update smmap submodule dependency
Bump gitdb/ext/smmap from 334ef84 to f1ace75

(From OE-Core rev: c4c225f327e8daf3d0d45a887540878c85433d20)

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>
2023-11-05 11:28:42 +00:00
Wang Mingyu
f617168ae0 python3-babel: upgrade 2.13.0 -> 2.13.1
Changelog:
============
* Fix a typo in "_locales_to_names"
* Fix "setuptools" dependency for Python 3.12

(From OE-Core rev: 04e7b879f9e6a8952b4f454527c892d0a0048b22)

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>
2023-11-05 11:28:42 +00:00
Wang Mingyu
ef5a8317f4 python3-pyrsistent: upgrade 0.19.3 -> 0.20.0
Changelog:
===========
 * Fix #245, never introduce new nodes during discard.
 * Fix #268, do not rely on well implemented __ne__ for keys in pmaps, instead do explicit inversion of equality
   comparison when checking for inequality.
 * Officially support Python 3.12.
 * Officially drop support for Python 3.7.
 * Fix #273, build more types of wheels. Thanks @jams2 for this!
 * Fix #282, add generic types to types. Thanks @lukasK9999 for this!
 * Fix #281, defaultdict can now be frozen. NB! This is a backwards incompatible fix since defaultdict was not
   previously frozen.

License-Update: Copyright year updated to 2023.

(From OE-Core rev: 10d96b7880c81575f1b5d4b3c920229cee71c43a)

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>
2023-11-05 11:28:41 +00:00
Wang Mingyu
d47399d380 glib-2.0: upgrade 2.78.0 -> 2.78.1
Changelog:
=========
* Fix truncating files when "g_file_set_contents_full()" is called without
  "G_FILE_SET_CONTENTS_CONSISTENT"

* Fix "-Dlibelf=disabled" on Linux

* Bugs fixed:
  - #3105 NetworkManager 1.44.0 crashes repeatedly with glib 2.78.0
  - #3111 gsubprocess-testprog.c: build error with cygwin (sys/ptrace.h: No such
    file or directory)
  - #3116 gio clears modification time in microseconds when setting with
    "set_modification_date_time"
  - #3120 Build of glib 2.78.0 ignores -Dlibelf=disabled
  - #3128 glib-2.78.0 fails at gio/tests/gsubprocess.p/gsubprocess.c.o
  - #3130 Segfault when creating GIO GPropertyAction without properties
  - #3144 "g_file_set_contents_full()" doesn't truncate the file (without
    "G_FILE_SET_CONTENTS_CONSISTENT")
  - !3576 guniprop.c: Avoid creating (temporarily) out-of-bounds pointers
  - !3579 Fixes for integer cast warnings when targeting CHERI
  - !3580 Fix test_find_program on FreeBSD
  - !3589 gconstructor.h: Ensure [c|d]tor prototypes are present for MSVC
  - !3594 Fix gutils-user-database test on macOS
  - !3596 Add value annotation to G_TYPE_FUNDAMENTAL_MAX
  - !3601 meson: Fix Windows build with PCRE2 as sibling subproject
  - !3604 Backport !3589 "gconstructor.h: Ensure [c|d]tor prototypes are present
    for MSVC" to glib-2-78
  - !3608 Backport !3587 "glocalfileinfo: Preserve microseconds for
    access/modify times" to glib-2-78
  - !3609 Backport !3607 "Make sure the "GTask" is freed on a graceful
    disconnect" to glib-2-78
  - !3614 Backport !3582 "Buffer needs to be aligned correctly to receive
    linux_dirent64." to glib-2-78
  - !3616 Backport !3590 "gtestutils.h: Fix warning with -Wsign-conversion
    caused by g_assert_cmpint" to glib-2-78
  - !3619 Backport !3617 "tests: Drop unnecessary include from gsubprocess-
    testprog.c" to glib-2-78
  - !3622 Backport !3621 "wakeup: do single read when using eventfd()" to
    glib-2-78
  - !3625 Backport !3624 "wakeup: Fix g_wakeup_acknowledge if signal comes in"
    to glib-2-78
  - !3644 Backport !3633 "Use g_task_return in task threads" to glib-2-78
  - !3649 Backport !3648 "build: Fix -Dlibelf=disabled on Linux" to glib-2-78
  - !3659 Backport !3650 "gfileutils: Add a missing ftruncate() call when
    writing files" to glib-2-78

(From OE-Core rev: 2a2df44ef1b413f1ae268a69e36ca796fc8c9d0b)

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>
2023-11-05 11:28:41 +00:00
Wang Mingyu
721818f75f ghostscript: upgrade 10.02.0 -> 10.02.1
(From OE-Core rev: 9492c2d51a08fbd4c107540a5a833b1a3fb70504)

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>
2023-11-05 11:28:41 +00:00
Wang Mingyu
26448de9db msmtp: upgrade 1.8.24 -> 1.8.25
(From OE-Core rev: 58fe8184f7ea475ad1be754e0de9a76cd4cd7c2e)

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>
2023-11-05 11:28:40 +00:00
Wang Mingyu
61859172cb lighttpd: upgrade 1.4.72 -> 1.4.73
Changelog:
============
  * [core] add .mkv to mimetype.assign builtin defaults
  * [core] warn if out-of-range value for config short
  * [mod_openssl] set default curves for ossl < 1.1.0
  * [mod_h2] parse HEADERS flags sooner
  * [mod_h2] check send window before defer frame rd
  * [mod_h2] send GOAWAY to excessive request flood
  * [mod_h2] h2_parse_headers_frame() adjust args
  * [mod_h2] h2_recv_headers() parse trailers earlier
  * [mod_h2] send GOAWAY to excessive request flood
  * [mod_h2] discard new streams after GOAWAY sent
  * [mod_h2] h2_discard_headers() to HPACK-decode hdrs
  * [core] parse entire server.http-parseopts list
  * [mod_wstunnel] Sec-WebSocket-Protocol only if req hdr
  * [mod_h2] disable h2proto if mod_h2 was not found
  * [core] omit dlopen trace for mod_h2, mod_deflate
  * [mod_h2] defer input parsing if large output queue
  * [mod_h2] defer frame handling if stream pend close
  * [mod_h2] detect and log HTTP/2 rapid reset attack
  * [core] honor MBEDTLS_USE_PSA_CRYPTO for hash,rand
  * [mod_mbedtls] honor MBEDTLS_USE_PSA_CRYPTO for rand
  * [core] comment out li_rand_bytes() (unused)
  * [mod_mbedtls] handle mbedtls 3.x partial write
  * [mod_h2] detect and log HTTP/2 rapid reset attack
  * [mod_h2] detect and log HTTP/2 rapid reset attack
  * [mod_openssl] warn if openssl version < 3.0.0
  * [mod_openssl] include openssl/hmac.h for boringssl

(From OE-Core rev: 5a39ce6614c97e1f919133dc718cc44d197c974f)

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>
2023-11-05 11:28:40 +00:00
Wang Mingyu
12e378cd0e libnsl2: upgrade 2.0.0 -> 2.0.1
Changelog:
===========
* Remove unused internal symbols from libnsl.map
* Remove NIS+ from documentation

(From OE-Core rev: 1c85811d3a31cd290c7cbc939663cd68d69d9146)

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>
2023-11-05 11:28:40 +00:00
Wang Mingyu
679dba6b8d libnewt: upgrade 0.52.23 -> 0.52.24
Changelog:
===========
- add support for python3.13
- fix compiler warnings

(From OE-Core rev: 3d97fe3848d68159c4b7119b0906c8388ce54a9a)

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>
2023-11-05 11:28:39 +00:00
Wang Mingyu
253ff8493c libjpeg-turbo: upgrade 3.0.0 -> 3.0.1
Changelog:
=============
1. The x86-64 SIMD functions now use a standard stack frame, prologue, and
epilogue so that debuggers and profilers can reliably capture backtraces from
within the functions.

2. Fixed two minor issues in the interblock smoothing algorithm that caused
mathematical (but not necessarily perceptible) edge block errors when
decompressing progressive JPEG images exactly two MCU blocks in width or that
use vertical chrominance subsampling.

3. Fixed a regression introduced by 3.0 beta2[6] that, in rare cases, caused
the C Huffman encoder (which is not used by default on x86 and Arm CPUs) to
generate incorrect results if the Neon SIMD extensions were explicitly disabled
at build time (by setting the 'WITH_SIMD' CMake variable to '0') in an AArch64
build of libjpeg-turbo.

(From OE-Core rev: f1d2ffb6c7282751919a7057ffc445db71866f96)

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>
2023-11-05 11:28:39 +00:00
Wang Mingyu
69933c15dd libical: upgrade 3.0.16 -> 3.0.17
(From OE-Core rev: b043fea3a0e2c084f59798b233cea15b68f5e6d5)

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>
2023-11-05 11:28:39 +00:00
Wang Mingyu
20b838db44 libdnf: upgrade 0.71.0 -> 0.72.0
(From OE-Core rev: 3346e3eee3ed1d830571d1a57943edc434d26f5a)

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>
2023-11-05 11:28:38 +00:00
Wang Mingyu
6eb8f33c88 harfbuzz: upgrade 8.2.1 -> 8.2.2
Changelog:
===========
- Fix regression from 8.1.0 in shaping fonts with duplicate feature tags.
- Fix regression from 8.2.0 in parsing CSS-style feature strings.
- Variable fonts instanciation now handles more tables.
- Various CMake build improvements.
- various fixes to build without errors with gcc 4.9.2.

(From OE-Core rev: 7380afcb41db7b1a93c716af567d4a30a71dddcd)

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>
2023-11-05 11:28:38 +00:00
Wang Mingyu
5d2c1b95ff gpgme: upgrade 1.22.0 -> 1.23.1
Changelog:
==========
* w32: Change gpgme-w32-spawn to use Unicode arguments.
 * Support GPGME_ENCRYPT_ALWAYS_TRUST also for S/MIME.
 * New keylist mode GPGME_KEYLIST_MODE_WITH_V5FPR.
 * New key capability flags has_*.
 * gpgme-tool: Support use of Windows HANDLE.
 * qt: Support refreshing keys via WKD.
 * qt: Handle cancel in changeexpiryjob.

(From OE-Core rev: 213a7948f832f3a37d025f5fb32f80722e50b95e)

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>
2023-11-05 11:28:38 +00:00
Wang Mingyu
fd86231bdf debianutils: upgrade 5.13 -> 5.14
License-Update:
 "Files: which" changed to "Files: which.debianutils"
 "which is in the public domain." changed to "which.debianutils is in the public domain."

(From OE-Core rev: f117a244f41aeef7b01fef5c06ec158e4fb0cd5d)

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>
2023-11-05 11:28:37 +00:00
Wang Mingyu
84a5b88c2f btrfs-tools: upgrade 6.5.2 -> 6.5.3
(From OE-Core rev: 1c24684e89525a702d0d92ba06f726018b185bf8)

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>
2023-11-05 11:28:37 +00:00
Wang Mingyu
2aad0c4502 enchant2: upgrade 2.6.1 -> 2.6.2
Changelog:
===========
Documents exclude files: each personal word list is paired with
an exclude file that contains words the user considers invalid.

(From OE-Core rev: f0877cebd2c990d9d98fc348032742c2d9fb4254)

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>
2023-11-05 11:28:37 +00:00
Wang Mingyu
42a736b3a4 dhcpcd: upgrade 10.0.3 -> 10.0.4
Changelog:
===========
privsep: allow __NR_mmap2 call
privsep: allow __NR_clock_gettime32 syscall
compat/arc4random.c: use memset instead of explicit_bzero
privsep: avoid SIGPIPE errors when scripts write to stderr/stdout after dhcpcd is daemonised

(From OE-Core rev: 26d3af5232a49ca6a0def9c2fbbd2f83842937a0)

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>
2023-11-05 11:28:36 +00:00
Wang Mingyu
c96f34f75e cronie: upgrade 1.6.1 -> 1.7.0
Changelog:
=============
* anacron: Add support for NO_MAIL_OUTPUT environment variable
* anacron: Support enabling anacron jobs on battery power
* crond: Support -n crontab entry option to disable mailing the output
* crontab: Make a backup of the crontab file on edition and deletion

(From OE-Core rev: a0a9505fa370d3dcd348a62380d8a60eb63be2e3)

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>
2023-11-05 11:28:36 +00:00
Wang Mingyu
6a5a8391aa createrepo-c: upgrade 1.0.1 -> 1.0.2
time64fix.patch
removed since it's included in 1.0.2

Changelog:
==========
Fix building on EL9
Don't allow building without zstd
Adjust printf formats for 64bit time_t on 32bit systems
Remove dependency on libmagic, hardcode magic number detection
Add automation for uploading prebuilt binary wheels to PyPI

(From OE-Core rev: baff3647aea6b08eff7312eb45b60bc481830132)

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>
2023-11-05 11:28:36 +00:00
Wang Mingyu
5bc82ecd05 base-passwd: upgrade 3.6.1 -> 3.6.2
0006-Make-it-possible-to-configure-whether-to-use-SELinux.patch
removed since it's included in 3.6.2

(From OE-Core rev: f318a13e8b6ce3ded313fa17ab80b35b936205fb)

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>
2023-11-05 11:28:36 +00:00
Vyacheslav Yurkov
914a921c33 lib/oe/path: Deploy files can start only with a dot
There might be only hidden files deployed. In that case we don't need a
generic wildcard present in copy command, otherwise it fails with:

Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./.??* ./* <BUILDDIR>/tmp/deploy/images/qemux86-64' returned non-zero exit status 1.

Subprocess output:
cp: cannot stat './*': No such file or directory

(From OE-Core rev: f92c751281609ea6bd6b838307de4bc70bf26ab9)

Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@wika.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:35 +00:00
Khem Raj
91359fd407 llvm: Upgrade to 17.0.4 release
Brings following changes/fixes

* 309d55140c46 [AArch64][GlobalISel] Fix incorrect ABI when tail call not supported (#70215)
* 9477268e4247 [AArch64] Add test for #70207 (NFC)
* c2eab59e622c [GVN] Fix use-after-free in load PRE with select available value (#69314)
* 586481468a07 [clang-tidy] Fix crash in modernize-use-trailing-return-type (#70709)
* 9d0ca259eed6 [OpenMP] Fix building for 32-bit DragonFly, NetBSD, OpenBSD (#70527)
* a8046f72bfb3 [OpenMP] record-replay use static-cast  (#70516)
* 12bbcd627f60 [flang] Add comdats to functions with linkonce linkage (#66516)
* bdb1553c7639 [mlir] Add pass to add comdat to all linkonce functions (#65270)
* 3347c8441588 Update release note for the fix
* f6fb6a996c7f [clang][ExprConst] Fix crash on uninitialized array subobject (#67817)
* 8c8abe6b93c0 [RISCV] Correct copyPhysReg for GPRPF64. (#70419)
* 615beaec04f9 [SVE] Fix incorrect offset calculation when rewriting an instruction's frame index. (#70315)
* bb29e1ead22f [MemCpyOpt] Combine alias metadatas when replacing byval arguments (#70580)
* 2b82ec7947fe [OpenMP] Use the more appropriate function to retrieve the thread id on OpenBSD (#65553)
* 8909a24d0af1 [libc++] Encode additional ODR-affecting properties in the ABI tag (#69669)
* e9dcc15f514a [AArch64] Prevent argument promotion of vector with size > 128 bits (#70034)
* 4b7f4152a8d1 [LoongArch] Implement COPY instruction between CFRs (#69300)
* fb62a201a199 Revert "[clang-format] Fix align consecutive declarations over function pointers"
* 1f6d35b36681 Fix tests for c23 <-> c2x
* 030d68ef2cd7 Fix a c23 -> c2x think-o
* 2a41d978b4fa [C23] Use thread_local semantics (#70107)
* afbe3549af4d [clangd] Disable crashy unchecked-optional-access tidy check (#69427)
* 7f790f9a39e3 [ConstraintElim] Don't decompose values wider than 64 bits (#68803)
* a1c67ffd0a1f [ConstraintElim] Add test for #68751 (NFC)
* ef50a367e3d5 [mlir] Avoid including <alloca.h> on DragonFly
* a7101379d75e [LVI][CVP] Treat undef like a full range on abs(x, false) (#68711)
* aa03fba83b17 [libcxx] [test] Add a test parameter for disabling memory intensive tests (#68214)
* 71f408bc3623 workflows/release-tasks: Fix release note artifact upload (#69522)
* 9ab3ce1d7a06 Bump version to 17.0.4
* 880a282a40e3 workflows/release-lit: Pass correct build directory to pypa/gh-action-pypi-publish (#69438)
* 8719ee0cb39a workflows/release-lit: Fix dev suffix removal (#69397)

(From OE-Core rev: 198f10d12eea50942acb60cdf8c7bc0700065df1)

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>
2023-11-05 11:28:35 +00:00
Dmitry Baryshkov
39aecc8b3e kernel-arch: drop CCACHE from KERNEL_STRIP definition
Building linux-yocto with ccache enabled results in the 'command not
found' error, because kernel-yocto.bbclass passes the KERNEL_STRIP
as a single value, whic is then interpreted as a command name.

ERROR: Fatal errors occurred in subprocesses:
[Errno 2] No such file or directory: 'ccache aarch64-linaro-linux-strip': Traceback (most recent call last):
  File "/home/lumag/Projects/RPB/build-rpb/conf/../../layers/openembedded-core/meta/lib/oe/utils.py", line 288, in run
    ret = self._target(*self._args, **self._kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Fixes: 03973c8c1c93 ("kernel: Add kernel specific STRIP variable")
(From OE-Core rev: 41f019afc41f800b622c46a6d7cf1beffc97716a)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:35 +00:00
Khem Raj
bdc0251ab3 cdrtools: Fix build on riscv64
Copy riscv64 gcc config from schilytools

(From OE-Core rev: c2daccdeb5b49de67c62e78f90b0bb4d481d67e3)

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>
2023-11-05 11:28:35 +00:00
Khem Raj
769abe5702 rust-cross-canadian: Add riscv64 to cross-canadian hosts
(From OE-Core rev: c0bf5dd2f3ef11df35130283853017ba69d0e9c1)

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>
2023-11-05 11:28:34 +00:00
Khem Raj
c8b02c662b uninative.bbclass: Add ldso information for riscv64
(From OE-Core rev: 1532b3904a2852f37e3e269ed06ddba5aa87e183)

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>
2023-11-05 11:28:34 +00:00
Khem Raj
f7830ed8cb machine-sdk: Add SDK_ARCH for riscv64
(From OE-Core rev: b760eb6cf41ba3cb044dc30eca44f7982fa355e5)

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>
2023-11-05 11:28:34 +00:00
Khem Raj
27cbbd5291 meson: Add check for riscv64 in link template
(From OE-Core rev: a7b5c1fa1305759725540809838027ad21825b4f)

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>
2023-11-05 11:28:33 +00:00
Bastian Krause
70e3d851e1 linux-firmware: add new fw file to ${PN}-rtl8821
Extend the linux-firmware-rtl8821 package with rtw8821 firmware files for
Realtek RTL8821 variants.

(From OE-Core rev: 23c945938f8d8bcf5fbd6d9b840ec319aaa40c62)

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:33 +00:00
Jermain Horsman
a9063f845b lib/oe/buildcfg.py: Remove unused parameter
Several functions included the 'd' parameter but never used it,
additionally the value passed is always None.

(From OE-Core rev: 9e03ce0426576ebef3739dc1dfec4f7cd73ae094)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:33 +00:00
Jermain Horsman
d012de568f lib/oe/buildcfg.py: Include missing import
get_layer_revisions() uses the os.path module but it is not included
in the imports.

(From OE-Core rev: 4339ef5b46c39cce402d1cc3526b39702837b839)

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:32 +00:00
Marta Rybczynska
efe9ae0149 python3-spdx-tools: upgrade 0.8.1 -> 0.8.2
Changelog:
  added optional encoding parameter for parsing files
  fixed handling of the FilesAnalyzed field in Tag-Value format
  fixed the validation of the DownloadLocation field
  fixed the error handling while parsing license expressions
  fixed output of timezone-sensitive datetimes
  added code architecture documentation

(From OE-Core rev: 70cfcb9ffadf463c3f96b97925db958e8c65af9d)

Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:32 +00:00
Marta Rybczynska
9d2c9394eb python3-beartype: upgrade 0.16.2 -> 0.16.4
Changelog for 0.16.4 [1]:
In beartype.claw type-check PEP 526-compliant annotated variable
  assignments in methods
Fix an inheritance regression introduced in 0.16.3

Changelog for 0.16.3 [2]:
Add hot reloading
Support root superclass validators
Forward reference issubclass() proxying
Readable forward reference exceptions
Class redecoration eliding
Documentation update

[1] https://github.com/beartype/beartype/releases/tag/v0.16.4
[2] https://github.com/beartype/beartype/releases/tag/v0.16.3

(From OE-Core rev: 1b9026253d57a0f5d4c91e18c3efa9377a7bcca9)

Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:32 +00:00
Chen Qi
2e3275135b systemd: fix DynamicUser issue
The DynamicUser needs libnss-systemd to be installed to function
well. The tweaks to nsswitch.conf should be conditional on PACKAGECONFIG
values.

(From OE-Core rev: ba3a78c08cb0ce08afde049610d3172b9e3b0695)

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>
2023-11-05 11:28:32 +00:00
William Lyu
02d38393d1 openssl: improve handshake test error reporting
Fixes [YOCTO #15225]

Yocto Bug #15255 is not reproducible. To obtain more useful information
for debugging, the OpenSSL test code is improved so that more detailed
state information in the handshake loop is printed when an error occurs.

(From OE-Core rev: 5bf9a70f580357badd01f39822998985654b0bfc)

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>
2023-11-05 11:28:31 +00:00
Randy MacLeod
c395a9f9f7 strace: upgrade 6.5 -> 6.6
Update the COPYING checksum; only the copyright date changed.

Noteworthy changes in strace 6.6 (2023-10-31)
=============================================

* Improvements
  * Implemented --kill-on-exit option that instructs the tracer to set
    PTRACE_O_EXITKILL option to all tracee processes and not to detach them
    on cleanup so they will not be left running after the tracer exit.
  * Implemented automatic activation of --kill-on-exit option when
    --seccomp-bpf is enabled and -p/--attach option is not used.
  * Implemented decoding of map_shadow_stack syscall.
  * Implemented decoding of FSCONFIG_CMD_CREATE_EXCL fsconfig command.
  * Implemented decoding of IFLA_BRPORT_BACKUP_NHID netlink attribute.
  * Implemented decoding of SECCOMP_IOCTL_NOTIF_SET_FLAGS ioctl.
  * Implemented decoding of UFFDIO_CONTINUE, UFFDIO_POISON, and
    UFFDIO_WRITEPROTECT ioctls.
  * Updated lists of ARCH_*, BPF_*, DEVCONF_*, IORING_*, KEXEC_*, MAP_*, NT_*,
    PTRACE_*, QFMT_*, SEGV_*, UFFD_*, V4L2_*, and XDP_* constants.
  * Updated lists of ioctl commands from Linux 6.6.

ptest-runner results on qemux86-64/kvm with qemuparms="-m 1024 -smp 4":
============================================================================
Testsuite summary for strace 6.6
============================================================================
============================================================================

(From OE-Core rev: 12ae00d4cc4ed78643cafce97cd02e396b3348f4)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:31 +00:00
Randy MacLeod
f59eece1a0 strace: backport fix for so_peerpidfd-test
Backport the fix for the so_peerpidfd-test:
   44cf51a38 tests: fix so_peerpidfd test
and drop the patch that skipped that test.

(From OE-Core rev: 0a52da6530ebba08f9a3b30d5098b0c3ef1730d7)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:31 +00:00
Tim Orling
03d5588ef5 lsb-release: use https for UPSTREAM_CHECK_URI
http:// results in 301 Moved Permanently and redirects to https://

Also drop SRC_URI[md5sum].

(From OE-Core rev: 4bb3e1dd642802a16ac9526df4098d6dcb97a795)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:31 +00:00
Niko Mauno
075e327107 ccache.conf: Remove obsolete configuration option
Since ccache version 4.0, according to
https://github.com/ccache/ccache/blob/master/doc/NEWS.adoc#ccache-40

 * An appropriate cache directory level structure is now chosen automatically. The cache_dir_levels (CCACHE_NLEVELS) configuration option has therefore been removed.

Therefore remove the option which has not been supported by ccache
recipe version since Yocto Hardknott.

(From OE-Core rev: 1d7c1b71e2639b8d069403920368292bd214347d)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:30 +00:00
Khem Raj
ed9e5fa8dc qemuriscv: Add to common MACHINE_FEATURES instead of overriding them
machine features like vfat are needed for ptests to pass ( e..g. parted)
This brings it closer to what x86 qemu config looks like as well.

(From OE-Core rev: a6d97ecb25567ec7e56c061be9ab281b54b4d524)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:30 +00:00
Niko Mauno
b1116c8102 image_types.bbclass: Use xz default compression preset level
Commit ef0654f145
("Set XZ_COMPRESSION_LEVEL to -9") changed the xz compression preset
level from previous value of -3 to -9. The commit message explains that
the change was made in order to be consistent with other compressors
that also use their best compression. However looking at xz man page,
under the compression preset level selection chapter there is mentioned
that

  The  differences  between  the  presets  are more significant than with gzip(1) and
  bzip2(1).  The selected compression settings determine the memory  requirements  of
  the  decompressor,  thus  using  a  too  high preset level might make it painful to
  decompress the file on an old system with little RAM.   Specifically,  it's  not  a
  good  idea  to  blindly  use  -9  for  everything like it often is with gzip(1) and
  bzip2(1).

which is then followed by a table, which mentions that the decompressor
memory requirement for preset -9 is 65 MiB, whereas for xz default
preset -6 it is just 9 MiB. Given that the use case where a device
running a Yocto generated Linux OS decompresses an ext4 root filesystem
image to non-volatile memory as part of firmware upgrade process is not
far-fetched, and considering that a range of these devices can run low
on available RAM when there are other applications running at the same
time, the lower decompressor memory requirement of the default preset
level makes sense in order to prevent an OOM situation from occurring.

This change was tested on a 32 CPU core build host with 128 GB RAM by
issuing

  $ bitbake -c cleansstate core-image-minimal core-image-sato
  $ time bitbake core-image-minimal
  $ time bitbake core-image-sato

With MACHINE="qemux86-64" and IMAGE_FSTYPES="ext4 ext4.xz" using
XZ_COMPRESSION_LEVEL values "-6" and "-9". In both cases the resulting
'ext4' image size remained same, 38141952 bytes for core-image-minimal,
and 565043200 bytes for core-image-sato.

The observation was that with this change there is a small increase in
the resulting 'ext4.xz' file size, and a build speed improvement that
was significant for larger rootfs image.

core-image  XZ  real time    time delta	   ext4.xz size      size delta
-----------------------------------------------------------------------
minimal     -9  0m44.992s                      15932508
minimal     -6  0m42.445s        -5.66%        16243484         +1.95%
sato        -9  2m40.828s                      85080416
sato        -6  1m38.891s       -38.51%        87447456         +2.78%

Regarding decompression speed, issuing following command in qemux86-64
target OS

  $ time xz -dkc --memlimit=MEMLIMIT core-image-sato-qemux86-64.rootfs.ext4.xz > /dev/null

using the lowest accepted value for MEMLIMIT for each case (providing a
lower value caused xz to exit with 'Memory usage limit reached' error)
showed that decompression time saw a minuscule improvement with the -6
compression preset level:

XZ   MEMLIMIT   real time
-------------------------
-9        65M    0m43.83s
-6         9M    0m43.28s

(In the above tables, XZ refers to XZ_COMPRESSION_LEVEL value used when
images were generated with Yocto).

(From OE-Core rev: 9ca62e24a6a0f5d2778b2b587646df7447e3c65f)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 11:28:30 +00:00
Richard Purdie
e598223e0b oeqa/selftest: Drop machines support
The machines option to oe-selftest isn't used in our CI and is never likely to
be, we focus and execute testing explictly. The YOCTO #15247 is about how
this code doesn't interact well with build directory cleanup and at this point
I think we should just remove the option/code.

(From OE-Core rev: 815d04a2007e1154b69f1a027c8677ea86935354)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 10:57:56 +00:00
Rasmus Villemoes
8ea375589d valgrind: split helper scripts to separate packages, update dependencies
The cachegrind scripts have been rewritten in python3, so the RDEPENDS
on perl is no longer sufficient. This is unfortunately not caught by
QA checks since the scripts use

  #! /usr/bin/env python3

as shebang line.

Since the valgrind binary by itself can be quite useful on target,
allow including that in the rootfs without also having to pull in the
whole perl and python interpreters and stdlibs.

(From OE-Core rev: 9797adebd1296f0cf08b1f6f6322fbc804aee14a)

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Alexis Lothoré
838b8e78dc scripts/resulttool: group all regressions in regression report
Commit c304fcbe05 introduced a grouping when
listing regressions. This grouping has been added only for ptests. It has
been observed that any other kind of tests could benefit from it. For
example, current regression reports can show the following:

1 regression(s) for oescripts.OEGitproxyTests.test_oegitproxy_proxy_dash
    oescripts.OEGitproxyTests.test_oegitproxy_proxy_dash: PASSED -> SKIPPED
1 regression(s) for oescripts.OEPybootchartguyTests.test_pybootchartguy_help
    oescripts.OEPybootchartguyTests.test_pybootchartguy_help: PASSED -> SKIPPED
1 regression(s) for oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_pdf_output
    oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_pdf_output: PASSED -> SKIPPED
1 regression(s) for oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_png_output
    oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_png_output: PASSED -> SKIPPED
1 regression(s) for oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_svg_output
    oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_svg_output: PASSED -> SKIPPED
[...]

This output is not so useful in its current state and should be grouped per
test type too.
Enable grouping for all kind of tests, to make it llok like the following
in reports:
5 regression(s) for oescripts
    oescripts.OEGitproxyTests.test_oegitproxy_proxy_dash: PASSED -> SKIPPED
    oescripts.OEPybootchartguyTests.test_pybootchartguy_help: PASSED -> SKIPPED
    oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_pdf_output: PASSED -> SKIPPED
    oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_png_output: PASSED -> SKIPPED
    oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_svg_output: PASSED -> SKIPPED

(From OE-Core rev: 982798ef96e3a32bf15341bdd3bb7c4356709412)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Alejandro Hernandez Samaniego
f6f2351b29 baremetal-helloworld: Pull in fix for race condition on x86-64
It was previously discovered that there was a race condition during the Makefile
execution between the assemble and compile targets, the previous fix attempted
to serialize the build targets, but the fix was missing for x86-64.

Pull in latest commit from upstream to fix this issue on x86-64.

[YOCTO #15146]

(From OE-Core rev: e7e1631a1efbcf421de801e94734f67f25668540)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Rouven Czerwinski
551391bb00 glib-2.0: Remove unnecessary assignement
FILES:${PN}-utils is += extended and than replaced completely later,
remove the first extension.

(From OE-Core rev: d9d61c5217938749e3edc5f8a5c987f46bbab3d7)

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Florian Wickert
3c104cb8f6 systemd: fix libnss-mymachines packaging
By removing libnss_mymachines.so.2 from FILES:${PN}-container it
correctly gets packaged into libnss-mymachines, just like the other
libnss-* components, due to PACKAGES_DYNAMIC.

To make up for the missing lib in the container package, I added
libnss-mymachines to RDEPENDS:${PN}-container. As I understand it,
the lib should be installed even without this if anything from the
container package links against it. But since I don't know if there
was a special reason to explicitly add it to the container files list,
like something using dlopen to load the lib, it seemd to be the
safest option.

(From OE-Core rev: 90f143984732ba0453c2d3a734eeb4d1a289269b)

Signed-off-by: Florian Wickert <fw@ferncast.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Alexander Kanavin
81a400a8f5 scripts/esdk-tools: use a dedicated, static directory for esdk tools
This allows easier replication of esdk environment (which provides
a curated, limited set of tools that for example does not include bitbake)
in a standard yocto build. Switchover between various sets can be achieved
via PATH manipulation.

(From OE-Core rev: 20c548f2edca3888152adb63de7b23d84e3848e7)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Alexander Kanavin
a92d76e4da meta/lib/oe/copy_buildsystem.py: do not derefence symlinks
This was added (I think) for the purpose of supporting layers that refer
to items outside of the layer via relative symlinks:
https://git.yoctoproject.org/poky-contrib/commit/?id=d31d1ad4e566e42d0bbcf1f41ac25e33181fb517

I do not think copying the link target into the layer that references it is the
correct solution: rather the original target should be included
into the SDK with the same relative path.

This change is done for the sake of preserving symlinks
that are referencing things inside the layer as they are;
particularly the content of scripts/esdk-tools/.

(From OE-Core rev: 52a7bbd5c4875c5f61ea65dda38e495a2925a20d)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Alexander Kanavin
c7bd942988 populate_sdk_ext.bbclass: do not symlink unfsd from sdk image sysroot into eSDK tools path
This was done in 2016 to support Eclipse plugin (long dead),
it's currently broken as image sysroot is not in the SDK
until the image is built in that context, and current tools
all rely on runqemu-export-rootfs which does not rely on PATH
and runs unfsd with full path to recipe-specific sysroots.

(From OE-Core rev: 0f1361061c8c0b16ea2b50349b08a3b03140c45c)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-05 08:44:06 +00:00
Ross Burton
7ffa4d4044 cve-check: don't warn if a patch is remote
We don't make do_cve_check depend on do_unpack because that would be a
waste of time 99% of the time.  The compromise here is that we can't
scan remote patches for issues, but this isn't a problem so downgrade
the warning to a note.

Also move the check for CVEs in the filename before the local file check
so that even with remote patches, we still check for CVE references in
the name.

(From OE-Core rev: 0251cad677579f5b4dcc25fa2f8552c6040ac2cf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-03 16:58:40 +00:00
Lee Chee Yang
e575f59b82 documentation.conf: drop SERIAL_CONSOLES_CHECK
remove obsolete SERIAL_CONSOLES_CHECK.

(From OE-Core rev: 926df37a6c53908aca6602fc8bf0510975b6f657)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-03 09:35:35 +00:00
Trevor Gamblin
b53d1287d2 patchtest-send-results: fix sender parsing
Not all mbox 'from' fields will contain angle brackets, so the
re.findall invocation used for getting a reply_address may fail. Use a
simpler reference to the field to get the sender's email address.

(From OE-Core rev: 86e9afe09a346586114133f5a7470304d2ed733f)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-02 21:48:30 +00:00
Lee Chee Yang
6cc017460d machine: drop obsolete SERIAL_CONSOLES_CHECK
(From meta-yocto rev: 5746c1b425859f5b8ba3a434c92b1d8798bedd71)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-02 11:20:19 +00:00
Trevor Gamblin
06a7e7a14d patchtest: remove test for CVE tag in mbox
After patchtest went live it was determined that testing for a CVE tag
in the mbox commit message is unnecessary, since it will already be in
the shortlog and in any carried patches. Remove the test and the
associated selftest files so that its absence isn't flagged in future
test results.

(From OE-Core rev: 54690f18f04a2ab993a85d551ce4f8d0fa56618a)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-01 19:19:40 +00:00
Trevor Gamblin
3ad5aa3f16 patchtest: make pylint tests compatible with 3.x
pylint 3.x has removed epylint, which is now a separate module. To avoid
adding another recipe or using outdated modules, modify the
test_python_pylint tests so that they use the standard pylint API.

(From OE-Core rev: 72be3d6a116febf46130cccbe12afe5ad93779b5)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-01 19:19:40 +00:00
Trevor Gamblin
2bddb6bb97 patchtest-send-results: add In-Reply-To
Rework the script for sending results to use send_raw_email and specify
the 'In-Reply-To' field so that patchtest replies to the emails, rather
than sending them standalone to the submitter and mailing list.

(From OE-Core rev: 0c45c92e7f26aea4edf2cfa577b7ba51384e59d3)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-01 19:19:40 +00:00
Alexander Kanavin
3a7b408178 selftest/sstatetests: add a test for CDN sstate cache
Specifically, the test checks that everything needed for building
standard oe-core images for x86_64 and arm64 is available from
the cache (with minor exceptions). Going forward, a complete
world check could be enabled and additional configurations,
but that requires improvements to performance of hash equivalence
server in particular.

RP: I've disabled the tests by default so we can merge them. We will
make them live once we get to the bottom of the failures.

(From OE-Core rev: 5f3aeadb65d3b7216db783b2c500ac241b03deb8)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-31 11:12:33 +00:00
Marlon Rodriguez Garcia
6745d5eb7c bitbake: toaster: add tox.ini file to execute test suite
Updated tox file to fix enviroments variables.
to run tox use the following command:
tox -e env_name -c /path/to/file/tox.ini
See tox cli https://tox.wiki/en/latest/cli_interface.html
The variable env_name is linked to the python versions (py38, py39, py310).
If env_name option is not set,  the test suite will run for all indicated versions.

It was also modified the webdriver options for chrome to run selenium test in console because of the error detected in the previous test run
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
  (session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

(Bitbake rev: 11dfd7c05642269b7a8bff2918667348d041ec79)

Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>

Changes in v2
- Updated variable path BUILDDIR and EVENTREPLAY_DIR to use enviroment value
- Updated toaster-requirements.txt file path
- Removed flake8
- Added webdriver options to chrome

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 22:24:32 +00:00
Richard Purdie
60a434179c qemu: Upgrade 8.1.0 -> 8.1.2
Drop three backport patches as they're applied upstream.

(From OE-Core rev: 7480ff9064a74858e83e0ae275dbdb78dd6fc2a4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 17:12:19 +00:00
Markus Volk
3681db6bb3 libcroco: drop recipe
libcroco has been deprecated and was archived by the gnome-project

https://gitlab.gnome.org/Archive/libcroco

(From OE-Core rev: d53c1aca794ce256b057d63a9a8eaae5bf71fae5)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 17:12:19 +00:00
Chen Qi
57e3f6ff28 kernel.bbclass: add preceding space in appendVar setting
The appendVar setting should have a preceding space, otherwise, when
KERNEL_MODULE_SPLIT is set to "0", we'll sometimes get dependency error
due to lacking of space.

(From OE-Core rev: 266cd948d4aa68de34075e8ed6299f7d80d19346)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 17:12:19 +00:00
Khem Raj
d30de7416f python3-urllib3: Upgrade to 2.0.7
Addresses CVE-2023-45803 [1]

[1] 4e98d57809

(From OE-Core rev: befec4d3591bb0dce0e256cf338eb541b2a56b98)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 17:12:19 +00:00
Trevor Gamblin
a88b6d2452 patchtest-send-results: send results to submitter
Modify patchtest-send-results so that it extracts the submitter's email
address and responds to them with the patch testresults. Also make a
minor adjustment to the suggestions provided with each email and include
a link to the Patchtest wiki page for additional clarification on
specific failures.

(From OE-Core rev: 64ed88e32cf9e04772319ff6e66c602d1cff4fd7)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 16:38:15 +00:00
Ross Burton
28324600cb scripts/contrib/patchreview: fix commit identification
git show-ref looks at the _remote_ ref called HEAD, which is fine when it
matches the local HEAD but problematic when you're iterating a series of
commits.

Use rev-parse to resolve the local name to a proper hash.

(From OE-Core rev: 3c04747b681cf6090ba9c77752f6c2f304dbbe17)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:53:20 +00:00
Michael Opdenacker
415ff3a78c ref-manual: document MESON_TARGET
(From yocto-docs rev: 8109eeb5b7a4e5b2f50047e049ce0295bdc94856)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
e0800e8d8a manuals: improve description of CVE_STATUS and CVE_STATUS_GROUPS
- Mention CVE_STATUS_GROUPS in the development manual
  (otherwise only present in the reference manual, but with
  no reference to it)

- In the reference manual description of CVE_STATUS,
  link back to the development manual, to provide context.

(From yocto-docs rev: cfef5fe41b6c819e783c88829448ae38141650a5)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
f9ddf08ffd migration-guides: further updates for 4.3
(From yocto-docs rev: 3a4d172f0d5668f3c6527bd80d1dad7831e72e89)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
9bf8094bda ref-manual: document KERNEL_STRIP
(From yocto-docs rev: 0e1861dcb8819b86aba6a3e024efb8bfe4c300ad)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
bfe085be80 migration-guides: mention runqemu change in serial port management
Plus a minor whitespace fix change

(From yocto-docs rev: 6f7e1b935168464b4682a8687aa6d031a1a9fb73)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
aa576a80d1 migration-guides: updates for 4.3
(From yocto-docs rev: a2d79ed745df6fe243e6c5e1001d406001c0d3a7)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Paul Eggleton <bluelightning@bluelightning.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
9bc8bfc078 ref-manual: variables: document OEQA_REPRODUCIBLE_TEST_PACKAGE
Introduced by
https://git.yoctoproject.org/poky/commit/?id=88abdec715ed0c1f613c9b5132cd45db741d5c65

(From yocto-docs rev: 2e64352653cd7e89a2b08d84d6f7a1e039d4346a)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
f32fad635d ref-manual: document KERNEL_LOCALVERSION
Introduced by
https://git.yoctoproject.org/poky/commit/?id=66ed174ccdf7a89cb998f503cc6b631e2d1adcc0

(From yocto-docs rev: 4bdd4976667b802895b13541b77191a65335a175)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:17 +00:00
Michael Opdenacker
77fdd0e462 test-manual: reproducible-builds: stop mentioning LTO bug
Now that https://bugzilla.yoctoproject.org/show_bug.cgi?id=14481
is closed.

(From yocto-docs rev: de23d389f3fe7c2e18325cf29361d90b9bb19ead)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:16 +00:00
Marta Rybczynska
b597d3c5c4 dev-manual: add security team processes
Add the initial version of the section on vulnerability reports,
operations of the Security Team with a
transcription of https://wiki.yoctoproject.org/wiki/Security_private_reporting

(From yocto-docs rev: 2b86ac95c557f1e57176cceff428eb63e56c6328)

Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:16 +00:00
Eero Aaltonen
34c19d6ece ref-manual: add systemd-resolved to distro features
systemd-resolved is a distro feature added in poky commit
6f30e3586e

(From yocto-docs rev: 2adb9c0a37f7bdbb293e78d71c872ca3bd9c06c4)

Signed-off-by: Eero Aaltonen <eero.aaltonen@vaisala.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:16 +00:00
Michael Opdenacker
55675f1e2f manuals: correct "yocto-linux" by "linux-yocto"
(From yocto-docs rev: 1fc5046100f27126711df0513d1ad87a9a54f55a)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 11:11:16 +00:00
david d zuhn
2c448ec906 bitbake.conf: remove ${CCACHE} from FORTRAN compiler
ccache used to support FORTRAN (versions 3.3-3.6) but no longer does

(From OE-Core rev: 0cc2c0a9ec16fceeb19e01cd47af8c0743168030)

Signed-off-by: david d zuhn <david.zuhn@sonos.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 08:50:46 +00:00
William A. Kennington III
070582a248 kernel: Commit without running hooks
The hooks are pulled from the impure environment and are often broken in
our environments. There is no reason to add extra metadata or verify the
commit message as its arbitrary to turn the tarball into a git repo.

(From OE-Core rev: dd52102a6c3f69d156bfcf85827123c96f18d5a1)

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 08:50:46 +00:00
Stéphane Veyret
494a25d861 volatile-binds: Calculate the name of the /var/lib service
By default, /var/lib is bind mounted on /var/volatile/lib. If this is
the case, the recipe adds conditions on systemd-random-seed in the
service file mounting it. But as the VOLATILE_BINDS may be modified,
/var/lib may be mounted elsewhere, for example in /persistent/var/lib.
In this case, the conditions are not set because the service file name
does not match expected one.
This patch automatically records the name of the service mounting
/var/lib, if any, in order to set the condition in the appropriate file.

(From OE-Core rev: 66f0c2a1678cb69cf8d50372b0592c55e2dc3e3c)

Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 08:50:46 +00:00
Stéphane Veyret
d6134c9f97 volatile-binds: Allow creation of subdirectories
The mount-copybind script will create the parent directory of the bind
mount if it does not exist. But actually, if this is the case, the
service will not even start because of the ConditionPathIsReadWrite.
This patch adds a "or" condition to allow the service to start also if
the parent directory of the bind mount does not exist.

(From OE-Core rev: 1ca031b77546056ca1994469b0f2e93ea2018edf)

Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 08:50:46 +00:00
Max Krummenacher
50c57ee367 Revert "bin_package.bbclass: Inhibit the default dependencies"
This reverts commit d1d09bd4d7be88f0e341d5fccbfbefeb98d4b727.

The commit not only removes the dependencies on the cross compiler
but also does not depend on e.g. virtual/${TARGET_PREFIX}compilerlibs
and virtual/libc which in turn makes the file-rdeps qa check fail
if installing binaries linked against e.g. libc or libstdc++.

(From OE-Core rev: ababf6ceebe360c5f59a57428566c27b7a97a9e6)

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 08:50:46 +00:00
Tim Orling
9ffac3fc3d recipetool: add python_hatchling support
One of the newer PEP-517 backends to be added was python_hatchling.bbclass
but it was not included in the recent improvements.

Add selftest for 'jsonschema' pypi package.

(From OE-Core rev: d99b4883b4fee82bc588fd235ba90fedf1550cb8)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-30 08:50:46 +00:00
Trevor Gamblin
9b22a5aa8c patchtest: shorten test result outputs
Some test result lines in TestMbox and TestPatch are still too long to
avoid being flagged by the mailer script. Clean them up by removing
redundant information, so that they are all under the length limit of
220 characters.

(From OE-Core rev: c10d0bb542b23fbdc14d76dfa8e5885aa4d33083)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-29 22:39:17 +00:00
Trevor Gamblin
631d19ed6c patchtest: reduce checksum test output length
The test_lic_files_chksum_modified_not_mentioned test in TestMetadata is
outputting very long lines that fail the maximum length check when
sending email results, preventing the actual errors from being
displayed. Reduce the length of the failure message by rewording and
removing redundant information.

(From OE-Core rev: 2e2625735181160e9760a6f3af4955bda2ea6d4d)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 17:48:11 +01:00
Ross Burton
2cbbe428db scripts/contrib/patchreview: consolidate imports
Move most imports to the top of the file.

(From OE-Core rev: d2c287db0739b249604cd1beaa03ec38512ba718)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 17:48:11 +01:00
Ross Burton
62c80e3a79 scripts/contrib/patchreview: add commit and recipe count fields to JSON
The autobuilder scripts post-process the generated JSON to inject recipe
and commit counts into the data.  We can do this easily in patchreview
instead.

(From OE-Core rev: 77c96e43090cbf485aec612cc2315b85e5635dda)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 17:48:11 +01:00
Ross Burton
116c044212 scripts/patchreview: rework patch detection
A previous patch[1] added the ability to allow the search pattern for
patches to be changed, so that patchreview can be used across the entire
meta-oe repository by changing the patterns.

However, this means the caller needs to write long patterns when calling
patchreview.

Instead, we can see if the specified directory contains a layer by
checking if conf/layer.conf exists.  If it does, then search for patches
inside this directory.  If it doesn't, assume that the specified
directory is a repository that contains sublayers (such as
meta-openembedded) and look through each of the directories that match
the pattern meta-*.

This means patchreview can both scan either a single layer (eg
.../poky/meta) or a repository of sublayers (eg .../meta-openembedded).

[1] oe-core 599046ea9302af0cf856d3fcd827f6a2be75b7e1

(From OE-Core rev: a3a868519beab1b9cac94fefd7dbeffb09d047e9)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 17:48:11 +01:00
Richard Purdie
af339676ee base: Ensure recipes using mercurial-native have certificates
If you try and fetch using mercurial-native, you see certificate errors since
it is configured to find ones in the sysroot, not the system. Add the missing
dependency so that mercurial recipes using the native tool work.

Found trying to make mirroring for old meta-oe stable branches work.

(From OE-Core rev: fc567e35b374f8b08975602609ee71e64357fb3d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 10:53:43 +01:00
Alexander Kanavin
2cf13f2513 lib/oe/sstatesig.py: dump locked.sigs.inc only when explicitly asked via -S lockedsigs
This was writing out locked-sigs.inc into cwd with every
'bitbake -S' invocation. When the intent is only to to get task
stamps (-S none), or print the difference between them (-S printdiff),
the file is unnecessary clutter.

A couple of selftests/scripts were however relying on this, so they're
adjusted to explicitly request the file.

eSDK code calls dump_lockedsigs() separately via
oe.copy_buildsystem.generate_locked_sigs() and so isn't affected.

(From OE-Core rev: ad57c3cac2a8d3e60222e3cca0685f582dcea135)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 10:53:43 +01:00
Alexander Kanavin
2187e823ad selftest/sstatetests: add tests for 'bitbake -S printdiff'
'bitbake -S printdiff' is a useful diagnostic facility for finding out
why sstate is not being reused, but until now it had no tests that would
ensure it works. This commit adds three basic scenarios:

1. make a change in a really basic, common recipe that is at the very root
of dependency trees (quilt-native), and ensure that change is correctly discovered when
building an image.

2. make a change in gcc-source recipe, which is somewhat special
(operates in work-shared), and ensure that gcc-runtime builds track
that down as well.

3. make a change in base_do_configure() definition from base.bbclass,
which is not recipe-specific, but affects many basic recipes, and ensure that
is correctly reported as well.

The test itself actually runs twice:
- first against a fully populated build directory, where
the printdiff code is guaranteed to find the correct previous
stamp that can be compared with in a predictable manner.

- then in an empty build directory where the printdiff code
goes to look in the sstate cache, and so the existence of the
previous signature can be tested, but not the difference with it
(what the exact difference would be is unpredictable as the
sstate cache is indeed shared between many builds).

(From OE-Core rev: 7a7d76aa8a8d590ebc99156f9f4b9535cdf868c7)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 10:53:43 +01:00
Alassane Yattara
7e0cce4f6b bitbake: toaster: Write logs to BUILDDIR/toaster_logs
Fixes "2efb14648 toaster: Monitoring - implement Django logging system" when
running in a container.

When running in a container, the previous approach of using BASE_DIR
is not a writable path. Also, we really do not want to be writing logs into
the source tree, as the BASE_DIR was resolving to bitbake/lib/toaster/logs

Since Toaster is only ever running in an environment where oe-init-buildenv
or similar has been sourced, we should instead write the logs to BUILDDIR.

Using BUILDDIR to logs make path writable but django-log-viewer does'nt manage
to write logs using an absolute path as BUILDDIR, where the existing toaster_ui.log
was already being written.

Also drop the /logs/ directory, as it has not been created which also breaks
in a container environment

To handle the constraints linked to django-log-viewer and /logs/, we've updated
bitbake/bin/toaster to create a toaster_logs/ directory in BUILDDIR if it doesn't exist,
when toaster starts up.

Also manage to set BUILDDIR/toaster_logs/ as default location for toaster logs.

(Bitbake rev: efbd9d54f57be7a7a10f0b56e7e62c25974e99e6)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Tested-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 08:32:29 +01:00
Mingli Yu
6c43e84032 openssh: Don't hardcode the dir in sshd.service
Don't hardcode the directory of the binary in sshd.service.

(From OE-Core rev: 977820725c39736061b649389864a53e112e213d)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 08:28:38 +01:00
Xiangyu Chen
66b9bd9fe4 linux-yocto: make sure the pahole-native available before do_kernel_configme
When using debug-btf.scc in a clean workspace, the CONFIG_MODULE_ALLOW_BTF_MISMATCH cannot
apply to kernel until clean the kernel code(bitbake linux-yocto -c cleanall) and rebuild.

After tracking the code, some options depend on CONFIG_PAHOLE_VERSION, it was generated by
scripts/pahole-version.sh in kernel, but during do_kernel_configme step, the pahole-native
is not available in sysroot-native, so need to wait pahole-native install to sysroot-native
before do_kernel_configme.

(From OE-Core rev: 217a4db53edbd88001f6390bbff39e5dd3d137af)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-27 08:28:38 +01:00
Julien Stephan
9f306937ba oeqa/selftest/recipetool: add selftest for PEP-517 recipe creation
Add 3 tests to check the creation of PEP-517 project using the 3
 backends supported by bitbake:
  - setuptools.build_meta
  - poetry.core.masonry.api
  - flit_core.buildapi

Theses tests requires the tomllib python module, so skip theses tests
if module is not present. tomllib module is part of python starting from 3.11

(From OE-Core rev: 54356c6f1290d0d4170ed52f7bb358bb9efc1aec)

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-10-27 08:28:38 +01:00
Julien Stephan
d4debbf5b7 recipetool/create_buildsys_python: add PEP517 support
Add basic support for PEP517 [1] for the 3 following backends that are
supported by bitbake:
  - setuptools.build_meta
  - poetry.core.masonry.api
  - flit_core.buildapi

If a pyproject.toml file is found, use it to create the recipe,
otherwise fallback to the old setup.py method.

Some projects can declare a minimal pyproject.toml file, and put all
the metadata in setup.py/setup.cfg/requirements.txt .. theses cases
are not handled. If a pyproject.toml file is found, assumes it has all
necessary metadata.

As for the old setup.py method, version numbers for dependencies are not
handled.

Some features may be missing, such as the extra dependencies.

[YOCTO #14737]

[1]: https://peps.python.org/pep-0517/

(From OE-Core rev: c7d8d15b2d0a9ecd210bd247fa0df31d9f458873)

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-10-27 08:28:38 +01:00
Julien Stephan
e64e92f2de recipetool/create_buildsys_python: refactor code for futur PEP517 addition
In order to prepare the support for pyproject.toml (PEP517 [1]) enabled
projects, refactor the code and move setup.py specific code into a
specific class in order to allow sharing the PythonRecipeHandler class

No functionnal changes expected

[1]: https://peps.python.org/pep-0517/#source-tree

(From OE-Core rev: 2281e93347da4129062cfb40710df03c87c63168)

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-10-27 08:28:38 +01:00
Julien Stephan
be129bd0bc recipetool/create_buildsys_python: prefix created recipes with python3-
By convention, all python recipes start with "python3-" so update
create_buildsys_python to do this

This rule doesn't apply for packages already starting with "python"

Update recipetool's selftest accordingly

(From OE-Core rev: b0d87440e610b80f763d09784d4a90a148bb3e7b)

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-10-27 08:28:38 +01:00
Julien Stephan
0021e3573a recipetool/create_buildsys_python: fix license note
License field of setup is not always standardized, so we usually use the
classifier to determine the correct license format to use in the recipe.

A warning note is added above the LICENSE field of the create recipe
in case a license is provided in setup. But when the plugin is called,
"LICENSE =" is not yet present so we can never display this note.
Replace the "LICENSE =" condition with "##LICENSE_PLACEHOLDER##"
to actually be able to display the note message

(From OE-Core rev: b7c26ca2028aa60f740464de85a11a01a531f32e)

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-10-27 08:28:38 +01:00
Julien Stephan
df011d7498 oeqa/selftest/devtool: remove spaces on empty line
(From OE-Core rev: a37430f682bca9787d939b0722dd5d0d810c12c6)

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-10-27 08:28:38 +01:00
Julien Stephan
8ed88a98d5 oeqa/selftest/devtool: abort if a local workspace already exist
if user run devtool selftests with a local workspacelayer
the tests fail with various error such as:

- devtool.DevtoolAddTests.test_devtool_add just hangs
- devtool.DevtoolModifyTests.* fail with the following error:

 ERROR: Found duplicated BBFILE_COLLECTIONS 'workspacelayer', check bblayers.conf or layer.conf to fix it.
 Found duplicated BBFILE_COLLECTIONS 'workspacelayer', check bblayers.conf or layer.conf to fix it.

Check if a workspacelayer exists, warn the user and abort the tests

(From OE-Core rev: a74962cfb0485f6f2b9e2b751c33c8eafca8705a)

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-10-27 08:28:38 +01:00
Khem Raj
aedce97caa kernel.bbclass: Use strip utility used for kernel build in do_package
os.environ does not pass this down to runstrip() function and in
strip_execs() its using STRIP bitbake variable to find the strip utility
to use. Since there might be a trailing whitespace in KERNEL_STRIP
remove that otherwise python is not able to launch it.
e.g.

FileNotFoundError: [Errno 2] No such file or directory: 'riscv64-yoe-linux-strip '

This is more evident when STRIP and KERNEL_STRIP are different utilities
e.g. when using clang as default toolchain but using gcc+binutils only for
kernel build.

(From OE-Core rev: 77497dbdca92ab4d6386a071bc281c42a7e8a14b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: 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-10-27 08:28:38 +01:00
Michael Opdenacker
7ac5639812 oeqa/runtime/cases/parselogs: remove "edgerouter" case
The "edgerouter" machine has been removed since
https://git.yoctoproject.org/poky/commit/?id=0c64d0e4317e3749f7f7ed9ecd5d08bbb0cedc9e

(From OE-Core rev: b82514c821add181e141d12b0c1723760b445fea)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 21:11:28 +01:00
Trevor Gamblin
207a5a21d3 patchtest: simplify test directory structure
Consolidate the various mbox tests into a new TestMbox class, metadata
tests into TestMetadata, and patch tests into TestPatch. Also update the
selftest filenames to match the changes. The test contents are not
significantly changed (other than to reference the new class names).
While this doesn't improve overall readability, it does result in more
obvious categorization, and more importantly reduces the number of calls
to setup tinfoil in the tests, resulting in a roughly 25% reduction in
runtime.

Before:

[tgamblin@megalith poky]$ time ./meta/lib/patchtest/selftest/selftest
XPASS: PatchSignedOffBy.test_signed_off_by_presence (file: PatchSignedOffBy.test_signed_off_by_presence.pass)
XFAIL: Shortlog.test_shortlog_format (file: Shortlog.test_shortlog_format.fail)
XFAIL: MboxFormat.test_mbox_format (file: MboxFormat.test_mbox_format.1.fail)
XPASS: Shortlog.test_shortlog_length (file: Shortlog.test_shortlog_length.pass)
XFAIL: CommitMessage.test_commit_message_presence (file: CommitMessage.test_commit_message_presence.fail)
XFAIL: SrcUri.test_src_uri_left_files (file: SrcUri.test_src_uri_left_files.fail)
XPASS: Author.test_author_valid (file: Author.test_author_valid.1.pass)
XFAIL: LicFilesChkSum.test_lic_files_chksum_modified_not_mentioned (file: LicFilesChkSum.test_lic_files_chksum_modified_not_mentioned.fail)
XPASS: CVE.test_cve_tag_format (file: CVE.test_cve_tag_format.pass)
XPASS: CVE.test_cve_presence_in_commit_message (file: CVE.test_cve_presence_in_commit_message.pass)
XFAIL: CVE.test_cve_tag_format (file: CVE.test_cve_tag_format.fail)
XFAIL: Author.test_author_valid (file: Author.test_author_valid.1.fail)
XFAIL: LicFilesChkSum.test_lic_files_chksum_presence (file: LicFilesChkSum.test_lic_files_chksum_presence.fail)
XSKIP: Merge.test_series_merge_on_head (file: Merge.test_series_merge_on_head.2.skip)
XPASS: MboxFormat.test_mbox_format (file: MboxFormat.test_mbox_format.pass)
XFAIL: SignedOffBy.test_signed_off_by_presence (file: SignedOffBy.test_signed_off_by_presence.1.fail)
XPASS: Shortlog.test_shortlog_format (file: Shortlog.test_shortlog_format.pass)
XFAIL: SignedOffBy.test_signed_off_by_presence (file: SignedOffBy.test_signed_off_by_presence.2.fail)
XFAIL: MboxFormat.test_mbox_format (file: MboxFormat.test_mbox_format.2.fail)
XFAIL: Summary.test_summary_presence (file: Summary.test_summary_presence.fail)
XPASS: Author.test_author_valid (file: Author.test_author_valid.2.pass)
XSKIP: Merge.test_series_merge_on_head (file: Merge.test_series_merge_on_head.1.skip)
XPASS: Bugzilla.test_bugzilla_entry_format (file: Bugzilla.test_bugzilla_entry_format.pass)
XFAIL: CVE.test_cve_presence_in_commit_message (file: CVE.test_cve_presence_in_commit_message.fail)
XPASS: SignedOffBy.test_signed_off_by_presence (file: SignedOffBy.test_signed_off_by_presence.pass)
XPASS: LicFilesChkSum.test_lic_files_chksum_presence (file: LicFilesChkSum.test_lic_files_chksum_presence.pass)
XPASS: CommitMessage.test_commit_message_presence (file: CommitMessage.test_commit_message_presence.pass)
XPASS: Summary.test_summary_presence (file: Summary.test_summary_presence.pass)
XPASS: LicFilesChkSum.test_lic_files_chksum_modified_not_mentioned (file: LicFilesChkSum.test_lic_files_chksum_modified_not_mentioned.pass)
XFAIL: Shortlog.test_shortlog_length (file: Shortlog.test_shortlog_length.fail)
XFAIL: PatchSignedOffBy.test_signed_off_by_presence (file: PatchSignedOffBy.test_signed_off_by_presence.fail)
XFAIL: Bugzilla.test_bugzilla_entry_format (file: Bugzilla.test_bugzilla_entry_format.fail)
XPASS: SrcUri.test_src_uri_left_files (file: SrcUri.test_src_uri_left_files.pass)
XFAIL: Author.test_author_valid (file: Author.test_author_valid.2.fail)
============================================================================
Testsuite summary for patchtest
============================================================================
============================================================================

real    24m14.386s
user    1m13.599s
sys     0m21.477s

After:

[tgamblin@megalith poky]$ time ./meta/lib/patchtest/selftest/selftest
XFAIL: TestMbox.test_bugzilla_entry_format (file: TestMbox.test_bugzilla_entry_format.fail)
XPASS: TestMetadata.test_summary_presence (file: TestMetadata.test_summary_presence.pass)
XFAIL: TestMbox.test_mbox_format (file: TestMbox.test_mbox_format.1.fail)
XFAIL: TestMetadata.test_src_uri_left_files (file: TestMetadata.test_src_uri_left_files.fail)
XSKIP: TestMbox.test_series_merge_on_head (file: TestMbox.test_series_merge_on_head.2.skip)
XPASS: TestMbox.test_commit_message_presence (file: TestMbox.test_commit_message_presence.pass)
XFAIL: TestMbox.test_commit_message_presence (file: TestMbox.test_commit_message_presence.fail)
XPASS: TestMbox.test_signed_off_by_presence (file: TestMbox.test_signed_off_by_presence.pass)
XFAIL: TestPatch.test_cve_tag_format (file: TestPatch.test_cve_tag_format.fail)
XFAIL: TestMbox.test_author_valid (file: TestMbox.test_author_valid.1.fail)
XFAIL: TestMbox.test_shortlog_length (file: TestMbox.test_shortlog_length.fail)
XPASS: TestMbox.test_mbox_format (file: TestMbox.test_mbox_format.pass)
XFAIL: TestPatch.test_signed_off_by_presence (file: TestPatch.test_signed_off_by_presence.fail)
XFAIL: TestMbox.test_shortlog_format (file: TestMbox.test_shortlog_format.fail)
XFAIL: TestMbox.test_mbox_format (file: TestMbox.test_mbox_format.2.fail)
XPASS: TestPatch.test_cve_tag_format (file: TestPatch.test_cve_tag_format.pass)
XSKIP: TestMbox.test_series_merge_on_head (file: TestMbox.test_series_merge_on_head.1.skip)
XPASS: TestMbox.test_author_valid (file: TestMbox.test_author_valid.2.pass)
XPASS: TestMetadata.test_lic_files_chksum_modified_not_mentioned (file: TestMetadata.test_lic_files_chksum_modified_not_mentioned.pass)
XPASS: TestMbox.test_bugzilla_entry_format (file: TestMbox.test_bugzilla_entry_format.pass)
XPASS: TestMetadata.test_src_uri_left_files (file: TestMetadata.test_src_uri_left_files.pass)
XPASS: TestMetadata.test_lic_files_chksum_presence (file: TestMetadata.test_lic_files_chksum_presence.pass)
XPASS: TestMbox.test_cve_presence_in_commit_message (file: TestMbox.test_cve_presence_in_commit_message.pass)
XFAIL: TestMbox.test_signed_off_by_presence (file: TestMbox.test_signed_off_by_presence.2.fail)
XFAIL: TestMbox.test_author_valid (file: TestMbox.test_author_valid.2.fail)
XFAIL: TestMetadata.test_lic_files_chksum_presence (file: TestMetadata.test_lic_files_chksum_presence.fail)
XPASS: TestMbox.test_shortlog_format (file: TestMbox.test_shortlog_format.pass)
XPASS: TestMbox.test_author_valid (file: TestMbox.test_author_valid.1.pass)
XPASS: TestPatch.test_signed_off_by_presence (file: TestPatch.test_signed_off_by_presence.pass)
XFAIL: TestMetadata.test_lic_files_chksum_modified_not_mentioned (file: TestMetadata.test_lic_files_chksum_modified_not_mentioned.fail)
XPASS: TestMbox.test_shortlog_length (file: TestMbox.test_shortlog_length.pass)
XFAIL: TestMbox.test_signed_off_by_presence (file: TestMbox.test_signed_off_by_presence.1.fail)
XFAIL: TestMbox.test_cve_presence_in_commit_message (file: TestMbox.test_cve_presence_in_commit_message.fail)
XFAIL: TestMetadata.test_summary_presence (file: TestMetadata.test_summary_presence.fail)
============================================================================
Testsuite summary for patchtest
============================================================================
============================================================================
real    18m39.749s
user    0m41.857s
sys     0m14.708s

(From OE-Core rev: f788592da2fd0e21638ce2c3326675a060ba51cf)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 21:11:28 +01:00
Michael Opdenacker
cdee2b22e1 local.conf.sample: remove mips edgerouter machine
No longer supported since
https://git.yoctoproject.org/poky/commit/?id=0c64d0e4317e3749f7f7ed9ecd5d08bbb0cedc9e

(From meta-yocto rev: e93ae2edfb3846ea696f45412b7aedcdd8d0b845)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 17:11:48 +01:00
Peter Marko
17571e6afc openssl: Upgrade 3.1.3 -> 3.1.4
https://github.com/openssl/openssl/blob/openssl-3.1/NEWS.md#major-changes-between-openssl-313-and-openssl-314-24-oct-2023

Major changes between OpenSSL 3.1.3 and OpenSSL 3.1.4 [24 Oct 2023]
* Mitigate incorrect resize handling for symmetric cipher keys and IVs. (CVE-2023-5363)

(From OE-Core rev: 104ba16de434a08b0c8ba4208be187f0ad1a2cf8)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:35 +01:00
Niko Mauno
849d29c855 package_rpm: Allow compression mode override
Commit 4a4d5f78a6 ("package_rpm: use zstd
instead of xz") changed the rpm package compressor from 'xz' to 'zstd'
which results in decompression failure with BusyBox-provided 'rpm2cpio'
applet and 'rpm' applet when given the '-i' (Install package) option:

  rpm2cpio: no gzip/bzip2/xz magic

Introduce a variable which makes it possible to use a different
compression mode, making it possible to override the default value for
example like

  RPMBUILD_COMPMODE = "${@'w6T%d.xzdio' % int(d.getVar('XZ_THREADS'))}"

to enable rpm decompression without including the full rpm package in
the resulting root filesystem.

(From OE-Core rev: a40d9258148e28cbee2168c93179cd4c1232fb62)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:35 +01:00
Niko Mauno
6df9e7c895 package_rpm: Remove unused definitions
Some local variables defined in do_package_rpm() are not referenced, so
remove such dead code lines.

(From OE-Core rev: 5d387bc9001726937ffa7d3cfc333cfa31b681fb)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:35 +01:00
Niko Mauno
acf1c821b6 package_rpm: Minor cosmetic and style fixes
Add the missing conventional space characters around bitbake variable
assignment operators. Also fix a typo on a comment line.

(From OE-Core rev: 3dea51ce6c91dc2b12a5520dede51ec6357e87d5)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:35 +01:00
Niko Mauno
91352a99f7 package_rpm: Fix some pycodestyle issues
Fix following subset of observations reported by version 2.10.0 of
pycodestyle utility:

  meta/classes-global/package_rpm.bbclass:65:46: E231 missing whitespace after ','
  meta/classes-global/package_rpm.bbclass:66:46: E231 missing whitespace after ','
  meta/classes-global/package_rpm.bbclass:107:19: E231 missing whitespace after ','
  meta/classes-global/package_rpm.bbclass:109:69: E202 whitespace before ')'
  meta/classes-global/package_rpm.bbclass:122:103: W291 trailing whitespace
  meta/classes-global/package_rpm.bbclass:194:74: W291 trailing whitespace
  meta/classes-global/package_rpm.bbclass:448:16: E713 test for membership should be 'not in'
  meta/classes-global/package_rpm.bbclass:450:16: E713 test for membership should be 'not in'
  meta/classes-global/package_rpm.bbclass:520:1: W293 blank line contains whitespace
  meta/classes-global/package_rpm.bbclass:521:15: E231 missing whitespace after ','
  meta/classes-global/package_rpm.bbclass:542:12: E713 test for membership should be 'not in'
  meta/classes-global/package_rpm.bbclass:544:12: E713 test for membership should be 'not in'
  meta/classes-global/package_rpm.bbclass:647:67: W291 trailing whitespace

(From OE-Core rev: 7920599c05c066767025063b277df73c6560753d)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:35 +01:00
Ross Burton
4962d27e5d pixman: ignore CVE-2023-37769
This issue relates to a floating point exception in stress-test, which
is an unlikely security exploit at the best of times, but the test is
not installed so isn't relevant.

(From OE-Core rev: 72f2d4cf44b795f766ecdee0b8362c7e162c5efc)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:34 +01:00
Ross Burton
c1e7eed4f7 cve-check: slightly more verbose warning when adding the same package twice
Occasionally the cve-check tool will warn that it is adding the same
package twice.  Knowing what this package is might be the first step
towards understanding where this message comes from.

(From OE-Core rev: c1179faec8583a8b7df192cf1cbf221f0e3001fc)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:34 +01:00
Ross Burton
a9986a2184 cve-check: sort the package list in the JSON report
The JSON report generated by the cve-check class is basically a huge
list of packages.  This list of packages is, however, unsorted.

To make things easier for people comparing the JSON, or more
specifically for git when archiving the JSON over time in a git
repository, we can sort the list by package name.

(From OE-Core rev: e9861be0e5020830c2ecc24fd091f4f5b05da036)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:34 +01:00
Ross Burton
58b86dbf5e zlib: ignore CVE-2023-45853
This CVE relates to a bug in the minizip tool, but we don't build that.

(From OE-Core rev: a32f285501b459cfe18e3135a3c531b63f58034c)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:34 +01:00
Ross Burton
01a5135980 libxml2: ignore disputed CVE-2023-45322
This CVE is a use-after-free which theoretically can be an exploit
vector, but this UAF only occurs when malloc() fails.  As it's
unlikely that the user can orchestrate malloc() failures at just the
place to break on _this_ malloc and not others it is disputed that this
is actually a security issue.

The underlying bug has been fixed, and will be incorporated into the
next release.

(From OE-Core rev: b93dd888b861aa6df97cd78b70fa9f757cfcdf61)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-26 15:29:34 +01:00
Trevor Gamblin
71bf3fcf0f patchtest/selftest: add XSKIP, update test files
Since we are skipping the merge test, two of the selftests now report
SKIP instead of XPASS/XFAIL as expected. Adjust the two files to have
the right endings for XSKIP, and add the category so that it can be used
for more extensive testing in the future.

(From OE-Core rev: 3331f53c0be2575784a042bb2401eeba4f2a5a3e)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-25 23:10:19 +01:00
Trevor Gamblin
d1c21e9eea patchtest-send-results: check max line length, simplify responses
Check that the maximum line length of the testresult file is less than
220 characters, to help guard against malicious changes being sent in
email responses. If any line exceeds this length, replace the normal
testresults used in the response with a line stating that tests failed,
but the results could not be processed. Also clean up the respone
substrings slightly to go along with the change.

(From OE-Core rev: b0d53cf587dc9afb97f00c1089e45b758e96dd7c)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-25 15:52:13 +01:00
Khem Raj
1221529a69 openssl: Inherit riscv32 config from latomic config on linux
We still need this option for riscv32, the patch is also submitted
upstream

(From OE-Core rev: 2e923a5a67e51463dcf938079c4a199873ccba85)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-25 10:20:39 +01:00
Rasmus Villemoes
ccd5798f54 perf: lift TARGET_CC_ARCH modification out of security_flags.inc
Building perf without security_flags.inc being included in one's
distro results in the buildpaths warning

WARNING: perf-1.0-r9 do_package_qa: QA Issue: File /usr/bin/trace in
package perf contains reference to TMPDIR

because the ${DEBUG_PREFIX_MAP} does not get used. Most recipes get
that from CFLAGS, but the perf recipe explicitly unsets that.

Now ${SELECTED_OPTIMIZATION} of course contains more than just
${DEBUG_FLAGS}/${DEBUG_PREFIX_MAP}. For most TUs, perf's build system
adds its own optimization flags (-O6 for odd reasons), so for those
including the -O2 or -Og doesn't change anything. But looking at the
.o.cmd files show that there are some TUs which currently get built
without any -O flag. So for those adding the distro's
SELECTED_OPTIMIZATION seem to be the right thing to do.

(From OE-Core rev: aa01c9122ef4a2159df503ef6ed25e802277f13a)

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-25 10:20:39 +01:00
Trevor Gamblin
440c9f9b77 patchtest: disable merge test
Disable the merge-on-head test until patchtest properly handles merging
of series subsets and accounts for patches that are rapidly merged (i.e.
before patchtest is run).

(From OE-Core rev: e561c614dc72b7f8bf5e09a09bbe6ebc3cf500bb)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-24 21:41:58 +01:00
Trevor Gamblin
e66dcd89b4 patchtest-send-results: improve subject line
Pull the actual email's subject line from the .mbox file and use that in
patchtest's test results response, so that it's clearer which patch it
is replying to.

(From OE-Core rev: 98ca0b151517b3544454fd5c1656a2de631c4897)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-24 14:21:37 +01:00
Marta Rybczynska
3259f262c6 bitbake: SECURITY.md: add file
Add a SECURITY.md file with hints for security researchers and other
parties who might report potential security vulnerabilities.

(Bitbake rev: baeaa73df2e2f2edc98f8779d57f3841d382d8fc)

Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-24 12:49:56 +01:00
Ross Burton
0f1651a713 linux-yocto: update CVE exclusions
(From OE-Core rev: e586c9ddc86b6d35c651cecd3be22b3e43306ecf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 15:48:04 +01:00
Ragesh Nair
eadd4605da bitbake: fetch2/git: fix lfs fetch with destsuffix param
Pre-fetching of LFS blobs now also works if a destsuffix parameter is
supplied.

This also fixes issues with Yocto Kirkstone (and newer) builds, where
fetching the LFS blobs is retried unsuccessfully during do_unpack, as
network access is blocked for any task other than do_fetch.

(Bitbake rev: e411dc07d032be6811d0393c50a06fc28e669b24)

Signed-off-by: Ragesh Nair <ragesh.nair@duagon.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Chris Laplante
c4205d2455 bitbake: codeparser: add missing 'import os'
(Bitbake rev: 302969885d37a76edec3aa79181e98f8d7e28021)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Chris Laplante
9ddd559091 bitbake: runqueue: set has 'add', not 'append' method
Discovered via pylint

(Bitbake rev: 1a353cda696b7f59386ad2d78a57005b90a37da4)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Alassane Yattara
0a55156ca0 bitbake: Toaster: bug-fix on tests.views.test_views.py
- Update toastergui/fixtures/toastergui-unittest-data.xml to added tow distro
objects. Test fail because distro table was empty

(Bitbake rev: 0487970d0e762fad021bdfb53ccbd4c75098c7dd)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Alassane Yattara
01e68702fe bitbake: Toaster: bug-fix on tests/views/test_views.py
- Create a tmp file for base recipe, otherwise test fail it doesn't exist

(Bitbake rev: e865f6dc7c7c4f0b447806d525cd69e72c290800)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Alassane Yattara
2403af6533 bitbake: Toaster: bug-fix on custom image test cases
To test custom image creation, a file for base_recipe should exists otherwise test fail,
User we need to build a base image first, that will create a file for base_recipe, which take a while.

To avoid test dependencies between test and run build, i create a tmp file for base recipe.

Signed-off-by Alassane Yattara <alassane.yattara@savoirfairelinux.com>

(Bitbake rev: 99c24df73831a72f311090b3aebcf3cc4e86851a)

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Alassane Yattara
b879dc5d9a bitbake: Toaster: bug-fix on /toastermain/logs.py
- Update /toastermain/logs.py to fix:
AttributeError: 'NoneType' object has no attribute 'view_name'

Signed-off-by Alassane Yattara <alassane.yattara@savoirfairelinux.com>

(Bitbake rev: 307f40fc83a0e3d530bf934ef4aefd8e15cf27de)

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Alexander Kanavin
3daf36c629 bitbake: runqueue.py: clarify that 'closest' signature means 'most recent' (and not closest in its content)
This is printed by 'bitbake -S printdiff' and more accurately reflects what
the code does.

Most of the time the most recent item should be what the user wants to see when debugging sstate
misses, but there could also be printdiff-all (print differences with all
matching sstate objects), or printdiff-N (N most recent, and not just the latest).

(Bitbake rev: 315f48f965a54da5cec92908d91aa61c2d450add)

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>
2023-10-23 11:46:36 +01:00
BELHADJ SALEM Talel
33503a6b16 bitbake: Fix find_bbfiles string endswith call
(Bitbake rev: 5f742591b251b6a5302ab07fe6b809c2863c3c70)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Pavel Zhukov
695ba46528 bitbake: tests/fetch.py: Add tests to cover multiple branch/name parameters
Create repository with few branches and test if fetcher can work
with such repository as PREMIRROR

(Bitbake rev: a1737610e5d5b61e126ec3632d7f27b337a87818)

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 11:46:36 +01:00
Alexis Lothoré
ea09071364 scripts/yocto_testresults_query: add option to change display limit
Add a "-l"/"--limit" option to allow changing the display limit in
resulttool.
- If no value is passed, resulttool uses its default value.
- If 0 is passed, the display limit is removed and every regression will be
  displayed
- If a custom value is passed, this value overrides the vlaue configured in
  resulttool

(From OE-Core rev: d3f536b3fc3f7027f6f5cf8bdaf5d7c050c7974b)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Alexis Lothoré
198110b1b9 scripts/resulttool: make additional info more compact
Since "matched" and "improved" tests are not as important as regressions,
reduce the place they take in the regression report:

- merge "matched" and "improved" tests, while removing the label
- add a single line of additional info per pair

Those changes make the "Matches and improvements" look like the following
sample:

oeselftest_almalinux-9.2_qemux86-64_20230910083156
oeselftest_almalinux-8.8_qemux86-64_20231018010951
    -> +7 test(s) present

oeselftest_almalinux-9.2_qemux86-64_20230911010538
oeselftest_debian-11_qemux86-64_20231017150459

oeselftest_debian-11_qemux86-64_20230910012927
oeselftest_debian-11_qemux86-64_20231017151319
    -> +7 test(s) present
[...]

(From OE-Core rev: 6de4426d9a7da67deed7d3a3918892fb56238ff3)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Alexis Lothoré
faef63eab6 scripts/resulttool: rearrange regressions report order
Regressions reports currently reports matching pairs and improved pairs
first, then regressions.

Change order to print regressions first, which is the most valuable info in
the report, and then print improvements and matches at the bottom.

(From OE-Core rev: 599267467430e70fa4dc8ba6b2a8b126bf6da359)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Alexis Lothoré
c304fcbe05 scripts/resulttool: limit the number of changes displayed per test
Most of the changes list generated in regression reports fall in one
of the two following categories:
- there is only a few (<10) changes listed and the info is
  valuable/relevant
- the list is huge (> 100 ? 1000 ?) and basically tells us that the whole
  tests category suffers the same status (test missing, test failing, test
  skipped, etc)

Prevent those huge, worthless lists by limiting the output for each test
group:
- current default limit is arbitrarily set to 50
- limit can still be overriden with a new "-l"/"--limit" flag, either with
  custom value, or with 0 to print the whole lists of changes
- limit is applied per test family: currently it distinguishes only types
  of ptests, but it can be adapted to other kind of tests

(From OE-Core rev: cec118406f3ad81cb4709f6e6ae1cef65799658e)

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Glenn Strauss
7cba02e8be lighttpd: modernize lighttpd.conf
- remove obsolete modules
- replace mod_compress directives with mod_deflate
- do not enable debug.log-request-handling by default
  (should not be enabled *by default* on any production system,
   especially not an embedded system)
- update TLS syntax for modern recommended use
  (separate files for certificate+chain, and private key)
- remove incorrect comment about server.event-handler
  lighttpd defaults correctly to use kqueue on *BSD systems
- remove ancient config which disables range requests for PDF
  (cargo-culted config from ~15 years ago to address problem
   in then-popular PDF client)
- use recommend config file include syntax
  (more efficient and more deterministic include file ordering)

(From OE-Core rev: b52a12e66d2f9ed0751b63cea01e96890da15998)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Glenn Strauss
0d3c7e9630 lighttpd: update init script
- add configtest option
- add configtest before starting, restart, reload, force-reload
- change reload,force-reload to use lighttpd graceful restart
  via kill signal USR1

(From OE-Core rev: 589450af505de6a00ba7d7a3b647a514d1d1282f)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Glenn Strauss
74fe34f1c0 lighttpd: upgrade 1.4.71 -> 1.4.72
(From OE-Core rev: 935d8d65488d5c08a84f7c43bb067c6660fec7a7)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Khem Raj
088207034b openssl: Match target name for riscv64/riscv32
This is updated in openssl [1] [2] since opensssl 3.2 onwards

[1] 42ee6e7be4
[2] c29554245a

(From OE-Core rev: ed280618b40e5c67d475f74569183a11619b52c2)

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>
2023-10-23 10:49:19 +01:00
Alex Stewart
7d6578578f libsndfile1: fix CVE-2022-33065
(From OE-Core rev: f34991c7eeb91702a44ac8b4a190fcb45dac57cb)

Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Jörg Sommer
90ac8a0c66 package_qa_check_rdepends: Allow /usr/bin/sh if usrmerge
If the distro feature usrmerge is set, all files from /bin are moved to
/usr/bin, i.e. /usr/bin/sh is the same as /bin/sh and should be allowed be
ignored, because it's always present.

(From OE-Core rev: 330dc61053afae8a1812bda6f9e01e2f09d1f08f)

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Logan Gunthorpe
91acd29313 runqemu: Add squashfs filesystem types
When using a squashfs filesystem type, runqemu requires specifying the
full path to the image because it doesn't list squashfs types in its
fstypes variable. Add them to provide the same support as other
filesystem types.

(From OE-Core rev: c9c9a077e85b56f495f09187483548149f142a8d)

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Khem Raj
2d052d72f9 shared-mime-info: Fix missing sentinel warning
Clang finds it, gcc does not.

(From OE-Core rev: a49a38c614280ba38a4c63fbac78a64efc30221f)

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>
2023-10-23 10:49:19 +01:00
Peter Kjellerstedt
cec84a072d bb-matrix-plot.sh: Show underscores correctly in labels
Underscores previously caused the next character in the label to be
printed using subscript due to the enhanced string support in gnuplot.

(From OE-Core rev: 282b48f90f77e0766993018d22fe03dd303febdc)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Thomas Wolber
89c99e4fe8 kea: drop unused directory
the usage of /var/kea was dropped in the 1.6 release (see
https://gitlab.isc.org/isc-projects/kea/-/issues/538 ).
Creating the directory fails on systems with read-only rootfs.

(From OE-Core rev: 24ee9ea30d1fdee8801bab521db227708f5600e2)

Signed-off-by: Thomas Wolber <Thomas.Wolber@bruker.com>
Signed-off-by: Vyacheslav Yurkov <vyacheslav.yurkov@bruker.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Eero Aaltonen
e33267f807 systemd: add option to use stub-resolv.conf
Add option to use the stub-resolv.conf file, which is the systemd
upstream's recommended default mode
https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#/etc/resolv.conf

This enables the resolution of Multicast DNS and Link-Local Multicast
Name Resolution names for programs that do not use Name Service Switch.

(From OE-Core rev: dfa541ee4ffab5c43ac4b3f23552b7f9db5cb362)

Signed-off-by: Eero Aaltonen <eero.aaltonen@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Eero Aaltonen
6f30e3586e base-files, systemd: add nss-resolve plugin
Add nss-resolve plugin to the glibc Name Service Switch (NSS) with
systemd-resolved DISTRO_FEATURE so that systemd-resolved is used in DNS
name resolution.

This enables the resolution of Multicast DNS and Link-Local Multicast
Name Resolution names, depending on the selected options.

(From OE-Core rev: 81da1d6eecee9fd036121298abba6fdcffc3969d)

Signed-off-by: Eero Aaltonen <eero.aaltonen@vaisala.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Marcus Folkesson
37dc9faae0 qemuboot.bbclass: fix typos in documentation
comand -> command
docuemntation -> documentation

(From OE-Core rev: 302228fb858384a7ef4e46ecae80d1ebbc00f1a7)

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-23 10:49:19 +01:00
Khem Raj
613a5b80f8 llvm: Upgrade to 17.0.3
Brings following fixes

* 888437e1b600 [asan] Ensure __asan_register_elf_globals is called in COMDAT asan.module_ctor (#67745)
* 2e00f4ca4e91 [clang-format][doc] Update the Linux kernel coding style URL
* aeb83c3783a6 [clang-format] Fix a serious bug in git-clang-format (#65723)
* 268faa377aee [LSan] Mark create_thread_leak.cpp as UNSUPPORTED: darwin.
* 491a91e8eea2 [PowerPC] Use zext instead of anyext in custom and combine (#68784)
* 8ce6b65c89ad [PowerPC] Add test for #68783 (NFC)
* 7a23a5d43c67 [clang-format] Fix a bug in RemoveParentheses: ReturnStatement (#67911)
* be4016e52779 [X86] Fix logic for optimizing movmsk(bitcast(shuffle(x))); PR67287
* 496b174053bd [X86] Add tests for incorrectly optimizing out shuffle used in `movmsk`; PR67287
* f50c6382c716 [clang] [MinGW] Explicitly always pass the -fno-use-init-array (#68571)
* d10b731adcc8 [LVI][CVP] Treat undef like a full range (#68190)
* 37b79e779f44 [X86] combineConcatVectorOps - only concatenate single-use subops
* 5a13ce2d6020 Bump version to 17.0.3
* e7b3b94cf500 [clang] Correct behavior of `LLVM_UNREACHABLE_OPTIMIZE=OFF` for `Release` builds (#68284)
* f0a687d821c1 [LLD] [COFF] Fix handling of comdat .drectve sections (#68116)
* 8a8ade49ff49 workflows/release-binaries: Use more cores to avoid the 6 hour timeout (#67874)
* 1090b91a2840 [AArch64] Disable loop alignment for Windows targets (#67894)
* 69c8c96691c7 [Sema] Use underlying type of scoped enum for -Wformat diagnostics (#67378)
* b2417f51dbbd (tag: llvmorg-17.0.2) Fix release/export.sh to export runtimes tarball, too (#67404)
* 23988a1d82d5 [libc++] Fix `std::pair`'s  pair-like constructor's incorrect assumption (#66585)
* 33e14ecd6aac [CodeGen] Don't treat thread local globals as large data (#67764)
* 03f797b51df6 [workflow] Fix abi checker in llvm-tests. Same fix as in 99fb0af80d16b0ff886f032441392219e1cac452 (#67957)
* f6cf58eed973 [clang] [MinGW] Tolerate mingw specific linker options during compilation (#67891)
* b338a2830a2c [LLD] [COFF] Restore the current dir as the first entry in the search path (#67857)
* 6a5be8e95b43 [LLD] [COFF] Clarify -print-search-path for the empty string element (#67856)
* 71be0aafe357 [NFC] clang-format lld/COFF/Driver.cpp and lld/Common/Filesystem.cpp
* 0a2d7dae6ef2 [compiler-rt] Reinstate removal of CRT choice flags from CMAKE_*_FLAGS* (#67935)
* 098e653a5bed [MemCpyOpt] Merge alias metadatas when replacing arguments (#67539)
* 78d201ebc3e2 [MemCpyOpt] Add test for #67539 (NFC)
* e718f3240a57 [DependencyScanningFilesystem] Make sure the local/shared cache filename lookups use only absolute paths (#66122)
* 45066b9fbc7b [Sema] Fix fixit cast printing inside macros (#66853)
* 87ec1f460d0e Work around two more instances of __noinline__ conflicts. (#66138)
* 9da5b7a93bca [lldb] Fix building LLDB standlone without framework
* c056d720b534 [lldb][NFCI] Change logic to find clang resource dir in standalone builds
* cb23434f9e63 [XCOFF] Do not generate the special .ref for zero-length sections (#66805)
* 1b55dc9d94c3 Fix buildbot failure caused by D157623
* 28d81a2bfa0a [lld][COFF] Remove incorrect flag from EHcont table
* b7eba056b93c workflows/release-tasks: Setup FileCheck and not for release-lit (#66799)
* 9678f11b057c [StackColoring] Handle fixed object index
* 49e9ee190080 [StackColoring] Handle SEH catch object stack slots conservatively
* 17123a60b87c [X86] Add test for #66984 (NFC)
* 2839aa915066 [SimpleLoopUnswitch] Fix exponential unswitch
* 773f136d6faa [SimpleLoopUnswitch] Fix reversed branch during condition injection
* 4362f3e4cf48 [clang] Include `expected-no-diagnostics` in newly-added test (NFC)
* 5f1fcc43e592 [clang] Bail out when handling union access with virtual inheritance
* 178cf5bc8732 [clang][Diagnostics] Fix wrong line number display (#65238)
* 25a150b830f6 Revert "[InlineCost] Check for conflicting target attributes early"

(From OE-Core rev: 8cfb833b66e514ea911aa4fbdc72592a06233f68)

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>
2023-10-23 10:49:19 +01:00
Trevor Gamblin
95a3f69be5 patchtest: fix lic_files_chksum test regex
the test_lic_files_chksum_modified_not_mentioned test in patchtest
wasn't picking up on 'License-Update:' tags correctly. Use pyparsing's
AtLineStart class to simplify the regex setup and search.

(From OE-Core rev: dc9126e45e74b915faaf296037e7ece41785bf4a)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 17:02:13 +01:00
BELHADJ SALEM Talel
1b04f4422e ref-manual: variables: add example for SYSROOT_DIRS variable
(From yocto-docs rev: 65b62118da6f355e56c489c6be08ba9ea94b9f04)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
BELHADJ SALEM Talel
6a70a3366d ref-manual: variables: add TOOLCHAIN_OPTIONS variable
(From yocto-docs rev: 6f7bd97a6d3d6d8cfd149a7e07df35da4141e650)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
BELHADJ SALEM Talel
ca1e27016d ref-manual: variables: add RECIPE_SYSROOT and RECIPE_SYSROOT_NATIVE
(From yocto-docs rev: 8aa25e2a668d35bab2f79457248abcde92dc92aa)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
3591075ff4 dev-manual: start.rst: remove obsolete reference
Remove a reference to a web resource which is clearly marked as obsolete.
Replace the unnecessarily verbose note by just links to the mentioned tools.

[YOCTO #15233]

(From yocto-docs rev: 3f979f5d2446d57d75f0c4ad2199510d533880e8)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
a6753de86b brief-yoctoprojectqs: use new CDN mirror for sstate
Recommended instead of the Yocto Project mirror, because expected
to be faster. Make sure you only set one such mirror.

(From yocto-docs rev: 5a2d09501ab807a0f61c10533f3bd81894f6f20e)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: richard.purdie@linuxfoundation.org
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Jérémy Rosen
381ef628fa ref-manual: Add documentation for the unimplemented-ptest QA warning
(From yocto-docs rev: d90106ff2d905e457659acdb65a91ce5dcfdd05e)

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Trevor Gamblin
884c37f6fd contributor-guide: clarify patchtest usage
- Make it clear that patchtest only supports openembedded-core for now
- Add a short list of instructions for installing Python module
  dependencies on the host
- Add a step to add meta-selftest with bitbake layers so that all tests
  can run

(From yocto-docs rev: bcd58d68e72226be1930593f5f7fb37de15b7913)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Trevor Gamblin
544da7651d contributor-guide: add patchtest section
(From yocto-docs rev: 236cd04d62bdf653aae9b41d32d9f87848a34339)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
BELHADJ SALEM Talel
104899f390 dev-manual: layers: Add notes about layer.conf
As discussed before with Richard Purdie, the code supports this but the documentation does not.
Developers in general will not notice this or focus on it because they do not mess with the
layer.conf template file, but in my opinion I think more details can help.

(From yocto-docs rev: 15fc103d4ddd14698c8e75cc654ac157ca1ad740)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Quentin Schulz
efd54e4d1d ref-manual: variables: provide no-match example for COMPATIBLE_MACHINE
COMPATIBLE_MACHINE is used to forbid the use of a recipe or its packages
for a specific set of machines.

In some cases, it may make more sense to have the logic inverted and
have the recipe always forbidden except for hand-picked machines. Such
could be the case for pieces of software that only support some
architectures. In that scenario, it is sometimes a bit easier on the eye
and for maintenance to use the OVERRIDES mechanism but for that, a
default should be set.

COMPATIBLE_MACHINE:aarch64 = "^(aarch64)$"
COMPATIBLE_MACHINE:mips64 = "^(mips64)$"

wouldn't do much because if COMPATIBLE_MACHINE isn't set, the recipe is
assumed compatible and therefore, if no default is provided we enter
that case.

Hence, we need to add

COMPATIBLE_MACHINE = "^$"

as default so that it only matches the empty string, which isn't
possible for MACHINEOVERRIDES.

Cc: Quentin Schulz <foss+yocto@0leil.net>
(From yocto-docs rev: 52196d39bc85de267daffb0074eb59786751f57d)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Robert P. J. Day
7bd773fc00 profile-manual: aesthetic cleanups
Various aesthetic cleanups of section 1 of that manual, including:

  * replace 'HOWTO' with manual
  * add more examples of sdk-related images
  * font fixes

(From yocto-docs rev: 608e93e13a8316a8d40e0675d4335084efa3736a)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
BELHADJ SALEM Talel
f70a86b27e ref-manual: Fix PACKAGECONFIG term and add an example
PACKAGECONFIG's first and second flag value will be added to PACKAGECONFIG_CONFARGS
and then it will be added to the appropriate variable (EXTRA_OECMAKE, or ...)
So we need to only mention PACKAGECONFIG_CONFARGS and it will lead to other variables.

I added a custom example that can help understanding very well PACKAGECONFIG.

(From yocto-docs rev: 7f26b0c0a08d6be9810128369265b0c494e7191b)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Robert P. J. Day
cd9114c412 dev-manual: new-recipe.rst: add missing parenthesis to "Patching Code" section
Add missing parenthesis, and another example of a compressed patch filename.

(From yocto-docs rev: d44ccb5ed4292b0371651f38b9a0e3083f60ae87)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
ad2f5cdc43 bsp-guide: bsp: skip Intel machines no longer supported in Poky
(From yocto-docs rev: 0f8fe127eb9ae2f56b280a7634ea7ab9a270f382)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
8fd6d222ed manuals: update list of supported machines
The EdgeRouter machine is no longer supported.
https://git.yoctoproject.org/poky/commit/?id=0c64d0e4317e3749f7f7ed9ecd5d08bbb0cedc9e

(From yocto-docs rev: e600522f2d2514bdd888c91043b9c59563ee7a6d)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
373001bbc0 sdk-manual: appendix-obtain: improve and update descriptions
- Improve text formatting
- Stop mentioning all possible values
- Update examples
- Correct descriptions

(From yocto-docs rev: f7437c2efa1014dc46481993b5e87d52dcf42b05)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
0b3dd82d38 dev-manual: wic: update "wic list images" output
(From yocto-docs rev: b9791285e5df4fa124230d2da4dcabb67088e23b)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Michael Opdenacker
203c78b719 manuals: update linux-yocto append examples
(From yocto-docs rev: 0d195d66e434ddedd33bf8db89643fa5ab192e29)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Arne Schwerdt
1c90ad84f3 ref-manual: Warn about COMPATIBLE_MACHINE skipping native recipes
(From yocto-docs rev: fcc9b54cc46a0831f79a96e041cbe8deed58cf66)

Signed-off-by: Arne Schwerdt <arne.schwerdt@elbbits.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 14:40:29 +01:00
Alexander Kanavin
d180e9f1c2 selftest/buildoptions: tag the download mirror test with 'yocto-mirrors'
This will allow bundling all yocto mirror tests together, both for
the purposes of running only them specifically,
and excluding them from 'general' oe-selftest runs.

There is an upcoming test for sstate cache served over content
delivery network which will use the same tag, so it can be run
together with this.

(From OE-Core rev: 2a3f69b83ed10622d6a39774528dbfaebb3e5ded)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-20 13:54:23 +01:00
Trevor Gamblin
8cea0676b7 patchtest: skip merge test if not targeting master
Avoid testing mergeability of a patch when not targeting master, so that
patches tested via other means (e.g. maintainer branches and AB runs)
don't get unnecessarily reviewed an extra time.

(From OE-Core rev: e6cf23e353f48c57249681bd0b12bd8494d4959a)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 22:25:23 +01:00
Trevor Gamblin
9b8b9a9fa3 patchtest: test regardless of mergeability
(From OE-Core rev: dc089073eb120de76c8907e476c341ed3e97c164)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 22:25:23 +01:00
Richard Purdie
751e61e45c poky.conf: Update to post release versioning
(From meta-yocto rev: 2c574e299d247f3db0dcea513dc9ea818c488e72)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 17:10:35 +01:00
Bruce Ashfield
4b41167676 linux-yocto/6.5: serial: core: integrate upstream fixes
Integrating the following commit(s) to linux-yocto/6.5:

    14f83e409308 serial: core: test for -EINPROGRESS during tx power management validation
    1b5b735f311f serial: core: Fix checks for tx runtime PM state
    dee98a75d75c Revert "serial-core: disable power managment for serial tx"

(From OE-Core rev: 7dc07d204651e326fdba802a1ac2a69f976437a4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 16:43:52 +01:00
Bruce Ashfield
f67576d2af linux-yocto/6.5: config: remove VIDEO_STK1160_COMMON
Integrating the following commit(s) to linux-yocto/.:

    4531e74daf0 media/media-usb-tv.cfg: remove VIDEO_STK1160_COMMON

(From OE-Core rev: 6e5a2ac4b38771a01e4561b3a797c42088a89ad4)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 16:43:52 +01:00
Ross Burton
3fbd82e194 patchtest: sort when reading patches from a directory
When reading patches from a directory it's important to sort the output
of os.listdir(), as that returns the files in an effectively random
order.  We can't test the patches apply if they're applied in the wrong
order, and typically patch filenames are prefixed with a counter to
ensure the order is correct.

(From OE-Core rev: 4d6b586d37ab4528ed6dae6779cd730af9ef09c2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 14:53:45 +01:00
Ross Burton
4cea51a9ad patchtest: remove unused imports
(From OE-Core rev: be8429d986335aae65c2426862b97836ba46e42a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 14:53:45 +01:00
Trevor Gamblin
4ba54e29ff patchtest: check for untracked changes
[YOCTO #15243]

Avoid overwriting local changes when running patchtest by checking for
anything unstaged or uncommitted in the target repo, and logging an
error if something is found. This will provide the user helpful feedback
if (for example) they forgot to commit a change for their patch under
test, and will leave the target repository in a reasonable state (rather
than a temporary branch created by patchtest).

(From OE-Core rev: 2cc2dda6c3d5a97173b3fc434cc16ff2a930f43f)

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 14:53:45 +01:00
Fahad Arslan
dfb7d2c426 linux-firmware: create separate packages
This is in continuation of earlier commit:
3ddddfc14f
linux-firmware: create separate package for cirrus and cnm firmwares

And creates separate sub packages for firmwares corresponding to following list of
licenses:
LICENSE.amphion_vpu
LICENCE.cw1200
LICENSE.ice_enhanced
LICENCE.mediatek
LICENCE.microchip
LICENCE.moxa
LICENSE.nxp_mc_firmware
LICENCE.OLPC
LICENCE.phanfw
LICENCE.qla2xxx
LICENCE.ti-keystone
LICENCE.wl1251
LICENCE.xc4000
LICENCE.xc5000
LICENCE.xc5000c

(From OE-Core rev: c110e5708465a6becc611acf97f166302a17ebdf)

Signed-off-by: Fahad Arslan <fahad.arslan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Jose Quaresma
51a180c6d4 systemd: add p11kit package config
(From OE-Core rev: c7da674ffdfe6b4f02b548940bf4598458b58879)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Jose Quaresma
d656b58fe2 systemd: add cryptsetup-plugins package config
(From OE-Core rev: 81480329a32669107df67abfd3b72a265ca5a503)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Jose Quaresma
64f76114da systemd: add systemd-crypt package
(From OE-Core rev: c8c615329ad62a28c0762e79e7f11216f9bd88db)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Jose Quaresma
23a748a766 systemd: sort packages before pn
(From OE-Core rev: 0618a99b24ea0bd8856d2e44dfb7301de8b11e5d)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Jörg Sommer
6f18993c84 base-files: Remove localhost ::1 from hosts if ipv6 missing
If a distribution doesn't provide IPv6, the mapping of localhost and ::1 has
to be removed.

(From OE-Core rev: c3d9cff06f383528884bfb5c4f8a6a6cb023977a)

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Jörg Sommer
16dc1bb3de libtirpc: Support ipv6 in DISTRO_FEATURES
If the ipv6 feature for the distribution is not set, the package should not
contain settings for ipv6. This makes rpcbind doesn't try to bind to a IPv6
socket, and complain that this fails.

(From OE-Core rev: f1109380a4fec02dba0b5bd50c77b4825faa20a2)

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
3aa80a54df stress-ng: upgrade 0.16.05 -> 0.17.00
Changelog:
============
remove redundant assignment to variable handler_set
remove some empty lines
move child stressor invoking code into stress_run_child
use stressor array size as limit for stressor loops

(From OE-Core rev: c36b29b521abae3ecd6084ac2e7da782382e2b3e)

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>
2023-10-19 13:38:57 +01:00
Wang Mingyu
d796a6264e sqlite3: upgrade 3.43.1 -> 3.43.2
Changelog:
============
-Add support for Contentless-Delete FTS5 Indexes.
-Enhancements to the date and time functions:
-Added the octet_length(X) SQL function.
-Added the sqlite3_stmt_explain() API.
-Query planner enhancements:
-Enhancements to the decimal extension:
-If X is a floating-point value, then the decimal(X) function now does a full
 expansion of that value into its exact decimal equivalent.
-Performance enhancements to JSON processing results in a 2x performance
 improvement for some kinds of processing on large JSON strings.
-New makefile target "verify-source" checks to ensure that there are no
 unintentional changes in the source tree.
-Added the SQLITE_USE_SEH compile-time option that enables Structured Exception
 Handling on Windows while working with the memory-mapped shm file that is part
 of WAL mode processing. This option is enabled by default when building on
 Windows using Makefile.msc.
-The VFS for unix now assumes that the nanosleep() system call is available
 unless compiled with -DHAVE_NANOSLEEP=0.

(From OE-Core rev: e2ce12ded0672063c74fc794b0fd8828b1c0e776)

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>
2023-10-19 13:38:57 +01:00
Wang Mingyu
73877c7511 shared-mime-info: upgrade 2.2 -> 2.3
Changelog:
============
* Make update-mime-database compatible with MSVC (by porting it to C++)
* Fix description for audio/x-xi
* ci: Use ci-templates to build image
* CI: Use dnf5 instead of dnf
* use Title Case for mime type description
* ci: Use detached pipelines
* Make application/pgp-* not inherit from text/plain
* Change descriptions to say LibreOffice rather than OpenOffice
* `audio/x-wav`: Add missing sub-class relationship with `application/x-riff`

(From OE-Core rev: 248e48ea14a969d9bc51e3b612beb2e740cf6257)

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>
2023-10-19 13:38:57 +01:00
Wang Mingyu
a027e94fc2 repo: upgrade 2.36.1 -> 2.37
(From OE-Core rev: c1898d0a24d1b363307e6591df3d8291dcb0a36f)

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>
2023-10-19 13:38:57 +01:00
Wang Mingyu
37e474df51 python3-wcwidth: upgrade 0.2.6 -> 0.2.8
Changelog:
 Include requirements files in the source distibution

(From OE-Core rev: d235ce3334c690e6043727392de655fe6a1b22e6)

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>
2023-10-19 13:38:57 +01:00
Wang Mingyu
71eedc4a23 xkeyboard-config: upgrade 2.39 -> 2.40
License-Update: remove excess line end spaces

(From OE-Core rev: 323794f388c5e85118d9abf8a7fca0e098e84fbe)

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>
2023-10-19 13:38:57 +01:00
Johannes Schneider
13ac9ece3b base-files: profile: allow profile.d to set EDITOR
With a profile.d configuration in place that sets the EDITOR variable,
the automatic terminal 'resize' logic would not trigger. Which then
would possibly lead to a 80x24 fallback on the debug serial console.

This can simply be avoided by setting a flag variable when the shell
is first opened, then processing all profile.d includes, trigger the
'resize' depending on the flag and shell-level and finally only set
EDITOR to some default if it is still unset.

(From OE-Core rev: dcdb30c83eb77fb2d5ea04f9b7fd7371da633a34)

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
708d11b23c python3-ruamel-yaml: upgrade 0.17.32 -> 0.17.35
Changelog:
==============
- support for loading dataclasses with 'InitVar' variables (some
  special coding was necessary to get the, unexecpected, default
  value in the corresponding instance attribute
  in [this question](https://stackoverflow.com/q/77228378/1307905))
- Python 3.12 also loads C version when using 'typ='safe''
- added 'flow_seq_start', 'flow_seq_end',
  'flow_seq_separator', 'flow_map_start',
  'flow_map_end', 'flow_map_separator'
  **class** attributes to the 'Emitter' class so flow
  style output can more easily be influenced

(From OE-Core rev: 0151bba91387559852c27e044d6e58c3a53d26d5)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
1802e9244b python3-pycairo: upgrade 1.24.0 -> 1.25.0
Changelog:
==========
Update to cairo 1.18.0 for the Windows wheel
Provide a Windows arm64 wheel

(From OE-Core rev: 69da990cc1ace08e90a8cbb30fb206dee036ebb2)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
54bd8899c4 python3-packaging: upgrade 23.1 -> 23.2
Changelog:
==========
-Document calendar-based versioning scheme
-Enforce that the entire marker string is parsed
-Requirement parsing no longer automatically validates the URL
-Canonicalize names for requirements comparison
-Introduce metadata.Metadata
-Introduce the validate keyword parameter to utils.validate_name()
-Introduce utils.is_normalized_name()
-Make utils.parse_sdist_filename() and utils.parse_wheel_filename() raise
 InvalidSdistFilename and InvalidWheelFilename, respectively, when the
 version component of the name is invalid

(From OE-Core rev: b191effe2c89b405ed732d124ceeffbb4935ad3c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
e3000d6586 python3-markdown: upgrade 3.4.4 -> 3.5
Changelog:
===========
Add permalink_leading configuration option to the toc extension (#1339)
Add support for cPython version 3.12 (and PyPy 3.10) and drop support for Python version 3.7 (#1357).
Refactor changelog to use the format defined at https://keepachangelog.com/.
Update the list of empty HTML tags (#1353).
Add customizable TOC title class to TOC extension (#1293).
Add API documentation of the code base which is generated by mkdocstrings (#1220).
Fix a corner case in admonitions where if an indented code block was provided as the first block, the output would be malformed (#1329).

(From OE-Core rev: 218a206b04d3cabfa4d18fb7ffd99bf654c566b3)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
8780156828 python3-iso8601: upgrade 2.0.0 -> 2.1.0
Changelog:
============
Fixed
------
Use ruff for linting
Fixed CHANGELOG version links

Added
------
Add readthedocs configuration

(From OE-Core rev: 8c793b8491c2866f29642437c4df96a85168463e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
849eba582b python3-hypothesis: upgrade 6.86.2 -> 6.87.4
Changelog:
============
-When randoms() was called with use_true_randoms=False, calling sample on it
 with an empty sequence and 0 elements would result in an error, when it
 should have returned an empty sequence to agree with the normal behaviour of
 random.Random. This fixes that discrepancy.
-This patch ensures that the hypothesis codemod CLI will print a warning
 instead of stopping with an internal error if one of your files contains
 invalid syntax (issue #3759).
-This patch makes some small changes to our NumPy integration to ensure forward
 compatibility. Thanks to Mateusz Sokół for pull request #3761.
-Fixes issue #3755, where an internal condition turns out to be reachable after
 all.
-This release deprecates use of assume() and reject() outside of property-based
 tests, because these functions work by raising a special exceptioni.
 It also fixes some type annotations (issue #3753).

(From OE-Core rev: 634f289c702e112964cc91eee02f9af7b6431bc5)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
8eb2dfb795 python3-cffi: upgrade 1.15.1 -> 1.16.0
Changelog:
===========
-Add support for Python 3.12.
-Drop support for end-of-life Python versions (2.7, 3.6, 3.7).
-Add support for PEP517 builds; setuptools is now a required build dependency.
-Declare python_requires metadata for Python 3.8+. This allows unsupported Pythons
 to continue using previously released sdists and wheels.
-Move project source under src/; a more standard layout that also enables CI to more easily
 catch packaging errors.

(From OE-Core rev: 6107d1553905ab43875f84aafc09fbb21b7da6d9)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
e3a530c872 python3-beartype: upgrade 0.15.0 -> 0.16.2
(From OE-Core rev: 8c33b4653ecc923972f82d7b49028f839788fea7)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
dfdea11a35 python3-babel: upgrade 2.12.1 -> 2.13.0
Changelog:
===========
Features
--------
Add flag to ignore POT-Creation-Date for updates
Support 't' specifier in keywords
Add f-string parsing for Python 3.12 (PEP 701)

Fixes
-------
Various typing-related fixes
babel.messages.catalog: deduplicate _to_fuzzy_match_key logic

(From OE-Core rev: fd684c60fff4f4034e49749c20c711cdf0aa7925)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
0dddc66f8d python3-git: upgrade 3.1.36 -> 3.1.37
License-Update: remove excess whitespace

Changelog:
==========
-Improve Python version and OS compatibility, fixing deprecations
-Better document env_case test/fixture and cwd
-Remove spurious executable permissions
-Fix up checks in Makefile and make them portable
-Fix URLs that were redirecting to another license
-Assorted small fixes/improvements to root dir docs
-Use venv instead of virtualenv in test_installation
-Omit py_modules in setup
-Don't track code coverage temporary files
-Configure tox
-Format tests with black and auto-exclude untracked paths
-Upgrade and broaden flake8, fixing style problems and bugs
-Fix rollback bug in SymbolicReference.set_reference
-Remove @NoEffect annotations
-Add more checks for the validity of refnames

(From OE-Core rev: 9a816ef16c514b718400c73f4c5bd153e732bf83)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
b68c39158d libva: upgrade 2.19.0 -> 2.20.0
Changelog:
============
* va: drop no longer applicable vaGetDriverNames check
* va: remove unreachable "DRIVER BUG"
* x11/dri2: limit the array handling to avoid out of range access
* va/backend: document the vaGetDriver* APIs
* va/backend: annotate vafool as deprecated
* win32: remove duplicate adapter_luid entry
* va: Added Q416 fourcc (three-plane 16-bit YUV 4:4:4)
* trace: fix minor issue about printf data type and value range
* jpeg: add support for crop and partial decode
* trace: Unlock mutex before return
* trace: Add trace for vaExportSurfaceHandle
* av1: Revise offsets comments for av1 encode
* va: Add new VADecodeErrorType to indicate the reset happended in the driver.
* drm: limit the array size to avoid out of range
* va: fix:set driver number to be zero if vaGetDriverNames failed
* va: fix:don't leak driver names, when override is set
* win32: Only print win32 driver messages in DEBUG builds
* va: Add vendor string on va_TraceInitialize
* va: remove legacy code paths
* drm: remove no longer used helpers
* x11: remove legacy code paths
* x11: allow disabling DRI3 via LIBVA_DRI3_DISABLE env var
* x11: implement vaGetDriverNames
* va/x11/va_nvctrl: remove some dead code
* va/x11/va_fglrx: remove some dead code
* va: optimize code of getting driver name for all protocols/os(wayland,x11,drm,win32,android)

(From OE-Core rev: 89ef2922394e916c85478cca61a122c511b517f2)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
8e1f53b98e ltp: upgrade 20230516 -> 20230929
Changelog:
============
-New tests
-Increased coverage
-ebizzy benchmark counter increment races and overflows were fixed
-A few more testcases were converted to guarded buffers
 that is data passed by pointer to kernel are immediatelly
 following a PROT_NONE page and followed by canaries
 to catch off-by-one errors
-Tests that modprobe kernel modules are now skipped when secure boot is
 enabled on x86 and ppc64le
-ioprio tests now use IOPRIO_PRIO_NUM instead of hardcoded value
 to check for prio range
-35 testcases were converted to the new test library
-The usual amount of fixes and cleanups

(From OE-Core rev: 4f19f8b0305ecf17964b73b7fd65b0b91d56a39c)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
d915add833 libubootenv: upgrade 0.3.4 -> 0.3.5
Changelog:
==========
Fix slowness on SPI flash
Fixes validating Env flags
Feature: get U-Boot namespace from DT
Feature: specify UBI volumes from MTD path

(From OE-Core rev: c104259333e976de0cf6fd7bea2fece1b683dbbe)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
70a0a3913e libsdl2: upgrade 2.28.3 -> 2.28.4
(From OE-Core rev: f47de111cd66c3f9a5a6d5589e1fd034027a0a75)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
2c6a1cd707 libcomps: upgrade 0.1.19 -> 0.1.20
0001-libcomps-Use-Py_hash_t-instead-of-long-in-PyCOMPS_ha.patch
removed since it's included in 0.1.20

(From OE-Core rev: 12316f4746352495c89e2f9808a2180d582ba29e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
b044cf8840 kmod: upgrade 30 -> 31
Changelog:
===========
- Improvements

  - Allow passing a path to modprobe so the module is loaded from
    anywhere from the filesystem, but still handling the module
    dependencies recorded in the indexes.
  - Use in-kernel decompression if available.
  - Make modprobe fallback to syslog when stderr is not available, as was
    documented in the man page, but not implemented
  - Better explaing `modprobe -r` and how it differentiates from rmmod
  - depmod learned a `-o <dir>` option to allow using a separate output
    directory.
  - Add compat with glibc >= 2.32.9000 that dropped __xstat
  - Improve testsuite to stop skipping tests when sysconfdir is something
    other than /etc
  - Build system improvements and updates
  - Change a few return codes from -ENOENT to -ENODATA to avoid confusing output
    in depmod when the module itself lacks a particular ELF section due to e.g.
    CONFIG_MODVERSIONS=n in the kernel.

- Bug Fixes

  - Fix testsuite using uninitialized memory when testing module removal
    with --wait
  - Fix testsuite not correctly overriding the stat syscall on 32-bit
    platforms. For most architectures this was harmless, but for MIPS it
    was causing some tests to fail.
  - Fix handling unknown signature algorithm
  - Fix linking with a static liblzma, libzstd or zlib
  - Fix memory leak when removing module holders
  - Fix out-of-bounds access when using very long paths as argument to rmmod
  - Fix warnings reported by UBSan

(From OE-Core rev: 15baf1183c1551ec7204abc679bd973ffb39770f)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
e408f24991 ell: upgrade 0.58 -> 0.59
Changelog:
 Fix issue with symbol visibility.

(From OE-Core rev: 14eba663b56f8f3b9c3aff5661cbe2aa7befe86e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
88bc5439bd dhcpcd: upgrade 10.0.2 -> 10.0.3
0001-privsep-fix-strlcpy-overflow-in-psp_ifname-239.patch
removed since it's included in 10.0.3

Changelog:
===========
Do not crash on dhcpcd test run
Add automated CI builds for Ubuntu, OpenBSD, FreeBSD and NetBSD
dhcpcd: Fix off-by-one overflow when read() writes full BUFSIZ
privsep: fix strlcpy overflow in psp_ifname
ci: execute tests after successful build
compat: update arc4random() to newer chacha20 based version from OpenBSD
Support libcrypto for hmac and sha256
Use a local variable instead of the optind
Send correct amount of used buffer for prefix exclude option
compat: use OpenSSL RAND_priv_bytes() for entropy

(From OE-Core rev: fcb9ac0f1c6cac0841d7b7a29b7180c4c580920f)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
a9b6c951bc createrepo-c: upgrade 1.0.0 -> 1.0.1
0001-Move-cr_compress_groupfile-outside-WITH_LIBMODULEMD.patch
removed since it's included in 1.0.1.

(From OE-Core rev: 531b32892e3e4bfa43a8809c36432a86fe93e69b)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
1e21429a49 btrfs-tools: upgrade 6.5.1 -> 6.5.2
(From OE-Core rev: 116895c05c78a60488b14516ea25f8c27d2ece7e)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Wang Mingyu
4cdae91dd2 bluez5: upgrade 5.69 -> 5.70
(From OE-Core rev: b051bf5e7706e36b40452cecb6b9149e9b364ef1)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Mingli Yu
a0423422b9 openssh: Add sshd.service
For systems with a large amount of SSH traffic, it shoule be better to
run a single SSH server for all incoming connections.

And both sshd.socket and sshd.service are deployed on other distros
like ubuntu, fedora and etc.

So add sshd.service to make it possible to run a standalone SSH server.

(From OE-Core rev: 3ecebc70f957e53e3dcf1cc835ff359115db6e56)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:57 +01:00
Sean Nyekjaer
96310a5867 oeqa/sdk/rust: Add build and run test of rust binary with SDK host
Add a QA test to the SDK to test that a basic cargo build works for the
SDK host.

(From OE-Core rev: 7f05760debd3aeb69c3294f3ceb92d4f1aceec1f)

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:56 +01:00
Sean Nyekjaer
1a44c1ad59 rust-cross-canadian: set CARGO_TARGET_<triple>_RUNNER for nativesdk
This will enable us to build and run rust programs on the sdk host.

% cargo run --target x86_64-oesdk-linux-gnu -vv
       Fresh hello v0.1.0 (~/development/hello)
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `/usr/local/sdk/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 target/x86_64-oesdk-linux-gnu/debug/hello`
Hello, world

(From OE-Core rev: 0dc848e0b560947f93a780f4bf7b6d1926a570eb)

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:56 +01:00
Sean Nyekjaer
791468b7ab rust-cross-canadian: set CARGO_TARGET_<triple>_RUSTFLAGS
Avoid setting sdk-wide RUSTFLAGS as these flags only are valid when
building for target.
This will enable building for different targets with different
RUSTFLAGS.

(From OE-Core rev: 25627606aadacae3a2ab805a6098c81fed154b27)

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:56 +01:00
William Lyu
b509feb17b perl: fix intermittent test failure
Fixes [YOCTO #15136]

This fix addresses the intermittent failure of the Perl ptest
t/op/sigsystem.t.

(From OE-Core rev: 8c1ee92efa107ed055f1737640a027fa89077494)

Signed-off-by: William Lyu <William.Lyu@windriver.com>
Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Reported-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-10-19 13:38:56 +01:00
Jose Quaresma
f784681413 sstatesig: be more precise and show the full path in exceptions
Also remove the warning than doesn't make sense as the code will generate
an exception and bitbake will abort.

Before:
| WARNING: core-image-minimal-initramfs-1.0-r0 do_image_complete: KeyError in .
| Exception: Exception: KeyError: 'getpwuid(): uid not found: xxxxx'
| Path . is owned by uid xxxxx, gid yyy, which doesn't match any user/group on target. This may be due to host contamination.

After:
| Exception: Exception: KeyError: 'getpwuid(): uid not found: xxxxx'
| Path /build/tmp/work/intel_corei7_64-lmp-linux/core-image-minimal-initramfs/1.0-r0/sstate-build-image_complete is owned by uid xxxxx, gid yyy, which doesn't match any user/group on target. This may be due to host contamination.

(From OE-Core rev: 90f84e345950a02bf91f823cc9c6d893e7cd1100)

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:38:56 +01:00
Joshua Watt
70eddc70f8 goarch: Move Go architecture mapping to a library
Other spaces uses the Go architecture definitions as their own (for
example, container arches are defined to be Go arches). To make it
easier for other places to use this mapping, move the code that does the
translation of OpenEmbedded arches to Go arches to a library.

(From OE-Core rev: 3e86f72fc2e1cc2e5ea4b4499722d736941167ce)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:26:05 +01:00
Fabio Estevam
80a8fa3bae packagegroup-core-tools-profile: Remove PROFILE_TOOLS_X
Since commit d085e70eee ("sysprof: move recipe to meta-oe")
PROFILE_TOOLS_X is always set to an empty string.

Remove PROFILE_TOOLS_X as it is no longer needed.

Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
(From OE-Core rev: cf767f4f4aaaf7c568816675c1c811132a892e30)

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:26:05 +01:00
Alexander Kanavin
15b08b8234 scripts/bitbake-whatchanged: remove
This is not documented or tested, and indeed hasn't been producing useful reports
for some time.

The script works by redirecting STAMPS_DIR into a separate location,
then running bitbake -S none, then comparing the two sets of stamp
filenames with regexes:

 Match the stamp's filename
 group(1): PE_PV (may no PE)
 group(2): PR
 group(3): TASK
 group(4): HASH
stamp_re = re.compile("(?P<pv>.*)-(?P<pr>r\d+)\.(?P<task>do_\w+)\.(?P<hash>[^\.]*)")

Then there's some code that finds out what changed in the above between the two sets.

Messing about with STAMPS_DIR like that isn't supported, and will either do nothing,
or remove the original stamps. Also stamp filenames aren't really a 'public API'.

For finding out the changes between two builds, 'bitbake -s printdiff' is a supported
and tested option. It may be a bit too verbose, but that can be more easily fixed than
rewriting bitbake-whatchanged into a working state.

(From OE-Core rev: f8193978eb0944e693e6a5cfbf9035e104e489f0)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:26:05 +01:00
BELHADJ SALEM Talel
62739c2e8f bitbake.conf: Drop DEPLOY_DIR_TAR
DEPLOY_DIR_TAR is never used since package_tar.bbclass is removed.

(From OE-Core rev: 7f3963834c60e407f4252084b1f8e004c10b7c25)

Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:26:05 +01:00
Ross Burton
35cb985840 man-db: remove inexplicable man_db.conf patch
The patch we're applying to man_db.conf claims that the variable
@config_file_basename@ will be replaced with the package name, and that
this breaks multilib systems as that causes conflicts.

However, this suggests that both man-db and lib32-man-db are being
installed which is pointless, and the variable expands to the basename
which is just man_db.conf.

(From OE-Core rev: 8d80cce2921346b60c11f5cba630b94103bf05f3)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:26:05 +01:00
Ross Burton
9cf04cf897 man-db: add RRECOMMENDS on glibc-utils for iconv
Sometimes man will want to call iconv to convert character encodings, so
recommend glibc-utils on glibc systems for that binary.

(From OE-Core rev: 067c5e1e590fff557581b6bec94dcfd083d56fb1)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-19 13:26:05 +01:00
1722 changed files with 45527 additions and 34484 deletions

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ _toaster_clones/
downloads/
sstate-cache/
toaster.sqlite
.vscode/

View File

@@ -18,7 +18,7 @@ Bitbake requires Python version 3.8 or newer.
Contributing
------------
Please refer to our contributor guide here: https://docs.yoctoproject.org/dev/contributor-guide/
Please refer to our contributor guide here: https://docs.yoctoproject.org/contributor-guide/
for full details on how to submit changes.
As a quick guide, patches should be sent to bitbake-devel@lists.openembedded.org

View File

@@ -27,7 +27,7 @@ from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException
bb.utils.check_system_locale()
__version__ = "2.6.0"
__version__ = "2.8.0"
if __name__ == "__main__":
if __version__ != bb.__version__:

View File

@@ -72,13 +72,16 @@ def find_siginfo_task(bbhandler, pn, taskname, sig1=None, sig2=None):
elif sig2 not in sigfiles:
logger.error('No sigdata files found matching %s %s with signature %s' % (pn, taskname, sig2))
sys.exit(1)
latestfiles = [sigfiles[sig1], sigfiles[sig2]]
else:
filedates = find_siginfo(bbhandler, pn, taskname)
latestfiles = sorted(filedates.keys(), key=lambda f: filedates[f])[-2:]
if not latestfiles:
sigfiles = find_siginfo(bbhandler, pn, taskname)
latestsigs = sorted(sigfiles.keys(), key=lambda h: sigfiles[h]['time'])[-2:]
if not latestsigs:
logger.error('No sigdata files found matching %s %s' % (pn, taskname))
sys.exit(1)
sig1 = latestsigs[0]
sig2 = latestsigs[1]
latestfiles = [sigfiles[sig1]['path'], sigfiles[sig2]['path']]
return latestfiles
@@ -96,7 +99,7 @@ def recursecb(key, hash1, hash2):
elif hash2 not in hashfiles:
recout.append("Unable to find matching sigdata for %s with hash %s" % (key, hash2))
else:
out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb, color=color)
out2 = bb.siggen.compare_sigfiles(hashfiles[hash1]['path'], hashfiles[hash2]['path'], recursecb, color=color)
for change in out2:
for line in change.splitlines():
recout.append(' ' + line)

View File

@@ -14,6 +14,8 @@ import sys
import threading
import time
import warnings
import netrc
import json
warnings.simplefilter("default")
try:
@@ -36,18 +38,42 @@ except ImportError:
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib'))
import hashserv
import bb.asyncrpc
DEFAULT_ADDRESS = 'unix://./hashserve.sock'
METHOD = 'stress.test.method'
def print_user(u):
print(f"Username: {u['username']}")
if "permissions" in u:
print("Permissions: " + " ".join(u["permissions"]))
if "token" in u:
print(f"Token: {u['token']}")
def main():
def handle_get(args, client):
result = client.get_taskhash(args.method, args.taskhash, all_properties=True)
if not result:
return 0
print(json.dumps(result, sort_keys=True, indent=4))
return 0
def handle_get_outhash(args, client):
result = client.get_outhash(args.method, args.outhash, args.taskhash)
if not result:
return 0
print(json.dumps(result, sort_keys=True, indent=4))
return 0
def handle_stats(args, client):
if args.reset:
s = client.reset_stats()
else:
s = client.get_stats()
pprint.pprint(s)
print(json.dumps(s, sort_keys=True, indent=4))
return 0
def handle_stress(args, client):
@@ -125,12 +151,101 @@ def main():
print("Removed %d rows" % (result["count"]))
return 0
def handle_refresh_token(args, client):
r = client.refresh_token(args.username)
print_user(r)
def handle_set_user_permissions(args, client):
r = client.set_user_perms(args.username, args.permissions)
print_user(r)
def handle_get_user(args, client):
r = client.get_user(args.username)
print_user(r)
def handle_get_all_users(args, client):
users = client.get_all_users()
print("{username:20}| {permissions}".format(username="Username", permissions="Permissions"))
print(("-" * 20) + "+" + ("-" * 20))
for u in users:
print("{username:20}| {permissions}".format(username=u["username"], permissions=" ".join(u["permissions"])))
def handle_new_user(args, client):
r = client.new_user(args.username, args.permissions)
print_user(r)
def handle_delete_user(args, client):
r = client.delete_user(args.username)
print_user(r)
def handle_get_db_usage(args, client):
usage = client.get_db_usage()
print(usage)
tables = sorted(usage.keys())
print("{name:20}| {rows:20}".format(name="Table name", rows="Rows"))
print(("-" * 20) + "+" + ("-" * 20))
for t in tables:
print("{name:20}| {rows:<20}".format(name=t, rows=usage[t]["rows"]))
print()
total_rows = sum(t["rows"] for t in usage.values())
print(f"Total rows: {total_rows}")
def handle_get_db_query_columns(args, client):
columns = client.get_db_query_columns()
print("\n".join(sorted(columns)))
def handle_gc_status(args, client):
result = client.gc_status()
if not result["mark"]:
print("No Garbage collection in progress")
return 0
print("Current Mark: %s" % result["mark"])
print("Total hashes to keep: %d" % result["keep"])
print("Total hashes to remove: %s" % result["remove"])
return 0
def handle_gc_mark(args, client):
where = {k: v for k, v in args.where}
result = client.gc_mark(args.mark, where)
print("New hashes marked: %d" % result["count"])
return 0
def handle_gc_sweep(args, client):
result = client.gc_sweep(args.mark)
print("Removed %d rows" % result["count"])
return 0
def handle_unihash_exists(args, client):
result = client.unihash_exists(args.unihash)
if args.quiet:
return 0 if result else 1
print("true" if result else "false")
return 0
parser = argparse.ArgumentParser(description='Hash Equivalence Client')
parser.add_argument('--address', default=DEFAULT_ADDRESS, help='Server address (default "%(default)s")')
parser.add_argument('--log', default='WARNING', help='Set logging level')
parser.add_argument('--login', '-l', metavar="USERNAME", help="Authenticate as USERNAME")
parser.add_argument('--password', '-p', metavar="TOKEN", help="Authenticate using token TOKEN")
parser.add_argument('--become', '-b', metavar="USERNAME", help="Impersonate user USERNAME (if allowed) when performing actions")
parser.add_argument('--no-netrc', '-n', action="store_false", dest="netrc", help="Do not use .netrc")
subparsers = parser.add_subparsers()
get_parser = subparsers.add_parser('get', help="Get the unihash for a taskhash")
get_parser.add_argument("method", help="Method to query")
get_parser.add_argument("taskhash", help="Task hash to query")
get_parser.set_defaults(func=handle_get)
get_outhash_parser = subparsers.add_parser('get-outhash', help="Get output hash information")
get_outhash_parser.add_argument("method", help="Method to query")
get_outhash_parser.add_argument("outhash", help="Output hash to query")
get_outhash_parser.add_argument("taskhash", help="Task hash to query")
get_outhash_parser.set_defaults(func=handle_get_outhash)
stats_parser = subparsers.add_parser('stats', help='Show server stats')
stats_parser.add_argument('--reset', action='store_true',
help='Reset server stats')
@@ -158,6 +273,55 @@ def main():
clean_unused_parser.add_argument("max_age", metavar="SECONDS", type=int, help="Remove unused entries older than SECONDS old")
clean_unused_parser.set_defaults(func=handle_clean_unused)
refresh_token_parser = subparsers.add_parser('refresh-token', help="Refresh auth token")
refresh_token_parser.add_argument("--username", "-u", help="Refresh the token for another user (if authorized)")
refresh_token_parser.set_defaults(func=handle_refresh_token)
set_user_perms_parser = subparsers.add_parser('set-user-perms', help="Set new permissions for user")
set_user_perms_parser.add_argument("--username", "-u", help="Username", required=True)
set_user_perms_parser.add_argument("permissions", metavar="PERM", nargs="*", default=[], help="New permissions")
set_user_perms_parser.set_defaults(func=handle_set_user_permissions)
get_user_parser = subparsers.add_parser('get-user', help="Get user")
get_user_parser.add_argument("--username", "-u", help="Username")
get_user_parser.set_defaults(func=handle_get_user)
get_all_users_parser = subparsers.add_parser('get-all-users', help="List all users")
get_all_users_parser.set_defaults(func=handle_get_all_users)
new_user_parser = subparsers.add_parser('new-user', help="Create new user")
new_user_parser.add_argument("--username", "-u", help="Username", required=True)
new_user_parser.add_argument("permissions", metavar="PERM", nargs="*", default=[], help="New permissions")
new_user_parser.set_defaults(func=handle_new_user)
delete_user_parser = subparsers.add_parser('delete-user', help="Delete user")
delete_user_parser.add_argument("--username", "-u", help="Username", required=True)
delete_user_parser.set_defaults(func=handle_delete_user)
db_usage_parser = subparsers.add_parser('get-db-usage', help="Database Usage")
db_usage_parser.set_defaults(func=handle_get_db_usage)
db_query_columns_parser = subparsers.add_parser('get-db-query-columns', help="Show columns that can be used in database queries")
db_query_columns_parser.set_defaults(func=handle_get_db_query_columns)
gc_status_parser = subparsers.add_parser("gc-status", help="Show garbage collection status")
gc_status_parser.set_defaults(func=handle_gc_status)
gc_mark_parser = subparsers.add_parser('gc-mark', help="Mark hashes to be kept for garbage collection")
gc_mark_parser.add_argument("mark", help="Mark for this garbage collection operation")
gc_mark_parser.add_argument("--where", "-w", metavar="KEY VALUE", nargs=2, action="append", default=[],
help="Keep entries in table where KEY == VALUE")
gc_mark_parser.set_defaults(func=handle_gc_mark)
gc_sweep_parser = subparsers.add_parser('gc-sweep', help="Perform garbage collection and delete any entries that are not marked")
gc_sweep_parser.add_argument("mark", help="Mark for this garbage collection operation")
gc_sweep_parser.set_defaults(func=handle_gc_sweep)
unihash_exists_parser = subparsers.add_parser('unihash-exists', help="Check if a unihash is known to the server")
unihash_exists_parser.add_argument("--quiet", action="store_true", help="Don't print status. Instead, exit with 0 if unihash exists and 1 if it does not")
unihash_exists_parser.add_argument("unihash", help="Unihash to check")
unihash_exists_parser.set_defaults(func=handle_unihash_exists)
args = parser.parse_args()
logger = logging.getLogger('hashserv')
@@ -171,10 +335,30 @@ def main():
console.setLevel(level)
logger.addHandler(console)
login = args.login
password = args.password
if login is None and args.netrc:
try:
n = netrc.netrc()
auth = n.authenticators(args.address)
if auth is not None:
login, _, password = auth
except FileNotFoundError:
pass
except netrc.NetrcParseError as e:
sys.stderr.write(f"Error parsing {e.filename}:{e.lineno}: {e.msg}\n")
func = getattr(args, 'func', None)
if func:
with hashserv.create_client(args.address) as client:
return func(args, client)
try:
with hashserv.create_client(args.address, login, password) as client:
if args.become:
client.become_user(args.become)
return func(args, client)
except bb.asyncrpc.InvokeError as e:
print(f"ERROR: {e}")
return 1
return 0

View File

@@ -11,56 +11,161 @@ import logging
import argparse
import sqlite3
import warnings
warnings.simplefilter("default")
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib'))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), "lib"))
import hashserv
from hashserv.server import DEFAULT_ANON_PERMS
VERSION = "1.0.0"
DEFAULT_BIND = 'unix://./hashserve.sock'
DEFAULT_BIND = "unix://./hashserve.sock"
def main():
parser = argparse.ArgumentParser(description='Hash Equivalence Reference Server. Version=%s' % VERSION,
epilog='''The bind address is the path to a unix domain socket if it is
prefixed with "unix://". Otherwise, it is an IP address
and port in form ADDRESS:PORT. To bind to all addresses, leave
the ADDRESS empty, e.g. "--bind :8686". To bind to a specific
IPv6 address, enclose the address in "[]", e.g.
"--bind [::1]:8686"'''
)
parser = argparse.ArgumentParser(
description="Hash Equivalence Reference Server. Version=%s" % VERSION,
formatter_class=argparse.RawTextHelpFormatter,
epilog="""
The bind address may take one of the following formats:
unix://PATH - Bind to unix domain socket at PATH
ws://ADDRESS:PORT - Bind to websocket on ADDRESS:PORT
ADDRESS:PORT - Bind to raw TCP socket on ADDRESS:PORT
parser.add_argument('-b', '--bind', default=DEFAULT_BIND, help='Bind address (default "%(default)s")')
parser.add_argument('-d', '--database', default='./hashserv.db', help='Database file (default "%(default)s")')
parser.add_argument('-l', '--log', default='WARNING', help='Set logging level')
parser.add_argument('-u', '--upstream', help='Upstream hashserv to pull hashes from')
parser.add_argument('-r', '--read-only', action='store_true', help='Disallow write operations from clients')
To bind to all addresses, leave the ADDRESS empty, e.g. "--bind :8686" or
"--bind ws://:8686". To bind to a specific IPv6 address, enclose the address in
"[]", e.g. "--bind [::1]:8686" or "--bind ws://[::1]:8686"
Note that the default Anonymous permissions are designed to not break existing
server instances when upgrading, but are not particularly secure defaults. If
you want to use authentication, it is recommended that you use "--anon-perms
@read" to only give anonymous users read access, or "--anon-perms @none" to
give un-authenticated users no access at all.
Setting "--anon-perms @all" or "--anon-perms @user-admin" is not allowed, since
this would allow anonymous users to manage all users accounts, which is a bad
idea.
If you are using user authentication, you should run your server in websockets
mode with an SSL terminating load balancer in front of it (as this server does
not implement SSL). Otherwise all usernames and passwords will be transmitted
in the clear. When configured this way, clients can connect using a secure
websocket, as in "wss://SERVER:PORT"
The following permissions are supported by the server:
@none - No permissions
@read - The ability to read equivalent hashes from the server
@report - The ability to report equivalent hashes to the server
@db-admin - Manage the hash database(s). This includes cleaning the
database, removing hashes, etc.
@user-admin - The ability to manage user accounts. This includes, creating
users, deleting users, resetting login tokens, and assigning
permissions.
@all - All possible permissions, including any that may be added
in the future
""",
)
parser.add_argument(
"-b",
"--bind",
default=os.environ.get("HASHSERVER_BIND", DEFAULT_BIND),
help='Bind address (default $HASHSERVER_BIND, "%(default)s")',
)
parser.add_argument(
"-d",
"--database",
default=os.environ.get("HASHSERVER_DB", "./hashserv.db"),
help='Database file (default $HASHSERVER_DB, "%(default)s")',
)
parser.add_argument(
"-l",
"--log",
default=os.environ.get("HASHSERVER_LOG_LEVEL", "WARNING"),
help='Set logging level (default $HASHSERVER_LOG_LEVEL, "%(default)s")',
)
parser.add_argument(
"-u",
"--upstream",
default=os.environ.get("HASHSERVER_UPSTREAM", None),
help="Upstream hashserv to pull hashes from ($HASHSERVER_UPSTREAM)",
)
parser.add_argument(
"-r",
"--read-only",
action="store_true",
help="Disallow write operations from clients ($HASHSERVER_READ_ONLY)",
)
parser.add_argument(
"--db-username",
default=os.environ.get("HASHSERVER_DB_USERNAME", None),
help="Database username ($HASHSERVER_DB_USERNAME)",
)
parser.add_argument(
"--db-password",
default=os.environ.get("HASHSERVER_DB_PASSWORD", None),
help="Database password ($HASHSERVER_DB_PASSWORD)",
)
parser.add_argument(
"--anon-perms",
metavar="PERM[,PERM[,...]]",
default=os.environ.get("HASHSERVER_ANON_PERMS", ",".join(DEFAULT_ANON_PERMS)),
help='Permissions to give anonymous users (default $HASHSERVER_ANON_PERMS, "%(default)s")',
)
parser.add_argument(
"--admin-user",
default=os.environ.get("HASHSERVER_ADMIN_USER", None),
help="Create default admin user with name ADMIN_USER ($HASHSERVER_ADMIN_USER)",
)
parser.add_argument(
"--admin-password",
default=os.environ.get("HASHSERVER_ADMIN_PASSWORD", None),
help="Create default admin user with password ADMIN_PASSWORD ($HASHSERVER_ADMIN_PASSWORD)",
)
args = parser.parse_args()
logger = logging.getLogger('hashserv')
logger = logging.getLogger("hashserv")
level = getattr(logging, args.log.upper(), None)
if not isinstance(level, int):
raise ValueError('Invalid log level: %s' % args.log)
raise ValueError("Invalid log level: %s (Try ERROR/WARNING/INFO/DEBUG)" % args.log)
logger.setLevel(level)
console = logging.StreamHandler()
console.setLevel(level)
logger.addHandler(console)
server = hashserv.create_server(args.bind, args.database, upstream=args.upstream, read_only=args.read_only)
read_only = (os.environ.get("HASHSERVER_READ_ONLY", "0") == "1") or args.read_only
if "," in args.anon_perms:
anon_perms = args.anon_perms.split(",")
else:
anon_perms = args.anon_perms.split()
server = hashserv.create_server(
args.bind,
args.database,
upstream=args.upstream,
read_only=read_only,
db_username=args.db_username,
db_password=args.db_password,
anon_perms=anon_perms,
admin_username=args.admin_user,
admin_password=args.admin_password,
)
server.serve_forever()
return 0
if __name__ == '__main__':
if __name__ == "__main__":
try:
ret = main()
except Exception:
ret = 1
import traceback
traceback.print_exc()
sys.exit(ret)

View File

@@ -7,49 +7,77 @@
import os
import sys,logging
import optparse
import argparse
import warnings
warnings.simplefilter("default")
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),'lib'))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), "lib"))
import prserv
import prserv.serv
__version__="1.0.0"
VERSION = "1.1.0"
PRHOST_DEFAULT='0.0.0.0'
PRHOST_DEFAULT="0.0.0.0"
PRPORT_DEFAULT=8585
def main():
parser = optparse.OptionParser(
version="Bitbake PR Service Core version %s, %%prog version %s" % (prserv.__version__, __version__),
usage = "%prog < --start | --stop > [options]")
parser = argparse.ArgumentParser(
description="BitBake PR Server. Version=%s" % VERSION,
formatter_class=argparse.RawTextHelpFormatter)
parser.add_option("-f", "--file", help="database filename(default: prserv.sqlite3)", action="store",
dest="dbfile", type="string", default="prserv.sqlite3")
parser.add_option("-l", "--log", help="log filename(default: prserv.log)", action="store",
dest="logfile", type="string", default="prserv.log")
parser.add_option("--loglevel", help="logging level, i.e. CRITICAL, ERROR, WARNING, INFO, DEBUG",
action = "store", type="string", dest="loglevel", default = "INFO")
parser.add_option("--start", help="start daemon",
action="store_true", dest="start")
parser.add_option("--stop", help="stop daemon",
action="store_true", dest="stop")
parser.add_option("--host", help="ip address to bind", action="store",
dest="host", type="string", default=PRHOST_DEFAULT)
parser.add_option("--port", help="port number(default: 8585)", action="store",
dest="port", type="int", default=PRPORT_DEFAULT)
parser.add_option("-r", "--read-only", help="open database in read-only mode",
action="store_true")
parser.add_argument(
"-f",
"--file",
default="prserv.sqlite3",
help="database filename (default: prserv.sqlite3)",
)
parser.add_argument(
"-l",
"--log",
default="prserv.log",
help="log filename(default: prserv.log)",
)
parser.add_argument(
"--loglevel",
default="INFO",
help="logging level, i.e. CRITICAL, ERROR, WARNING, INFO, DEBUG",
)
parser.add_argument(
"--start",
action="store_true",
help="start daemon",
)
parser.add_argument(
"--stop",
action="store_true",
help="stop daemon",
)
parser.add_argument(
"--host",
help="ip address to bind",
default=PRHOST_DEFAULT,
)
parser.add_argument(
"--port",
type=int,
default=PRPORT_DEFAULT,
help="port number (default: 8585)",
)
parser.add_argument(
"-r",
"--read-only",
action="store_true",
help="open database in read-only mode",
)
options, args = parser.parse_args(sys.argv)
prserv.init_logger(os.path.abspath(options.logfile),options.loglevel)
args = parser.parse_args()
prserv.init_logger(os.path.abspath(args.log), args.loglevel)
if options.start:
ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
elif options.stop:
ret=prserv.serv.stop_daemon(options.host, options.port)
if args.start:
ret=prserv.serv.start_daemon(args.file, args.host, args.port, os.path.abspath(args.log), args.read_only)
elif args.stop:
ret=prserv.serv.stop_daemon(args.host, args.port)
else:
ret=parser.print_help()
return ret

View File

@@ -183,7 +183,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask):
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not dry_run:
fakeroot = True
envvars = (runtask['fakerootenv'] or "").split()
for key, value in (var.split('=') for var in envvars):
for key, value in (var.split('=',1) for var in envvars):
envbackup[key] = os.environ.get(key)
os.environ[key] = value
fakeenv[key] = value
@@ -195,7 +195,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask):
(fn, taskname, ', '.join(fakedirs)))
else:
envvars = (runtask['fakerootnoenv'] or "").split()
for key, value in (var.split('=') for var in envvars):
for key, value in (var.split('=',1) for var in envvars):
envbackup[key] = os.environ.get(key)
os.environ[key] = value
fakeenv[key] = value
@@ -237,11 +237,13 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask):
# Let SIGHUP exit as SIGTERM
signal.signal(signal.SIGHUP, sigterm_handler)
# No stdin
newsi = os.open(os.devnull, os.O_RDWR)
os.dup2(newsi, sys.stdin.fileno())
# No stdin & stdout
# stdout is used as a status report channel and must not be used by child processes.
dumbio = os.open(os.devnull, os.O_RDWR)
os.dup2(dumbio, sys.stdin.fileno())
os.dup2(dumbio, sys.stdout.fileno())
if umask:
if umask is not None:
os.umask(umask)
try:
@@ -305,6 +307,10 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask):
if not quieterrors:
logger.critical(traceback.format_exc())
os._exit(1)
sys.stdout.flush()
sys.stderr.flush()
try:
if dry_run:
return 0
@@ -433,18 +439,30 @@ class BitbakeWorker(object):
while self.process_waitpid():
continue
def handle_item(self, item, func):
if self.queue.startswith(b"<" + item + b">"):
index = self.queue.find(b"</" + item + b">")
while index != -1:
try:
func(self.queue[(len(item) + 2):index])
except pickle.UnpicklingError:
workerlog_write("Unable to unpickle data: %s\n" % ":".join("{:02x}".format(c) for c in self.queue))
raise
self.queue = self.queue[(index + len(item) + 3):]
index = self.queue.find(b"</" + item + b">")
opening_tag = b"<" + item + b">"
if not self.queue.startswith(opening_tag):
return
tag_len = len(opening_tag)
if len(self.queue) < tag_len + 4:
# we need to receive more data
return
header = self.queue[tag_len:tag_len + 4]
payload_len = int.from_bytes(header, 'big')
# closing tag has length (tag_len + 1)
if len(self.queue) < tag_len * 2 + 1 + payload_len:
# we need to receive more data
return
index = self.queue.find(b"</" + item + b">")
if index != -1:
try:
func(self.queue[(tag_len + 4):index])
except pickle.UnpicklingError:
workerlog_write("Unable to unpickle data: %s\n" % ":".join("{:02x}".format(c) for c in self.queue))
raise
self.queue = self.queue[(index + len(b"</") + len(item) + len(b">")):]
def handle_cookercfg(self, data):
self.cookercfg = pickle.loads(data)

View File

@@ -24,15 +24,17 @@ warnings.simplefilter("default")
version = 1.0
git_cmd = ['git', '-c', 'safe.bareRepository=all']
def main():
if sys.version_info < (3, 4, 0):
sys.exit('Python 3.4 or greater is required')
git_dir = check_output(['git', 'rev-parse', '--git-dir']).rstrip()
git_dir = check_output(git_cmd + ['rev-parse', '--git-dir']).rstrip()
shallow_file = os.path.join(git_dir, 'shallow')
if os.path.exists(shallow_file):
try:
check_output(['git', 'fetch', '--unshallow'])
check_output(git_cmd + ['fetch', '--unshallow'])
except subprocess.CalledProcessError:
try:
os.unlink(shallow_file)
@@ -41,21 +43,21 @@ def main():
raise
args = process_args()
revs = check_output(['git', 'rev-list'] + args.revisions).splitlines()
revs = check_output(git_cmd + ['rev-list'] + args.revisions).splitlines()
make_shallow(shallow_file, args.revisions, args.refs)
ref_revs = check_output(['git', 'rev-list'] + args.refs).splitlines()
ref_revs = check_output(git_cmd + ['rev-list'] + args.refs).splitlines()
remaining_history = set(revs) & set(ref_revs)
for rev in remaining_history:
if check_output(['git', 'rev-parse', '{}^@'.format(rev)]):
if check_output(git_cmd + ['rev-parse', '{}^@'.format(rev)]):
sys.exit('Error: %s was not made shallow' % rev)
filter_refs(args.refs)
if args.shrink:
shrink_repo(git_dir)
subprocess.check_call(['git', 'fsck', '--unreachable'])
subprocess.check_call(git_cmd + ['fsck', '--unreachable'])
def process_args():
@@ -72,12 +74,12 @@ def process_args():
args = parser.parse_args()
if args.refs:
args.refs = check_output(['git', 'rev-parse', '--symbolic-full-name'] + args.refs).splitlines()
args.refs = check_output(git_cmd + ['rev-parse', '--symbolic-full-name'] + args.refs).splitlines()
else:
args.refs = get_all_refs(lambda r, t, tt: t == 'commit' or tt == 'commit')
args.refs = list(filter(lambda r: not r.endswith('/HEAD'), args.refs))
args.revisions = check_output(['git', 'rev-parse'] + ['%s^{}' % i for i in args.revisions]).splitlines()
args.revisions = check_output(git_cmd + ['rev-parse'] + ['%s^{}' % i for i in args.revisions]).splitlines()
return args
@@ -95,7 +97,7 @@ def make_shallow(shallow_file, revisions, refs):
def get_all_refs(ref_filter=None):
"""Return all the existing refs in this repository, optionally filtering the refs."""
ref_output = check_output(['git', 'for-each-ref', '--format=%(refname)\t%(objecttype)\t%(*objecttype)'])
ref_output = check_output(git_cmd + ['for-each-ref', '--format=%(refname)\t%(objecttype)\t%(*objecttype)'])
ref_split = [tuple(iter_extend(l.rsplit('\t'), 3)) for l in ref_output.splitlines()]
if ref_filter:
ref_split = (e for e in ref_split if ref_filter(*e))
@@ -113,7 +115,7 @@ def filter_refs(refs):
all_refs = get_all_refs()
to_remove = set(all_refs) - set(refs)
if to_remove:
check_output(['xargs', '-0', '-n', '1', 'git', 'update-ref', '-d', '--no-deref'],
check_output(['xargs', '-0', '-n', '1'] + git_cmd + ['update-ref', '-d', '--no-deref'],
input=''.join(l + '\0' for l in to_remove))
@@ -126,7 +128,7 @@ def follow_history_intersections(revisions, refs):
if rev in seen:
continue
parents = check_output(['git', 'rev-parse', '%s^@' % rev]).splitlines()
parents = check_output(git_cmd + ['rev-parse', '%s^@' % rev]).splitlines()
yield rev
seen.add(rev)
@@ -134,12 +136,12 @@ def follow_history_intersections(revisions, refs):
if not parents:
continue
check_refs = check_output(['git', 'merge-base', '--independent'] + sorted(refs)).splitlines()
check_refs = check_output(git_cmd + ['merge-base', '--independent'] + sorted(refs)).splitlines()
for parent in parents:
for ref in check_refs:
print("Checking %s vs %s" % (parent, ref))
try:
merge_base = check_output(['git', 'merge-base', parent, ref]).rstrip()
merge_base = check_output(git_cmd + ['merge-base', parent, ref]).rstrip()
except subprocess.CalledProcessError:
continue
else:
@@ -159,14 +161,14 @@ def iter_except(func, exception, start=None):
def shrink_repo(git_dir):
"""Shrink the newly shallow repository, removing the unreachable objects."""
subprocess.check_call(['git', 'reflog', 'expire', '--expire-unreachable=now', '--all'])
subprocess.check_call(['git', 'repack', '-ad'])
subprocess.check_call(git_cmd + ['reflog', 'expire', '--expire-unreachable=now', '--all'])
subprocess.check_call(git_cmd + ['repack', '-ad'])
try:
os.unlink(os.path.join(git_dir, 'objects', 'info', 'alternates'))
except OSError as exc:
if exc.errno != errno.ENOENT:
raise
subprocess.check_call(['git', 'prune', '--expire', 'now'])
subprocess.check_call(git_cmd + ['prune', '--expire', 'now'])
if __name__ == '__main__':

View File

@@ -84,7 +84,7 @@ webserverStartAll()
echo "Starting webserver..."
$MANAGE runserver --noreload "$ADDR_PORT" \
</dev/null >>${BUILDDIR}/toaster_web.log 2>&1 \
</dev/null >>${TOASTER_LOGS_DIR}/web.log 2>&1 \
& echo $! >${BUILDDIR}/.toastermain.pid
sleep 1
@@ -181,6 +181,14 @@ WEBSERVER=1
export TOASTER_BUILDSERVER=1
ADDR_PORT="localhost:8000"
TOASTERDIR=`dirname $BUILDDIR`
# ${BUILDDIR}/toaster_logs/ became the default location for toaster logs
# This is needed for implemented django-log-viewer: https://pypi.org/project/django-log-viewer/
# If the directory does not exist, create it.
TOASTER_LOGS_DIR="${BUILDDIR}/toaster_logs/"
if [ ! -d $TOASTER_LOGS_DIR ]
then
mkdir $TOASTER_LOGS_DIR
fi
unset CMD
for param in $*; do
case $param in
@@ -299,7 +307,7 @@ case $CMD in
export BITBAKE_UI='toasterui'
if [ $TOASTER_BUILDSERVER -eq 1 ] ; then
$MANAGE runbuilds \
</dev/null >>${BUILDDIR}/toaster_runbuilds.log 2>&1 \
</dev/null >>${TOASTER_LOGS_DIR}/toaster_runbuilds.log 2>&1 \
& echo $! >${BUILDDIR}/.runbuilds.pid
else
echo "Toaster build server not started."

View File

@@ -30,79 +30,23 @@ sys.path.insert(0, join(dirname(dirname(abspath(__file__))), 'lib'))
import bb.cooker
from bb.ui import toasterui
class EventPlayer:
"""Emulate a connection to a bitbake server."""
def __init__(self, eventfile, variables):
self.eventfile = eventfile
self.variables = variables
self.eventmask = []
def waitEvent(self, _timeout):
"""Read event from the file."""
line = self.eventfile.readline().strip()
if not line:
return
try:
event_str = json.loads(line)['vars'].encode('utf-8')
event = pickle.loads(codecs.decode(event_str, 'base64'))
event_name = "%s.%s" % (event.__module__, event.__class__.__name__)
if event_name not in self.eventmask:
return
return event
except ValueError as err:
print("Failed loading ", line)
raise err
def runCommand(self, command_line):
"""Emulate running a command on the server."""
name = command_line[0]
if name == "getVariable":
var_name = command_line[1]
variable = self.variables.get(var_name)
if variable:
return variable['v'], None
return None, "Missing variable %s" % var_name
elif name == "getAllKeysWithFlags":
dump = {}
flaglist = command_line[1]
for key, val in self.variables.items():
try:
if not key.startswith("__"):
dump[key] = {
'v': val['v'],
'history' : val['history'],
}
for flag in flaglist:
dump[key][flag] = val[flag]
except Exception as err:
print(err)
return (dump, None)
elif name == 'setEventMask':
self.eventmask = command_line[-1]
return True, None
else:
raise Exception("Command %s not implemented" % command_line[0])
def getEventHandle(self):
"""
This method is called by toasterui.
The return value is passed to self.runCommand but not used there.
"""
pass
from bb.ui import eventreplay
def main(argv):
with open(argv[-1]) as eventfile:
# load variables from the first line
variables = json.loads(eventfile.readline().strip())['allvariables']
variables = None
while line := eventfile.readline().strip():
try:
variables = json.loads(line)['allvariables']
break
except (KeyError, json.JSONDecodeError):
continue
if not variables:
sys.exit("Cannot find allvariables entry in event log file %s" % argv[-1])
eventfile.seek(0)
params = namedtuple('ConfigParams', ['observe_only'])(True)
player = EventPlayer(eventfile, variables)
player = eventreplay.EventPlayer(eventfile, variables)
return toasterui.main(player, player, params)

View File

@@ -63,13 +63,14 @@ syn region bbVarFlagFlag matchgroup=bbArrayBrackets start="\[" end="\]\s*
" Includes and requires
syn keyword bbInclude inherit include require contained
syn match bbIncludeRest ".*$" contained contains=bbString,bbVarDeref
syn match bbIncludeRest ".*$" contained contains=bbString,bbVarDeref,bbVarPyValue
syn match bbIncludeLine "^\(inherit\|include\|require\)\s\+" contains=bbInclude nextgroup=bbIncludeRest
" Add taks and similar
syn keyword bbStatement addtask deltask addhandler after before EXPORT_FUNCTIONS contained
syn match bbStatementRest ".*$" skipwhite contained contains=bbStatement
syn match bbStatementLine "^\(addtask\|deltask\|addhandler\|after\|before\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest
syn match bbStatementRest /[^\\]*$/ skipwhite contained contains=bbStatement,bbVarDeref,bbVarPyValue
syn region bbStatementRestCont start=/.*\\$/ end=/^[^\\]*$/ contained contains=bbStatement,bbVarDeref,bbVarPyValue,bbContinue keepend
syn match bbStatementLine "^\(addtask\|deltask\|addhandler\|after\|before\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest,bbStatementRestCont
" OE Important Functions
syn keyword bbOEFunctions do_fetch do_unpack do_patch do_configure do_compile do_stage do_install do_package contained
@@ -122,6 +123,7 @@ hi def link bbPyFlag Type
hi def link bbPyDef Statement
hi def link bbStatement Statement
hi def link bbStatementRest Identifier
hi def link bbStatementRestCont Identifier
hi def link bbOEFunctions Special
hi def link bbVarPyValue PreProc
hi def link bbOverrideOperator Operator

View File

@@ -586,10 +586,11 @@ or possibly those defined in the metadata/signature handler itself. The
simplest parameter to pass is "none", which causes a set of signature
information to be written out into ``STAMPS_DIR`` corresponding to the
targets specified. The other currently available parameter is
"printdiff", which causes BitBake to try to establish the closest
"printdiff", which causes BitBake to try to establish the most recent
signature match it can (e.g. in the sstate cache) and then run
``bitbake-diffsigs`` over the matches to determine the stamps and delta
where these two stamp trees diverge.
compare the matched signatures to determine the stamps and delta
where these two stamp trees diverge. This can be used to determine why
tasks need to be re-run in situations where that is not expected.
.. note::

View File

@@ -0,0 +1,91 @@
.. SPDX-License-Identifier: CC-BY-2.5
================
Variable Context
================
|
Variables might only have an impact or can be used in certain contexts. Some
should only be used in global files like ``.conf``, while others are intended only
for local files like ``.bb``. This chapter aims to describe some important variable
contexts.
.. _ref-varcontext-configuration:
BitBake's own configuration
===========================
Variables starting with ``BB_`` usually configure the behaviour of BitBake itself.
For example, one could configure:
- System resources, like disk space to be used (:term:`BB_DISKMON_DIRS`),
or the number of tasks to be run in parallel by BitBake (:term:`BB_NUMBER_THREADS`).
- How the fetchers shall behave, e.g., :term:`BB_FETCH_PREMIRRORONLY` is used
by BitBake to determine if BitBake's fetcher shall search only
:term:`PREMIRRORS` for files.
Those variables are usually configured globally.
BitBake configuration
=====================
There are variables:
- Like :term:`B` or :term:`T`, that are used to specify directories used by
BitBake during the build of a particular recipe. Those variables are
specified in ``bitbake.conf``. Some, like :term:`B`, are quite often
overwritten in recipes.
- Starting with ``FAKEROOT``, to configure how the ``fakeroot`` command is
handled. Those are usually set by ``bitbake.conf`` and might get adapted in a
``bbclass``.
- Detailing where BitBake will store and fetch information from, for
data reuse between build runs like :term:`CACHE`, :term:`DL_DIR` or
:term:`PERSISTENT_DIR`. Those are usually global.
Layers and files
================
Variables starting with ``LAYER`` configure how BitBake handles layers.
Additionally, variables starting with ``BB`` configure how layers and files are
handled. For example:
- :term:`LAYERDEPENDS` is used to configure on which layers a given layer
depends.
- The configured layers are contained in :term:`BBLAYERS` and files in
:term:`BBFILES`.
Those variables are often used in the files ``layer.conf`` and ``bblayers.conf``.
Recipes and packages
====================
Variables handling recipes and packages can be split into:
- :term:`PN`, :term:`PV` or :term:`PF` for example, contain information about
the name or revision of a recipe or package. Usually, the default set in
``bitbake.conf`` is used, but those are from time to time overwritten in
recipes.
- :term:`SUMMARY`, :term:`DESCRIPTION`, :term:`LICENSE` or :term:`HOMEPAGE`
contain the expected information and should be set specifically for every
recipe.
- In recipes, variables are also used to control build and runtime
dependencies between recipes/packages with other recipes/packages. The
most common should be: :term:`PROVIDES`, :term:`RPROVIDES`, :term:`DEPENDS`,
and :term:`RDEPENDS`.
- There are further variables starting with ``SRC`` that specify the sources in
a recipe like :term:`SRC_URI` or :term:`SRCDATE`. Those are also usually set
in recipes.
- Which version or provider of a recipe should be given preference when
multiple recipes would provide the same item, is controlled by variables
starting with ``PREFERRED_``. Those are normally set in the configuration
files of a ``MACHINE`` or ``DISTRO``.

View File

@@ -432,6 +432,15 @@ overview of their function and contents.
``ConfigParsed`` event can set the variable to trigger the re-parse.
You must be careful to avoid recursive loops with this functionality.
:term:`BB_LOADFACTOR_MAX`
Setting this to a value will cause BitBake to check the system load
average before executing new tasks. If the load average is above the
the number of CPUs multipled by this factor, no new task will be started
unless there is no task executing. A value of "1.5" has been found to
work reasonably. This is helpful for systems which don't have pressure
regulation enabled, which is more granular. Pressure values take
precedence over loadfactor.
:term:`BB_LOGCONFIG`
Specifies the name of a config file that contains the user logging
configuration. See

View File

@@ -13,6 +13,7 @@ BitBake User Manual
bitbake-user-manual/bitbake-user-manual-intro
bitbake-user-manual/bitbake-user-manual-execution
bitbake-user-manual/bitbake-user-manual-metadata
bitbake-user-manual/bitbake-user-manual-ref-variables-context
bitbake-user-manual/bitbake-user-manual-fetching
bitbake-user-manual/bitbake-user-manual-ref-variables
bitbake-user-manual/bitbake-user-manual-hello

View File

@@ -9,7 +9,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
__version__ = "2.6.0"
__version__ = "2.8.0"
import sys
if sys.version_info < (3, 8, 0):

View File

@@ -4,30 +4,13 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import itertools
import json
# The Python async server defaults to a 64K receive buffer, so we hardcode our
# maximum chunk size. It would be better if the client and server reported to
# each other what the maximum chunk sizes were, but that will slow down the
# connection setup with a round trip delay so I'd rather not do that unless it
# is necessary
DEFAULT_MAX_CHUNK = 32 * 1024
def chunkify(msg, max_chunk):
if len(msg) < max_chunk - 1:
yield ''.join((msg, "\n"))
else:
yield ''.join((json.dumps({
'chunk-stream': None
}), "\n"))
args = [iter(msg)] * (max_chunk - 1)
for m in map(''.join, itertools.zip_longest(*args, fillvalue='')):
yield ''.join(itertools.chain(m, "\n"))
yield "\n"
from .client import AsyncClient, Client
from .serv import AsyncServer, AsyncServerConnection, ClientError, ServerError
from .client import AsyncClient, Client, ClientPool
from .serv import AsyncServer, AsyncServerConnection
from .connection import DEFAULT_MAX_CHUNK
from .exceptions import (
ClientError,
ServerError,
ConnectionClosedError,
InvokeError,
)

View File

@@ -10,22 +10,59 @@ import json
import os
import socket
import sys
from . import chunkify, DEFAULT_MAX_CHUNK
import re
import contextlib
from threading import Thread
from .connection import StreamConnection, WebsocketConnection, DEFAULT_MAX_CHUNK
from .exceptions import ConnectionClosedError, InvokeError
UNIX_PREFIX = "unix://"
WS_PREFIX = "ws://"
WSS_PREFIX = "wss://"
ADDR_TYPE_UNIX = 0
ADDR_TYPE_TCP = 1
ADDR_TYPE_WS = 2
def parse_address(addr):
if addr.startswith(UNIX_PREFIX):
return (ADDR_TYPE_UNIX, (addr[len(UNIX_PREFIX) :],))
elif addr.startswith(WS_PREFIX) or addr.startswith(WSS_PREFIX):
return (ADDR_TYPE_WS, (addr,))
else:
m = re.match(r"\[(?P<host>[^\]]*)\]:(?P<port>\d+)$", addr)
if m is not None:
host = m.group("host")
port = m.group("port")
else:
host, port = addr.split(":")
return (ADDR_TYPE_TCP, (host, int(port)))
class AsyncClient(object):
def __init__(self, proto_name, proto_version, logger, timeout=30):
self.reader = None
self.writer = None
def __init__(
self,
proto_name,
proto_version,
logger,
timeout=30,
server_headers=False,
headers={},
):
self.socket = None
self.max_chunk = DEFAULT_MAX_CHUNK
self.proto_name = proto_name
self.proto_version = proto_version
self.logger = logger
self.timeout = timeout
self.needs_server_headers = server_headers
self.server_headers = {}
self.headers = headers
async def connect_tcp(self, address, port):
async def connect_sock():
return await asyncio.open_connection(address, port)
reader, writer = await asyncio.open_connection(address, port)
return StreamConnection(reader, writer, self.timeout, self.max_chunk)
self._connect_sock = connect_sock
@@ -40,27 +77,59 @@ class AsyncClient(object):
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
sock.connect(os.path.basename(path))
finally:
os.chdir(cwd)
return await asyncio.open_unix_connection(sock=sock)
os.chdir(cwd)
reader, writer = await asyncio.open_unix_connection(sock=sock)
return StreamConnection(reader, writer, self.timeout, self.max_chunk)
self._connect_sock = connect_sock
async def connect_websocket(self, uri):
import websockets
async def connect_sock():
websocket = await websockets.connect(uri, ping_interval=None)
return WebsocketConnection(websocket, self.timeout)
self._connect_sock = connect_sock
async def setup_connection(self):
s = '%s %s\n\n' % (self.proto_name, self.proto_version)
self.writer.write(s.encode("utf-8"))
await self.writer.drain()
# Send headers
await self.socket.send("%s %s" % (self.proto_name, self.proto_version))
await self.socket.send(
"needs-headers: %s" % ("true" if self.needs_server_headers else "false")
)
for k, v in self.headers.items():
await self.socket.send("%s: %s" % (k, v))
# End of headers
await self.socket.send("")
self.server_headers = {}
if self.needs_server_headers:
while True:
line = await self.socket.recv()
if not line:
# End headers
break
tag, value = line.split(":", 1)
self.server_headers[tag.lower()] = value.strip()
async def get_header(self, tag, default):
await self.connect()
return self.server_headers.get(tag, default)
async def connect(self):
if self.reader is None or self.writer is None:
(self.reader, self.writer) = await self._connect_sock()
if self.socket is None:
self.socket = await self._connect_sock()
await self.setup_connection()
async def close(self):
self.reader = None
async def disconnect(self):
if self.socket is not None:
await self.socket.close()
self.socket = None
if self.writer is not None:
self.writer.close()
self.writer = None
async def close(self):
await self.disconnect()
async def _send_wrapper(self, proc):
count = 0
@@ -71,6 +140,7 @@ class AsyncClient(object):
except (
OSError,
ConnectionError,
ConnectionClosedError,
json.JSONDecodeError,
UnicodeDecodeError,
) as e:
@@ -82,49 +152,21 @@ class AsyncClient(object):
await self.close()
count += 1
async def send_message(self, msg):
async def get_line():
try:
line = await asyncio.wait_for(self.reader.readline(), self.timeout)
except asyncio.TimeoutError:
raise ConnectionError("Timed out waiting for server")
if not line:
raise ConnectionError("Connection closed")
line = line.decode("utf-8")
if not line.endswith("\n"):
raise ConnectionError("Bad message %r" % (line))
return line
def check_invoke_error(self, msg):
if isinstance(msg, dict) and "invoke-error" in msg:
raise InvokeError(msg["invoke-error"]["message"])
async def invoke(self, msg):
async def proc():
for c in chunkify(json.dumps(msg), self.max_chunk):
self.writer.write(c.encode("utf-8"))
await self.writer.drain()
await self.socket.send_message(msg)
return await self.socket.recv_message()
l = await get_line()
m = json.loads(l)
if m and "chunk-stream" in m:
lines = []
while True:
l = (await get_line()).rstrip("\n")
if not l:
break
lines.append(l)
m = json.loads("".join(lines))
return m
return await self._send_wrapper(proc)
result = await self._send_wrapper(proc)
self.check_invoke_error(result)
return result
async def ping(self):
return await self.send_message(
{'ping': {}}
)
return await self.invoke({"ping": {}})
async def __aenter__(self):
return self
@@ -148,7 +190,7 @@ class Client(object):
# required (but harmless) with it.
asyncio.set_event_loop(self.loop)
self._add_methods('connect_tcp', 'ping')
self._add_methods("connect_tcp", "ping")
@abc.abstractmethod
def _get_async_client(self):
@@ -177,11 +219,91 @@ class Client(object):
def max_chunk(self, value):
self.client.max_chunk = value
def close(self):
def disconnect(self):
self.loop.run_until_complete(self.client.close())
if sys.version_info >= (3, 6):
self.loop.run_until_complete(self.loop.shutdown_asyncgens())
self.loop.close()
def close(self):
if self.loop:
self.loop.run_until_complete(self.client.close())
if sys.version_info >= (3, 6):
self.loop.run_until_complete(self.loop.shutdown_asyncgens())
self.loop.close()
self.loop = None
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
self.close()
return False
class ClientPool(object):
def __init__(self, max_clients):
self.avail_clients = []
self.num_clients = 0
self.max_clients = max_clients
self.loop = None
self.client_condition = None
@abc.abstractmethod
async def _new_client(self):
raise NotImplementedError("Must be implemented in derived class")
def close(self):
if self.client_condition:
self.client_condition = None
if self.loop:
self.loop.run_until_complete(self.__close_clients())
self.loop.run_until_complete(self.loop.shutdown_asyncgens())
self.loop.close()
self.loop = None
def run_tasks(self, tasks):
if not self.loop:
self.loop = asyncio.new_event_loop()
thread = Thread(target=self.__thread_main, args=(tasks,))
thread.start()
thread.join()
@contextlib.asynccontextmanager
async def get_client(self):
async with self.client_condition:
if self.avail_clients:
client = self.avail_clients.pop()
elif self.num_clients < self.max_clients:
self.num_clients += 1
client = await self._new_client()
else:
while not self.avail_clients:
await self.client_condition.wait()
client = self.avail_clients.pop()
try:
yield client
finally:
async with self.client_condition:
self.avail_clients.append(client)
self.client_condition.notify()
def __thread_main(self, tasks):
async def process_task(task):
async with self.get_client() as client:
await task(client)
asyncio.set_event_loop(self.loop)
if not self.client_condition:
self.client_condition = asyncio.Condition()
tasks = [process_task(t) for t in tasks]
self.loop.run_until_complete(asyncio.gather(*tasks))
async def __close_clients(self):
for c in self.avail_clients:
await c.close()
self.avail_clients = []
self.num_clients = 0
def __enter__(self):
return self

View File

@@ -0,0 +1,146 @@
#
# Copyright BitBake Contributors
#
# SPDX-License-Identifier: GPL-2.0-only
#
import asyncio
import itertools
import json
from datetime import datetime
from .exceptions import ClientError, ConnectionClosedError
# The Python async server defaults to a 64K receive buffer, so we hardcode our
# maximum chunk size. It would be better if the client and server reported to
# each other what the maximum chunk sizes were, but that will slow down the
# connection setup with a round trip delay so I'd rather not do that unless it
# is necessary
DEFAULT_MAX_CHUNK = 32 * 1024
def chunkify(msg, max_chunk):
if len(msg) < max_chunk - 1:
yield "".join((msg, "\n"))
else:
yield "".join((json.dumps({"chunk-stream": None}), "\n"))
args = [iter(msg)] * (max_chunk - 1)
for m in map("".join, itertools.zip_longest(*args, fillvalue="")):
yield "".join(itertools.chain(m, "\n"))
yield "\n"
def json_serialize(obj):
if isinstance(obj, datetime):
return obj.isoformat()
raise TypeError("Type %s not serializeable" % type(obj))
class StreamConnection(object):
def __init__(self, reader, writer, timeout, max_chunk=DEFAULT_MAX_CHUNK):
self.reader = reader
self.writer = writer
self.timeout = timeout
self.max_chunk = max_chunk
@property
def address(self):
return self.writer.get_extra_info("peername")
async def send_message(self, msg):
for c in chunkify(json.dumps(msg, default=json_serialize), self.max_chunk):
self.writer.write(c.encode("utf-8"))
await self.writer.drain()
async def recv_message(self):
l = await self.recv()
m = json.loads(l)
if not m:
return m
if "chunk-stream" in m:
lines = []
while True:
l = await self.recv()
if not l:
break
lines.append(l)
m = json.loads("".join(lines))
return m
async def send(self, msg):
self.writer.write(("%s\n" % msg).encode("utf-8"))
await self.writer.drain()
async def recv(self):
if self.timeout < 0:
line = await self.reader.readline()
else:
try:
line = await asyncio.wait_for(self.reader.readline(), self.timeout)
except asyncio.TimeoutError:
raise ConnectionError("Timed out waiting for data")
if not line:
raise ConnectionClosedError("Connection closed")
line = line.decode("utf-8")
if not line.endswith("\n"):
raise ConnectionError("Bad message %r" % (line))
return line.rstrip()
async def close(self):
self.reader = None
if self.writer is not None:
self.writer.close()
self.writer = None
class WebsocketConnection(object):
def __init__(self, socket, timeout):
self.socket = socket
self.timeout = timeout
@property
def address(self):
return ":".join(str(s) for s in self.socket.remote_address)
async def send_message(self, msg):
await self.send(json.dumps(msg, default=json_serialize))
async def recv_message(self):
m = await self.recv()
return json.loads(m)
async def send(self, msg):
import websockets.exceptions
try:
await self.socket.send(msg)
except websockets.exceptions.ConnectionClosed:
raise ConnectionClosedError("Connection closed")
async def recv(self):
import websockets.exceptions
try:
if self.timeout < 0:
return await self.socket.recv()
try:
return await asyncio.wait_for(self.socket.recv(), self.timeout)
except asyncio.TimeoutError:
raise ConnectionError("Timed out waiting for data")
except websockets.exceptions.ConnectionClosed:
raise ConnectionClosedError("Connection closed")
async def close(self):
if self.socket is not None:
await self.socket.close()
self.socket = None

View File

@@ -0,0 +1,21 @@
#
# Copyright BitBake Contributors
#
# SPDX-License-Identifier: GPL-2.0-only
#
class ClientError(Exception):
pass
class InvokeError(Exception):
pass
class ServerError(Exception):
pass
class ConnectionClosedError(Exception):
pass

View File

@@ -12,241 +12,333 @@ import signal
import socket
import sys
import multiprocessing
from . import chunkify, DEFAULT_MAX_CHUNK
import logging
from .connection import StreamConnection, WebsocketConnection
from .exceptions import ClientError, ServerError, ConnectionClosedError, InvokeError
class ClientError(Exception):
pass
class ServerError(Exception):
pass
class ClientLoggerAdapter(logging.LoggerAdapter):
def process(self, msg, kwargs):
return f"[Client {self.extra['address']}] {msg}", kwargs
class AsyncServerConnection(object):
def __init__(self, reader, writer, proto_name, logger):
self.reader = reader
self.writer = writer
# If a handler returns this object (e.g. `return self.NO_RESPONSE`), no
# return message will be automatically be sent back to the client
NO_RESPONSE = object()
def __init__(self, socket, proto_name, logger):
self.socket = socket
self.proto_name = proto_name
self.max_chunk = DEFAULT_MAX_CHUNK
self.handlers = {
'chunk-stream': self.handle_chunk,
'ping': self.handle_ping,
"ping": self.handle_ping,
}
self.logger = logger
self.logger = ClientLoggerAdapter(
logger,
{
"address": socket.address,
},
)
self.client_headers = {}
async def close(self):
await self.socket.close()
async def handle_headers(self, headers):
return {}
async def process_requests(self):
try:
self.addr = self.writer.get_extra_info('peername')
self.logger.debug('Client %r connected' % (self.addr,))
self.logger.info("Client %r connected" % (self.socket.address,))
# Read protocol and version
client_protocol = await self.reader.readline()
client_protocol = await self.socket.recv()
if not client_protocol:
return
(client_proto_name, client_proto_version) = client_protocol.decode('utf-8').rstrip().split()
(client_proto_name, client_proto_version) = client_protocol.split()
if client_proto_name != self.proto_name:
self.logger.debug('Rejecting invalid protocol %s' % (self.proto_name))
self.logger.debug("Rejecting invalid protocol %s" % (self.proto_name))
return
self.proto_version = tuple(int(v) for v in client_proto_version.split('.'))
self.proto_version = tuple(int(v) for v in client_proto_version.split("."))
if not self.validate_proto_version():
self.logger.debug('Rejecting invalid protocol version %s' % (client_proto_version))
self.logger.debug(
"Rejecting invalid protocol version %s" % (client_proto_version)
)
return
# Read headers. Currently, no headers are implemented, so look for
# an empty line to signal the end of the headers
# Read headers
self.client_headers = {}
while True:
line = await self.reader.readline()
if not line:
return
line = line.decode('utf-8').rstrip()
if not line:
header = await self.socket.recv()
if not header:
# Empty line. End of headers
break
tag, value = header.split(":", 1)
self.client_headers[tag.lower()] = value.strip()
if self.client_headers.get("needs-headers", "false") == "true":
for k, v in (await self.handle_headers(self.client_headers)).items():
await self.socket.send("%s: %s" % (k, v))
await self.socket.send("")
# Handle messages
while True:
d = await self.read_message()
d = await self.socket.recv_message()
if d is None:
break
await self.dispatch_message(d)
await self.writer.drain()
except ClientError as e:
try:
response = await self.dispatch_message(d)
except InvokeError as e:
await self.socket.send_message(
{"invoke-error": {"message": str(e)}}
)
break
if response is not self.NO_RESPONSE:
await self.socket.send_message(response)
except ConnectionClosedError as e:
self.logger.info(str(e))
except (ClientError, ConnectionError) as e:
self.logger.error(str(e))
finally:
self.writer.close()
await self.close()
async def dispatch_message(self, msg):
for k in self.handlers.keys():
if k in msg:
self.logger.debug('Handling %s' % k)
await self.handlers[k](msg[k])
return
self.logger.debug("Handling %s" % k)
return await self.handlers[k](msg[k])
raise ClientError("Unrecognized command %r" % msg)
def write_message(self, msg):
for c in chunkify(json.dumps(msg), self.max_chunk):
self.writer.write(c.encode('utf-8'))
async def read_message(self):
l = await self.reader.readline()
if not l:
return None
try:
message = l.decode('utf-8')
if not message.endswith('\n'):
return None
return json.loads(message)
except (json.JSONDecodeError, UnicodeDecodeError) as e:
self.logger.error('Bad message from client: %r' % message)
raise e
async def handle_chunk(self, request):
lines = []
try:
while True:
l = await self.reader.readline()
l = l.rstrip(b"\n").decode("utf-8")
if not l:
break
lines.append(l)
msg = json.loads(''.join(lines))
except (json.JSONDecodeError, UnicodeDecodeError) as e:
self.logger.error('Bad message from client: %r' % lines)
raise e
if 'chunk-stream' in msg:
raise ClientError("Nested chunks are not allowed")
await self.dispatch_message(msg)
async def handle_ping(self, request):
response = {'alive': True}
self.write_message(response)
return {"alive": True}
class StreamServer(object):
def __init__(self, handler, logger):
self.handler = handler
self.logger = logger
self.closed = False
async def handle_stream_client(self, reader, writer):
# writer.transport.set_write_buffer_limits(0)
socket = StreamConnection(reader, writer, -1)
if self.closed:
await socket.close()
return
await self.handler(socket)
async def stop(self):
self.closed = True
class TCPStreamServer(StreamServer):
def __init__(self, host, port, handler, logger):
super().__init__(handler, logger)
self.host = host
self.port = port
def start(self, loop):
self.server = loop.run_until_complete(
asyncio.start_server(self.handle_stream_client, self.host, self.port)
)
for s in self.server.sockets:
self.logger.debug("Listening on %r" % (s.getsockname(),))
# Newer python does this automatically. Do it manually here for
# maximum compatibility
s.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
s.setsockopt(socket.SOL_TCP, socket.TCP_QUICKACK, 1)
# Enable keep alives. This prevents broken client connections
# from persisting on the server for long periods of time.
s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 30)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 15)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4)
name = self.server.sockets[0].getsockname()
if self.server.sockets[0].family == socket.AF_INET6:
self.address = "[%s]:%d" % (name[0], name[1])
else:
self.address = "%s:%d" % (name[0], name[1])
return [self.server.wait_closed()]
async def stop(self):
await super().stop()
self.server.close()
def cleanup(self):
pass
class UnixStreamServer(StreamServer):
def __init__(self, path, handler, logger):
super().__init__(handler, logger)
self.path = path
def start(self, loop):
cwd = os.getcwd()
try:
# Work around path length limits in AF_UNIX
os.chdir(os.path.dirname(self.path))
self.server = loop.run_until_complete(
asyncio.start_unix_server(
self.handle_stream_client, os.path.basename(self.path)
)
)
finally:
os.chdir(cwd)
self.logger.debug("Listening on %r" % self.path)
self.address = "unix://%s" % os.path.abspath(self.path)
return [self.server.wait_closed()]
async def stop(self):
await super().stop()
self.server.close()
def cleanup(self):
os.unlink(self.path)
class WebsocketsServer(object):
def __init__(self, host, port, handler, logger):
self.host = host
self.port = port
self.handler = handler
self.logger = logger
def start(self, loop):
import websockets.server
self.server = loop.run_until_complete(
websockets.server.serve(
self.client_handler,
self.host,
self.port,
ping_interval=None,
)
)
for s in self.server.sockets:
self.logger.debug("Listening on %r" % (s.getsockname(),))
# Enable keep alives. This prevents broken client connections
# from persisting on the server for long periods of time.
s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 30)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 15)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4)
name = self.server.sockets[0].getsockname()
if self.server.sockets[0].family == socket.AF_INET6:
self.address = "ws://[%s]:%d" % (name[0], name[1])
else:
self.address = "ws://%s:%d" % (name[0], name[1])
return [self.server.wait_closed()]
async def stop(self):
self.server.close()
def cleanup(self):
pass
async def client_handler(self, websocket):
socket = WebsocketConnection(websocket, -1)
await self.handler(socket)
class AsyncServer(object):
def __init__(self, logger):
self._cleanup_socket = None
self.logger = logger
self.start = None
self.address = None
self.loop = None
self.run_tasks = []
def start_tcp_server(self, host, port):
def start_tcp():
self.server = self.loop.run_until_complete(
asyncio.start_server(self.handle_client, host, port)
)
for s in self.server.sockets:
self.logger.debug('Listening on %r' % (s.getsockname(),))
# Newer python does this automatically. Do it manually here for
# maximum compatibility
s.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
s.setsockopt(socket.SOL_TCP, socket.TCP_QUICKACK, 1)
# Enable keep alives. This prevents broken client connections
# from persisting on the server for long periods of time.
s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 30)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 15)
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4)
name = self.server.sockets[0].getsockname()
if self.server.sockets[0].family == socket.AF_INET6:
self.address = "[%s]:%d" % (name[0], name[1])
else:
self.address = "%s:%d" % (name[0], name[1])
self.start = start_tcp
self.server = TCPStreamServer(host, port, self._client_handler, self.logger)
def start_unix_server(self, path):
def cleanup():
os.unlink(path)
self.server = UnixStreamServer(path, self._client_handler, self.logger)
def start_unix():
cwd = os.getcwd()
try:
# Work around path length limits in AF_UNIX
os.chdir(os.path.dirname(path))
self.server = self.loop.run_until_complete(
asyncio.start_unix_server(self.handle_client, os.path.basename(path))
)
finally:
os.chdir(cwd)
def start_websocket_server(self, host, port):
self.server = WebsocketsServer(host, port, self._client_handler, self.logger)
self.logger.debug('Listening on %r' % path)
self._cleanup_socket = cleanup
self.address = "unix://%s" % os.path.abspath(path)
self.start = start_unix
@abc.abstractmethod
def accept_client(self, reader, writer):
pass
async def handle_client(self, reader, writer):
# writer.transport.set_write_buffer_limits(0)
async def _client_handler(self, socket):
address = socket.address
try:
client = self.accept_client(reader, writer)
client = self.accept_client(socket)
await client.process_requests()
except Exception as e:
import traceback
self.logger.error('Error from client: %s' % str(e), exc_info=True)
traceback.print_exc()
writer.close()
self.logger.debug('Client disconnected')
def run_loop_forever(self):
try:
self.loop.run_forever()
except KeyboardInterrupt:
pass
self.logger.error(
"Error from client %s: %s" % (address, str(e)), exc_info=True
)
traceback.print_exc()
finally:
self.logger.debug("Client %s disconnected", address)
await socket.close()
@abc.abstractmethod
def accept_client(self, socket):
pass
async def stop(self):
self.logger.debug("Stopping server")
await self.server.stop()
def start(self):
tasks = self.server.start(self.loop)
self.address = self.server.address
return tasks
def signal_handler(self):
self.logger.debug("Got exit signal")
self.loop.stop()
self.loop.create_task(self.stop())
def _serve_forever(self):
def _serve_forever(self, tasks):
try:
self.loop.add_signal_handler(signal.SIGTERM, self.signal_handler)
self.loop.add_signal_handler(signal.SIGINT, self.signal_handler)
self.loop.add_signal_handler(signal.SIGQUIT, self.signal_handler)
signal.pthread_sigmask(signal.SIG_UNBLOCK, [signal.SIGTERM])
self.run_loop_forever()
self.server.close()
self.loop.run_until_complete(asyncio.gather(*tasks))
self.loop.run_until_complete(self.server.wait_closed())
self.logger.debug('Server shutting down')
self.logger.debug("Server shutting down")
finally:
if self._cleanup_socket is not None:
self._cleanup_socket()
self.server.cleanup()
def serve_forever(self):
"""
Serve requests in the current process
"""
self._create_loop()
tasks = self.start()
self._serve_forever(tasks)
self.loop.close()
def _create_loop(self):
# Create loop and override any loop that may have existed in
# a parent process. It is possible that the usecases of
# serve_forever might be constrained enough to allow using
# get_event_loop here, but better safe than sorry for now.
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
self.start()
self._serve_forever()
def serve_as_process(self, *, prefunc=None, args=()):
def serve_as_process(self, *, prefunc=None, args=(), log_level=None):
"""
Serve requests in a child process
"""
def run(queue):
# Create loop and override any loop that may have existed
# in a parent process. Without doing this and instead
@@ -259,18 +351,22 @@ class AsyncServer(object):
# more general, though, as any potential use of asyncio in
# Cooker could create a loop that needs to replaced in this
# new process.
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
self._create_loop()
try:
self.start()
self.address = None
tasks = self.start()
finally:
# Always put the server address to wake up the parent task
queue.put(self.address)
queue.close()
if prefunc is not None:
prefunc(self, *args)
self._serve_forever()
if log_level is not None:
self.logger.setLevel(log_level)
self._serve_forever(tasks)
if sys.version_info >= (3, 6):
self.loop.run_until_complete(self.loop.shutdown_asyncgens())

View File

@@ -344,9 +344,7 @@ def virtualfn2realfn(virtualfn):
"""
mc = ""
if virtualfn.startswith('mc:') and virtualfn.count(':') >= 2:
elems = virtualfn.split(':')
mc = elems[1]
virtualfn = ":".join(elems[2:])
(_, mc, virtualfn) = virtualfn.split(':', 2)
fn = virtualfn
cls = ""
@@ -369,7 +367,7 @@ def realfn2virtual(realfn, cls, mc):
def variant2virtual(realfn, variant):
"""
Convert a real filename + the associated subclass keyword to a virtual filename
Convert a real filename + a variant to a virtual filename
"""
if variant == "":
return realfn

View File

@@ -62,6 +62,7 @@ def check_indent(codestr):
modulecode_deps = {}
def add_module_functions(fn, functions, namespace):
import os
fstat = os.stat(fn)
fixedhash = fn + ":" + str(fstat.st_size) + ":" + str(fstat.st_mtime)
for f in functions:
@@ -257,17 +258,17 @@ class PythonParser():
if name and (name.endswith(self.getvars) or name.endswith(self.getvarflags) or name in self.containsfuncs or name in self.containsanyfuncs):
if isinstance(node.args[0], ast.Constant) and isinstance(node.args[0].value, str):
varname = node.args[0].value
if name in self.containsfuncs and isinstance(node.args[1], ast.Str):
if name in self.containsfuncs and isinstance(node.args[1], ast.Constant):
if varname not in self.contains:
self.contains[varname] = set()
self.contains[varname].add(node.args[1].s)
elif name in self.containsanyfuncs and isinstance(node.args[1], ast.Str):
self.contains[varname].add(node.args[1].value)
elif name in self.containsanyfuncs and isinstance(node.args[1], ast.Constant):
if varname not in self.contains:
self.contains[varname] = set()
self.contains[varname].update(node.args[1].s.split())
self.contains[varname].update(node.args[1].value.split())
elif name.endswith(self.getvarflags):
if isinstance(node.args[1], ast.Str):
self.references.add('%s[%s]' % (varname, node.args[1].s))
if isinstance(node.args[1], ast.Constant):
self.references.add('%s[%s]' % (varname, node.args[1].value))
else:
self.warn(node.func, node.args[1])
else:
@@ -275,8 +276,8 @@ class PythonParser():
else:
self.warn(node.func, node.args[0])
elif name and name.endswith(".expand"):
if isinstance(node.args[0], ast.Str):
value = node.args[0].s
if isinstance(node.args[0], ast.Constant):
value = node.args[0].value
d = bb.data.init()
parser = d.expandWithRefs(value, self.name)
self.references |= parser.references
@@ -286,8 +287,8 @@ class PythonParser():
self.contains[varname] = set()
self.contains[varname] |= parser.contains[varname]
elif name in self.execfuncs:
if isinstance(node.args[0], ast.Str):
self.var_execs.add(node.args[0].s)
if isinstance(node.args[0], ast.Constant):
self.var_execs.add(node.args[0].value)
else:
self.warn(node.func, node.args[0])
elif name and isinstance(node.func, (ast.Name, ast.Attribute)):

View File

@@ -777,6 +777,7 @@ class CommandsAsync:
(mc, pn) = bb.runqueue.split_mc(params[0])
taskname = params[1]
sigs = params[2]
bb.siggen.check_siggen_version(bb.siggen)
res = bb.siggen.find_siginfo(pn, taskname, sigs, command.cooker.databuilder.mcdata[mc])
bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.databuilder.mcdata[mc])
command.finishAsyncCommand()

View File

@@ -102,12 +102,15 @@ class CookerFeatures(object):
class EventWriter:
def __init__(self, cooker, eventfile):
self.file_inited = None
self.cooker = cooker
self.eventfile = eventfile
self.event_queue = []
def write_event(self, event):
def write_variables(self):
with open(self.eventfile, "a") as f:
f.write("%s\n" % json.dumps({ "allvariables" : self.cooker.getAllKeysWithFlags(["doc", "func"])}))
def send(self, event):
with open(self.eventfile, "a") as f:
try:
str_event = codecs.encode(pickle.dumps(event), 'base64').decode('utf-8')
@@ -117,28 +120,6 @@ class EventWriter:
import traceback
print(err, traceback.format_exc())
def send(self, event):
if self.file_inited:
# we have the file, just write the event
self.write_event(event)
else:
# init on bb.event.BuildStarted
name = "%s.%s" % (event.__module__, event.__class__.__name__)
if name in ("bb.event.BuildStarted", "bb.cooker.CookerExit"):
with open(self.eventfile, "w") as f:
f.write("%s\n" % json.dumps({ "allvariables" : self.cooker.getAllKeysWithFlags(["doc", "func"])}))
self.file_inited = True
# write pending events
for evt in self.event_queue:
self.write_event(evt)
# also write the current event
self.write_event(event)
else:
# queue all events until the file is inited
self.event_queue.append(event)
#============================================================================#
# BBCooker
@@ -303,6 +284,10 @@ class BBCooker:
self.data_hash = self.databuilder.data_hash
self.extraconfigdata = {}
eventlog = self.data.getVar("BB_DEFAULT_EVENTLOG")
if not self.configuration.writeeventlog and eventlog:
self.setupEventLog(eventlog)
if consolelog:
self.data.setVar("BB_CONSOLELOG", consolelog)
@@ -345,7 +330,7 @@ class BBCooker:
sync=False,
upstream=upstream,
)
self.hashserv.serve_as_process()
self.hashserv.serve_as_process(log_level=logging.WARNING)
for mc in self.databuilder.mcdata:
self.databuilder.mcorigdata[mc].setVar("BB_HASHSERVE", self.hashservaddr)
self.databuilder.mcdata[mc].setVar("BB_HASHSERVE", self.hashservaddr)
@@ -409,6 +394,19 @@ class BBCooker:
self._parsecache_set(False)
def setupEventLog(self, eventlog):
if self.eventlog and self.eventlog[0] != eventlog:
bb.event.unregister_UIHhandler(self.eventlog[1])
self.eventlog = None
if not self.eventlog or self.eventlog[0] != eventlog:
# we log all events to a file if so directed
# register the log file writer as UI Handler
if not os.path.exists(os.path.dirname(eventlog)):
bb.utils.mkdirhier(os.path.dirname(eventlog))
writer = EventWriter(self, eventlog)
EventLogWriteHandler = namedtuple('EventLogWriteHandler', ['event'])
self.eventlog = (eventlog, bb.event.register_UIHhandler(EventLogWriteHandler(writer)), writer)
def updateConfigOpts(self, options, environment, cmdline):
self.ui_cmdline = cmdline
clean = True
@@ -428,14 +426,7 @@ class BBCooker:
setattr(self.configuration, o, options[o])
if self.configuration.writeeventlog:
if self.eventlog and self.eventlog[0] != self.configuration.writeeventlog:
bb.event.unregister_UIHhandler(self.eventlog[1])
if not self.eventlog or self.eventlog[0] != self.configuration.writeeventlog:
# we log all events to a file if so directed
# register the log file writer as UI Handler
writer = EventWriter(self, self.configuration.writeeventlog)
EventLogWriteHandler = namedtuple('EventLogWriteHandler', ['event'])
self.eventlog = (self.configuration.writeeventlog, bb.event.register_UIHhandler(EventLogWriteHandler(writer)))
self.setupEventLog(self.configuration.writeeventlog)
bb.msg.loggerDefaultLogLevel = self.configuration.default_loglevel
bb.msg.loggerDefaultDomains = self.configuration.debug_domains
@@ -1395,6 +1386,8 @@ class BBCooker:
buildname = self.databuilder.mcdata[mc].getVar("BUILDNAME")
if fireevents:
bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.databuilder.mcdata[mc])
if self.eventlog:
self.eventlog[2].write_variables()
bb.event.enable_heartbeat()
# Execute the runqueue
@@ -1538,6 +1531,8 @@ class BBCooker:
for mc in self.multiconfigs:
bb.event.fire(bb.event.BuildStarted(buildname, ntargets), self.databuilder.mcdata[mc])
if self.eventlog:
self.eventlog[2].write_variables()
bb.event.enable_heartbeat()
rq = bb.runqueue.RunQueue(self, self.data, self.recipecaches, taskdata, runlist)
@@ -1548,7 +1543,13 @@ class BBCooker:
def getAllKeysWithFlags(self, flaglist):
def dummy_autorev(d):
return
dump = {}
# Horrible but for now we need to avoid any sideeffects of autorev being called
saved = bb.fetch2.get_autorev
bb.fetch2.get_autorev = dummy_autorev
for k in self.data.keys():
try:
expand = True
@@ -1568,6 +1569,7 @@ class BBCooker:
dump[k][d] = None
except Exception as e:
print(e)
bb.fetch2.get_autorev = saved
return dump
@@ -1787,7 +1789,7 @@ class CookerCollectFiles(object):
for ignored in ('SCCS', 'CVS', '.svn'):
if ignored in dirs:
dirs.remove(ignored)
found += [os.path.join(dir, f) for f in files if (f.endswith(['.bb', '.bbappend']))]
found += [os.path.join(dir, f) for f in files if (f.endswith(('.bb', '.bbappend')))]
return found

View File

@@ -503,8 +503,8 @@ class CookerDataBuilder(object):
if appends:
bb_data.setVar('__BBAPPEND', " ".join(appends))
bb_data = bb.parse.handle(bbfile, bb_data)
return bb_data
return bb.parse.handle(bbfile, bb_data)
def parseRecipeVariants(self, bbfile, appends, virtonly=False, mc=None, layername=None):
"""
@@ -516,8 +516,7 @@ class CookerDataBuilder(object):
(bbfile, virtual, mc) = bb.cache.virtualfn2realfn(bbfile)
bb_data = self.mcdata[mc].createCopy()
bb_data.setVar("__ONLYFINALISE", virtual or "default")
datastores = self._parse_recipe(bb_data, bbfile, appends, mc, layername)
return datastores
return self._parse_recipe(bb_data, bbfile, appends, mc, layername)
if mc is not None:
bb_data = self.mcdata[mc].createCopy()
@@ -543,5 +542,5 @@ class CookerDataBuilder(object):
"""
logger.debug("Parsing %s (full)" % virtualfn)
(fn, virtual, mc) = bb.cache.virtualfn2realfn(virtualfn)
bb_data = self.parseRecipeVariants(virtualfn, appends, virtonly=True, layername=layername)
return bb_data[virtual]
datastores = self.parseRecipeVariants(virtualfn, appends, virtonly=True, layername=layername)
return datastores[virtual]

View File

@@ -257,14 +257,15 @@ def register(name, handler, mask=None, filename=None, lineno=None, data=None):
# handle string containing python code
if isinstance(handler, str):
tmp = "def %s(e, d):\n%s" % (name, handler)
# Inject empty lines to make code match lineno in filename
if lineno is not None:
tmp = "\n" * (lineno-1) + tmp
try:
code = bb.methodpool.compile_cache(tmp)
if not code:
if filename is None:
filename = "%s(e, d)" % name
code = compile(tmp, filename, "exec", ast.PyCF_ONLY_AST)
if lineno is not None:
ast.increment_lineno(code, lineno-1)
code = compile(code, filename, "exec")
bb.methodpool.compile_cache_add(tmp, code)
except SyntaxError:

View File

@@ -290,12 +290,12 @@ class URI(object):
def _param_str_split(self, string, elmdelim, kvdelim="="):
ret = collections.OrderedDict()
for k, v in [x.split(kvdelim, 1) for x in string.split(elmdelim) if x]:
for k, v in [x.split(kvdelim, 1) if kvdelim in x else (x, None) for x in string.split(elmdelim) if x]:
ret[k] = v
return ret
def _param_str_join(self, dict_, elmdelim, kvdelim="="):
return elmdelim.join([kvdelim.join([k, v]) for k, v in dict_.items()])
return elmdelim.join([kvdelim.join([k, v]) if v else k for k, v in dict_.items()])
@property
def hostport(self):
@@ -872,7 +872,10 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH',
'AWS_PROFILE',
'AWS_ACCESS_KEY_ID',
'AWS_SECRET_ACCESS_KEY',
'AWS_ROLE_ARN',
'AWS_WEB_IDENTITY_TOKEN_FILE',
'AWS_DEFAULT_REGION',
'AWS_SESSION_TOKEN',
'GIT_CACHE_PATH',
'REMOTE_CONTAINERS_IPC',
'SSL_CERT_DIR']
@@ -940,7 +943,10 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
elif e.stderr:
output = "output:\n%s" % e.stderr
else:
output = "no output"
if log:
output = "see logfile for output"
else:
output = "no output"
error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output)
except bb.process.CmdError as e:
error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg)
@@ -1112,7 +1118,8 @@ def try_mirror_url(fetch, origud, ud, ld, check = False):
logger.debug("Mirror fetch failure for url %s (original url: %s)" % (ud.url, origud.url))
logger.debug(str(e))
try:
ud.method.clean(ud, ld)
if ud.method.cleanup_upon_failure():
ud.method.clean(ud, ld)
except UnboundLocalError:
pass
return False
@@ -1437,6 +1444,12 @@ class FetchMethod(object):
"""
return False
def cleanup_upon_failure(self):
"""
When a fetch fails, should clean() be called?
"""
return True
def verify_donestamp(self, ud, d):
"""
Verify the donestamp file
@@ -1882,7 +1895,7 @@ class Fetch(object):
logger.debug(str(e))
firsterr = e
# Remove any incomplete fetch
if not verified_stamp:
if not verified_stamp and m.cleanup_upon_failure():
m.clean(ud, self.d)
logger.debug("Trying MIRRORS")
mirrors = mirror_from_string(self.d.getVar('MIRRORS'))
@@ -1945,7 +1958,7 @@ class Fetch(object):
ret = m.try_mirrors(self, ud, self.d, mirrors, True)
if not ret:
raise FetchError("URL %s doesn't work" % u, u)
raise FetchError("URL doesn't work", u)
def unpack(self, root, urls=None):
"""

View File

@@ -47,6 +47,7 @@ class GCP(FetchMethod):
ud.basename = os.path.basename(ud.path)
ud.localfile = d.expand(urllib.parse.unquote(ud.basename))
ud.basecmd = "gsutil stat"
def get_gcp_client(self):
from google.cloud import storage
@@ -61,7 +62,8 @@ class GCP(FetchMethod):
if self.gcp_client is None:
self.get_gcp_client()
bb.fetch2.check_network_access(d, "gsutil stat", ud.url)
bb.fetch2.check_network_access(d, ud.basecmd, f"gs://{ud.host}{ud.path}")
runfetchcmd("%s %s" % (ud.basecmd, f"gs://{ud.host}{ud.path}"), d)
# Path sometimes has leading slash, so strip it
path = ud.path.lstrip("/")
@@ -88,7 +90,8 @@ class GCP(FetchMethod):
if self.gcp_client is None:
self.get_gcp_client()
bb.fetch2.check_network_access(d, "gsutil stat", ud.url)
bb.fetch2.check_network_access(d, ud.basecmd, f"gs://{ud.host}{ud.path}")
runfetchcmd("%s %s" % (ud.basecmd, f"gs://{ud.host}{ud.path}"), d)
# Path sometimes has leading slash, so strip it
path = ud.path.lstrip("/")

View File

@@ -48,10 +48,23 @@ Supported SRC_URI options are:
instead of branch.
The default is "0", set nobranch=1 if needed.
- subpath
Limit the checkout to a specific subpath of the tree.
By default, checkout the whole tree, set subpath=<path> if needed
- destsuffix
The name of the path in which to place the checkout.
By default, the path is git/, set destsuffix=<suffix> if needed
- usehead
For local git:// urls to use the current branch HEAD as the revision for use with
AUTOREV. Implies nobranch.
- lfs
Enable the checkout to use LFS for large files. This will download all LFS files
in the download step, as the unpack step does not have network access.
The default is "1", set lfs=0 to skip.
"""
# Copyright (C) 2005 Richard Purdie
@@ -74,6 +87,7 @@ from contextlib import contextmanager
from bb.fetch2 import FetchMethod
from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
from bb.fetch2 import trusted_network
sha1_re = re.compile(r'^[0-9a-f]{40}$')
@@ -136,6 +150,9 @@ class Git(FetchMethod):
def supports_checksum(self, urldata):
return False
def cleanup_upon_failure(self):
return False
def urldata_init(self, ud, d):
"""
init git specific variable within url data
@@ -245,7 +262,7 @@ class Git(FetchMethod):
for name in ud.names:
ud.unresolvedrev[name] = 'HEAD'
ud.basecmd = d.getVar("FETCHCMD_git") or "git -c gc.autoDetach=false -c core.pager=cat"
ud.basecmd = d.getVar("FETCHCMD_git") or "git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all"
write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0"
ud.write_tarballs = write_tarballs != "0" or ud.rebaseable
@@ -260,7 +277,7 @@ class Git(FetchMethod):
ud.unresolvedrev[name] = ud.revisions[name]
ud.revisions[name] = self.latest_revision(ud, d, name)
gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_'))
gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.').replace(' ','_').replace('(', '_').replace(')', '_'))
if gitsrcname.startswith('.'):
gitsrcname = gitsrcname[1:]
@@ -311,7 +328,10 @@ class Git(FetchMethod):
return ud.clonedir
def need_update(self, ud, d):
return self.clonedir_need_update(ud, d) or self.shallow_tarball_need_update(ud) or self.tarball_need_update(ud)
return self.clonedir_need_update(ud, d) \
or self.shallow_tarball_need_update(ud) \
or self.tarball_need_update(ud) \
or self.lfs_need_update(ud, d)
def clonedir_need_update(self, ud, d):
if not os.path.exists(ud.clonedir):
@@ -323,6 +343,15 @@ class Git(FetchMethod):
return True
return False
def lfs_need_update(self, ud, d):
if self.clonedir_need_update(ud, d):
return True
for name in ud.names:
if not self._lfs_objects_downloaded(ud, d, name, ud.clonedir):
return True
return False
def clonedir_need_shallow_revs(self, ud, d):
for rev in ud.shallow_revs:
try:
@@ -342,6 +371,16 @@ class Git(FetchMethod):
# is not possible
if bb.utils.to_boolean(d.getVar("BB_FETCH_PREMIRRORONLY")):
return True
# If the url is not in trusted network, that is, BB_NO_NETWORK is set to 0
# and BB_ALLOWED_NETWORKS does not contain the host that ud.url uses, then
# we need to try premirrors first as using upstream is destined to fail.
if not trusted_network(d, ud.url):
return True
# the following check is to ensure incremental fetch in downloads, this is
# because the premirror might be old and does not contain the new rev required,
# and this will cause a total removal and new clone. So if we can reach to
# network, we prefer upstream over premirror, though the premirror might contain
# the new rev.
if os.path.exists(ud.clonedir):
return False
return True
@@ -362,7 +401,11 @@ class Git(FetchMethod):
else:
tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR'))
runfetchcmd("tar -xzf %s" % ud.fullmirror, d, workdir=tmpdir)
fetch_cmd = "LANG=C %s fetch -f --progress %s " % (ud.basecmd, shlex.quote(tmpdir))
output = runfetchcmd("%s remote" % ud.basecmd, d, quiet=True, workdir=ud.clonedir)
if 'mirror' in output:
runfetchcmd("%s remote rm mirror" % ud.basecmd, d, workdir=ud.clonedir)
runfetchcmd("%s remote add --mirror=fetch mirror %s" % (ud.basecmd, tmpdir), d, workdir=ud.clonedir)
fetch_cmd = "LANG=C %s fetch -f --update-head-ok --progress mirror " % (ud.basecmd)
runfetchcmd(fetch_cmd, d, workdir=ud.clonedir)
repourl = self._get_repo_url(ud)
@@ -439,7 +482,7 @@ class Git(FetchMethod):
if missing_rev:
raise bb.fetch2.FetchError("Unable to find revision %s even from upstream" % missing_rev)
if self._contains_lfs(ud, d, ud.clonedir) and self._need_lfs(ud):
if self.lfs_need_update(ud, d):
# Unpack temporary working copy, use it to run 'git checkout' to force pre-fetching
# of all LFS blobs needed at the srcrev.
#
@@ -462,8 +505,8 @@ class Git(FetchMethod):
# Only do this if the unpack resulted in a .git/lfs directory being
# created; this only happens if at least one blob needed to be
# downloaded.
if os.path.exists(os.path.join(tmpdir, "git", ".git", "lfs")):
runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/git/.git" % tmpdir)
if os.path.exists(os.path.join(ud.destdir, ".git", "lfs")):
runfetchcmd("tar -cf - lfs | tar -xf - -C %s" % ud.clonedir, d, workdir="%s/.git" % ud.destdir)
def build_mirror_data(self, ud, d):
@@ -501,7 +544,7 @@ class Git(FetchMethod):
logger.info("Creating tarball of git repository")
with create_atomic(ud.fullmirror) as tfile:
mtime = runfetchcmd("git log --all -1 --format=%cD", d,
mtime = runfetchcmd("{} log --all -1 --format=%cD".format(ud.basecmd), d,
quiet=True, workdir=ud.clonedir)
runfetchcmd("tar -czf %s --owner oe:0 --group oe:0 --mtime \"%s\" ."
% (tfile, mtime), d, workdir=ud.clonedir)
@@ -629,6 +672,8 @@ class Git(FetchMethod):
raise bb.fetch2.FetchError("Repository %s has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)" % (repourl))
elif not need_lfs:
bb.note("Repository %s has LFS content but it is not being fetched" % (repourl))
else:
runfetchcmd("%s lfs install --local" % ud.basecmd, d, workdir=destdir)
if not ud.nocheckout:
if subpath:
@@ -680,6 +725,35 @@ class Git(FetchMethod):
raise bb.fetch2.FetchError("The command '%s' gave output with more then 1 line unexpectedly, output: '%s'" % (cmd, output))
return output.split()[0] != "0"
def _lfs_objects_downloaded(self, ud, d, name, wd):
"""
Verifies whether the LFS objects for requested revisions have already been downloaded
"""
# Bail out early if this repository doesn't use LFS
if not self._need_lfs(ud) or not self._contains_lfs(ud, d, wd):
return True
# The Git LFS specification specifies ([1]) the LFS folder layout so it should be safe to check for file
# existence.
# [1] https://github.com/git-lfs/git-lfs/blob/main/docs/spec.md#intercepting-git
cmd = "%s lfs ls-files -l %s" \
% (ud.basecmd, ud.revisions[name])
output = runfetchcmd(cmd, d, quiet=True, workdir=wd).rstrip()
# Do not do any further matching if no objects are managed by LFS
if not output:
return True
# Match all lines beginning with the hexadecimal OID
oid_regex = re.compile("^(([a-fA-F0-9]{2})([a-fA-F0-9]{2})[A-Fa-f0-9]+)")
for line in output.split("\n"):
oid = re.search(oid_regex, line)
if not oid:
bb.warn("git lfs ls-files output '%s' did not match expected format." % line)
if not os.path.exists(os.path.join(wd, "lfs", "objects", oid.group(2), oid.group(3), oid.group(1))):
return False
return True
def _need_lfs(self, ud):
return ud.parm.get("lfs", "1") == "1"
@@ -688,8 +762,11 @@ class Git(FetchMethod):
Check if the repository has 'lfs' (large file) content
"""
# The bare clonedir doesn't use the remote names; it has the branch immediately.
if wd == ud.clonedir:
if ud.nobranch:
# If no branch is specified, use the current git commit
refname = self._build_revision(ud, d, ud.names[0])
elif wd == ud.clonedir:
# The bare clonedir doesn't use the remote names; it has the branch immediately.
refname = ud.branches[ud.names[0]]
else:
refname = "origin/%s" % ud.branches[ud.names[0]]
@@ -794,38 +871,42 @@ class Git(FetchMethod):
"""
pupver = ('', '')
tagregex = re.compile(d.getVar('UPSTREAM_CHECK_GITTAGREGEX') or r"(?P<pver>([0-9][\.|_]?)+)")
try:
output = self._lsremote(ud, d, "refs/tags/*")
except (bb.fetch2.FetchError, bb.fetch2.NetworkAccess) as e:
bb.note("Could not list remote: %s" % str(e))
return pupver
rev_tag_re = re.compile(r"([0-9a-f]{40})\s+refs/tags/(.*)")
pver_re = re.compile(d.getVar('UPSTREAM_CHECK_GITTAGREGEX') or r"(?P<pver>([0-9][\.|_]?)+)")
nonrel_re = re.compile(r"(alpha|beta|rc|final)+")
verstring = ""
revision = ""
for line in output.split("\n"):
if not line:
break
tag_head = line.split("/")[-1]
m = rev_tag_re.match(line)
if not m:
continue
(revision, tag) = m.groups()
# Ignore non-released branches
m = re.search(r"(alpha|beta|rc|final)+", tag_head)
if m:
if nonrel_re.search(tag):
continue
# search for version in the line
tag = tagregex.search(tag_head)
if tag is None:
m = pver_re.search(tag)
if not m:
continue
tag = tag.group('pver')
tag = tag.replace("_", ".")
pver = m.group('pver').replace("_", ".")
if verstring and bb.utils.vercmp(("0", tag, ""), ("0", verstring, "")) < 0:
if verstring and bb.utils.vercmp(("0", pver, ""), ("0", verstring, "")) < 0:
continue
verstring = tag
revision = line.split()[0]
verstring = pver
pupver = (verstring, revision)
return pupver

View File

@@ -87,7 +87,10 @@ class Wget(FetchMethod):
if not ud.localfile:
ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."))
self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp"
self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30"
if ud.type == 'ftp' or ud.type == 'ftps':
self.basecmd += " --passive-ftp"
if not self.check_certs(d):
self.basecmd += " --no-check-certificate"
@@ -375,7 +378,7 @@ class Wget(FetchMethod):
return self.checkstatus(fetch, ud, d, False)
else:
# debug for now to avoid spamming the logs in e.g. remote sstate searches
logger.debug2("checkstatus() urlopen failed: %s" % e)
logger.debug2("checkstatus() urlopen failed for %s: %s" % (uri,e))
return False
return True

View File

@@ -217,7 +217,9 @@ def create_bitbake_parser():
"execution. The SIGNATURE_HANDLER parameter is passed to the "
"handler. Two common values are none and printdiff but the handler "
"may define more/less. none means only dump the signature, printdiff"
" means compare the dumped signature with the cached one.")
" means recursively compare the dumped signature with the most recent"
" one in a local build or sstate cache (can be used to find out why tasks re-run"
" when that is not expected)")
exec_group.add_argument("--revisions-changed", action="store_true",
help="Set the exit code depending on whether upstream floating "

View File

@@ -230,7 +230,7 @@ def logger_create(name, output=sys.stderr, level=logging.INFO, preserve_handlers
console = logging.StreamHandler(output)
console.addFilter(bb.msg.LogFilterShowOnce())
format = bb.msg.BBLogFormatter("%(levelname)s: %(message)s")
if color == 'always' or (color == 'auto' and output.isatty()):
if color == 'always' or (color == 'auto' and output.isatty() and os.environ.get('NO_COLOR', '') == ''):
format.enable_color()
console.setFormatter(format)
if preserve_handlers:

View File

@@ -211,10 +211,12 @@ class ExportFuncsNode(AstNode):
def eval(self, data):
sentinel = " # Export function set\n"
for func in self.n:
calledfunc = self.classname + "_" + func
if data.getVar(func, False) and not data.getVarFlag(func, 'export_func', False):
basevar = data.getVar(func, False)
if basevar and sentinel not in basevar:
continue
if data.getVar(func, False):
@@ -231,12 +233,11 @@ class ExportFuncsNode(AstNode):
data.setVarFlag(func, "lineno", 1)
if data.getVarFlag(calledfunc, "python", False):
data.setVar(func, " bb.build.exec_func('" + calledfunc + "', d)\n", parsing=True)
data.setVar(func, sentinel + " bb.build.exec_func('" + calledfunc + "', d)\n", parsing=True)
else:
if "-" in self.classname:
bb.fatal("The classname %s contains a dash character and is calling an sh function %s using EXPORT_FUNCTIONS. Since a dash is illegal in sh function names, this cannot work, please rename the class or don't use EXPORT_FUNCTIONS." % (self.classname, calledfunc))
data.setVar(func, " " + calledfunc + "\n", parsing=True)
data.setVarFlag(func, 'export_func', '1')
data.setVar(func, sentinel + " " + calledfunc + "\n", parsing=True)
class AddTaskNode(AstNode):
def __init__(self, filename, lineno, func, before, after):
@@ -313,6 +314,16 @@ class InheritNode(AstNode):
def eval(self, data):
bb.parse.BBHandler.inherit(self.classes, self.filename, self.lineno, data)
class InheritDeferredNode(AstNode):
def __init__(self, filename, lineno, classes):
AstNode.__init__(self, filename, lineno)
self.inherit = (classes, filename, lineno)
def eval(self, data):
inherits = data.getVar('__BBDEFINHERITS', False) or []
inherits.append(self.inherit)
data.setVar('__BBDEFINHERITS', inherits)
def handleInclude(statements, filename, lineno, m, force):
statements.append(IncludeNode(filename, lineno, m.group(1), force))
@@ -363,6 +374,10 @@ def handleInherit(statements, filename, lineno, m):
classes = m.group(1)
statements.append(InheritNode(filename, lineno, classes))
def handleInheritDeferred(statements, filename, lineno, m):
classes = m.group(1)
statements.append(InheritDeferredNode(filename, lineno, classes))
def runAnonFuncs(d):
code = []
for funcname in d.getVar("__BBANONFUNCS", False) or []:
@@ -429,6 +444,14 @@ def multi_finalize(fn, d):
logger.debug("Appending .bbappend file %s to %s", append, fn)
bb.parse.BBHandler.handle(append, d, True)
while True:
inherits = d.getVar('__BBDEFINHERITS', False) or []
if not inherits:
break
inherit, filename, lineno = inherits.pop(0)
d.setVar('__BBDEFINHERITS', inherits)
bb.parse.BBHandler.inherit(inherit, filename, lineno, d, deferred=True)
onlyfinalise = d.getVar("__ONLYFINALISE", False)
safe_d = d

View File

@@ -21,6 +21,7 @@ from .ConfHandler import include, init
__func_start_regexp__ = re.compile(r"(((?P<py>python(?=(\s|\()))|(?P<fr>fakeroot(?=\s)))\s*)*(?P<func>[\w\.\-\+\{\}\$:]+)?\s*\(\s*\)\s*{$" )
__inherit_regexp__ = re.compile(r"inherit\s+(.+)" )
__inherit_def_regexp__ = re.compile(r"inherit_defer\s+(.+)" )
__export_func_regexp__ = re.compile(r"EXPORT_FUNCTIONS\s+(.+)" )
__addtask_regexp__ = re.compile(r"addtask\s+(?P<func>\w+)\s*((before\s*(?P<before>((.*(?=after))|(.*))))|(after\s*(?P<after>((.*(?=before))|(.*)))))*")
__deltask_regexp__ = re.compile(r"deltask\s+(.+)")
@@ -33,6 +34,7 @@ __infunc__ = []
__inpython__ = False
__body__ = []
__classname__ = ""
__residue__ = []
cached_statements = {}
@@ -40,8 +42,10 @@ def supports(fn, d):
"""Return True if fn has a supported extension"""
return os.path.splitext(fn)[-1] in [".bb", ".bbclass", ".inc"]
def inherit(files, fn, lineno, d):
def inherit(files, fn, lineno, d, deferred=False):
__inherit_cache = d.getVar('__inherit_cache', False) or []
#if "${" in files and not deferred:
# bb.warn("%s:%s has non deferred conditional inherit" % (fn, lineno))
files = d.expand(files).split()
for file in files:
classtype = d.getVar("__bbclasstype", False)
@@ -77,7 +81,7 @@ def inherit(files, fn, lineno, d):
__inherit_cache = d.getVar('__inherit_cache', False) or []
def get_statements(filename, absolute_filename, base_name):
global cached_statements
global cached_statements, __residue__, __body__
try:
return cached_statements[absolute_filename]
@@ -97,6 +101,11 @@ def get_statements(filename, absolute_filename, base_name):
# add a blank line to close out any python definition
feeder(lineno, "", filename, base_name, statements, eof=True)
if __residue__:
raise ParseError("Unparsed lines %s: %s" % (filename, str(__residue__)), filename, lineno)
if __body__:
raise ParseError("Unparsed lines from unclosed function %s: %s" % (filename, str(__body__)), filename, lineno)
if filename.endswith(".bbclass") or filename.endswith(".inc"):
cached_statements[absolute_filename] = statements
return statements
@@ -265,6 +274,11 @@ def feeder(lineno, s, fn, root, statements, eof=False):
ast.handleInherit(statements, fn, lineno, m)
return
m = __inherit_def_regexp__.match(s)
if m:
ast.handleInheritDeferred(statements, fn, lineno, m)
return
return ConfHandler.feeder(lineno, s, fn, statements, conffile=False)
# Add us to the handlers list

View File

@@ -157,7 +157,7 @@ class RunQueueScheduler(object):
(mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
self.stamps[tid] = bb.parse.siggen.stampfile_mcfn(taskname, taskfn, extrainfo=False)
if tid in self.rq.runq_buildable:
self.buildable.append(tid)
self.buildable.add(tid)
self.rev_prio_map = None
self.is_pressure_usable()
@@ -220,6 +220,16 @@ class RunQueueScheduler(object):
bb.note("Pressure status changed to CPU: %s, IO: %s, Mem: %s (CPU: %s/%s, IO: %s/%s, Mem: %s/%s) - using %s/%s bitbake threads" % (pressure_state + pressure_values + (len(self.rq.runq_running.difference(self.rq.runq_complete)), self.rq.number_tasks)))
self.pressure_state = pressure_state
return (exceeds_cpu_pressure or exceeds_io_pressure or exceeds_memory_pressure)
elif self.rq.max_loadfactor:
limit = False
loadfactor = float(os.getloadavg()[0]) / os.cpu_count()
# bb.warn("Comparing %s to %s" % (loadfactor, self.rq.max_loadfactor))
if loadfactor > self.rq.max_loadfactor:
limit = True
if hasattr(self, "loadfactor_limit") and limit != self.loadfactor_limit:
bb.note("Load average limiting set to %s as load average: %s - using %s/%s bitbake threads" % (limit, loadfactor, len(self.rq.runq_running.difference(self.rq.runq_complete)), self.rq.number_tasks))
self.loadfactor_limit = limit
return limit
return False
def next_buildable_task(self):
@@ -270,11 +280,11 @@ class RunQueueScheduler(object):
best = None
bestprio = None
for tid in buildable:
taskname = taskname_from_tid(tid)
if taskname in skip_buildable and skip_buildable[taskname] >= int(self.skip_maxthread[taskname]):
continue
prio = self.rev_prio_map[tid]
if bestprio is None or bestprio > prio:
taskname = taskname_from_tid(tid)
if taskname in skip_buildable and skip_buildable[taskname] >= int(self.skip_maxthread[taskname]):
continue
stamp = self.stamps[tid]
if stamp in self.rq.build_stamps.values():
continue
@@ -1004,25 +1014,32 @@ class RunQueueData:
# Handle --runall
if self.cooker.configuration.runall:
# re-run the mark_active and then drop unused tasks from new list
reduced_tasklist = set(self.runtaskentries.keys())
for tid in list(self.runtaskentries.keys()):
if tid not in runq_build:
reduced_tasklist.remove(tid)
runq_build = {}
for task in self.cooker.configuration.runall:
if not task.startswith("do_"):
task = "do_{0}".format(task)
runall_tids = set()
added = True
while added:
reduced_tasklist = set(self.runtaskentries.keys())
for tid in list(self.runtaskentries.keys()):
if tid not in runq_build:
reduced_tasklist.remove(tid)
runq_build = {}
orig = runall_tids
runall_tids = set()
for tid in reduced_tasklist:
wanttid = "{0}:{1}".format(fn_from_tid(tid), task)
if wanttid in self.runtaskentries:
runall_tids.add(wanttid)
for task in self.cooker.configuration.runall:
if not task.startswith("do_"):
task = "do_{0}".format(task)
for tid in reduced_tasklist:
wanttid = "{0}:{1}".format(fn_from_tid(tid), task)
if wanttid in self.runtaskentries:
runall_tids.add(wanttid)
for tid in list(runall_tids):
mark_active(tid, 1)
if self.cooker.configuration.force:
invalidate_task(tid, False)
for tid in list(runall_tids):
mark_active(tid, 1)
self.target_tids.append(tid)
if self.cooker.configuration.force:
invalidate_task(tid, False)
added = runall_tids - orig
delcount = set()
for tid in list(self.runtaskentries.keys()):
@@ -1318,6 +1335,16 @@ class RunQueue:
self.worker = {}
self.fakeworker = {}
@staticmethod
def send_pickled_data(worker, data, name):
msg = bytearray()
msg.extend(b"<" + name.encode() + b">")
pickled_data = pickle.dumps(data)
msg.extend(len(pickled_data).to_bytes(4, 'big'))
msg.extend(pickled_data)
msg.extend(b"</" + name.encode() + b">")
worker.stdin.write(msg)
def _start_worker(self, mc, fakeroot = False, rqexec = None):
logger.debug("Starting bitbake-worker")
magic = "decafbad"
@@ -1332,7 +1359,7 @@ class RunQueue:
fakerootcmd = shlex.split(mcdata.getVar("FAKEROOTCMD"))
fakerootenv = (mcdata.getVar("FAKEROOTBASEENV") or "").split()
env = os.environ.copy()
for key, value in (var.split('=') for var in fakerootenv):
for key, value in (var.split('=',1) for var in fakerootenv):
env[key] = value
worker = subprocess.Popen(fakerootcmd + [sys.executable, workerscript, magic], stdout=subprocess.PIPE, stdin=subprocess.PIPE, env=env)
fakerootlogs = self.rqdata.dataCaches[mc].fakerootlogs
@@ -1355,9 +1382,9 @@ class RunQueue:
"umask" : self.cfgData.getVar("BB_DEFAULT_UMASK"),
}
worker.stdin.write(b"<cookerconfig>" + pickle.dumps(self.cooker.configuration) + b"</cookerconfig>")
worker.stdin.write(b"<extraconfigdata>" + pickle.dumps(self.cooker.extraconfigdata) + b"</extraconfigdata>")
worker.stdin.write(b"<workerdata>" + pickle.dumps(workerdata) + b"</workerdata>")
RunQueue.send_pickled_data(worker, self.cooker.configuration, "cookerconfig")
RunQueue.send_pickled_data(worker, self.cooker.extraconfigdata, "extraconfigdata")
RunQueue.send_pickled_data(worker, workerdata, "workerdata")
worker.stdin.flush()
return RunQueueWorker(worker, workerpipe)
@@ -1367,7 +1394,7 @@ class RunQueue:
return
logger.debug("Teardown for bitbake-worker")
try:
worker.process.stdin.write(b"<quit></quit>")
RunQueue.send_pickled_data(worker.process, b"", "quit")
worker.process.stdin.flush()
worker.process.stdin.close()
except IOError:
@@ -1379,12 +1406,12 @@ class RunQueue:
continue
worker.pipe.close()
def start_worker(self):
def start_worker(self, rqexec):
if self.worker:
self.teardown_workers()
self.teardown = False
for mc in self.rqdata.dataCaches:
self.worker[mc] = self._start_worker(mc)
self.worker[mc] = self._start_worker(mc, False, rqexec)
def start_fakeworker(self, rqexec, mc):
if not mc in self.fakeworker:
@@ -1544,6 +1571,9 @@ class RunQueue:
('bb.event.HeartbeatEvent',), data=self.cfgData)
self.dm_event_handler_registered = True
self.rqdata.init_progress_reporter.next_stage()
self.rqexe = RunQueueExecute(self)
dump = self.cooker.configuration.dump_signatures
if dump:
self.rqdata.init_progress_reporter.finish()
@@ -1555,10 +1585,8 @@ class RunQueue:
self.state = runQueueComplete
if self.state is runQueueSceneInit:
self.rqdata.init_progress_reporter.next_stage()
self.start_worker()
self.rqdata.init_progress_reporter.next_stage()
self.rqexe = RunQueueExecute(self)
self.start_worker(self.rqexe)
self.rqdata.init_progress_reporter.finish()
# If we don't have any setscene functions, skip execution
if not self.rqdata.runq_setscene_tids:
@@ -1673,6 +1701,17 @@ class RunQueue:
return
def print_diffscenetasks(self):
def get_root_invalid_tasks(task, taskdepends, valid, noexec, visited_invalid):
invalidtasks = []
for t in taskdepends[task].depends:
if t not in valid and t not in visited_invalid:
invalidtasks.extend(get_root_invalid_tasks(t, taskdepends, valid, noexec, visited_invalid))
visited_invalid.add(t)
direct_invalid = [t for t in taskdepends[task].depends if t not in valid]
if not direct_invalid and task not in noexec:
invalidtasks = [task]
return invalidtasks
noexec = []
tocheck = set()
@@ -1706,46 +1745,49 @@ class RunQueue:
valid_new.add(dep)
invalidtasks = set()
for tid in self.rqdata.runtaskentries:
if tid not in valid_new and tid not in noexec:
invalidtasks.add(tid)
found = set()
processed = set()
for tid in invalidtasks:
toptasks = set(["{}:{}".format(t[3], t[2]) for t in self.rqdata.targets])
for tid in toptasks:
toprocess = set([tid])
while toprocess:
next = set()
visited_invalid = set()
for t in toprocess:
for dep in self.rqdata.runtaskentries[t].depends:
if dep in invalidtasks:
found.add(tid)
if dep not in processed:
processed.add(dep)
if t not in valid_new and t not in noexec:
invalidtasks.update(get_root_invalid_tasks(t, self.rqdata.runtaskentries, valid_new, noexec, visited_invalid))
continue
if t in self.rqdata.runq_setscene_tids:
for dep in self.rqexe.sqdata.sq_deps[t]:
next.add(dep)
continue
for dep in self.rqdata.runtaskentries[t].depends:
next.add(dep)
toprocess = next
if tid in found:
toprocess = set()
tasklist = []
for tid in invalidtasks.difference(found):
for tid in invalidtasks:
tasklist.append(tid)
if tasklist:
bb.plain("The differences between the current build and any cached tasks start at the following tasks:\n" + "\n".join(tasklist))
return invalidtasks.difference(found)
return invalidtasks
def write_diffscenetasks(self, invalidtasks):
bb.siggen.check_siggen_version(bb.siggen)
# Define recursion callback
def recursecb(key, hash1, hash2):
hashes = [hash1, hash2]
bb.debug(1, "Recursively looking for recipe {} hashes {}".format(key, hashes))
hashfiles = bb.siggen.find_siginfo(key, None, hashes, self.cfgData)
bb.debug(1, "Found hashfiles:\n{}".format(hashfiles))
recout = []
if len(hashfiles) == 2:
out2 = bb.siggen.compare_sigfiles(hashfiles[hash1], hashfiles[hash2], recursecb)
out2 = bb.siggen.compare_sigfiles(hashfiles[hash1]['path'], hashfiles[hash2]['path'], recursecb)
recout.extend(list(' ' + l for l in out2))
else:
recout.append("Unable to find matching sigdata for %s with hashes %s or %s" % (key, hash1, hash2))
@@ -1756,20 +1798,25 @@ class RunQueue:
for tid in invalidtasks:
(mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn]
h = self.rqdata.runtaskentries[tid].hash
h = self.rqdata.runtaskentries[tid].unihash
bb.debug(1, "Looking for recipe {} task {}".format(pn, taskname))
matches = bb.siggen.find_siginfo(pn, taskname, [], self.cooker.databuilder.mcdata[mc])
bb.debug(1, "Found hashfiles:\n{}".format(matches))
match = None
for m in matches:
if h in m:
match = m
for m in matches.values():
if h in m['path']:
match = m['path']
if match is None:
bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h)
bb.fatal("Can't find a task we're supposed to have written out? (hash: %s tid: %s)?" % (h, tid))
matches = {k : v for k, v in iter(matches.items()) if h not in k}
matches_local = {k : v for k, v in iter(matches.items()) if h not in k and not v['sstate']}
if matches_local:
matches = matches_local
if matches:
latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1]
latestmatch = matches[sorted(matches.keys(), key=lambda h: matches[h]['time'])[-1]]['path']
prevh = __find_sha256__.search(latestmatch).group(0)
output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb)
bb.plain("\nTask %s:%s couldn't be used from the cache because:\n We need hash %s, closest matching task was %s\n " % (pn, taskname, h, prevh) + '\n '.join(output))
bb.plain("\nTask %s:%s couldn't be used from the cache because:\n We need hash %s, most recent matching task was %s\n " % (pn, taskname, h, prevh) + '\n '.join(output))
class RunQueueExecute:
@@ -1785,6 +1832,7 @@ class RunQueueExecute:
self.max_cpu_pressure = self.cfgData.getVar("BB_PRESSURE_MAX_CPU")
self.max_io_pressure = self.cfgData.getVar("BB_PRESSURE_MAX_IO")
self.max_memory_pressure = self.cfgData.getVar("BB_PRESSURE_MAX_MEMORY")
self.max_loadfactor = self.cfgData.getVar("BB_LOADFACTOR_MAX")
self.sq_buildable = set()
self.sq_running = set()
@@ -1802,6 +1850,8 @@ class RunQueueExecute:
self.build_stamps2 = []
self.failed_tids = []
self.sq_deferred = {}
self.sq_needed_harddeps = set()
self.sq_harddep_deferred = set()
self.stampcache = {}
@@ -1811,11 +1861,6 @@ class RunQueueExecute:
self.stats = RunQueueStats(len(self.rqdata.runtaskentries), len(self.rqdata.runq_setscene_tids))
for mc in rq.worker:
rq.worker[mc].pipe.setrunqueueexec(self)
for mc in rq.fakeworker:
rq.fakeworker[mc].pipe.setrunqueueexec(self)
if self.number_tasks <= 0:
bb.fatal("Invalid BB_NUMBER_THREADS %s" % self.number_tasks)
@@ -1841,6 +1886,11 @@ class RunQueueExecute:
bb.fatal("Invalid BB_PRESSURE_MAX_MEMORY %s, minimum value is %s." % (self.max_memory_pressure, lower_limit))
if self.max_memory_pressure > upper_limit:
bb.warn("Your build will be largely unregulated since BB_PRESSURE_MAX_MEMORY is set to %s. It is very unlikely that such high pressure will be experienced." % (self.max_io_pressure))
if self.max_loadfactor:
self.max_loadfactor = float(self.max_loadfactor)
if self.max_loadfactor <= 0:
bb.fatal("Invalid BB_LOADFACTOR_MAX %s, needs to be greater than zero." % (self.max_loadfactor))
# List of setscene tasks which we've covered
self.scenequeue_covered = set()
@@ -1851,11 +1901,6 @@ class RunQueueExecute:
self.tasks_notcovered = set()
self.scenequeue_notneeded = set()
# We can't skip specified target tasks which aren't setscene tasks
self.cantskip = set(self.rqdata.target_tids)
self.cantskip.difference_update(self.rqdata.runq_setscene_tids)
self.cantskip.intersection_update(self.rqdata.runtaskentries)
schedulers = self.get_schedulers()
for scheduler in schedulers:
if self.scheduler == scheduler.name:
@@ -1868,7 +1913,25 @@ class RunQueueExecute:
#if self.rqdata.runq_setscene_tids:
self.sqdata = SQData()
build_scenequeue_data(self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self)
build_scenequeue_data(self.sqdata, self.rqdata, self)
update_scenequeue_data(self.sqdata.sq_revdeps, self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=True)
# Compute a list of 'stale' sstate tasks where the current hash does not match the one
# in any stamp files. Pass the list out to metadata as an event.
found = {}
for tid in self.rqdata.runq_setscene_tids:
(mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
stamps = bb.build.find_stale_stamps(taskname, taskfn)
if stamps:
if mc not in found:
found[mc] = {}
found[mc][tid] = stamps
for mc in found:
event = bb.event.StaleSetSceneTasks(found[mc])
bb.event.fire(event, self.cooker.databuilder.mcdata[mc])
self.build_taskdepdata_cache()
def runqueue_process_waitpid(self, task, status, fakerootlog=None):
@@ -1894,14 +1957,14 @@ class RunQueueExecute:
def finish_now(self):
for mc in self.rq.worker:
try:
self.rq.worker[mc].process.stdin.write(b"<finishnow></finishnow>")
RunQueue.send_pickled_data(self.rq.worker[mc].process, b"", "finishnow")
self.rq.worker[mc].process.stdin.flush()
except IOError:
# worker must have died?
pass
for mc in self.rq.fakeworker:
try:
self.rq.fakeworker[mc].process.stdin.write(b"<finishnow></finishnow>")
RunQueue.send_pickled_data(self.rq.fakeworker[mc].process, b"", "finishnow")
self.rq.fakeworker[mc].process.stdin.flush()
except IOError:
# worker must have died?
@@ -2117,8 +2180,11 @@ class RunQueueExecute:
if not self.sqdone and self.can_start_task():
# Find the next setscene to run
for nexttask in self.sorted_setscene_tids:
if nexttask in self.sq_buildable and nexttask not in self.sq_running and self.sqdata.stamps[nexttask] not in self.build_stamps.values():
if nexttask not in self.sqdata.unskippable and self.sqdata.sq_revdeps[nexttask] and self.sqdata.sq_revdeps[nexttask].issubset(self.scenequeue_covered) and self.check_dependencies(nexttask, self.sqdata.sq_revdeps[nexttask]):
if nexttask in self.sq_buildable and nexttask not in self.sq_running and self.sqdata.stamps[nexttask] not in self.build_stamps.values() and nexttask not in self.sq_harddep_deferred:
if nexttask not in self.sqdata.unskippable and self.sqdata.sq_revdeps[nexttask] and \
nexttask not in self.sq_needed_harddeps and \
self.sqdata.sq_revdeps[nexttask].issubset(self.scenequeue_covered) and \
self.check_dependencies(nexttask, self.sqdata.sq_revdeps[nexttask]):
if nexttask not in self.rqdata.target_tids:
logger.debug2("Skipping setscene for task %s" % nexttask)
self.sq_task_skip(nexttask)
@@ -2126,6 +2192,19 @@ class RunQueueExecute:
if nexttask in self.sq_deferred:
del self.sq_deferred[nexttask]
return True
if nexttask in self.sqdata.sq_harddeps_rev and not self.sqdata.sq_harddeps_rev[nexttask].issubset(self.scenequeue_covered | self.scenequeue_notcovered):
logger.debug2("Deferring %s due to hard dependencies" % nexttask)
updated = False
for dep in self.sqdata.sq_harddeps_rev[nexttask]:
if dep not in self.sq_needed_harddeps:
logger.debug2("Enabling task %s as it is a hard dependency" % dep)
self.sq_buildable.add(dep)
self.sq_needed_harddeps.add(dep)
updated = True
self.sq_harddep_deferred.add(nexttask)
if updated:
return True
continue
# If covered tasks are running, need to wait for them to complete
for t in self.sqdata.sq_covered_tasks[nexttask]:
if t in self.runq_running and t not in self.runq_complete:
@@ -2196,10 +2275,10 @@ class RunQueueExecute:
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run:
if not mc in self.rq.fakeworker:
self.rq.start_fakeworker(self, mc)
self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps(runtask) + b"</runtask>")
RunQueue.send_pickled_data(self.rq.fakeworker[mc].process, runtask, "runtask")
self.rq.fakeworker[mc].process.stdin.flush()
else:
self.rq.worker[mc].process.stdin.write(b"<runtask>" + pickle.dumps(runtask) + b"</runtask>")
RunQueue.send_pickled_data(self.rq.worker[mc].process, runtask, "runtask")
self.rq.worker[mc].process.stdin.flush()
self.build_stamps[task] = bb.parse.siggen.stampfile_mcfn(taskname, taskfn, extrainfo=False)
@@ -2297,10 +2376,10 @@ class RunQueueExecute:
self.rq.state = runQueueFailed
self.stats.taskFailed()
return True
self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps(runtask) + b"</runtask>")
RunQueue.send_pickled_data(self.rq.fakeworker[mc].process, runtask, "runtask")
self.rq.fakeworker[mc].process.stdin.flush()
else:
self.rq.worker[mc].process.stdin.write(b"<runtask>" + pickle.dumps(runtask) + b"</runtask>")
RunQueue.send_pickled_data(self.rq.worker[mc].process, runtask, "runtask")
self.rq.worker[mc].process.stdin.flush()
self.build_stamps[task] = bb.parse.siggen.stampfile_mcfn(taskname, taskfn, extrainfo=False)
@@ -2354,6 +2433,22 @@ class RunQueueExecute:
ret.add(dep)
return ret
# Build the individual cache entries in advance once to save time
def build_taskdepdata_cache(self):
taskdepdata_cache = {}
for task in self.rqdata.runtaskentries:
(mc, fn, taskname, taskfn) = split_tid_mcfn(task)
pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn]
deps = self.rqdata.runtaskentries[task].depends
provides = self.rqdata.dataCaches[mc].fn_provides[taskfn]
taskhash = self.rqdata.runtaskentries[task].hash
unihash = self.rqdata.runtaskentries[task].unihash
deps = self.filtermcdeps(task, mc, deps)
hashfn = self.rqdata.dataCaches[mc].hashfn[taskfn]
taskdepdata_cache[task] = [pn, taskname, fn, deps, provides, taskhash, unihash, hashfn]
self.taskdepdata_cache = taskdepdata_cache
# We filter out multiconfig dependencies from taskdepdata we pass to the tasks
# as most code can't handle them
def build_taskdepdata(self, task):
@@ -2365,16 +2460,9 @@ class RunQueueExecute:
while next:
additional = []
for revdep in next:
(mc, fn, taskname, taskfn) = split_tid_mcfn(revdep)
pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn]
deps = self.rqdata.runtaskentries[revdep].depends
provides = self.rqdata.dataCaches[mc].fn_provides[taskfn]
taskhash = self.rqdata.runtaskentries[revdep].hash
unihash = self.rqdata.runtaskentries[revdep].unihash
deps = self.filtermcdeps(task, mc, deps)
hashfn = self.rqdata.dataCaches[mc].hashfn[taskfn]
taskdepdata[revdep] = [pn, taskname, fn, deps, provides, taskhash, unihash, hashfn]
for revdep2 in deps:
self.taskdepdata_cache[revdep][6] = self.rqdata.runtaskentries[revdep].unihash
taskdepdata[revdep] = self.taskdepdata_cache[revdep]
for revdep2 in self.taskdepdata_cache[revdep][3]:
if revdep2 not in taskdepdata:
additional.append(revdep2)
next = additional
@@ -2388,7 +2476,7 @@ class RunQueueExecute:
return
notcovered = set(self.scenequeue_notcovered)
notcovered |= self.cantskip
notcovered |= self.sqdata.cantskip
for tid in self.scenequeue_notcovered:
notcovered |= self.sqdata.sq_covered_tasks[tid]
notcovered |= self.sqdata.unskippable.difference(self.rqdata.runq_setscene_tids)
@@ -2502,9 +2590,9 @@ class RunQueueExecute:
if changed:
for mc in self.rq.worker:
self.rq.worker[mc].process.stdin.write(b"<newtaskhashes>" + pickle.dumps(bb.parse.siggen.get_taskhashes()) + b"</newtaskhashes>")
RunQueue.send_pickled_data(self.rq.worker[mc].process, bb.parse.siggen.get_taskhashes(), "newtaskhashes")
for mc in self.rq.fakeworker:
self.rq.fakeworker[mc].process.stdin.write(b"<newtaskhashes>" + pickle.dumps(bb.parse.siggen.get_taskhashes()) + b"</newtaskhashes>")
RunQueue.send_pickled_data(self.rq.fakeworker[mc].process, bb.parse.siggen.get_taskhashes(), "newtaskhashes")
hashequiv_logger.debug(pprint.pformat("Tasks changed:\n%s" % (changed)))
@@ -2574,8 +2662,8 @@ class RunQueueExecute:
update_tasks2 = []
for tid in update_tasks:
harddepfail = False
for t in self.sqdata.sq_harddeps:
if tid in self.sqdata.sq_harddeps[t] and t in self.scenequeue_notcovered:
for t in self.sqdata.sq_harddeps_rev[tid]:
if t in self.scenequeue_notcovered:
harddepfail = True
break
if not harddepfail and self.sqdata.sq_revdeps[tid].issubset(self.scenequeue_covered | self.scenequeue_notcovered):
@@ -2607,12 +2695,14 @@ class RunQueueExecute:
if changed:
self.stats.updateCovered(len(self.scenequeue_covered), len(self.scenequeue_notcovered))
self.sq_needed_harddeps = set()
self.sq_harddep_deferred = set()
self.holdoff_need_update = True
def scenequeue_updatecounters(self, task, fail=False):
for dep in sorted(self.sqdata.sq_deps[task]):
if fail and task in self.sqdata.sq_harddeps and dep in self.sqdata.sq_harddeps[task]:
if fail and task in self.sqdata.sq_harddeps:
for dep in sorted(self.sqdata.sq_harddeps[task]):
if dep in self.scenequeue_covered or dep in self.scenequeue_notcovered:
# dependency could be already processed, e.g. noexec setscene task
continue
@@ -2622,6 +2712,7 @@ class RunQueueExecute:
logger.debug2("%s was unavailable and is a hard dependency of %s so skipping" % (task, dep))
self.sq_task_failoutright(dep)
continue
for dep in sorted(self.sqdata.sq_deps[task]):
if self.sqdata.sq_revdeps[dep].issubset(self.scenequeue_covered | self.scenequeue_notcovered):
if dep not in self.sq_buildable:
self.sq_buildable.add(dep)
@@ -2640,6 +2731,13 @@ class RunQueueExecute:
new.add(dep)
next = new
# If this task was one which other setscene tasks have a hard dependency upon, we need
# to walk through the hard dependencies and allow execution of those which have completed dependencies.
if task in self.sqdata.sq_harddeps:
for dep in self.sq_harddep_deferred.copy():
if self.sqdata.sq_harddeps_rev[dep].issubset(self.scenequeue_covered | self.scenequeue_notcovered):
self.sq_harddep_deferred.remove(dep)
self.stats.updateCovered(len(self.scenequeue_covered), len(self.scenequeue_notcovered))
self.holdoff_need_update = True
@@ -2758,6 +2856,7 @@ class SQData(object):
self.sq_revdeps = {}
# Injected inter-setscene task dependencies
self.sq_harddeps = {}
self.sq_harddeps_rev = {}
# Cache of stamp files so duplicates can't run in parallel
self.stamps = {}
# Setscene tasks directly depended upon by the build
@@ -2767,12 +2866,17 @@ class SQData(object):
# A list of normal tasks a setscene task covers
self.sq_covered_tasks = {}
def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
def build_scenequeue_data(sqdata, rqdata, sqrq):
sq_revdeps = {}
sq_revdeps_squash = {}
sq_collated_deps = {}
# We can't skip specified target tasks which aren't setscene tasks
sqdata.cantskip = set(rqdata.target_tids)
sqdata.cantskip.difference_update(rqdata.runq_setscene_tids)
sqdata.cantskip.intersection_update(rqdata.runtaskentries)
# We need to construct a dependency graph for the setscene functions. Intermediate
# dependencies between the setscene tasks only complicate the code. This code
# therefore aims to collapse the huge runqueue dependency tree into a smaller one
@@ -2841,7 +2945,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
for tid in rqdata.runtaskentries:
if not rqdata.runtaskentries[tid].revdeps:
sqdata.unskippable.add(tid)
sqdata.unskippable |= sqrq.cantskip
sqdata.unskippable |= sqdata.cantskip
while new:
new = False
orig = sqdata.unskippable.copy()
@@ -2880,6 +2984,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
idepends = rqdata.taskData[mc].taskentries[realtid].idepends
sqdata.stamps[tid] = bb.parse.siggen.stampfile_mcfn(taskname, taskfn, extrainfo=False)
sqdata.sq_harddeps_rev[tid] = set()
for (depname, idependtask) in idepends:
if depname not in rqdata.taskData[mc].build_targets:
@@ -2892,20 +2997,15 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
if deptid not in rqdata.runtaskentries:
bb.msg.fatal("RunQueue", "Task %s depends upon non-existent task %s:%s" % (realtid, depfn, idependtask))
logger.debug2("Adding hard setscene dependency %s for %s" % (deptid, tid))
if not deptid in sqdata.sq_harddeps:
sqdata.sq_harddeps[deptid] = set()
sqdata.sq_harddeps[deptid].add(tid)
sq_revdeps_squash[tid].add(deptid)
# Have to zero this to avoid circular dependencies
sq_revdeps_squash[deptid] = set()
sqdata.sq_harddeps_rev[tid].add(deptid)
rqdata.init_progress_reporter.next_stage()
for task in sqdata.sq_harddeps:
for dep in sqdata.sq_harddeps[task]:
sq_revdeps_squash[dep].add(task)
rqdata.init_progress_reporter.next_stage()
#for tid in sq_revdeps_squash:
@@ -2932,7 +3032,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
if not sqdata.sq_revdeps[tid]:
sqrq.sq_buildable.add(tid)
rqdata.init_progress_reporter.finish()
rqdata.init_progress_reporter.next_stage()
sqdata.noexec = set()
sqdata.stamppresent = set()
@@ -2951,22 +3051,6 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
sqrq.sq_deferred[tid] = sqdata.hashes[h]
bb.debug(1, "Deferring %s after %s" % (tid, sqdata.hashes[h]))
update_scenequeue_data(sqdata.sq_revdeps, sqdata, rqdata, rq, cooker, stampcache, sqrq, summary=True)
# Compute a list of 'stale' sstate tasks where the current hash does not match the one
# in any stamp files. Pass the list out to metadata as an event.
found = {}
for tid in rqdata.runq_setscene_tids:
(mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
stamps = bb.build.find_stale_stamps(taskname, taskfn)
if stamps:
if mc not in found:
found[mc] = {}
found[mc][tid] = stamps
for mc in found:
event = bb.event.StaleSetSceneTasks(found[mc])
bb.event.fire(event, cooker.databuilder.mcdata[mc])
def check_setscene_stamps(tid, rqdata, rq, stampcache, noexecstamp=False):
(mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
@@ -3167,9 +3251,6 @@ class runQueuePipe():
self.rqexec = rqexec
self.fakerootlogs = fakerootlogs
def setrunqueueexec(self, rqexec):
self.rqexec = rqexec
def read(self):
for workers, name in [(self.rq.worker, "Worker"), (self.rq.fakeworker, "Fakeroot")]:
for worker in workers.values():

View File

@@ -402,6 +402,22 @@ class ProcessServer():
serverlog("".join(msg))
def idle_thread(self):
if self.cooker.configuration.profile:
try:
import cProfile as profile
except:
import profile
prof = profile.Profile()
ret = profile.Profile.runcall(prof, self.idle_thread_internal)
prof.dump_stats("profile-mainloop.log")
bb.utils.process_profilelog("profile-mainloop.log")
serverlog("Raw profiling information saved to profile-mainloop.log and processed statistics to profile-mainloop.log.processed")
else:
self.idle_thread_internal()
def idle_thread_internal(self):
def remove_idle_func(function):
with bb.utils.lock_timeout(self._idlefuncsLock):
del self._idlefuns[function]
@@ -500,12 +516,18 @@ class ServerCommunicator():
self.recv = recv
def runCommand(self, command):
self.connection.send(command)
try:
self.connection.send(command)
except BrokenPipeError as e:
raise BrokenPipeError("bitbake-server might have died or been forcibly stopped, ie. OOM killed") from e
if not self.recv.poll(30):
logger.info("No reply from server in 30s (for command %s at %s)" % (command[0], currenttime()))
if not self.recv.poll(30):
raise ProcessTimeout("Timeout while waiting for a reply from the bitbake server (60s at %s)" % currenttime())
ret, exc = self.recv.get()
try:
ret, exc = self.recv.get()
except EOFError as e:
raise EOFError("bitbake-server might have died or been forcibly stopped, ie. OOM killed") from e
# Should probably turn all exceptions in exc back into exceptions?
# For now, at least handle BBHandledException
if exc and ("BBHandledException" in exc or "SystemExit" in exc):

View File

@@ -15,6 +15,7 @@ import difflib
import simplediff
import json
import types
from contextlib import contextmanager
import bb.compress.zstd
from bb.checksum import FileChecksumCache
from bb import runqueue
@@ -24,6 +25,24 @@ import hashserv.client
logger = logging.getLogger('BitBake.SigGen')
hashequiv_logger = logging.getLogger('BitBake.SigGen.HashEquiv')
#find_siginfo and find_siginfo_version are set by the metadata siggen
# The minimum version of the find_siginfo function we need
find_siginfo_minversion = 2
HASHSERV_ENVVARS = [
"SSL_CERT_DIR",
"SSL_CERT_FILE",
"NO_PROXY",
"HTTPS_PROXY",
"HTTP_PROXY"
]
def check_siggen_version(siggen):
if not hasattr(siggen, "find_siginfo_version"):
bb.fatal("Siggen from metadata (OE-Core?) is too old, please update it (no version found)")
if siggen.find_siginfo_version < siggen.find_siginfo_minversion:
bb.fatal("Siggen from metadata (OE-Core?) is too old, please update it (%s vs %s)" % (siggen.find_siginfo_version, siggen.find_siginfo_minversion))
class SetEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, set) or isinstance(obj, frozenset):
@@ -92,9 +111,18 @@ class SignatureGenerator(object):
if flag:
self.datacaches[mc].stamp_extrainfo[mcfn][t] = flag
def get_cached_unihash(self, tid):
return None
def get_unihash(self, tid):
unihash = self.get_cached_unihash(tid)
if unihash:
return unihash
return self.taskhash[tid]
def get_unihashes(self, tids):
return {tid: self.get_unihash(tid) for tid in tids}
def prep_taskhash(self, tid, deps, dataCaches):
return
@@ -511,32 +539,86 @@ class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
class SignatureGeneratorUniHashMixIn(object):
def __init__(self, data):
self.extramethod = {}
# NOTE: The cache only tracks hashes that exist. Hashes that don't
# exist are always queries from the server since it is possible for
# hashes to appear over time, but much less likely for them to
# disappear
self.unihash_exists_cache = set()
self.username = None
self.password = None
self.env = {}
origenv = data.getVar("BB_ORIGENV")
for e in HASHSERV_ENVVARS:
value = data.getVar(e)
if not value and origenv:
value = origenv.getVar(e)
if value:
self.env[e] = value
super().__init__(data)
def get_taskdata(self):
return (self.server, self.method, self.extramethod) + super().get_taskdata()
return (self.server, self.method, self.extramethod, self.max_parallel, self.username, self.password, self.env) + super().get_taskdata()
def set_taskdata(self, data):
self.server, self.method, self.extramethod = data[:3]
super().set_taskdata(data[3:])
self.server, self.method, self.extramethod, self.max_parallel, self.username, self.password, self.env = data[:7]
super().set_taskdata(data[7:])
def get_hashserv_creds(self):
if self.username and self.password:
return {
"username": self.username,
"password": self.password,
}
return {}
@contextmanager
def _client_env(self):
orig_env = os.environ.copy()
try:
for k, v in self.env.items():
os.environ[k] = v
yield
finally:
for k, v in self.env.items():
if k in orig_env:
os.environ[k] = orig_env[k]
else:
del os.environ[k]
@contextmanager
def client(self):
if getattr(self, '_client', None) is None:
self._client = hashserv.create_client(self.server)
return self._client
with self._client_env():
if getattr(self, '_client', None) is None:
self._client = hashserv.create_client(self.server, **self.get_hashserv_creds())
yield self._client
@contextmanager
def client_pool(self):
with self._client_env():
if getattr(self, '_client_pool', None) is None:
self._client_pool = hashserv.client.ClientPool(self.server, self.max_parallel, **self.get_hashserv_creds())
yield self._client_pool
def reset(self, data):
if getattr(self, '_client', None) is not None:
self._client.close()
self._client = None
self.__close_clients()
return super().reset(data)
def exit(self):
if getattr(self, '_client', None) is not None:
self._client.close()
self._client = None
self.__close_clients()
return super().exit()
def __close_clients(self):
with self._client_env():
if getattr(self, '_client', None) is not None:
self._client.close()
self._client = None
if getattr(self, '_client_pool', None) is not None:
self._client_pool.close()
self._client_pool = None
def get_stampfile_hash(self, tid):
if tid in self.taskhash:
# If a unique hash is reported, use it as the stampfile hash. This
@@ -568,7 +650,7 @@ class SignatureGeneratorUniHashMixIn(object):
return None
return unihash
def get_unihash(self, tid):
def get_cached_unihash(self, tid):
taskhash = self.taskhash[tid]
# If its not a setscene task we can return
@@ -583,40 +665,105 @@ class SignatureGeneratorUniHashMixIn(object):
self.unihash[tid] = unihash
return unihash
# In the absence of being able to discover a unique hash from the
# server, make it be equivalent to the taskhash. The unique "hash" only
# really needs to be a unique string (not even necessarily a hash), but
# making it match the taskhash has a few advantages:
#
# 1) All of the sstate code that assumes hashes can be the same
# 2) It provides maximal compatibility with builders that don't use
# an equivalency server
# 3) The value is easy for multiple independent builders to derive the
# same unique hash from the same input. This means that if the
# independent builders find the same taskhash, but it isn't reported
# to the server, there is a better chance that they will agree on
# the unique hash.
unihash = taskhash
return None
try:
method = self.method
if tid in self.extramethod:
method = method + self.extramethod[tid]
data = self.client().get_unihash(method, self.taskhash[tid])
if data:
unihash = data
def _get_method(self, tid):
method = self.method
if tid in self.extramethod:
method = method + self.extramethod[tid]
return method
def unihashes_exist(self, query):
if len(query) == 0:
return {}
uncached_query = {}
result = {}
for key, unihash in query.items():
if unihash in self.unihash_exists_cache:
result[key] = True
else:
uncached_query[key] = unihash
if self.max_parallel <= 1 or len(uncached_query) <= 1:
# No parallelism required. Make the query serially with the single client
with self.client() as client:
uncached_result = {
key: client.unihash_exists(value) for key, value in uncached_query.items()
}
else:
with self.client_pool() as client_pool:
uncached_result = client_pool.unihashes_exist(uncached_query)
for key, exists in uncached_result.items():
if exists:
self.unihash_exists_cache.add(query[key])
result[key] = exists
return result
def get_unihash(self, tid):
return self.get_unihashes([tid])[tid]
def get_unihashes(self, tids):
"""
For a iterable of tids, returns a dictionary that maps each tid to a
unihash
"""
result = {}
queries = {}
query_result = {}
for tid in tids:
unihash = self.get_cached_unihash(tid)
if unihash:
result[tid] = unihash
else:
queries[tid] = (self._get_method(tid), self.taskhash[tid])
if len(queries) == 0:
return result
if self.max_parallel <= 1 or len(queries) <= 1:
# No parallelism required. Make the query serially with the single client
with self.client() as client:
for tid, args in queries.items():
query_result[tid] = client.get_unihash(*args)
else:
with self.client_pool() as client_pool:
query_result = client_pool.get_unihashes(queries)
for tid, unihash in query_result.items():
# In the absence of being able to discover a unique hash from the
# server, make it be equivalent to the taskhash. The unique "hash" only
# really needs to be a unique string (not even necessarily a hash), but
# making it match the taskhash has a few advantages:
#
# 1) All of the sstate code that assumes hashes can be the same
# 2) It provides maximal compatibility with builders that don't use
# an equivalency server
# 3) The value is easy for multiple independent builders to derive the
# same unique hash from the same input. This means that if the
# independent builders find the same taskhash, but it isn't reported
# to the server, there is a better chance that they will agree on
# the unique hash.
taskhash = self.taskhash[tid]
if unihash:
# A unique hash equal to the taskhash is not very interesting,
# so it is reported it at debug level 2. If they differ, that
# is much more interesting, so it is reported at debug level 1
hashequiv_logger.bbdebug((1, 2)[unihash == taskhash], 'Found unihash %s in place of %s for %s from %s' % (unihash, taskhash, tid, self.server))
else:
hashequiv_logger.debug2('No reported unihash for %s:%s from %s' % (tid, taskhash, self.server))
except ConnectionError as e:
bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e)))
unihash = taskhash
self.set_unihash(tid, unihash)
self.unihash[tid] = unihash
return unihash
self.set_unihash(tid, unihash)
self.unihash[tid] = unihash
result[tid] = unihash
return result
def report_unihash(self, path, task, d):
import importlib
@@ -680,7 +827,9 @@ class SignatureGeneratorUniHashMixIn(object):
if tid in self.extramethod:
method = method + self.extramethod[tid]
data = self.client().report_unihash(taskhash, method, outhash, unihash, extra_data)
with self.client() as client:
data = client.report_unihash(taskhash, method, outhash, unihash, extra_data)
new_unihash = data['unihash']
if new_unihash != unihash:
@@ -711,7 +860,9 @@ class SignatureGeneratorUniHashMixIn(object):
if tid in self.extramethod:
method = method + self.extramethod[tid]
data = self.client().report_unihash_equiv(taskhash, method, wanted_unihash, extra_data)
with self.client() as client:
data = client.report_unihash_equiv(taskhash, method, wanted_unihash, extra_data)
hashequiv_logger.verbose('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data)))
if data is None:
@@ -744,6 +895,7 @@ class SignatureGeneratorTestEquivHash(SignatureGeneratorUniHashMixIn, SignatureG
super().init_rundepcheck(data)
self.server = data.getVar('BB_HASHSERVE')
self.method = "sstate_output_hash"
self.max_parallel = 1
def clean_checksum_file_path(file_checksum_tuple):
f, cs = file_checksum_tuple
@@ -839,10 +991,18 @@ def compare_sigfiles(a, b, recursecb=None, color=False, collapsed=False):
formatparams.update(values)
return formatstr.format(**formatparams)
with bb.compress.zstd.open(a, "rt", encoding="utf-8", num_threads=1) as f:
a_data = json.load(f, object_hook=SetDecoder)
with bb.compress.zstd.open(b, "rt", encoding="utf-8", num_threads=1) as f:
b_data = json.load(f, object_hook=SetDecoder)
try:
with bb.compress.zstd.open(a, "rt", encoding="utf-8", num_threads=1) as f:
a_data = json.load(f, object_hook=SetDecoder)
except (TypeError, OSError) as err:
bb.error("Failed to open sigdata file '%s': %s" % (a, str(err)))
raise err
try:
with bb.compress.zstd.open(b, "rt", encoding="utf-8", num_threads=1) as f:
b_data = json.load(f, object_hook=SetDecoder)
except (TypeError, OSError) as err:
bb.error("Failed to open sigdata file '%s': %s" % (b, str(err)))
raise err
for data in [a_data, b_data]:
handle_renames(data)
@@ -1080,8 +1240,12 @@ def calc_taskhash(sigdata):
def dump_sigfile(a):
output = []
with bb.compress.zstd.open(a, "rt", encoding="utf-8", num_threads=1) as f:
a_data = json.load(f, object_hook=SetDecoder)
try:
with bb.compress.zstd.open(a, "rt", encoding="utf-8", num_threads=1) as f:
a_data = json.load(f, object_hook=SetDecoder)
except (TypeError, OSError) as err:
bb.error("Failed to open sigdata file '%s': %s" % (a, str(err)))
raise err
handle_renames(a_data)

View File

@@ -467,6 +467,6 @@ esac
# self.d.setVar("oe_libinstall", "echo test")
# self.d.setVar("FOO", "foo=oe_libinstall; eval $foo")
# self.d.setVarFlag("FOO", "vardeps", "oe_*")
# self.assertEquals(deps, set(["oe_libinstall"]))
# self.assertEqual(deps, set(["oe_libinstall"]))

View File

@@ -395,6 +395,16 @@ class TestOverrides(unittest.TestCase):
self.d.setVar("OVERRIDES", "foo:bar:some_val")
self.assertEqual(self.d.getVar("TEST"), "testvalue3")
# Test an override with _<numeric> in it based on a real world OE issue
def test_underscore_override_2(self):
self.d.setVar("TARGET_ARCH", "x86_64")
self.d.setVar("PN", "test-${TARGET_ARCH}")
self.d.setVar("VERSION", "1")
self.d.setVar("VERSION:pn-test-${TARGET_ARCH}", "2")
self.d.setVar("OVERRIDES", "pn-${PN}")
bb.data.expandKeys(self.d)
self.assertEqual(self.d.getVar("VERSION"), "2")
def test_remove_with_override(self):
self.d.setVar("TEST:bar", "testvalue2")
self.d.setVar("TEST:some_val", "testvalue3 testvalue5")
@@ -416,16 +426,6 @@ class TestOverrides(unittest.TestCase):
self.d.setVar("TEST:bar:append", "testvalue2")
self.assertEqual(self.d.getVar("TEST"), "testvalue2")
# Test an override with _<numeric> in it based on a real world OE issue
def test_underscore_override(self):
self.d.setVar("TARGET_ARCH", "x86_64")
self.d.setVar("PN", "test-${TARGET_ARCH}")
self.d.setVar("VERSION", "1")
self.d.setVar("VERSION:pn-test-${TARGET_ARCH}", "2")
self.d.setVar("OVERRIDES", "pn-${PN}")
bb.data.expandKeys(self.d)
self.assertEqual(self.d.getVar("VERSION"), "2")
def test_append_and_unused_override(self):
# Had a bug where an unused override append could return "" instead of None
self.d.setVar("BAR:append:unusedoverride", "testvalue2")

View File

@@ -13,6 +13,7 @@ import pickle
import threading
import time
import unittest
import tempfile
from unittest.mock import Mock
from unittest.mock import call
@@ -468,6 +469,8 @@ class EventClassesTest(unittest.TestCase):
def setUp(self):
bb.event.worker_pid = EventClassesTest._worker_pid
self.d = bb.data.init()
bb.parse.siggen = bb.siggen.init(self.d)
def test_Event(self):
""" Test the Event base class """
@@ -950,3 +953,24 @@ class EventClassesTest(unittest.TestCase):
event = bb.event.FindSigInfoResult(result)
self.assertEqual(event.result, result)
self.assertEqual(event.pid, EventClassesTest._worker_pid)
def test_lineno_in_eventhandler(self):
# The error lineno is 5, not 4 since the first line is '\n'
error_line = """
# Comment line1
# Comment line2
python test_lineno_in_eventhandler() {
This is an error line
}
addhandler test_lineno_in_eventhandler
test_lineno_in_eventhandler[eventmask] = "bb.event.ConfigParsed"
"""
with self.assertLogs() as logs:
f = tempfile.NamedTemporaryFile(suffix = '.bb')
f.write(bytes(error_line, "utf-8"))
f.flush()
d = bb.parse.handle(f.name, self.d)['']
output = "".join(logs.output)
self.assertTrue(" line 5\n" in output)

View File

@@ -6,6 +6,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import contextlib
import unittest
import hashlib
import tempfile
@@ -307,6 +308,21 @@ class URITest(unittest.TestCase):
'params': {"someparam" : "1"},
'query': {},
'relative': True
},
"https://www.innodisk.com/Download_file?9BE0BF6657;downloadfilename=EGPL-T101.zip": {
'uri': 'https://www.innodisk.com/Download_file?9BE0BF6657;downloadfilename=EGPL-T101.zip',
'scheme': 'https',
'hostname': 'www.innodisk.com',
'port': None,
'hostport': 'www.innodisk.com',
'path': '/Download_file',
'userinfo': '',
'userinfo': '',
'username': '',
'password': '',
'params': {"downloadfilename" : "EGPL-T101.zip"},
'query': {"9BE0BF6657": None},
'relative': False
}
}
@@ -416,9 +432,9 @@ class FetcherTest(unittest.TestCase):
def git(self, cmd, cwd=None):
if isinstance(cmd, str):
cmd = 'git ' + cmd
cmd = 'git -c safe.bareRepository=all ' + cmd
else:
cmd = ['git'] + cmd
cmd = ['git', '-c', 'safe.bareRepository=all'] + cmd
if cwd is None:
cwd = self.gitdir
return bb.process.run(cmd, cwd=cwd)[0]
@@ -1107,6 +1123,25 @@ class FetcherNetworkTest(FetcherTest):
if os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1')):
self.assertTrue(os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1', 'bitbake')), msg='submodule of submodule missing')
@skipIfNoNetwork()
def test_git_submodule_restricted_network_premirrors(self):
# this test is to ensure that premirrors will be tried in restricted network
# that is, BB_ALLOWED_NETWORKS does not contain the domain the url uses
url = "gitsm://github.com/grpc/grpc.git;protocol=https;name=grpc;branch=v1.60.x;rev=0ef13a7555dbaadd4633399242524129eef5e231"
# create a download directory to be used as premirror later
tempdir = tempfile.mkdtemp(prefix="bitbake-fetch-")
dl_premirror = os.path.join(tempdir, "download-premirror")
os.mkdir(dl_premirror)
self.d.setVar("DL_DIR", dl_premirror)
fetcher = bb.fetch.Fetch([url], self.d)
fetcher.download()
# now use the premirror in restricted network
self.d.setVar("DL_DIR", self.dldir)
self.d.setVar("PREMIRRORS", "gitsm://.*/.* gitsm://%s/git2/MIRRORNAME;protocol=file" % dl_premirror)
self.d.setVar("BB_ALLOWED_NETWORKS", "*.some.domain")
fetcher = bb.fetch.Fetch([url], self.d)
fetcher.download()
@skipIfNoNetwork()
def test_git_submodule_dbus_broker(self):
# The following external repositories have show failures in fetch and unpack operations
@@ -1247,8 +1282,9 @@ class SVNTest(FetcherTest):
cwd=repo_dir)
bb.process.run("svn co %s svnfetch_co" % self.repo_url, cwd=self.tempdir)
# Github will emulate SVN. Use this to check if we're downloding...
bb.process.run("svn propset svn:externals 'bitbake https://github.com/PhilipHazel/pcre2.git' .",
# Github won't emulate SVN anymore (see https://github.blog/2023-01-20-sunsetting-subversion-support/)
# Use still accessible svn repo (only trunk to avoid longer downloads)
bb.process.run("svn propset svn:externals 'bitbake https://svn.apache.org/repos/asf/serf/trunk' .",
cwd=os.path.join(self.tempdir, 'svnfetch_co', 'trunk'))
bb.process.run("svn commit --non-interactive -m 'Add external'",
cwd=os.path.join(self.tempdir, 'svnfetch_co', 'trunk'))
@@ -1276,8 +1312,8 @@ class SVNTest(FetcherTest):
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk')), msg="Missing trunk")
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk', 'README.md')), msg="Missing contents")
self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk')), msg="External dir should NOT exist")
self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk', 'README')), msg="External README should NOT exit")
self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols')), msg="External dir should NOT exist")
self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols', 'fcgi_buckets.h')), msg="External fcgi_buckets.h should NOT exit")
@skipIfNoSvn()
def test_external_svn(self):
@@ -1290,8 +1326,8 @@ class SVNTest(FetcherTest):
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk')), msg="Missing trunk")
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk', 'README.md')), msg="Missing contents")
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk')), msg="External dir should exist")
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk', 'README')), msg="External README should exit")
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols')), msg="External dir should exist")
self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols', 'fcgi_buckets.h')), msg="External fcgi_buckets.h should exit")
class TrustedNetworksTest(FetcherTest):
def test_trusted_network(self):
@@ -1369,37 +1405,39 @@ class FetchLatestVersionTest(FetcherTest):
test_git_uris = {
# version pattern "X.Y.Z"
("mx-1.0", "git://github.com/clutter-project/mx.git;branch=mx-1.4;protocol=https", "9b1db6b8060bd00b121a692f942404a24ae2960f", "")
("mx-1.0", "git://github.com/clutter-project/mx.git;branch=mx-1.4;protocol=https", "9b1db6b8060bd00b121a692f942404a24ae2960f", "", "")
: "1.99.4",
# version pattern "vX.Y"
# mirror of git.infradead.org since network issues interfered with testing
("mtd-utils", "git://git.yoctoproject.org/mtd-utils.git;branch=master;protocol=https", "ca39eb1d98e736109c64ff9c1aa2a6ecca222d8f", "")
("mtd-utils", "git://git.yoctoproject.org/mtd-utils.git;branch=master;protocol=https", "ca39eb1d98e736109c64ff9c1aa2a6ecca222d8f", "", "")
: "1.5.0",
# version pattern "pkg_name-X.Y"
# mirror of git://anongit.freedesktop.org/git/xorg/proto/presentproto since network issues interfered with testing
("presentproto", "git://git.yoctoproject.org/bbfetchtests-presentproto;branch=master;protocol=https", "24f3a56e541b0a9e6c6ee76081f441221a120ef9", "")
("presentproto", "git://git.yoctoproject.org/bbfetchtests-presentproto;branch=master;protocol=https", "24f3a56e541b0a9e6c6ee76081f441221a120ef9", "", "")
: "1.0",
# version pattern "pkg_name-vX.Y.Z"
("dtc", "git://git.yoctoproject.org/bbfetchtests-dtc.git;branch=master;protocol=https", "65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf", "")
("dtc", "git://git.yoctoproject.org/bbfetchtests-dtc.git;branch=master;protocol=https", "65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf", "", "")
: "1.4.0",
# combination version pattern
("sysprof", "git://gitlab.gnome.org/GNOME/sysprof.git;protocol=https;branch=master", "cd44ee6644c3641507fb53b8a2a69137f2971219", "")
("sysprof", "git://gitlab.gnome.org/GNOME/sysprof.git;protocol=https;branch=master", "cd44ee6644c3641507fb53b8a2a69137f2971219", "", "")
: "1.2.0",
("u-boot-mkimage", "git://git.denx.de/u-boot.git;branch=master;protocol=git", "62c175fbb8a0f9a926c88294ea9f7e88eb898f6c", "")
("u-boot-mkimage", "git://git.denx.de/u-boot.git;branch=master;protocol=git", "62c175fbb8a0f9a926c88294ea9f7e88eb898f6c", "", "")
: "2014.01",
# version pattern "yyyymmdd"
("mobile-broadband-provider-info", "git://gitlab.gnome.org/GNOME/mobile-broadband-provider-info.git;protocol=https;branch=master", "4ed19e11c2975105b71b956440acdb25d46a347d", "")
("mobile-broadband-provider-info", "git://gitlab.gnome.org/GNOME/mobile-broadband-provider-info.git;protocol=https;branch=master", "4ed19e11c2975105b71b956440acdb25d46a347d", "", "")
: "20120614",
# packages with a valid UPSTREAM_CHECK_GITTAGREGEX
# mirror of git://anongit.freedesktop.org/xorg/driver/xf86-video-omap since network issues interfered with testing
("xf86-video-omap", "git://git.yoctoproject.org/bbfetchtests-xf86-video-omap;branch=master;protocol=https", "ae0394e687f1a77e966cf72f895da91840dffb8f", r"(?P<pver>(\d+\.(\d\.?)*))")
("xf86-video-omap", "git://git.yoctoproject.org/bbfetchtests-xf86-video-omap;branch=master;protocol=https", "ae0394e687f1a77e966cf72f895da91840dffb8f", r"(?P<pver>(\d+\.(\d\.?)*))", "")
: "0.4.3",
("build-appliance-image", "git://git.yoctoproject.org/poky;branch=master;protocol=https", "b37dd451a52622d5b570183a81583cc34c2ff555", r"(?P<pver>(([0-9][\.|_]?)+[0-9]))")
("build-appliance-image", "git://git.yoctoproject.org/poky;branch=master;protocol=https", "b37dd451a52622d5b570183a81583cc34c2ff555", r"(?P<pver>(([0-9][\.|_]?)+[0-9]))", "")
: "11.0.0",
("chkconfig-alternatives-native", "git://github.com/kergoth/chkconfig;branch=sysroot;protocol=https", "cd437ecbd8986c894442f8fce1e0061e20f04dee", r"chkconfig\-(?P<pver>((\d+[\.\-_]*)+))")
("chkconfig-alternatives-native", "git://github.com/kergoth/chkconfig;branch=sysroot;protocol=https", "cd437ecbd8986c894442f8fce1e0061e20f04dee", r"chkconfig\-(?P<pver>((\d+[\.\-_]*)+))", "")
: "1.3.59",
("remake", "git://github.com/rocky/remake.git;protocol=https;branch=master", "f05508e521987c8494c92d9c2871aec46307d51d", r"(?P<pver>(\d+\.(\d+\.)*\d*(\+dbg\d+(\.\d+)*)*))")
("remake", "git://github.com/rocky/remake.git;protocol=https;branch=master", "f05508e521987c8494c92d9c2871aec46307d51d", r"(?P<pver>(\d+\.(\d+\.)*\d*(\+dbg\d+(\.\d+)*)*))", "")
: "3.82+dbg0.9",
("sysdig", "git://github.com/draios/sysdig.git;branch=dev;protocol=https", "4fb6288275f567f63515df0ff0a6518043ecfa9b", r"^(?P<pver>\d+(\.\d+)+)", "10.0.0")
: "0.28.0",
}
test_wget_uris = {
@@ -1467,6 +1505,9 @@ class FetchLatestVersionTest(FetcherTest):
self.assertTrue(verstring, msg="Could not find upstream version for %s" % k[0])
r = bb.utils.vercmp_string(v, verstring)
self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring))
if k[4]:
r = bb.utils.vercmp_string(verstring, k[4])
self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], verstring, k[4]))
def test_wget_latest_versionstring(self):
testdata = os.path.dirname(os.path.abspath(__file__)) + "/fetch-testdata"
@@ -2236,10 +2277,14 @@ class GitLfsTest(FetcherTest):
bb.utils.mkdirhier(self.srcdir)
self.git_init(cwd=self.srcdir)
with open(os.path.join(self.srcdir, '.gitattributes'), 'wt') as attrs:
attrs.write('*.mp3 filter=lfs -text')
self.git(['add', '.gitattributes'], cwd=self.srcdir)
self.git(['commit', '-m', "attributes", '.gitattributes'], cwd=self.srcdir)
self.commit_file('.gitattributes', '*.mp3 filter=lfs -text')
def commit_file(self, filename, content):
with open(os.path.join(self.srcdir, filename), "w") as f:
f.write(content)
self.git(["add", filename], cwd=self.srcdir)
self.git(["commit", "-m", "Change"], cwd=self.srcdir)
return self.git(["rev-parse", "HEAD"], cwd=self.srcdir).strip()
def fetch(self, uri=None, download=True):
uris = self.d.getVar('SRC_URI').split()
@@ -2259,6 +2304,44 @@ class GitLfsTest(FetcherTest):
unpacked_lfs_file = os.path.join(self.d.getVar('WORKDIR'), 'git', "Cat_poster_1.jpg")
return unpacked_lfs_file
@skipIfNoGitLFS()
def test_fetch_lfs_on_srcrev_change(self):
"""Test if fetch downloads missing LFS objects when a different revision within an existing repository is requested"""
self.git(["lfs", "install", "--local"], cwd=self.srcdir)
@contextlib.contextmanager
def hide_upstream_repository():
"""Hide the upstream repository to make sure that git lfs cannot pull from it"""
temp_name = self.srcdir + ".bak"
os.rename(self.srcdir, temp_name)
try:
yield
finally:
os.rename(temp_name, self.srcdir)
def fetch_and_verify(revision, filename, content):
self.d.setVar('SRCREV', revision)
fetcher, ud = self.fetch()
with hide_upstream_repository():
workdir = self.d.getVar('WORKDIR')
fetcher.unpack(workdir)
with open(os.path.join(workdir, "git", filename)) as f:
self.assertEqual(f.read(), content)
commit_1 = self.commit_file("a.mp3", "version 1")
commit_2 = self.commit_file("a.mp3", "version 2")
self.d.setVar('SRC_URI', "git://%s;protocol=file;lfs=1;branch=master" % self.srcdir)
# Seed the local download folder by fetching the latest commit and verifying that the LFS contents are
# available even when the upstream repository disappears.
fetch_and_verify(commit_2, "a.mp3", "version 2")
# Verify that even when an older revision is fetched, the needed LFS objects are fetched into the download
# folder.
fetch_and_verify(commit_1, "a.mp3", "version 1")
@skipIfNoGitLFS()
@skipIfNoNetwork()
def test_real_git_lfs_repo_succeeds_without_lfs_param(self):
@@ -2277,7 +2360,7 @@ class GitLfsTest(FetcherTest):
@skipIfNoGitLFS()
@skipIfNoNetwork()
def test_real_git_lfs_repo_succeeds(self):
def test_real_git_lfs_repo_skips(self):
self.d.setVar('SRC_URI', "git://gitlab.com/gitlab-examples/lfs.git;protocol=https;branch=master;lfs=0")
f = self.get_real_git_lfs_file()
# This is the actual non-smudged placeholder file on the repo if git-lfs does not run
@@ -2290,24 +2373,41 @@ class GitLfsTest(FetcherTest):
with open(f) as fh:
self.assertEqual(lfs_file, fh.read())
@skipIfNoGitLFS()
def test_lfs_enabled(self):
import shutil
uri = 'git://%s;protocol=file;lfs=1;branch=master' % self.srcdir
self.d.setVar('SRC_URI', uri)
# Careful: suppress initial attempt at downloading until
# we know whether git-lfs is installed.
# With git-lfs installed, test that we can fetch and unpack
fetcher, ud = self.fetch()
shutil.rmtree(self.gitdir, ignore_errors=True)
fetcher.unpack(self.d.getVar('WORKDIR'))
@skipIfNoGitLFS()
def test_lfs_disabled(self):
import shutil
uri = 'git://%s;protocol=file;lfs=0;branch=master' % self.srcdir
self.d.setVar('SRC_URI', uri)
# Verify that the fetcher can survive even if the source
# repository has Git LFS usage configured.
fetcher, ud = self.fetch()
fetcher.unpack(self.d.getVar('WORKDIR'))
def test_lfs_enabled_not_installed(self):
import shutil
uri = 'git://%s;protocol=file;lfs=1;branch=master' % self.srcdir
self.d.setVar('SRC_URI', uri)
# Careful: suppress initial attempt at downloading
fetcher, ud = self.fetch(uri=None, download=False)
self.assertIsNotNone(ud.method._find_git_lfs)
# If git-lfs can be found, the unpack should be successful. Only
# attempt this with the real live copy of git-lfs installed.
if ud.method._find_git_lfs(self.d):
fetcher.download()
shutil.rmtree(self.gitdir, ignore_errors=True)
fetcher.unpack(self.d.getVar('WORKDIR'))
# Artificially assert that git-lfs is not installed, so
# we can verify a failure to unpack in it's absence.
old_find_git_lfs = ud.method._find_git_lfs
try:
# If git-lfs cannot be found, the unpack should throw an error
@@ -2319,29 +2419,21 @@ class GitLfsTest(FetcherTest):
finally:
ud.method._find_git_lfs = old_find_git_lfs
def test_lfs_disabled(self):
def test_lfs_disabled_not_installed(self):
import shutil
uri = 'git://%s;protocol=file;lfs=0;branch=master' % self.srcdir
self.d.setVar('SRC_URI', uri)
# In contrast to test_lfs_enabled(), allow the implicit download
# done by self.fetch() to occur here. The point of this test case
# is to verify that the fetcher can survive even if the source
# repository has Git LFS usage configured.
fetcher, ud = self.fetch()
self.assertIsNotNone(ud.method._find_git_lfs)
# Careful: suppress initial attempt at downloading
fetcher, ud = self.fetch(uri=None, download=False)
# Artificially assert that git-lfs is not installed, so
# we can verify a failure to unpack in it's absence.
old_find_git_lfs = ud.method._find_git_lfs
try:
# If git-lfs can be found, the unpack should be successful. A
# live copy of git-lfs is not required for this case, so
# unconditionally forge its presence.
ud.method._find_git_lfs = lambda d: True
shutil.rmtree(self.gitdir, ignore_errors=True)
fetcher.unpack(self.d.getVar('WORKDIR'))
# If git-lfs cannot be found, the unpack should be successful
# Even if git-lfs cannot be found, the unpack should be successful
fetcher.download()
ud.method._find_git_lfs = lambda d: False
shutil.rmtree(self.gitdir, ignore_errors=True)
fetcher.unpack(self.d.getVar('WORKDIR'))
@@ -3042,9 +3134,11 @@ class FetchPremirroronlyLocalTest(FetcherTest):
self.d.setVar("BB_FETCH_PREMIRRORONLY", "1")
self.d.setVar("BB_NO_NETWORK", "1")
self.d.setVar("PREMIRRORS", self.recipe_url + " " + "file://{}".format(self.mirrordir) + " \n")
self.mirrorname = "git2_git.fake.repo.bitbake.tar.gz"
self.mirrorfile = os.path.join(self.mirrordir, self.mirrorname)
self.testfilename = "bitbake-fetch.test"
def make_git_repo(self):
self.mirrorname = "git2_git.fake.repo.bitbake.tar.gz"
recipeurl = "git:/git.fake.repo/bitbake"
os.makedirs(self.gitdir)
self.git_init(cwd=self.gitdir)
@@ -3054,15 +3148,41 @@ class FetchPremirroronlyLocalTest(FetcherTest):
def git_new_commit(self):
import random
testfilename = "bibake-fetch.test"
os.unlink(os.path.join(self.mirrordir, self.mirrorname))
with open(os.path.join(self.gitdir, testfilename), "w") as testfile:
testfile.write("Useless random data {}".format(random.random()))
self.git("add {}".format(testfilename), self.gitdir)
self.git("commit -a -m \"This random commit {}. I'm useless.\"".format(random.random()), self.gitdir)
branch = self.git("branch --show-current", self.gitdir).split()
with open(os.path.join(self.gitdir, self.testfilename), "w") as testfile:
testfile.write("File {} from branch {}; Useless random data {}".format(self.testfilename, branch, random.random()))
self.git("add {}".format(self.testfilename), self.gitdir)
self.git("commit -a -m \"This random commit {} in branch {}. I'm useless.\"".format(random.random(), branch), self.gitdir)
bb.process.run('tar -czvf {} .'.format(os.path.join(self.mirrordir, self.mirrorname)), cwd = self.gitdir)
return self.git("rev-parse HEAD", self.gitdir).strip()
def git_new_branch(self, name):
self.git_new_commit()
head = self.git("rev-parse HEAD", self.gitdir).strip()
self.git("checkout -b {}".format(name), self.gitdir)
newrev = self.git_new_commit()
self.git("checkout {}".format(head), self.gitdir)
return newrev
def test_mirror_multiple_fetches(self):
self.make_git_repo()
self.d.setVar("SRCREV", self.git_new_commit())
fetcher = bb.fetch.Fetch([self.recipe_url], self.d)
fetcher.download()
fetcher.unpack(self.unpackdir)
## New commit in premirror. it's not in the download_dir
self.d.setVar("SRCREV", self.git_new_commit())
fetcher2 = bb.fetch.Fetch([self.recipe_url], self.d)
fetcher2.download()
fetcher2.unpack(self.unpackdir)
## New commit in premirror. it's not in the download_dir
self.d.setVar("SRCREV", self.git_new_commit())
fetcher3 = bb.fetch.Fetch([self.recipe_url], self.d)
fetcher3.download()
fetcher3.unpack(self.unpackdir)
def test_mirror_commit_nonexistent(self):
self.make_git_repo()
self.d.setVar("SRCREV", "0"*40)
@@ -3083,6 +3203,59 @@ class FetchPremirroronlyLocalTest(FetcherTest):
with self.assertRaises(bb.fetch2.NetworkAccess):
fetcher.download()
def test_mirror_tarball_multiple_branches(self):
"""
test if PREMIRRORS can handle multiple name/branches correctly
both branches have required revisions
"""
self.make_git_repo()
branch1rev = self.git_new_branch("testbranch1")
branch2rev = self.git_new_branch("testbranch2")
self.recipe_url = "git://git.fake.repo/bitbake;branch=testbranch1,testbranch2;protocol=https;name=branch1,branch2"
self.d.setVar("SRCREV_branch1", branch1rev)
self.d.setVar("SRCREV_branch2", branch2rev)
fetcher = bb.fetch.Fetch([self.recipe_url], self.d)
self.assertTrue(os.path.exists(self.mirrorfile), "Mirror file doesn't exist")
fetcher.download()
fetcher.unpack(os.path.join(self.tempdir, "unpacked"))
unpacked = os.path.join(self.tempdir, "unpacked", "git", self.testfilename)
self.assertTrue(os.path.exists(unpacked), "Repo has not been unpackaged properly!")
with open(unpacked, 'r') as f:
content = f.read()
## We expect to see testbranch1 in the file, not master, not testbranch2
self.assertTrue(content.find("testbranch1") != -1, "Wrong branch has been checked out!")
def test_mirror_tarball_multiple_branches_nobranch(self):
"""
test if PREMIRRORS can handle multiple name/branches correctly
Unbalanced name/branches raises ParameterError
"""
self.make_git_repo()
branch1rev = self.git_new_branch("testbranch1")
branch2rev = self.git_new_branch("testbranch2")
self.recipe_url = "git://git.fake.repo/bitbake;branch=testbranch1;protocol=https;name=branch1,branch2"
self.d.setVar("SRCREV_branch1", branch1rev)
self.d.setVar("SRCREV_branch2", branch2rev)
with self.assertRaises(bb.fetch2.ParameterError):
fetcher = bb.fetch.Fetch([self.recipe_url], self.d)
def test_mirror_tarball_multiple_branches_norev(self):
"""
test if PREMIRRORS can handle multiple name/branches correctly
one of the branches specifies non existing SRCREV
"""
self.make_git_repo()
branch1rev = self.git_new_branch("testbranch1")
branch2rev = self.git_new_branch("testbranch2")
self.recipe_url = "git://git.fake.repo/bitbake;branch=testbranch1,testbranch2;protocol=https;name=branch1,branch2"
self.d.setVar("SRCREV_branch1", branch1rev)
self.d.setVar("SRCREV_branch2", "0"*40)
fetcher = bb.fetch.Fetch([self.recipe_url], self.d)
self.assertTrue(os.path.exists(self.mirrorfile), "Mirror file doesn't exist")
with self.assertRaises(bb.fetch2.NetworkAccess):
fetcher.download()
class FetchPremirroronlyNetworkTest(FetcherTest):
def setUp(self):

View File

@@ -243,3 +243,101 @@ unset A[flag@.service]
with self.assertRaises(bb.parse.ParseError):
d = bb.parse.handle(f.name, self.d)['']
export_function_recipe = """
inherit someclass
"""
export_function_recipe2 = """
inherit someclass
do_compile () {
false
}
python do_compilepython () {
bb.note("Something else")
}
"""
export_function_class = """
someclass_do_compile() {
true
}
python someclass_do_compilepython () {
bb.note("Something")
}
EXPORT_FUNCTIONS do_compile do_compilepython
"""
export_function_class2 = """
secondclass_do_compile() {
true
}
python secondclass_do_compilepython () {
bb.note("Something")
}
EXPORT_FUNCTIONS do_compile do_compilepython
"""
def test_parse_export_functions(self):
def check_function_flags(d):
self.assertEqual(d.getVarFlag("do_compile", "func"), 1)
self.assertEqual(d.getVarFlag("do_compilepython", "func"), 1)
self.assertEqual(d.getVarFlag("do_compile", "python"), None)
self.assertEqual(d.getVarFlag("do_compilepython", "python"), "1")
with tempfile.TemporaryDirectory() as tempdir:
self.d.setVar("__bbclasstype", "recipe")
recipename = tempdir + "/recipe.bb"
os.makedirs(tempdir + "/classes")
with open(tempdir + "/classes/someclass.bbclass", "w") as f:
f.write(self.export_function_class)
f.flush()
with open(tempdir + "/classes/secondclass.bbclass", "w") as f:
f.write(self.export_function_class2)
f.flush()
with open(recipename, "w") as f:
f.write(self.export_function_recipe)
f.flush()
os.chdir(tempdir)
d = bb.parse.handle(recipename, bb.data.createCopy(self.d))['']
self.assertIn("someclass_do_compile", d.getVar("do_compile"))
self.assertIn("someclass_do_compilepython", d.getVar("do_compilepython"))
check_function_flags(d)
recipename2 = tempdir + "/recipe2.bb"
with open(recipename2, "w") as f:
f.write(self.export_function_recipe2)
f.flush()
d = bb.parse.handle(recipename2, bb.data.createCopy(self.d))['']
self.assertNotIn("someclass_do_compile", d.getVar("do_compile"))
self.assertNotIn("someclass_do_compilepython", d.getVar("do_compilepython"))
self.assertIn("false", d.getVar("do_compile"))
self.assertIn("else", d.getVar("do_compilepython"))
check_function_flags(d)
with open(recipename, "a+") as f:
f.write("\ninherit secondclass\n")
f.flush()
with open(recipename2, "a+") as f:
f.write("\ninherit secondclass\n")
f.flush()
d = bb.parse.handle(recipename, bb.data.createCopy(self.d))['']
self.assertIn("secondclass_do_compile", d.getVar("do_compile"))
self.assertIn("secondclass_do_compilepython", d.getVar("do_compilepython"))
check_function_flags(d)
d = bb.parse.handle(recipename2, bb.data.createCopy(self.d))['']
self.assertNotIn("someclass_do_compile", d.getVar("do_compile"))
self.assertNotIn("someclass_do_compilepython", d.getVar("do_compilepython"))
self.assertIn("false", d.getVar("do_compile"))
self.assertIn("else", d.getVar("do_compilepython"))
check_function_flags(d)

View File

@@ -0,0 +1,86 @@
#!/usr/bin/env python3
#
# SPDX-License-Identifier: GPL-2.0-only
#
# This file re-uses code spread throughout other Bitbake source files.
# As such, all other copyrights belong to their own right holders.
#
import os
import sys
import json
import pickle
import codecs
class EventPlayer:
"""Emulate a connection to a bitbake server."""
def __init__(self, eventfile, variables):
self.eventfile = eventfile
self.variables = variables
self.eventmask = []
def waitEvent(self, _timeout):
"""Read event from the file."""
line = self.eventfile.readline().strip()
if not line:
return
try:
decodedline = json.loads(line)
if 'allvariables' in decodedline:
self.variables = decodedline['allvariables']
return
if not 'vars' in decodedline:
raise ValueError
event_str = decodedline['vars'].encode('utf-8')
event = pickle.loads(codecs.decode(event_str, 'base64'))
event_name = "%s.%s" % (event.__module__, event.__class__.__name__)
if event_name not in self.eventmask:
return
return event
except ValueError as err:
print("Failed loading ", line)
raise err
def runCommand(self, command_line):
"""Emulate running a command on the server."""
name = command_line[0]
if name == "getVariable":
var_name = command_line[1]
variable = self.variables.get(var_name)
if variable:
return variable['v'], None
return None, "Missing variable %s" % var_name
elif name == "getAllKeysWithFlags":
dump = {}
flaglist = command_line[1]
for key, val in self.variables.items():
try:
if not key.startswith("__"):
dump[key] = {
'v': val['v'],
'history' : val['history'],
}
for flag in flaglist:
dump[key][flag] = val[flag]
except Exception as err:
print(err)
return (dump, None)
elif name == 'setEventMask':
self.eventmask = command_line[-1]
return True, None
else:
raise Exception("Command %s not implemented" % command_line[0])
def getEventHandle(self):
"""
This method is called by toasterui.
The return value is passed to self.runCommand but not used there.
"""
pass

View File

@@ -179,7 +179,7 @@ class TerminalFilter(object):
new[3] = new[3] & ~termios.ECHO
termios.tcsetattr(fd, termios.TCSADRAIN, new)
curses.setupterm()
if curses.tigetnum("colors") > 2:
if curses.tigetnum("colors") > 2 and os.environ.get('NO_COLOR', '') == '':
for h in handlers:
try:
h.formatter.enable_color()
@@ -420,6 +420,11 @@ def main(server, eventHandler, params, tf = TerminalFilter):
except bb.BBHandledException:
drain_events_errorhandling(eventHandler)
return 1
except Exception as e:
# bitbake-server comms failure
early_logger = bb.msg.logger_create('bitbake', sys.stdout)
early_logger.fatal("Attempting to set server environment: %s", e)
return 1
if params.options.quiet == 0:
console_loglevel = loglevel
@@ -585,7 +590,12 @@ def main(server, eventHandler, params, tf = TerminalFilter):
return
llevel, debug_domains = bb.msg.constructLogOptions()
server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list])
try:
server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list])
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure
logger.fatal("Attempting to set event mask: %s", e)
return 1
# The logging_tree module is *extremely* helpful in debugging logging
# domains. Uncomment here to dump the logging tree when bitbake starts
@@ -594,7 +604,11 @@ def main(server, eventHandler, params, tf = TerminalFilter):
universe = False
if not params.observe_only:
params.updateFromServer(server)
try:
params.updateFromServer(server)
except Exception as e:
logger.fatal("Fetching command line: %s", e)
return 1
cmdline = params.parseActions()
if not cmdline:
print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
@@ -605,7 +619,12 @@ def main(server, eventHandler, params, tf = TerminalFilter):
if cmdline['action'][0] == "buildTargets" and "universe" in cmdline['action'][1]:
universe = True
ret, error = server.runCommand(cmdline['action'])
try:
ret, error = server.runCommand(cmdline['action'])
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure
logger.fatal("Command '{}' failed: %s".format(cmdline), e)
return 1
if error:
logger.error("Command '%s' failed: %s" % (cmdline, error))
return 1
@@ -854,15 +873,26 @@ def main(server, eventHandler, params, tf = TerminalFilter):
logger.error("Unknown event: %s", event)
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure, don't attempt further comms and exit
logger.fatal("Executing event: %s", e)
return_value = 1
errors = errors + 1
main.shutdown = 3
except EnvironmentError as ioerror:
termfilter.clearFooter()
# ignore interrupted io
if ioerror.args[0] == 4:
continue
sys.stderr.write(str(ioerror))
if not params.observe_only:
_, error = server.runCommand(["stateForceShutdown"])
main.shutdown = 2
if not params.observe_only:
try:
_, error = server.runCommand(["stateForceShutdown"])
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure, don't attempt further comms and exit
logger.fatal("Unable to force shutdown: %s", e)
main.shutdown = 3
except KeyboardInterrupt:
termfilter.clearFooter()
if params.observe_only:
@@ -871,9 +901,13 @@ def main(server, eventHandler, params, tf = TerminalFilter):
def state_force_shutdown():
print("\nSecond Keyboard Interrupt, stopping...\n")
_, error = server.runCommand(["stateForceShutdown"])
if error:
logger.error("Unable to cleanly stop: %s" % error)
try:
_, error = server.runCommand(["stateForceShutdown"])
if error:
logger.error("Unable to cleanly stop: %s" % error)
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure
logger.fatal("Unable to cleanly stop: %s", e)
if not params.observe_only and main.shutdown == 1:
state_force_shutdown()
@@ -886,6 +920,9 @@ def main(server, eventHandler, params, tf = TerminalFilter):
_, error = server.runCommand(["stateShutdown"])
if error:
logger.error("Unable to cleanly shutdown: %s" % error)
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure
logger.fatal("Unable to cleanly shutdown: %s", e)
except KeyboardInterrupt:
state_force_shutdown()
@@ -893,9 +930,14 @@ def main(server, eventHandler, params, tf = TerminalFilter):
except Exception as e:
import traceback
sys.stderr.write(traceback.format_exc())
if not params.observe_only:
_, error = server.runCommand(["stateForceShutdown"])
main.shutdown = 2
if not params.observe_only:
try:
_, error = server.runCommand(["stateForceShutdown"])
except (BrokenPipeError, EOFError) as e:
# bitbake-server comms failure, don't attempt further comms and exit
logger.fatal("Unable to force shutdown: %s", e)
main.shudown = 3
return_value = 1
try:
termfilter.clearFooter()

View File

@@ -227,6 +227,9 @@ class NCursesUI:
shutdown = 0
try:
if not params.observe_only:
params.updateToServer(server, os.environ.copy())
params.updateFromServer(server)
cmdline = params.parseActions()
if not cmdline:

File diff suppressed because it is too large Load Diff

View File

@@ -385,7 +385,7 @@ def main(server, eventHandler, params):
main.shutdown = 1
logger.info("ToasterUI build done, brbe: %s", brbe)
continue
break
if isinstance(event, (bb.command.CommandCompleted,
bb.command.CommandFailed,

View File

@@ -50,7 +50,7 @@ def clean_context():
def get_context():
return _context
def set_context(ctx):
_context = ctx
@@ -212,8 +212,8 @@ def explode_dep_versions2(s, *, sort=True):
inversion = True
# This list is based on behavior and supported comparisons from deb, opkg and rpm.
#
# Even though =<, <<, ==, !=, =>, and >> may not be supported,
# we list each possibly valid item.
# Even though =<, <<, ==, !=, =>, and >> may not be supported,
# we list each possibly valid item.
# The build system is responsible for validation of what it supports.
if i.startswith(('<=', '=<', '<<', '==', '!=', '>=', '=>', '>>')):
lastcmp = i[0:2]
@@ -347,7 +347,7 @@ def _print_exception(t, value, tb, realfile, text, context):
exception = traceback.format_exception_only(t, value)
error.append('Error executing a python function in %s:\n' % realfile)
# Strip 'us' from the stack (better_exec call) unless that was where the
# Strip 'us' from the stack (better_exec call) unless that was where the
# error came from
if tb.tb_next is not None:
tb = tb.tb_next
@@ -604,7 +604,6 @@ def preserved_envvars():
v = [
'BBPATH',
'BB_PRESERVE_ENV',
'BB_ENV_PASSTHROUGH',
'BB_ENV_PASSTHROUGH_ADDITIONS',
]
return v + preserved_envvars_exported()
@@ -746,9 +745,9 @@ def prunedir(topdir, ionice=False):
# but thats possibly insane and suffixes is probably going to be small
#
def prune_suffix(var, suffixes, d):
"""
"""
See if var ends with any of the suffixes listed and
remove it if found
remove it if found
"""
for suffix in suffixes:
if suffix and var.endswith(suffix):
@@ -759,7 +758,8 @@ def mkdirhier(directory):
"""Create a directory like 'mkdir -p', but does not complain if
directory already exists like os.makedirs
"""
if '${' in str(directory):
bb.fatal("Directory name {} contains unexpanded bitbake variable. This may cause build failures and WORKDIR polution.".format(directory))
try:
os.makedirs(directory)
except OSError as e:
@@ -1001,9 +1001,9 @@ def umask(new_mask):
os.umask(current_mask)
def to_boolean(string, default=None):
"""
"""
Check input string and return boolean value True/False/None
depending upon the checks
depending upon the checks
"""
if not string:
return default
@@ -1142,7 +1142,10 @@ def get_referenced_vars(start_expr, d):
def cpu_count():
return multiprocessing.cpu_count()
try:
return len(os.sched_getaffinity(0))
except OSError:
return multiprocessing.cpu_count()
def nonblockingfd(fd):
fcntl.fcntl(fd, fcntl.F_SETFL, fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK)

View File

@@ -585,7 +585,7 @@ class SiblingTest(TreeTest):
</html>'''
# All that whitespace looks good but makes the tests more
# difficult. Get rid of it.
markup = re.compile("\n\s*").sub("", markup)
markup = re.compile(r"\n\s*").sub("", markup)
self.tree = self.soup(markup)

View File

@@ -392,19 +392,7 @@ class SourceGenerator(NodeVisitor):
def visit_Name(self, node):
self.write(node.id)
def visit_Str(self, node):
self.write(repr(node.s))
def visit_Bytes(self, node):
self.write(repr(node.s))
def visit_Num(self, node):
self.write(repr(node.n))
def visit_Constant(self, node):
# Python 3.8 deprecated visit_Num(), visit_Str(), visit_Bytes(),
# visit_NameConstant() and visit_Ellipsis(). They can be removed once we
# require 3.8+.
self.write(repr(node.value))
def visit_Tuple(self, node):

View File

@@ -5,151 +5,102 @@
import asyncio
from contextlib import closing
import re
import sqlite3
import itertools
import json
from collections import namedtuple
from urllib.parse import urlparse
from bb.asyncrpc.client import parse_address, ADDR_TYPE_UNIX, ADDR_TYPE_WS
UNIX_PREFIX = "unix://"
User = namedtuple("User", ("username", "permissions"))
ADDR_TYPE_UNIX = 0
ADDR_TYPE_TCP = 1
def create_server(
addr,
dbname,
*,
sync=True,
upstream=None,
read_only=False,
db_username=None,
db_password=None,
anon_perms=None,
admin_username=None,
admin_password=None,
):
def sqlite_engine():
from .sqlite import DatabaseEngine
# The Python async server defaults to a 64K receive buffer, so we hardcode our
# maximum chunk size. It would be better if the client and server reported to
# each other what the maximum chunk sizes were, but that will slow down the
# connection setup with a round trip delay so I'd rather not do that unless it
# is necessary
DEFAULT_MAX_CHUNK = 32 * 1024
return DatabaseEngine(dbname, sync)
UNIHASH_TABLE_DEFINITION = (
("method", "TEXT NOT NULL", "UNIQUE"),
("taskhash", "TEXT NOT NULL", "UNIQUE"),
("unihash", "TEXT NOT NULL", ""),
)
def sqlalchemy_engine():
from .sqlalchemy import DatabaseEngine
UNIHASH_TABLE_COLUMNS = tuple(name for name, _, _ in UNIHASH_TABLE_DEFINITION)
return DatabaseEngine(dbname, db_username, db_password)
OUTHASH_TABLE_DEFINITION = (
("method", "TEXT NOT NULL", "UNIQUE"),
("taskhash", "TEXT NOT NULL", "UNIQUE"),
("outhash", "TEXT NOT NULL", "UNIQUE"),
("created", "DATETIME", ""),
# Optional fields
("owner", "TEXT", ""),
("PN", "TEXT", ""),
("PV", "TEXT", ""),
("PR", "TEXT", ""),
("task", "TEXT", ""),
("outhash_siginfo", "TEXT", ""),
)
OUTHASH_TABLE_COLUMNS = tuple(name for name, _, _ in OUTHASH_TABLE_DEFINITION)
def _make_table(cursor, name, definition):
cursor.execute('''
CREATE TABLE IF NOT EXISTS {name} (
id INTEGER PRIMARY KEY AUTOINCREMENT,
{fields}
UNIQUE({unique})
)
'''.format(
name=name,
fields=" ".join("%s %s," % (name, typ) for name, typ, _ in definition),
unique=", ".join(name for name, _, flags in definition if "UNIQUE" in flags)
))
def setup_database(database, sync=True):
db = sqlite3.connect(database)
db.row_factory = sqlite3.Row
with closing(db.cursor()) as cursor:
_make_table(cursor, "unihashes_v2", UNIHASH_TABLE_DEFINITION)
_make_table(cursor, "outhashes_v2", OUTHASH_TABLE_DEFINITION)
cursor.execute('PRAGMA journal_mode = WAL')
cursor.execute('PRAGMA synchronous = %s' % ('NORMAL' if sync else 'OFF'))
# Drop old indexes
cursor.execute('DROP INDEX IF EXISTS taskhash_lookup')
cursor.execute('DROP INDEX IF EXISTS outhash_lookup')
cursor.execute('DROP INDEX IF EXISTS taskhash_lookup_v2')
cursor.execute('DROP INDEX IF EXISTS outhash_lookup_v2')
# TODO: Upgrade from tasks_v2?
cursor.execute('DROP TABLE IF EXISTS tasks_v2')
# Create new indexes
cursor.execute('CREATE INDEX IF NOT EXISTS taskhash_lookup_v3 ON unihashes_v2 (method, taskhash)')
cursor.execute('CREATE INDEX IF NOT EXISTS outhash_lookup_v3 ON outhashes_v2 (method, outhash)')
return db
def parse_address(addr):
if addr.startswith(UNIX_PREFIX):
return (ADDR_TYPE_UNIX, (addr[len(UNIX_PREFIX):],))
else:
m = re.match(r'\[(?P<host>[^\]]*)\]:(?P<port>\d+)$', addr)
if m is not None:
host = m.group('host')
port = m.group('port')
else:
host, port = addr.split(':')
return (ADDR_TYPE_TCP, (host, int(port)))
def chunkify(msg, max_chunk):
if len(msg) < max_chunk - 1:
yield ''.join((msg, "\n"))
else:
yield ''.join((json.dumps({
'chunk-stream': None
}), "\n"))
args = [iter(msg)] * (max_chunk - 1)
for m in map(''.join, itertools.zip_longest(*args, fillvalue='')):
yield ''.join(itertools.chain(m, "\n"))
yield "\n"
def create_server(addr, dbname, *, sync=True, upstream=None, read_only=False):
from . import server
db = setup_database(dbname, sync=sync)
s = server.Server(db, upstream=upstream, read_only=read_only)
if "://" in dbname:
db_engine = sqlalchemy_engine()
else:
db_engine = sqlite_engine()
if anon_perms is None:
anon_perms = server.DEFAULT_ANON_PERMS
s = server.Server(
db_engine,
upstream=upstream,
read_only=read_only,
anon_perms=anon_perms,
admin_username=admin_username,
admin_password=admin_password,
)
(typ, a) = parse_address(addr)
if typ == ADDR_TYPE_UNIX:
s.start_unix_server(*a)
elif typ == ADDR_TYPE_WS:
url = urlparse(a[0])
s.start_websocket_server(url.hostname, url.port)
else:
s.start_tcp_server(*a)
return s
def create_client(addr):
def create_client(addr, username=None, password=None):
from . import client
c = client.Client()
(typ, a) = parse_address(addr)
if typ == ADDR_TYPE_UNIX:
c.connect_unix(*a)
else:
c.connect_tcp(*a)
c = client.Client(username, password)
return c
try:
(typ, a) = parse_address(addr)
if typ == ADDR_TYPE_UNIX:
c.connect_unix(*a)
elif typ == ADDR_TYPE_WS:
c.connect_websocket(*a)
else:
c.connect_tcp(*a)
return c
except Exception as e:
c.close()
raise e
async def create_async_client(addr):
async def create_async_client(addr, username=None, password=None):
from . import client
c = client.AsyncClient()
(typ, a) = parse_address(addr)
if typ == ADDR_TYPE_UNIX:
await c.connect_unix(*a)
else:
await c.connect_tcp(*a)
c = client.AsyncClient(username, password)
return c
try:
(typ, a) = parse_address(addr)
if typ == ADDR_TYPE_UNIX:
await c.connect_unix(*a)
elif typ == ADDR_TYPE_WS:
await c.connect_websocket(*a)
else:
await c.connect_tcp(*a)
return c
except Exception as e:
await c.close()
raise e

View File

@@ -6,6 +6,7 @@
import logging
import socket
import bb.asyncrpc
import json
from . import create_async_client
@@ -15,117 +16,331 @@ logger = logging.getLogger("hashserv.client")
class AsyncClient(bb.asyncrpc.AsyncClient):
MODE_NORMAL = 0
MODE_GET_STREAM = 1
MODE_EXIST_STREAM = 2
def __init__(self):
super().__init__('OEHASHEQUIV', '1.1', logger)
def __init__(self, username=None, password=None):
super().__init__("OEHASHEQUIV", "1.1", logger)
self.mode = self.MODE_NORMAL
self.username = username
self.password = password
self.saved_become_user = None
async def setup_connection(self):
await super().setup_connection()
cur_mode = self.mode
self.mode = self.MODE_NORMAL
await self._set_mode(cur_mode)
if self.username:
# Save off become user temporarily because auth() resets it
become = self.saved_become_user
await self.auth(self.username, self.password)
async def send_stream(self, msg):
if become:
await self.become_user(become)
async def send_stream(self, mode, msg):
async def proc():
self.writer.write(("%s\n" % msg).encode("utf-8"))
await self.writer.drain()
l = await self.reader.readline()
if not l:
raise ConnectionError("Connection closed")
return l.decode("utf-8").rstrip()
await self._set_mode(mode)
await self.socket.send(msg)
return await self.socket.recv()
return await self._send_wrapper(proc)
async def invoke(self, *args, **kwargs):
# It's OK if connection errors cause a failure here, because the mode
# is also reset to normal on a new connection
await self._set_mode(self.MODE_NORMAL)
return await super().invoke(*args, **kwargs)
async def _set_mode(self, new_mode):
if new_mode == self.MODE_NORMAL and self.mode == self.MODE_GET_STREAM:
r = await self.send_stream("END")
async def stream_to_normal():
await self.socket.send("END")
return await self.socket.recv()
async def normal_to_stream(command):
r = await self.invoke({command: None})
if r != "ok":
raise ConnectionError("Bad response from server %r" % r)
elif new_mode == self.MODE_GET_STREAM and self.mode == self.MODE_NORMAL:
r = await self.send_message({"get-stream": None})
raise ConnectionError(
f"Unable to transition to stream mode: Bad response from server {r!r}"
)
self.logger.debug("Mode is now %s", command)
if new_mode == self.mode:
return
self.logger.debug("Transitioning mode %s -> %s", self.mode, new_mode)
# Always transition to normal mode before switching to any other mode
if self.mode != self.MODE_NORMAL:
r = await self._send_wrapper(stream_to_normal)
if r != "ok":
raise ConnectionError("Bad response from server %r" % r)
elif new_mode != self.mode:
raise Exception(
"Undefined mode transition %r -> %r" % (self.mode, new_mode)
)
self.check_invoke_error(r)
raise ConnectionError(
f"Unable to transition to normal mode: Bad response from server {r!r}"
)
self.logger.debug("Mode is now normal")
if new_mode == self.MODE_GET_STREAM:
await normal_to_stream("get-stream")
elif new_mode == self.MODE_EXIST_STREAM:
await normal_to_stream("exists-stream")
elif new_mode != self.MODE_NORMAL:
raise Exception("Undefined mode transition {self.mode!r} -> {new_mode!r}")
self.mode = new_mode
async def get_unihash(self, method, taskhash):
await self._set_mode(self.MODE_GET_STREAM)
r = await self.send_stream("%s %s" % (method, taskhash))
r = await self.send_stream(self.MODE_GET_STREAM, "%s %s" % (method, taskhash))
if not r:
return None
return r
async def report_unihash(self, taskhash, method, outhash, unihash, extra={}):
await self._set_mode(self.MODE_NORMAL)
m = extra.copy()
m["taskhash"] = taskhash
m["method"] = method
m["outhash"] = outhash
m["unihash"] = unihash
return await self.send_message({"report": m})
return await self.invoke({"report": m})
async def report_unihash_equiv(self, taskhash, method, unihash, extra={}):
await self._set_mode(self.MODE_NORMAL)
m = extra.copy()
m["taskhash"] = taskhash
m["method"] = method
m["unihash"] = unihash
return await self.send_message({"report-equiv": m})
return await self.invoke({"report-equiv": m})
async def get_taskhash(self, method, taskhash, all_properties=False):
await self._set_mode(self.MODE_NORMAL)
return await self.send_message(
return await self.invoke(
{"get": {"taskhash": taskhash, "method": method, "all": all_properties}}
)
async def unihash_exists(self, unihash):
r = await self.send_stream(self.MODE_EXIST_STREAM, unihash)
return r == "true"
async def get_outhash(self, method, outhash, taskhash, with_unihash=True):
await self._set_mode(self.MODE_NORMAL)
return await self.send_message(
{"get-outhash": {"outhash": outhash, "taskhash": taskhash, "method": method, "with_unihash": with_unihash}}
return await self.invoke(
{
"get-outhash": {
"outhash": outhash,
"taskhash": taskhash,
"method": method,
"with_unihash": with_unihash,
}
}
)
async def get_stats(self):
await self._set_mode(self.MODE_NORMAL)
return await self.send_message({"get-stats": None})
return await self.invoke({"get-stats": None})
async def reset_stats(self):
await self._set_mode(self.MODE_NORMAL)
return await self.send_message({"reset-stats": None})
return await self.invoke({"reset-stats": None})
async def backfill_wait(self):
await self._set_mode(self.MODE_NORMAL)
return (await self.send_message({"backfill-wait": None}))["tasks"]
return (await self.invoke({"backfill-wait": None}))["tasks"]
async def remove(self, where):
await self._set_mode(self.MODE_NORMAL)
return await self.send_message({"remove": {"where": where}})
return await self.invoke({"remove": {"where": where}})
async def clean_unused(self, max_age):
await self._set_mode(self.MODE_NORMAL)
return await self.send_message({"clean-unused": {"max_age_seconds": max_age}})
return await self.invoke({"clean-unused": {"max_age_seconds": max_age}})
async def auth(self, username, token):
result = await self.invoke({"auth": {"username": username, "token": token}})
self.username = username
self.password = token
self.saved_become_user = None
return result
async def refresh_token(self, username=None):
m = {}
if username:
m["username"] = username
result = await self.invoke({"refresh-token": m})
if (
self.username
and not self.saved_become_user
and result["username"] == self.username
):
self.password = result["token"]
return result
async def set_user_perms(self, username, permissions):
return await self.invoke(
{"set-user-perms": {"username": username, "permissions": permissions}}
)
async def get_user(self, username=None):
m = {}
if username:
m["username"] = username
return await self.invoke({"get-user": m})
async def get_all_users(self):
return (await self.invoke({"get-all-users": {}}))["users"]
async def new_user(self, username, permissions):
return await self.invoke(
{"new-user": {"username": username, "permissions": permissions}}
)
async def delete_user(self, username):
return await self.invoke({"delete-user": {"username": username}})
async def become_user(self, username):
result = await self.invoke({"become-user": {"username": username}})
if username == self.username:
self.saved_become_user = None
else:
self.saved_become_user = username
return result
async def get_db_usage(self):
return (await self.invoke({"get-db-usage": {}}))["usage"]
async def get_db_query_columns(self):
return (await self.invoke({"get-db-query-columns": {}}))["columns"]
async def gc_status(self):
return await self.invoke({"gc-status": {}})
async def gc_mark(self, mark, where):
"""
Starts a new garbage collection operation identified by "mark". If
garbage collection is already in progress with "mark", the collection
is continued.
All unihash entries that match the "where" clause are marked to be
kept. In addition, any new entries added to the database after this
command will be automatically marked with "mark"
"""
return await self.invoke({"gc-mark": {"mark": mark, "where": where}})
async def gc_sweep(self, mark):
"""
Finishes garbage collection for "mark". All unihash entries that have
not been marked will be deleted.
It is recommended to clean unused outhash entries after running this to
cleanup any dangling outhashes
"""
return await self.invoke({"gc-sweep": {"mark": mark}})
class Client(bb.asyncrpc.Client):
def __init__(self):
def __init__(self, username=None, password=None):
self.username = username
self.password = password
super().__init__()
self._add_methods(
"connect_tcp",
"connect_websocket",
"get_unihash",
"report_unihash",
"report_unihash_equiv",
"get_taskhash",
"unihash_exists",
"get_outhash",
"get_stats",
"reset_stats",
"backfill_wait",
"remove",
"clean_unused",
"auth",
"refresh_token",
"set_user_perms",
"get_user",
"get_all_users",
"new_user",
"delete_user",
"become_user",
"get_db_usage",
"get_db_query_columns",
"gc_status",
"gc_mark",
"gc_sweep",
)
def _get_async_client(self):
return AsyncClient()
return AsyncClient(self.username, self.password)
class ClientPool(bb.asyncrpc.ClientPool):
def __init__(
self,
address,
max_clients,
*,
username=None,
password=None,
become=None,
):
super().__init__(max_clients)
self.address = address
self.username = username
self.password = password
self.become = become
async def _new_client(self):
client = await create_async_client(
self.address,
username=self.username,
password=self.password,
)
if self.become:
await client.become_user(self.become)
return client
def _run_key_tasks(self, queries, call):
results = {key: None for key in queries.keys()}
def make_task(key, args):
async def task(client):
nonlocal results
unihash = await call(client, args)
results[key] = unihash
return task
def gen_tasks():
for key, args in queries.items():
yield make_task(key, args)
self.run_tasks(gen_tasks())
return results
def get_unihashes(self, queries):
"""
Query multiple unihashes in parallel.
The queries argument is a dictionary with arbitrary key. The values
must be a tuple of (method, taskhash).
Returns a dictionary with a corresponding key for each input key, and
the value is the queried unihash (which might be none if the query
failed)
"""
async def call(client, args):
method, taskhash = args
return await client.get_unihash(method, taskhash)
return self._run_key_tasks(queries, call)
def unihashes_exist(self, queries):
"""
Query multiple unihash existence checks in parallel.
The queries argument is a dictionary with arbitrary key. The values
must be a unihash.
Returns a dictionary with a corresponding key for each input key, and
the value is True or False if the unihash is known by the server (or
None if there was a failure)
"""
async def call(client, unihash):
return await client.unihash_exists(unihash)
return self._run_key_tasks(queries, call)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,598 @@
#! /usr/bin/env python3
#
# Copyright (C) 2023 Garmin Ltd.
#
# SPDX-License-Identifier: GPL-2.0-only
#
import logging
from datetime import datetime
from . import User
from sqlalchemy.ext.asyncio import create_async_engine
from sqlalchemy.pool import NullPool
from sqlalchemy import (
MetaData,
Column,
Table,
Text,
Integer,
UniqueConstraint,
DateTime,
Index,
select,
insert,
exists,
literal,
and_,
delete,
update,
func,
inspect,
)
import sqlalchemy.engine
from sqlalchemy.orm import declarative_base
from sqlalchemy.exc import IntegrityError
from sqlalchemy.dialects.postgresql import insert as postgres_insert
Base = declarative_base()
class UnihashesV3(Base):
__tablename__ = "unihashes_v3"
id = Column(Integer, primary_key=True, autoincrement=True)
method = Column(Text, nullable=False)
taskhash = Column(Text, nullable=False)
unihash = Column(Text, nullable=False)
gc_mark = Column(Text, nullable=False)
__table_args__ = (
UniqueConstraint("method", "taskhash"),
Index("taskhash_lookup_v4", "method", "taskhash"),
Index("unihash_lookup_v1", "unihash"),
)
class OuthashesV2(Base):
__tablename__ = "outhashes_v2"
id = Column(Integer, primary_key=True, autoincrement=True)
method = Column(Text, nullable=False)
taskhash = Column(Text, nullable=False)
outhash = Column(Text, nullable=False)
created = Column(DateTime)
owner = Column(Text)
PN = Column(Text)
PV = Column(Text)
PR = Column(Text)
task = Column(Text)
outhash_siginfo = Column(Text)
__table_args__ = (
UniqueConstraint("method", "taskhash", "outhash"),
Index("outhash_lookup_v3", "method", "outhash"),
)
class Users(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, autoincrement=True)
username = Column(Text, nullable=False)
token = Column(Text, nullable=False)
permissions = Column(Text)
__table_args__ = (UniqueConstraint("username"),)
class Config(Base):
__tablename__ = "config"
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(Text, nullable=False)
value = Column(Text)
__table_args__ = (
UniqueConstraint("name"),
Index("config_lookup", "name"),
)
#
# Old table versions
#
DeprecatedBase = declarative_base()
class UnihashesV2(DeprecatedBase):
__tablename__ = "unihashes_v2"
id = Column(Integer, primary_key=True, autoincrement=True)
method = Column(Text, nullable=False)
taskhash = Column(Text, nullable=False)
unihash = Column(Text, nullable=False)
__table_args__ = (
UniqueConstraint("method", "taskhash"),
Index("taskhash_lookup_v3", "method", "taskhash"),
)
class DatabaseEngine(object):
def __init__(self, url, username=None, password=None):
self.logger = logging.getLogger("hashserv.sqlalchemy")
self.url = sqlalchemy.engine.make_url(url)
if username is not None:
self.url = self.url.set(username=username)
if password is not None:
self.url = self.url.set(password=password)
async def create(self):
def check_table_exists(conn, name):
return inspect(conn).has_table(name)
self.logger.info("Using database %s", self.url)
if self.url.drivername == 'postgresql+psycopg':
# Psygopg 3 (psygopg) driver can handle async connection pooling
self.engine = create_async_engine(self.url, max_overflow=-1)
else:
self.engine = create_async_engine(self.url, poolclass=NullPool)
async with self.engine.begin() as conn:
# Create tables
self.logger.info("Creating tables...")
await conn.run_sync(Base.metadata.create_all)
if await conn.run_sync(check_table_exists, UnihashesV2.__tablename__):
self.logger.info("Upgrading Unihashes V2 -> V3...")
statement = insert(UnihashesV3).from_select(
["id", "method", "unihash", "taskhash", "gc_mark"],
select(
UnihashesV2.id,
UnihashesV2.method,
UnihashesV2.unihash,
UnihashesV2.taskhash,
literal("").label("gc_mark"),
),
)
self.logger.debug("%s", statement)
await conn.execute(statement)
await conn.run_sync(Base.metadata.drop_all, [UnihashesV2.__table__])
self.logger.info("Upgrade complete")
def connect(self, logger):
return Database(self.engine, logger)
def map_row(row):
if row is None:
return None
return dict(**row._mapping)
def map_user(row):
if row is None:
return None
return User(
username=row.username,
permissions=set(row.permissions.split()),
)
def _make_condition_statement(table, condition):
where = {}
for c in table.__table__.columns:
if c.key in condition and condition[c.key] is not None:
where[c] = condition[c.key]
return [(k == v) for k, v in where.items()]
class Database(object):
def __init__(self, engine, logger):
self.engine = engine
self.db = None
self.logger = logger
async def __aenter__(self):
self.db = await self.engine.connect()
return self
async def __aexit__(self, exc_type, exc_value, traceback):
await self.close()
async def close(self):
await self.db.close()
self.db = None
async def _execute(self, statement):
self.logger.debug("%s", statement)
return await self.db.execute(statement)
async def _set_config(self, name, value):
while True:
result = await self._execute(
update(Config).where(Config.name == name).values(value=value)
)
if result.rowcount == 0:
self.logger.debug("Config '%s' not found. Adding it", name)
try:
await self._execute(insert(Config).values(name=name, value=value))
except IntegrityError:
# Race. Try again
continue
break
def _get_config_subquery(self, name, default=None):
if default is not None:
return func.coalesce(
select(Config.value).where(Config.name == name).scalar_subquery(),
default,
)
return select(Config.value).where(Config.name == name).scalar_subquery()
async def _get_config(self, name):
result = await self._execute(select(Config.value).where(Config.name == name))
row = result.first()
if row is None:
return None
return row.value
async def get_unihash_by_taskhash_full(self, method, taskhash):
async with self.db.begin():
result = await self._execute(
select(
OuthashesV2,
UnihashesV3.unihash.label("unihash"),
)
.join(
UnihashesV3,
and_(
UnihashesV3.method == OuthashesV2.method,
UnihashesV3.taskhash == OuthashesV2.taskhash,
),
)
.where(
OuthashesV2.method == method,
OuthashesV2.taskhash == taskhash,
)
.order_by(
OuthashesV2.created.asc(),
)
.limit(1)
)
return map_row(result.first())
async def get_unihash_by_outhash(self, method, outhash):
async with self.db.begin():
result = await self._execute(
select(OuthashesV2, UnihashesV3.unihash.label("unihash"))
.join(
UnihashesV3,
and_(
UnihashesV3.method == OuthashesV2.method,
UnihashesV3.taskhash == OuthashesV2.taskhash,
),
)
.where(
OuthashesV2.method == method,
OuthashesV2.outhash == outhash,
)
.order_by(
OuthashesV2.created.asc(),
)
.limit(1)
)
return map_row(result.first())
async def unihash_exists(self, unihash):
async with self.db.begin():
result = await self._execute(
select(UnihashesV3).where(UnihashesV3.unihash == unihash).limit(1)
)
return result.first() is not None
async def get_outhash(self, method, outhash):
async with self.db.begin():
result = await self._execute(
select(OuthashesV2)
.where(
OuthashesV2.method == method,
OuthashesV2.outhash == outhash,
)
.order_by(
OuthashesV2.created.asc(),
)
.limit(1)
)
return map_row(result.first())
async def get_equivalent_for_outhash(self, method, outhash, taskhash):
async with self.db.begin():
result = await self._execute(
select(
OuthashesV2.taskhash.label("taskhash"),
UnihashesV3.unihash.label("unihash"),
)
.join(
UnihashesV3,
and_(
UnihashesV3.method == OuthashesV2.method,
UnihashesV3.taskhash == OuthashesV2.taskhash,
),
)
.where(
OuthashesV2.method == method,
OuthashesV2.outhash == outhash,
OuthashesV2.taskhash != taskhash,
)
.order_by(
OuthashesV2.created.asc(),
)
.limit(1)
)
return map_row(result.first())
async def get_equivalent(self, method, taskhash):
async with self.db.begin():
result = await self._execute(
select(
UnihashesV3.unihash,
UnihashesV3.method,
UnihashesV3.taskhash,
).where(
UnihashesV3.method == method,
UnihashesV3.taskhash == taskhash,
)
)
return map_row(result.first())
async def remove(self, condition):
async def do_remove(table):
where = _make_condition_statement(table, condition)
if where:
async with self.db.begin():
result = await self._execute(delete(table).where(*where))
return result.rowcount
return 0
count = 0
count += await do_remove(UnihashesV3)
count += await do_remove(OuthashesV2)
return count
async def get_current_gc_mark(self):
async with self.db.begin():
return await self._get_config("gc-mark")
async def gc_status(self):
async with self.db.begin():
gc_mark_subquery = self._get_config_subquery("gc-mark", "")
result = await self._execute(
select(func.count())
.select_from(UnihashesV3)
.where(UnihashesV3.gc_mark == gc_mark_subquery)
)
keep_rows = result.scalar()
result = await self._execute(
select(func.count())
.select_from(UnihashesV3)
.where(UnihashesV3.gc_mark != gc_mark_subquery)
)
remove_rows = result.scalar()
return (keep_rows, remove_rows, await self._get_config("gc-mark"))
async def gc_mark(self, mark, condition):
async with self.db.begin():
await self._set_config("gc-mark", mark)
where = _make_condition_statement(UnihashesV3, condition)
if not where:
return 0
result = await self._execute(
update(UnihashesV3)
.values(gc_mark=self._get_config_subquery("gc-mark", ""))
.where(*where)
)
return result.rowcount
async def gc_sweep(self):
async with self.db.begin():
result = await self._execute(
delete(UnihashesV3).where(
# A sneaky conditional that provides some errant use
# protection: If the config mark is NULL, this will not
# match any rows because No default is specified in the
# select statement
UnihashesV3.gc_mark
!= self._get_config_subquery("gc-mark")
)
)
await self._set_config("gc-mark", None)
return result.rowcount
async def clean_unused(self, oldest):
async with self.db.begin():
result = await self._execute(
delete(OuthashesV2).where(
OuthashesV2.created < oldest,
~(
select(UnihashesV3.id)
.where(
UnihashesV3.method == OuthashesV2.method,
UnihashesV3.taskhash == OuthashesV2.taskhash,
)
.limit(1)
.exists()
),
)
)
return result.rowcount
async def insert_unihash(self, method, taskhash, unihash):
# Postgres specific ignore on insert duplicate
if self.engine.name == "postgresql":
statement = (
postgres_insert(UnihashesV3)
.values(
method=method,
taskhash=taskhash,
unihash=unihash,
gc_mark=self._get_config_subquery("gc-mark", ""),
)
.on_conflict_do_nothing(index_elements=("method", "taskhash"))
)
else:
statement = insert(UnihashesV3).values(
method=method,
taskhash=taskhash,
unihash=unihash,
gc_mark=self._get_config_subquery("gc-mark", ""),
)
try:
async with self.db.begin():
result = await self._execute(statement)
return result.rowcount != 0
except IntegrityError:
self.logger.debug(
"%s, %s, %s already in unihash database", method, taskhash, unihash
)
return False
async def insert_outhash(self, data):
outhash_columns = set(c.key for c in OuthashesV2.__table__.columns)
data = {k: v for k, v in data.items() if k in outhash_columns}
if "created" in data and not isinstance(data["created"], datetime):
data["created"] = datetime.fromisoformat(data["created"])
# Postgres specific ignore on insert duplicate
if self.engine.name == "postgresql":
statement = (
postgres_insert(OuthashesV2)
.values(**data)
.on_conflict_do_nothing(
index_elements=("method", "taskhash", "outhash")
)
)
else:
statement = insert(OuthashesV2).values(**data)
try:
async with self.db.begin():
result = await self._execute(statement)
return result.rowcount != 0
except IntegrityError:
self.logger.debug(
"%s, %s already in outhash database", data["method"], data["outhash"]
)
return False
async def _get_user(self, username):
async with self.db.begin():
result = await self._execute(
select(
Users.username,
Users.permissions,
Users.token,
).where(
Users.username == username,
)
)
return result.first()
async def lookup_user_token(self, username):
row = await self._get_user(username)
if not row:
return None, None
return map_user(row), row.token
async def lookup_user(self, username):
return map_user(await self._get_user(username))
async def set_user_token(self, username, token):
async with self.db.begin():
result = await self._execute(
update(Users)
.where(
Users.username == username,
)
.values(
token=token,
)
)
return result.rowcount != 0
async def set_user_perms(self, username, permissions):
async with self.db.begin():
result = await self._execute(
update(Users)
.where(Users.username == username)
.values(permissions=" ".join(permissions))
)
return result.rowcount != 0
async def get_all_users(self):
async with self.db.begin():
result = await self._execute(
select(
Users.username,
Users.permissions,
)
)
return [map_user(row) for row in result]
async def new_user(self, username, permissions, token):
try:
async with self.db.begin():
await self._execute(
insert(Users).values(
username=username,
permissions=" ".join(permissions),
token=token,
)
)
return True
except IntegrityError as e:
self.logger.debug("Cannot create new user %s: %s", username, e)
return False
async def delete_user(self, username):
async with self.db.begin():
result = await self._execute(
delete(Users).where(Users.username == username)
)
return result.rowcount != 0
async def get_usage(self):
usage = {}
async with self.db.begin() as session:
for name, table in Base.metadata.tables.items():
result = await self._execute(
statement=select(func.count()).select_from(table)
)
usage[name] = {
"rows": result.scalar(),
}
return usage
async def get_query_columns(self):
columns = set()
for table in (UnihashesV3, OuthashesV2):
for c in table.__table__.columns:
if not isinstance(c.type, Text):
continue
columns.add(c.key)
return list(columns)

View File

@@ -0,0 +1,562 @@
#! /usr/bin/env python3
#
# Copyright (C) 2023 Garmin Ltd.
#
# SPDX-License-Identifier: GPL-2.0-only
#
import sqlite3
import logging
from contextlib import closing
from . import User
logger = logging.getLogger("hashserv.sqlite")
UNIHASH_TABLE_DEFINITION = (
("method", "TEXT NOT NULL", "UNIQUE"),
("taskhash", "TEXT NOT NULL", "UNIQUE"),
("unihash", "TEXT NOT NULL", ""),
("gc_mark", "TEXT NOT NULL", ""),
)
UNIHASH_TABLE_COLUMNS = tuple(name for name, _, _ in UNIHASH_TABLE_DEFINITION)
OUTHASH_TABLE_DEFINITION = (
("method", "TEXT NOT NULL", "UNIQUE"),
("taskhash", "TEXT NOT NULL", "UNIQUE"),
("outhash", "TEXT NOT NULL", "UNIQUE"),
("created", "DATETIME", ""),
# Optional fields
("owner", "TEXT", ""),
("PN", "TEXT", ""),
("PV", "TEXT", ""),
("PR", "TEXT", ""),
("task", "TEXT", ""),
("outhash_siginfo", "TEXT", ""),
)
OUTHASH_TABLE_COLUMNS = tuple(name for name, _, _ in OUTHASH_TABLE_DEFINITION)
USERS_TABLE_DEFINITION = (
("username", "TEXT NOT NULL", "UNIQUE"),
("token", "TEXT NOT NULL", ""),
("permissions", "TEXT NOT NULL", ""),
)
USERS_TABLE_COLUMNS = tuple(name for name, _, _ in USERS_TABLE_DEFINITION)
CONFIG_TABLE_DEFINITION = (
("name", "TEXT NOT NULL", "UNIQUE"),
("value", "TEXT", ""),
)
CONFIG_TABLE_COLUMNS = tuple(name for name, _, _ in CONFIG_TABLE_DEFINITION)
def _make_table(cursor, name, definition):
cursor.execute(
"""
CREATE TABLE IF NOT EXISTS {name} (
id INTEGER PRIMARY KEY AUTOINCREMENT,
{fields}
UNIQUE({unique})
)
""".format(
name=name,
fields=" ".join("%s %s," % (name, typ) for name, typ, _ in definition),
unique=", ".join(
name for name, _, flags in definition if "UNIQUE" in flags
),
)
)
def map_user(row):
if row is None:
return None
return User(
username=row["username"],
permissions=set(row["permissions"].split()),
)
def _make_condition_statement(columns, condition):
where = {}
for c in columns:
if c in condition and condition[c] is not None:
where[c] = condition[c]
return where, " AND ".join("%s=:%s" % (k, k) for k in where.keys())
def _get_sqlite_version(cursor):
cursor.execute("SELECT sqlite_version()")
version = []
for v in cursor.fetchone()[0].split("."):
try:
version.append(int(v))
except ValueError:
version.append(v)
return tuple(version)
def _schema_table_name(version):
if version >= (3, 33):
return "sqlite_schema"
return "sqlite_master"
class DatabaseEngine(object):
def __init__(self, dbname, sync):
self.dbname = dbname
self.logger = logger
self.sync = sync
async def create(self):
db = sqlite3.connect(self.dbname)
db.row_factory = sqlite3.Row
with closing(db.cursor()) as cursor:
_make_table(cursor, "unihashes_v3", UNIHASH_TABLE_DEFINITION)
_make_table(cursor, "outhashes_v2", OUTHASH_TABLE_DEFINITION)
_make_table(cursor, "users", USERS_TABLE_DEFINITION)
_make_table(cursor, "config", CONFIG_TABLE_DEFINITION)
cursor.execute("PRAGMA journal_mode = WAL")
cursor.execute(
"PRAGMA synchronous = %s" % ("NORMAL" if self.sync else "OFF")
)
# Drop old indexes
cursor.execute("DROP INDEX IF EXISTS taskhash_lookup")
cursor.execute("DROP INDEX IF EXISTS outhash_lookup")
cursor.execute("DROP INDEX IF EXISTS taskhash_lookup_v2")
cursor.execute("DROP INDEX IF EXISTS outhash_lookup_v2")
cursor.execute("DROP INDEX IF EXISTS taskhash_lookup_v3")
# TODO: Upgrade from tasks_v2?
cursor.execute("DROP TABLE IF EXISTS tasks_v2")
# Create new indexes
cursor.execute(
"CREATE INDEX IF NOT EXISTS taskhash_lookup_v4 ON unihashes_v3 (method, taskhash)"
)
cursor.execute(
"CREATE INDEX IF NOT EXISTS unihash_lookup_v1 ON unihashes_v3 (unihash)"
)
cursor.execute(
"CREATE INDEX IF NOT EXISTS outhash_lookup_v3 ON outhashes_v2 (method, outhash)"
)
cursor.execute("CREATE INDEX IF NOT EXISTS config_lookup ON config (name)")
sqlite_version = _get_sqlite_version(cursor)
cursor.execute(
f"""
SELECT name FROM {_schema_table_name(sqlite_version)} WHERE type = 'table' AND name = 'unihashes_v2'
"""
)
if cursor.fetchone():
self.logger.info("Upgrading Unihashes V2 -> V3...")
cursor.execute(
"""
INSERT INTO unihashes_v3 (id, method, unihash, taskhash, gc_mark)
SELECT id, method, unihash, taskhash, '' FROM unihashes_v2
"""
)
cursor.execute("DROP TABLE unihashes_v2")
db.commit()
self.logger.info("Upgrade complete")
def connect(self, logger):
return Database(logger, self.dbname, self.sync)
class Database(object):
def __init__(self, logger, dbname, sync):
self.dbname = dbname
self.logger = logger
self.db = sqlite3.connect(self.dbname)
self.db.row_factory = sqlite3.Row
with closing(self.db.cursor()) as cursor:
cursor.execute("PRAGMA journal_mode = WAL")
cursor.execute(
"PRAGMA synchronous = %s" % ("NORMAL" if sync else "OFF")
)
self.sqlite_version = _get_sqlite_version(cursor)
async def __aenter__(self):
return self
async def __aexit__(self, exc_type, exc_value, traceback):
await self.close()
async def _set_config(self, cursor, name, value):
cursor.execute(
"""
INSERT OR REPLACE INTO config (id, name, value) VALUES
((SELECT id FROM config WHERE name=:name), :name, :value)
""",
{
"name": name,
"value": value,
},
)
async def _get_config(self, cursor, name):
cursor.execute(
"SELECT value FROM config WHERE name=:name",
{
"name": name,
},
)
row = cursor.fetchone()
if row is None:
return None
return row["value"]
async def close(self):
self.db.close()
async def get_unihash_by_taskhash_full(self, method, taskhash):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT *, unihashes_v3.unihash AS unihash FROM outhashes_v2
INNER JOIN unihashes_v3 ON unihashes_v3.method=outhashes_v2.method AND unihashes_v3.taskhash=outhashes_v2.taskhash
WHERE outhashes_v2.method=:method AND outhashes_v2.taskhash=:taskhash
ORDER BY outhashes_v2.created ASC
LIMIT 1
""",
{
"method": method,
"taskhash": taskhash,
},
)
return cursor.fetchone()
async def get_unihash_by_outhash(self, method, outhash):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT *, unihashes_v3.unihash AS unihash FROM outhashes_v2
INNER JOIN unihashes_v3 ON unihashes_v3.method=outhashes_v2.method AND unihashes_v3.taskhash=outhashes_v2.taskhash
WHERE outhashes_v2.method=:method AND outhashes_v2.outhash=:outhash
ORDER BY outhashes_v2.created ASC
LIMIT 1
""",
{
"method": method,
"outhash": outhash,
},
)
return cursor.fetchone()
async def unihash_exists(self, unihash):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT * FROM unihashes_v3 WHERE unihash=:unihash
LIMIT 1
""",
{
"unihash": unihash,
},
)
return cursor.fetchone() is not None
async def get_outhash(self, method, outhash):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT * FROM outhashes_v2
WHERE outhashes_v2.method=:method AND outhashes_v2.outhash=:outhash
ORDER BY outhashes_v2.created ASC
LIMIT 1
""",
{
"method": method,
"outhash": outhash,
},
)
return cursor.fetchone()
async def get_equivalent_for_outhash(self, method, outhash, taskhash):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT outhashes_v2.taskhash AS taskhash, unihashes_v3.unihash AS unihash FROM outhashes_v2
INNER JOIN unihashes_v3 ON unihashes_v3.method=outhashes_v2.method AND unihashes_v3.taskhash=outhashes_v2.taskhash
-- Select any matching output hash except the one we just inserted
WHERE outhashes_v2.method=:method AND outhashes_v2.outhash=:outhash AND outhashes_v2.taskhash!=:taskhash
-- Pick the oldest hash
ORDER BY outhashes_v2.created ASC
LIMIT 1
""",
{
"method": method,
"outhash": outhash,
"taskhash": taskhash,
},
)
return cursor.fetchone()
async def get_equivalent(self, method, taskhash):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"SELECT taskhash, method, unihash FROM unihashes_v3 WHERE method=:method AND taskhash=:taskhash",
{
"method": method,
"taskhash": taskhash,
},
)
return cursor.fetchone()
async def remove(self, condition):
def do_remove(columns, table_name, cursor):
where, clause = _make_condition_statement(columns, condition)
if where:
query = f"DELETE FROM {table_name} WHERE {clause}"
cursor.execute(query, where)
return cursor.rowcount
return 0
count = 0
with closing(self.db.cursor()) as cursor:
count += do_remove(OUTHASH_TABLE_COLUMNS, "outhashes_v2", cursor)
count += do_remove(UNIHASH_TABLE_COLUMNS, "unihashes_v3", cursor)
self.db.commit()
return count
async def get_current_gc_mark(self):
with closing(self.db.cursor()) as cursor:
return await self._get_config(cursor, "gc-mark")
async def gc_status(self):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT COUNT() FROM unihashes_v3 WHERE
gc_mark=COALESCE((SELECT value FROM config WHERE name='gc-mark'), '')
"""
)
keep_rows = cursor.fetchone()[0]
cursor.execute(
"""
SELECT COUNT() FROM unihashes_v3 WHERE
gc_mark!=COALESCE((SELECT value FROM config WHERE name='gc-mark'), '')
"""
)
remove_rows = cursor.fetchone()[0]
current_mark = await self._get_config(cursor, "gc-mark")
return (keep_rows, remove_rows, current_mark)
async def gc_mark(self, mark, condition):
with closing(self.db.cursor()) as cursor:
await self._set_config(cursor, "gc-mark", mark)
where, clause = _make_condition_statement(UNIHASH_TABLE_COLUMNS, condition)
new_rows = 0
if where:
cursor.execute(
f"""
UPDATE unihashes_v3 SET
gc_mark=COALESCE((SELECT value FROM config WHERE name='gc-mark'), '')
WHERE {clause}
""",
where,
)
new_rows = cursor.rowcount
self.db.commit()
return new_rows
async def gc_sweep(self):
with closing(self.db.cursor()) as cursor:
# NOTE: COALESCE is not used in this query so that if the current
# mark is NULL, nothing will happen
cursor.execute(
"""
DELETE FROM unihashes_v3 WHERE
gc_mark!=(SELECT value FROM config WHERE name='gc-mark')
"""
)
count = cursor.rowcount
await self._set_config(cursor, "gc-mark", None)
self.db.commit()
return count
async def clean_unused(self, oldest):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
DELETE FROM outhashes_v2 WHERE created<:oldest AND NOT EXISTS (
SELECT unihashes_v3.id FROM unihashes_v3 WHERE unihashes_v3.method=outhashes_v2.method AND unihashes_v3.taskhash=outhashes_v2.taskhash LIMIT 1
)
""",
{
"oldest": oldest,
},
)
self.db.commit()
return cursor.rowcount
async def insert_unihash(self, method, taskhash, unihash):
with closing(self.db.cursor()) as cursor:
prevrowid = cursor.lastrowid
cursor.execute(
"""
INSERT OR IGNORE INTO unihashes_v3 (method, taskhash, unihash, gc_mark) VALUES
(
:method,
:taskhash,
:unihash,
COALESCE((SELECT value FROM config WHERE name='gc-mark'), '')
)
""",
{
"method": method,
"taskhash": taskhash,
"unihash": unihash,
},
)
self.db.commit()
return cursor.lastrowid != prevrowid
async def insert_outhash(self, data):
data = {k: v for k, v in data.items() if k in OUTHASH_TABLE_COLUMNS}
keys = sorted(data.keys())
query = "INSERT OR IGNORE INTO outhashes_v2 ({fields}) VALUES({values})".format(
fields=", ".join(keys),
values=", ".join(":" + k for k in keys),
)
with closing(self.db.cursor()) as cursor:
prevrowid = cursor.lastrowid
cursor.execute(query, data)
self.db.commit()
return cursor.lastrowid != prevrowid
def _get_user(self, username):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
SELECT username, permissions, token FROM users WHERE username=:username
""",
{
"username": username,
},
)
return cursor.fetchone()
async def lookup_user_token(self, username):
row = self._get_user(username)
if row is None:
return None, None
return map_user(row), row["token"]
async def lookup_user(self, username):
return map_user(self._get_user(username))
async def set_user_token(self, username, token):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
UPDATE users SET token=:token WHERE username=:username
""",
{
"username": username,
"token": token,
},
)
self.db.commit()
return cursor.rowcount != 0
async def set_user_perms(self, username, permissions):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
UPDATE users SET permissions=:permissions WHERE username=:username
""",
{
"username": username,
"permissions": " ".join(permissions),
},
)
self.db.commit()
return cursor.rowcount != 0
async def get_all_users(self):
with closing(self.db.cursor()) as cursor:
cursor.execute("SELECT username, permissions FROM users")
return [map_user(r) for r in cursor.fetchall()]
async def new_user(self, username, permissions, token):
with closing(self.db.cursor()) as cursor:
try:
cursor.execute(
"""
INSERT INTO users (username, token, permissions) VALUES (:username, :token, :permissions)
""",
{
"username": username,
"token": token,
"permissions": " ".join(permissions),
},
)
self.db.commit()
return True
except sqlite3.IntegrityError:
return False
async def delete_user(self, username):
with closing(self.db.cursor()) as cursor:
cursor.execute(
"""
DELETE FROM users WHERE username=:username
""",
{
"username": username,
},
)
self.db.commit()
return cursor.rowcount != 0
async def get_usage(self):
usage = {}
with closing(self.db.cursor()) as cursor:
cursor.execute(
f"""
SELECT name FROM {_schema_table_name(self.sqlite_version)} WHERE type = 'table' AND name NOT LIKE 'sqlite_%'
"""
)
for row in cursor.fetchall():
cursor.execute(
"""
SELECT COUNT() FROM %s
"""
% row["name"],
)
usage[row["name"]] = {
"rows": cursor.fetchone()[0],
}
return usage
async def get_query_columns(self):
columns = set()
for name, typ, _ in UNIHASH_TABLE_DEFINITION + OUTHASH_TABLE_DEFINITION:
if typ.startswith("TEXT"):
columns.add(name)
return list(columns)

File diff suppressed because it is too large Load Diff

View File

@@ -178,9 +178,9 @@ class LayerIndex():
'''Load the layerindex.
indexURI - An index to load. (Use multiple calls to load multiple indexes)
reload - If reload is True, then any previously loaded indexes will be forgotten.
load - List of elements to load. Default loads all items.
Note: plugs may ignore this.
@@ -383,7 +383,14 @@ layerBranches set. If not, they are effectively blank.'''
# Get a list of dependencies and then recursively process them
for layerdependency in layerbranch.index.layerDependencies_layerBranchId[layerbranch.id]:
deplayerbranch = layerdependency.dependency_layerBranch
try:
deplayerbranch = layerdependency.dependency_layerBranch
except AttributeError as e:
logger.error('LayerBranch does not exist for dependent layer {}:{}\n' \
' Cannot continue successfully.\n' \
' You might be able to resolve this by checking out the layer locally.\n' \
' Consider reaching out the to the layer maintainers or the layerindex admins' \
.format(layerdependency.dependency.name, layerbranch.branch.name))
if ignores and deplayerbranch.layer.name in ignores:
continue
@@ -846,7 +853,7 @@ class LayerIndexObj():
continue
for layerdependency in layerbranch.index.layerDependencies_layerBranchId[layerbranch.id]:
deplayerbranch = layerdependency.dependency_layerBranch
deplayerbranch = layerdependency.dependency_layerBranch or None
if ignores and deplayerbranch.layer.name in ignores:
continue

View File

@@ -253,7 +253,7 @@ class ProgressBar(object):
if (self.maxval is not UnknownLength
and not 0 <= value <= self.maxval):
raise ValueError('Value out of range')
self.maxval = value
self.currval = value

View File

@@ -7,13 +7,13 @@
__version__ = "1.0.0"
import os, time
import sys,logging
import sys, logging
def init_logger(logfile, loglevel):
numeric_level = getattr(logging, loglevel.upper(), None)
if not isinstance(numeric_level, int):
raise ValueError('Invalid log level: %s' % loglevel)
FORMAT = '%(asctime)-15s %(message)s'
raise ValueError("Invalid log level: %s" % loglevel)
FORMAT = "%(asctime)-15s %(message)s"
logging.basicConfig(level=numeric_level, filename=logfile, format=FORMAT)
class NotFoundError(Exception):

View File

@@ -11,40 +11,61 @@ logger = logging.getLogger("BitBake.PRserv")
class PRAsyncClient(bb.asyncrpc.AsyncClient):
def __init__(self):
super().__init__('PRSERVICE', '1.0', logger)
super().__init__("PRSERVICE", "1.0", logger)
async def getPR(self, version, pkgarch, checksum):
response = await self.send_message(
{'get-pr': {'version': version, 'pkgarch': pkgarch, 'checksum': checksum}}
response = await self.invoke(
{"get-pr": {"version": version, "pkgarch": pkgarch, "checksum": checksum}}
)
if response:
return response['value']
return response["value"]
async def test_pr(self, version, pkgarch, checksum):
response = await self.invoke(
{"test-pr": {"version": version, "pkgarch": pkgarch, "checksum": checksum}}
)
if response:
return response["value"]
async def test_package(self, version, pkgarch):
response = await self.invoke(
{"test-package": {"version": version, "pkgarch": pkgarch}}
)
if response:
return response["value"]
async def max_package_pr(self, version, pkgarch):
response = await self.invoke(
{"max-package-pr": {"version": version, "pkgarch": pkgarch}}
)
if response:
return response["value"]
async def importone(self, version, pkgarch, checksum, value):
response = await self.send_message(
{'import-one': {'version': version, 'pkgarch': pkgarch, 'checksum': checksum, 'value': value}}
response = await self.invoke(
{"import-one": {"version": version, "pkgarch": pkgarch, "checksum": checksum, "value": value}}
)
if response:
return response['value']
return response["value"]
async def export(self, version, pkgarch, checksum, colinfo):
response = await self.send_message(
{'export': {'version': version, 'pkgarch': pkgarch, 'checksum': checksum, 'colinfo': colinfo}}
response = await self.invoke(
{"export": {"version": version, "pkgarch": pkgarch, "checksum": checksum, "colinfo": colinfo}}
)
if response:
return (response['metainfo'], response['datainfo'])
return (response["metainfo"], response["datainfo"])
async def is_readonly(self):
response = await self.send_message(
{'is-readonly': {}}
response = await self.invoke(
{"is-readonly": {}}
)
if response:
return response['readonly']
return response["readonly"]
class PRClient(bb.asyncrpc.Client):
def __init__(self):
super().__init__()
self._add_methods('getPR', 'importone', 'export', 'is_readonly')
self._add_methods("getPR", "test_pr", "test_package", "importone", "export", "is_readonly")
def _get_async_client(self):
return PRAsyncClient()

View File

@@ -38,9 +38,9 @@ class PRTable(object):
self.read_only = read_only
self.dirty = False
if nohist:
self.table = "%s_nohist" % table
self.table = "%s_nohist" % table
else:
self.table = "%s_hist" % table
self.table = "%s_hist" % table
if self.read_only:
table_exists = self._execute(
@@ -64,7 +64,7 @@ class PRTable(object):
try:
return self.conn.execute(*query)
except sqlite3.OperationalError as exc:
if 'is locked' in str(exc) and end > time.time():
if "is locked" in str(exc) and end > time.time():
continue
raise exc
@@ -78,7 +78,53 @@ class PRTable(object):
self.sync()
self.dirty = False
def _getValueHist(self, version, pkgarch, checksum):
def test_package(self, version, pkgarch):
"""Returns whether the specified package version is found in the database for the specified architecture"""
# Just returns the value if found or None otherwise
data=self._execute("SELECT value FROM %s WHERE version=? AND pkgarch=?;" % self.table,
(version, pkgarch))
row=data.fetchone()
if row is not None:
return True
else:
return False
def test_value(self, version, pkgarch, value):
"""Returns whether the specified value is found in the database for the specified package and architecture"""
# Just returns the value if found or None otherwise
data=self._execute("SELECT value FROM %s WHERE version=? AND pkgarch=? and value=?;" % self.table,
(version, pkgarch, value))
row=data.fetchone()
if row is not None:
return True
else:
return False
def find_value(self, version, pkgarch, checksum):
"""Returns the value for the specified checksum if found or None otherwise."""
data=self._execute("SELECT value FROM %s WHERE version=? AND pkgarch=? AND checksum=?;" % self.table,
(version, pkgarch, checksum))
row=data.fetchone()
if row is not None:
return row[0]
else:
return None
def find_max_value(self, version, pkgarch):
"""Returns the greatest value for (version, pkgarch), or None if not found. Doesn't create a new value"""
data = self._execute("SELECT max(value) FROM %s where version=? AND pkgarch=?;" % (self.table),
(version, pkgarch))
row = data.fetchone()
if row is not None:
return row[0]
else:
return None
def _get_value_hist(self, version, pkgarch, checksum):
data=self._execute("SELECT value FROM %s WHERE version=? AND pkgarch=? AND checksum=?;" % self.table,
(version, pkgarch, checksum))
row=data.fetchone()
@@ -87,7 +133,7 @@ class PRTable(object):
else:
#no value found, try to insert
if self.read_only:
data = self._execute("SELECT ifnull(max(value)+1,0) FROM %s where version=? AND pkgarch=?;" % (self.table),
data = self._execute("SELECT ifnull(max(value)+1, 0) FROM %s where version=? AND pkgarch=?;" % (self.table),
(version, pkgarch))
row = data.fetchone()
if row is not None:
@@ -96,9 +142,9 @@ class PRTable(object):
return 0
try:
self._execute("INSERT INTO %s VALUES (?, ?, ?, (select ifnull(max(value)+1,0) from %s where version=? AND pkgarch=?));"
% (self.table,self.table),
(version,pkgarch, checksum,version, pkgarch))
self._execute("INSERT INTO %s VALUES (?, ?, ?, (select ifnull(max(value)+1, 0) from %s where version=? AND pkgarch=?));"
% (self.table, self.table),
(version, pkgarch, checksum, version, pkgarch))
except sqlite3.IntegrityError as exc:
logger.error(str(exc))
@@ -112,10 +158,10 @@ class PRTable(object):
else:
raise prserv.NotFoundError
def _getValueNohist(self, version, pkgarch, checksum):
def _get_value_no_hist(self, version, pkgarch, checksum):
data=self._execute("SELECT value FROM %s \
WHERE version=? AND pkgarch=? AND checksum=? AND \
value >= (select max(value) from %s where version=? AND pkgarch=?);"
value >= (select max(value) from %s where version=? AND pkgarch=?);"
% (self.table, self.table),
(version, pkgarch, checksum, version, pkgarch))
row=data.fetchone()
@@ -124,17 +170,13 @@ class PRTable(object):
else:
#no value found, try to insert
if self.read_only:
data = self._execute("SELECT ifnull(max(value)+1,0) FROM %s where version=? AND pkgarch=?;" % (self.table),
data = self._execute("SELECT ifnull(max(value)+1, 0) FROM %s where version=? AND pkgarch=?;" % (self.table),
(version, pkgarch))
row = data.fetchone()
if row is not None:
return row[0]
else:
return 0
return data.fetchone()[0]
try:
self._execute("INSERT OR REPLACE INTO %s VALUES (?, ?, ?, (select ifnull(max(value)+1,0) from %s where version=? AND pkgarch=?));"
% (self.table,self.table),
self._execute("INSERT OR REPLACE INTO %s VALUES (?, ?, ?, (select ifnull(max(value)+1, 0) from %s where version=? AND pkgarch=?));"
% (self.table, self.table),
(version, pkgarch, checksum, version, pkgarch))
except sqlite3.IntegrityError as exc:
logger.error(str(exc))
@@ -150,17 +192,17 @@ class PRTable(object):
else:
raise prserv.NotFoundError
def getValue(self, version, pkgarch, checksum):
def get_value(self, version, pkgarch, checksum):
if self.nohist:
return self._getValueNohist(version, pkgarch, checksum)
return self._get_value_no_hist(version, pkgarch, checksum)
else:
return self._getValueHist(version, pkgarch, checksum)
return self._get_value_hist(version, pkgarch, checksum)
def _importHist(self, version, pkgarch, checksum, value):
def _import_hist(self, version, pkgarch, checksum, value):
if self.read_only:
return None
val = None
val = None
data = self._execute("SELECT value FROM %s WHERE version=? AND pkgarch=? AND checksum=?;" % self.table,
(version, pkgarch, checksum))
row = data.fetchone()
@@ -183,27 +225,27 @@ class PRTable(object):
val = row[0]
return val
def _importNohist(self, version, pkgarch, checksum, value):
def _import_no_hist(self, version, pkgarch, checksum, value):
if self.read_only:
return None
try:
#try to insert
self._execute("INSERT INTO %s VALUES (?, ?, ?, ?);" % (self.table),
(version, pkgarch, checksum,value))
(version, pkgarch, checksum, value))
except sqlite3.IntegrityError as exc:
#already have the record, try to update
try:
self._execute("UPDATE %s SET value=? WHERE version=? AND pkgarch=? AND checksum=? AND value<?"
self._execute("UPDATE %s SET value=? WHERE version=? AND pkgarch=? AND checksum=? AND value<?"
% (self.table),
(value,version,pkgarch,checksum,value))
(value, version, pkgarch, checksum, value))
except sqlite3.IntegrityError as exc:
logger.error(str(exc))
self.dirty = True
data = self._execute("SELECT value FROM %s WHERE version=? AND pkgarch=? AND checksum=? AND value>=?;" % self.table,
(version,pkgarch,checksum,value))
(version, pkgarch, checksum, value))
row=data.fetchone()
if row is not None:
return row[0]
@@ -212,33 +254,33 @@ class PRTable(object):
def importone(self, version, pkgarch, checksum, value):
if self.nohist:
return self._importNohist(version, pkgarch, checksum, value)
return self._import_no_hist(version, pkgarch, checksum, value)
else:
return self._importHist(version, pkgarch, checksum, value)
return self._import_hist(version, pkgarch, checksum, value)
def export(self, version, pkgarch, checksum, colinfo):
metainfo = {}
#column info
#column info
if colinfo:
metainfo['tbl_name'] = self.table
metainfo['core_ver'] = prserv.__version__
metainfo['col_info'] = []
metainfo["tbl_name"] = self.table
metainfo["core_ver"] = prserv.__version__
metainfo["col_info"] = []
data = self._execute("PRAGMA table_info(%s);" % self.table)
for row in data:
col = {}
col['name'] = row['name']
col['type'] = row['type']
col['notnull'] = row['notnull']
col['dflt_value'] = row['dflt_value']
col['pk'] = row['pk']
metainfo['col_info'].append(col)
col["name"] = row["name"]
col["type"] = row["type"]
col["notnull"] = row["notnull"]
col["dflt_value"] = row["dflt_value"]
col["pk"] = row["pk"]
metainfo["col_info"].append(col)
#data info
datainfo = []
if self.nohist:
sqlstmt = "SELECT T1.version, T1.pkgarch, T1.checksum, T1.value FROM %s as T1, \
(SELECT version,pkgarch,max(value) as maxvalue FROM %s GROUP BY version,pkgarch) as T2 \
(SELECT version, pkgarch, max(value) as maxvalue FROM %s GROUP BY version, pkgarch) as T2 \
WHERE T1.version=T2.version AND T1.pkgarch=T2.pkgarch AND T1.value=T2.maxvalue " % (self.table, self.table)
else:
sqlstmt = "SELECT * FROM %s as T1 WHERE 1=1 " % self.table
@@ -261,12 +303,12 @@ class PRTable(object):
else:
data = self._execute(sqlstmt)
for row in data:
if row['version']:
if row["version"]:
col = {}
col['version'] = row['version']
col['pkgarch'] = row['pkgarch']
col['checksum'] = row['checksum']
col['value'] = row['value']
col["version"] = row["version"]
col["pkgarch"] = row["pkgarch"]
col["checksum"] = row["checksum"]
col["value"] = row["value"]
datainfo.append(col)
return (metainfo, datainfo)
@@ -275,7 +317,7 @@ class PRTable(object):
for line in self.conn.iterdump():
writeCount = writeCount + len(line) + 1
fd.write(line)
fd.write('\n')
fd.write("\n")
return writeCount
class PRData(object):
@@ -302,7 +344,7 @@ class PRData(object):
def disconnect(self):
self.connection.close()
def __getitem__(self,tblname):
def __getitem__(self, tblname):
if not isinstance(tblname, str):
raise TypeError("tblname argument must be a string, not '%s'" %
type(tblname))
@@ -316,4 +358,4 @@ class PRData(object):
if tblname in self._tables:
del self._tables[tblname]
logger.info("drop table %s" % (tblname))
self.connection.execute("DROP TABLE IF EXISTS %s;" % tblname)
self.connection.execute("DROP TABLE IF EXISTS %s;" % tblname)

View File

@@ -20,77 +20,101 @@ PIDPREFIX = "/tmp/PRServer_%s_%s.pid"
singleton = None
class PRServerClient(bb.asyncrpc.AsyncServerConnection):
def __init__(self, reader, writer, table, read_only):
super().__init__(reader, writer, 'PRSERVICE', logger)
def __init__(self, socket, server):
super().__init__(socket, "PRSERVICE", server.logger)
self.server = server
self.handlers.update({
'get-pr': self.handle_get_pr,
'import-one': self.handle_import_one,
'export': self.handle_export,
'is-readonly': self.handle_is_readonly,
"get-pr": self.handle_get_pr,
"test-pr": self.handle_test_pr,
"test-package": self.handle_test_package,
"max-package-pr": self.handle_max_package_pr,
"import-one": self.handle_import_one,
"export": self.handle_export,
"is-readonly": self.handle_is_readonly,
})
self.table = table
self.read_only = read_only
def validate_proto_version(self):
return (self.proto_version == (1, 0))
async def dispatch_message(self, msg):
try:
await super().dispatch_message(msg)
return await super().dispatch_message(msg)
except:
self.table.sync()
self.server.table.sync()
raise
else:
self.server.table.sync_if_dirty()
self.table.sync_if_dirty()
async def handle_test_pr(self, request):
'''Finds the PR value corresponding to the request. If not found, returns None and doesn't insert a new value'''
version = request["version"]
pkgarch = request["pkgarch"]
checksum = request["checksum"]
value = self.server.table.find_value(version, pkgarch, checksum)
return {"value": value}
async def handle_test_package(self, request):
'''Tells whether there are entries for (version, pkgarch) in the db. Returns True or False'''
version = request["version"]
pkgarch = request["pkgarch"]
value = self.server.table.test_package(version, pkgarch)
return {"value": value}
async def handle_max_package_pr(self, request):
'''Finds the greatest PR value for (version, pkgarch) in the db. Returns None if no entry was found'''
version = request["version"]
pkgarch = request["pkgarch"]
value = self.server.table.find_max_value(version, pkgarch)
return {"value": value}
async def handle_get_pr(self, request):
version = request['version']
pkgarch = request['pkgarch']
checksum = request['checksum']
version = request["version"]
pkgarch = request["pkgarch"]
checksum = request["checksum"]
response = None
try:
value = self.table.getValue(version, pkgarch, checksum)
response = {'value': value}
value = self.server.table.get_value(version, pkgarch, checksum)
response = {"value": value}
except prserv.NotFoundError:
logger.error("can not find value for (%s, %s)",version, checksum)
except sqlite3.Error as exc:
logger.error(str(exc))
self.logger.error("failure storing value in database for (%s, %s)",version, checksum)
self.write_message(response)
return response
async def handle_import_one(self, request):
response = None
if not self.read_only:
version = request['version']
pkgarch = request['pkgarch']
checksum = request['checksum']
value = request['value']
if not self.server.read_only:
version = request["version"]
pkgarch = request["pkgarch"]
checksum = request["checksum"]
value = request["value"]
value = self.table.importone(version, pkgarch, checksum, value)
value = self.server.table.importone(version, pkgarch, checksum, value)
if value is not None:
response = {'value': value}
response = {"value": value}
self.write_message(response)
return response
async def handle_export(self, request):
version = request['version']
pkgarch = request['pkgarch']
checksum = request['checksum']
colinfo = request['colinfo']
version = request["version"]
pkgarch = request["pkgarch"]
checksum = request["checksum"]
colinfo = request["colinfo"]
try:
(metainfo, datainfo) = self.table.export(version, pkgarch, checksum, colinfo)
(metainfo, datainfo) = self.server.table.export(version, pkgarch, checksum, colinfo)
except sqlite3.Error as exc:
logger.error(str(exc))
self.logger.error(str(exc))
metainfo = datainfo = None
response = {'metainfo': metainfo, 'datainfo': datainfo}
self.write_message(response)
return {"metainfo": metainfo, "datainfo": datainfo}
async def handle_is_readonly(self, request):
response = {'readonly': self.read_only}
self.write_message(response)
return {"readonly": self.server.read_only}
class PRServer(bb.asyncrpc.AsyncServer):
def __init__(self, dbfile, read_only=False):
@@ -99,20 +123,23 @@ class PRServer(bb.asyncrpc.AsyncServer):
self.table = None
self.read_only = read_only
def accept_client(self, reader, writer):
return PRServerClient(reader, writer, self.table, self.read_only)
def accept_client(self, socket):
return PRServerClient(socket, self)
def _serve_forever(self):
def start(self):
tasks = super().start()
self.db = prserv.db.PRData(self.dbfile, read_only=self.read_only)
self.table = self.db["PRMAIN"]
logger.info("Started PRServer with DBfile: %s, Address: %s, PID: %s" %
self.logger.info("Started PRServer with DBfile: %s, Address: %s, PID: %s" %
(self.dbfile, self.address, str(os.getpid())))
super()._serve_forever()
return tasks
async def stop(self):
self.table.sync_if_dirty()
self.db.disconnect()
await super().stop()
def signal_handler(self):
super().signal_handler()
@@ -129,12 +156,12 @@ class PRServSingleton(object):
def start(self):
self.prserv = PRServer(self.dbfile)
self.prserv.start_tcp_server(socket.gethostbyname(self.host), self.port)
self.process = self.prserv.serve_as_process()
self.process = self.prserv.serve_as_process(log_level=logging.WARNING)
if not self.prserv.address:
raise PRServiceConfigError
if not self.port:
self.port = int(self.prserv.address.rsplit(':', 1)[1])
self.port = int(self.prserv.address.rsplit(":", 1)[1])
def run_as_daemon(func, pidfile, logfile):
"""
@@ -170,18 +197,18 @@ def run_as_daemon(func, pidfile, logfile):
# stdout/stderr or it could be 'real' unix fd forking where we need
# to physically close the fds to prevent the program launching us from
# potentially hanging on a pipe. Handle both cases.
si = open('/dev/null', 'r')
si = open("/dev/null", "r")
try:
os.dup2(si.fileno(),sys.stdin.fileno())
os.dup2(si.fileno(), sys.stdin.fileno())
except (AttributeError, io.UnsupportedOperation):
sys.stdin = si
so = open(logfile, 'a+')
so = open(logfile, "a+")
try:
os.dup2(so.fileno(),sys.stdout.fileno())
os.dup2(so.fileno(), sys.stdout.fileno())
except (AttributeError, io.UnsupportedOperation):
sys.stdout = so
try:
os.dup2(so.fileno(),sys.stderr.fileno())
os.dup2(so.fileno(), sys.stderr.fileno())
except (AttributeError, io.UnsupportedOperation):
sys.stderr = so
@@ -199,7 +226,7 @@ def run_as_daemon(func, pidfile, logfile):
# write pidfile
pid = str(os.getpid())
with open(pidfile, 'w') as pf:
with open(pidfile, "w") as pf:
pf.write("%s\n" % pid)
func()
@@ -244,15 +271,15 @@ def stop_daemon(host, port):
# so at least advise the user which ports the corresponding server is listening
ports = []
portstr = ""
for pf in glob.glob(PIDPREFIX % (ip,'*')):
for pf in glob.glob(PIDPREFIX % (ip, "*")):
bn = os.path.basename(pf)
root, _ = os.path.splitext(bn)
ports.append(root.split('_')[-1])
ports.append(root.split("_")[-1])
if len(ports):
portstr = "Wrong port? Other ports listening at %s: %s" % (host, ' '.join(ports))
portstr = "Wrong port? Other ports listening at %s: %s" % (host, " ".join(ports))
sys.stderr.write("pidfile %s does not exist. Daemon not running? %s\n"
% (pidfile,portstr))
% (pidfile, portstr))
return 1
try:
@@ -261,8 +288,11 @@ def stop_daemon(host, port):
os.kill(pid, signal.SIGTERM)
time.sleep(0.1)
if os.path.exists(pidfile):
try:
os.remove(pidfile)
except FileNotFoundError:
# The PID file might have been removed by the exiting process
pass
except OSError as e:
err = str(e)
@@ -280,7 +310,7 @@ def is_running(pid):
return True
def is_local_special(host, port):
if (host == 'localhost' or host == '127.0.0.1') and not port:
if (host == "localhost" or host == "127.0.0.1") and not port:
return True
else:
return False
@@ -291,7 +321,7 @@ class PRServiceConfigError(Exception):
def auto_start(d):
global singleton
host_params = list(filter(None, (d.getVar('PRSERV_HOST') or '').split(':')))
host_params = list(filter(None, (d.getVar("PRSERV_HOST") or "").split(":")))
if not host_params:
# Shutdown any existing PR Server
auto_shutdown()
@@ -300,7 +330,7 @@ def auto_start(d):
if len(host_params) != 2:
# Shutdown any existing PR Server
auto_shutdown()
logger.critical('\n'.join(['PRSERV_HOST: incorrect format',
logger.critical("\n".join(["PRSERV_HOST: incorrect format",
'Usage: PRSERV_HOST = "<hostname>:<port>"']))
raise PRServiceConfigError
@@ -353,8 +383,8 @@ def connect(host, port):
global singleton
if host.strip().lower() == 'localhost' and not port:
host = 'localhost'
if host.strip().lower() == "localhost" and not port:
host = "localhost"
port = singleton.port
conn = client.PRClient()

View File

@@ -12,7 +12,7 @@
</object>
<object model="orm.toastersetting" pk="4">
<field type="CharField" name="name">DEFCONF_MACHINE</field>
<field type="CharField" name="value">qemux86</field>
<field type="CharField" name="value">qemux86-64</field>
</object>
<object model="orm.toastersetting" pk="5">
<field type="CharField" name="name">DEFCONF_SSTATE_DIR</field>

View File

@@ -0,0 +1,22 @@
# Generated by Django 4.2.5 on 2023-11-23 18:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orm', '0020_models_bigautofield'),
]
operations = [
migrations.CreateModel(
name='EventLogsImports',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('imported', models.BooleanField(default=False)),
('build_id', models.IntegerField(blank=True, null=True)),
],
),
]

View File

@@ -1389,9 +1389,6 @@ class Machine(models.Model):
return "Machine " + self.name + "(" + self.description + ")"
class BitbakeVersion(models.Model):
name = models.CharField(max_length=32, unique = True)
@@ -1853,6 +1850,8 @@ def signal_runbuilds():
os.kill(int(pidf.read()), SIGUSR1)
except FileNotFoundError:
logger.info("Stopping existing runbuilds: no current process found")
except ProcessLookupError:
logger.warning("Stopping existing runbuilds: process lookup not found")
class Distro(models.Model):
search_allowed_fields = ["name", "description", "layer_version__layer__name"]
@@ -1869,6 +1868,15 @@ class Distro(models.Model):
def __unicode__(self):
return "Distro " + self.name + "(" + self.description + ")"
class EventLogsImports(models.Model):
name = models.CharField(max_length=255)
imported = models.BooleanField(default=False)
build_id = models.IntegerField(blank=True, null=True)
def __str__(self):
return self.name
django.db.models.signals.post_save.connect(invalidate_cache)
django.db.models.signals.post_delete.connect(invalidate_cache)
django.db.models.signals.m2m_changed.connect(invalidate_cache)

View File

@@ -0,0 +1,16 @@
# -- FILE: pytest.ini (or tox.ini)
[pytest]
# --create-db - force re creation of the test database
# https://pytest-django.readthedocs.io/en/latest/database.html#create-db-force-re-creation-of-the-test-database
# --html=report.html --self-contained-html
# https://docs.pytest.org/en/latest/usage.html#creating-html-reports
# https://pytest-html.readthedocs.io/en/latest/user_guide.html#creating-a-self-contained-report
addopts = --create-db --html="Toaster Tests Report.html" --self-contained-html
# Define environment variables using pytest-env
# A pytest plugin that enables you to set environment variables in the pytest.ini file.
# https://pypi.org/project/pytest-env/
env =
TOASTER_BUILDSERVER=1
DJANGO_SETTINGS_MODULE=toastermain.settings_test

View File

@@ -19,12 +19,15 @@ import os
import time
import unittest
import pytest
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.common.exceptions import NoSuchElementException, \
StaleElementReferenceException, TimeoutException
StaleElementReferenceException, TimeoutException, \
SessionNotCreatedException
def create_selenium_driver(cls,browser='chrome'):
# set default browser string based on env (if available)
@@ -33,7 +36,32 @@ def create_selenium_driver(cls,browser='chrome'):
browser = env_browser
if browser == 'chrome':
return webdriver.Chrome()
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--disable-infobars')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--no-sandbox')
options.add_argument('--remote-debugging-port=9222')
try:
return webdriver.Chrome(options=options)
except SessionNotCreatedException as e:
exit_message = "Halting tests prematurely to avoid cascading errors."
# check if chrome / chromedriver exists
chrome_path = os.popen("find ~/.cache/selenium/chrome/ -name 'chrome' -type f -print -quit").read().strip()
if not chrome_path:
pytest.exit(f"Failed to install/find chrome.\n{exit_message}")
chromedriver_path = os.popen("find ~/.cache/selenium/chromedriver/ -name 'chromedriver' -type f -print -quit").read().strip()
if not chromedriver_path:
pytest.exit(f"Failed to install/find chromedriver.\n{exit_message}")
# check if depends on each are fulfilled
depends_chrome = os.popen(f"ldd {chrome_path} | grep 'not found'").read().strip()
if depends_chrome:
pytest.exit(f"Missing chrome dependencies.\n{depends_chrome}\n{exit_message}")
depends_chromedriver = os.popen(f"ldd {chromedriver_path} | grep 'not found'").read().strip()
if depends_chromedriver:
pytest.exit(f"Missing chromedriver dependencies.\n{depends_chromedriver}\n{exit_message}")
# print original error otherwise
pytest.exit(f"Failed to start chromedriver.\n{e}\n{exit_message}")
elif browser == 'firefox':
return webdriver.Firefox()
elif browser == 'marionette':
@@ -65,7 +93,9 @@ class Wait(WebDriverWait):
_TIMEOUT = 10
_POLL_FREQUENCY = 0.5
def __init__(self, driver):
def __init__(self, driver, timeout=_TIMEOUT, poll=_POLL_FREQUENCY):
self._TIMEOUT = timeout
self._POLL_FREQUENCY = poll
super(Wait, self).__init__(driver, self._TIMEOUT, self._POLL_FREQUENCY)
def until(self, method, message=''):
@@ -137,6 +167,8 @@ class SeleniumTestCaseBase(unittest.TestCase):
""" Clean up webdriver driver """
cls.driver.quit()
# Allow driver resources to be properly freed before proceeding with further tests
time.sleep(5)
super(SeleniumTestCaseBase, cls).tearDownClass()
def get(self, url):
@@ -150,6 +182,13 @@ class SeleniumTestCaseBase(unittest.TestCase):
abs_url = '%s%s' % (self.live_server_url, url)
self.driver.get(abs_url)
try: # Ensure page is loaded before proceeding
self.wait_until_visible("#global-nav", poll=3)
except NoSuchElementException:
self.driver.implicitly_wait(3)
except TimeoutException:
self.driver.implicitly_wait(3)
def find(self, selector):
""" Find single element by CSS selector """
return self.driver.find_element(By.CSS_SELECTOR, selector)
@@ -169,18 +208,34 @@ class SeleniumTestCaseBase(unittest.TestCase):
""" Return the element which currently has focus on the page """
return self.driver.switch_to.active_element
def wait_until_present(self, selector):
def wait_until_present(self, selector, poll=0.5):
""" Wait until element matching CSS selector is on the page """
is_present = lambda driver: self.find(selector)
msg = 'An element matching "%s" should be on the page' % selector
element = Wait(self.driver).until(is_present, msg)
element = Wait(self.driver, poll=poll).until(is_present, msg)
if poll > 2:
time.sleep(poll) # element need more delay to be present
return element
def wait_until_visible(self, selector):
def wait_until_visible(self, selector, poll=1):
""" Wait until element matching CSS selector is visible on the page """
is_visible = lambda driver: self.find(selector).is_displayed()
msg = 'An element matching "%s" should be visible' % selector
Wait(self.driver).until(is_visible, msg)
Wait(self.driver, poll=poll).until(is_visible, msg)
time.sleep(poll) # wait for visibility to settle
return self.find(selector)
def wait_until_clickable(self, selector, poll=1):
""" Wait until element matching CSS selector is visible on the page """
WebDriverWait(
self.driver,
Wait._TIMEOUT,
poll_frequency=poll
).until(
EC.element_to_be_clickable((By.ID, selector.removeprefix('#')
)
)
)
return self.find(selector)
def wait_until_focused(self, selector):

View File

@@ -7,13 +7,16 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import re, time
import os
import re
from django.urls import reverse
from selenium.webdriver.support.select import Select
from django.utils import timezone
from bldcontrol.models import BuildRequest
from tests.browser.selenium_helpers import SeleniumTestCase
from orm.models import BitbakeVersion, Release, Project, Build, Target
from orm.models import BitbakeVersion, Layer, Layer_Version, Recipe, Release, Project, Build, Target, Task
from selenium.webdriver.common.by import By
@@ -25,7 +28,8 @@ class TestAllBuildsPage(SeleniumTestCase):
CLI_BUILDS_PROJECT_NAME = 'command line builds'
def setUp(self):
bbv = BitbakeVersion.objects.create(name='bbv1', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='bbv1', giturl=f'{builldir}/',
branch='master', dirpath='')
release = Release.objects.create(name='release1',
bitbake_version=bbv)
@@ -71,7 +75,7 @@ class TestAllBuildsPage(SeleniumTestCase):
'[data-role="data-recent-build-buildtime-field"]' % build.id
# because this loads via Ajax, wait for it to be visible
self.wait_until_present(selector)
self.wait_until_visible(selector)
build_time_spans = self.find_all(selector)
@@ -81,7 +85,7 @@ class TestAllBuildsPage(SeleniumTestCase):
def _get_row_for_build(self, build):
""" Get the table row for the build from the all builds table """
self.wait_until_present('#allbuildstable')
self.wait_until_visible('#allbuildstable')
rows = self.find_all('#allbuildstable tr')
@@ -102,6 +106,66 @@ class TestAllBuildsPage(SeleniumTestCase):
return found_row
def _get_create_builds(self, **kwargs):
""" Create a build and return the build object """
build1 = Build.objects.create(**self.project1_build_success)
build2 = Build.objects.create(**self.project1_build_failure)
# add some targets to these builds so they have recipe links
# (and so we can find the row in the ToasterTable corresponding to
# a particular build)
Target.objects.create(build=build1, target='foo')
Target.objects.create(build=build2, target='bar')
if kwargs:
# Create kwargs.get('success') builds with success status with target
# and kwargs.get('failure') builds with failure status with target
for i in range(kwargs.get('success', 0)):
now = timezone.now()
self.project1_build_success['started_on'] = now
self.project1_build_success[
'completed_on'] = now - timezone.timedelta(days=i)
build = Build.objects.create(**self.project1_build_success)
Target.objects.create(build=build,
target=f'{i}_success_recipe',
task=f'{i}_success_task')
self._set_buildRequest_and_task_on_build(build)
for i in range(kwargs.get('failure', 0)):
now = timezone.now()
self.project1_build_failure['started_on'] = now
self.project1_build_failure[
'completed_on'] = now - timezone.timedelta(days=i)
build = Build.objects.create(**self.project1_build_failure)
Target.objects.create(build=build,
target=f'{i}_fail_recipe',
task=f'{i}_fail_task')
self._set_buildRequest_and_task_on_build(build)
return build1, build2
def _create_recipe(self):
""" Add a recipe to the database and return it """
layer = Layer.objects.create()
layer_version = Layer_Version.objects.create(layer=layer)
return Recipe.objects.create(name='recipe_foo', layer_version=layer_version)
def _set_buildRequest_and_task_on_build(self, build):
""" Set buildRequest and task on build """
build.recipes_parsed = 1
build.save()
buildRequest = BuildRequest.objects.create(
build=build,
project=self.project1,
state=BuildRequest.REQ_COMPLETED)
build.build_request = buildRequest
recipe = self._create_recipe()
task = Task.objects.create(build=build,
recipe=recipe,
task_name='task',
outcome=Task.OUTCOME_SUCCESS)
task.save()
build.save()
def test_show_tasks_with_suffix(self):
""" Task should be shown as suffix on build name """
build = Build.objects.create(**self.project1_build_success)
@@ -111,7 +175,7 @@ class TestAllBuildsPage(SeleniumTestCase):
url = reverse('all-builds')
self.get(url)
self.wait_until_present('td[class="target"]')
self.wait_until_visible('td[class="target"]')
cell = self.find('td[class="target"]')
content = cell.get_attribute('innerHTML')
@@ -128,14 +192,15 @@ class TestAllBuildsPage(SeleniumTestCase):
but should be shown for other builds
"""
build1 = Build.objects.create(**self.project1_build_success)
default_build = Build.objects.create(**self.default_project_build_success)
default_build = Build.objects.create(
**self.default_project_build_success)
url = reverse('all-builds')
self.get(url)
# should see a rebuild button for non-command-line builds
self.wait_until_visible('#allbuildstable tbody tr')
selector = 'div[data-latest-build-result="%s"] .rebuild-btn' % build1.id
time.sleep(2)
run_again_button = self.find_all(selector)
self.assertEqual(len(run_again_button), 1,
'should see a rebuild button for non-cli builds')
@@ -146,7 +211,6 @@ class TestAllBuildsPage(SeleniumTestCase):
self.assertEqual(len(run_again_button), 0,
'should not see a rebuild button for cli builds')
def test_tooltips_on_project_name(self):
"""
Test tooltips shown next to project name in the main table
@@ -160,6 +224,7 @@ class TestAllBuildsPage(SeleniumTestCase):
url = reverse('all-builds')
self.get(url)
self.wait_until_visible('#allbuildstable', poll=3)
# get the project name cells from the table
cells = self.find_all('#allbuildstable td[class="project"]')
@@ -168,7 +233,7 @@ class TestAllBuildsPage(SeleniumTestCase):
for cell in cells:
content = cell.get_attribute('innerHTML')
help_icons = cell.find_elements_by_css_selector(selector)
help_icons = cell.find_elements(By.CSS_SELECTOR, selector)
if re.search(self.PROJECT_NAME, content):
# no help icon next to non-cli project name
@@ -188,38 +253,224 @@ class TestAllBuildsPage(SeleniumTestCase):
recent builds area; failed builds should not have links on the time column,
or in the recent builds area
"""
build1 = Build.objects.create(**self.project1_build_success)
build2 = Build.objects.create(**self.project1_build_failure)
# add some targets to these builds so they have recipe links
# (and so we can find the row in the ToasterTable corresponding to
# a particular build)
Target.objects.create(build=build1, target='foo')
Target.objects.create(build=build2, target='bar')
build1, build2 = self._get_create_builds()
url = reverse('all-builds')
self.get(url)
self.wait_until_visible('#allbuildstable', poll=3)
# test recent builds area for successful build
element = self._get_build_time_element(build1)
links = element.find_elements(By.CSS_SELECTOR, 'a')
msg = 'should be a link on the build time for a successful recent build'
self.assertEquals(len(links), 1, msg)
self.assertEqual(len(links), 1, msg)
# test recent builds area for failed build
element = self._get_build_time_element(build2)
links = element.find_elements(By.CSS_SELECTOR, 'a')
msg = 'should not be a link on the build time for a failed recent build'
self.assertEquals(len(links), 0, msg)
self.assertEqual(len(links), 0, msg)
# test the time column for successful build
build1_row = self._get_row_for_build(build1)
links = build1_row.find_elements(By.CSS_SELECTOR, 'td.time a')
msg = 'should be a link on the build time for a successful build'
self.assertEquals(len(links), 1, msg)
self.assertEqual(len(links), 1, msg)
# test the time column for failed build
build2_row = self._get_row_for_build(build2)
links = build2_row.find_elements(By.CSS_SELECTOR, 'td.time a')
msg = 'should not be a link on the build time for a failed build'
self.assertEquals(len(links), 0, msg)
self.assertEqual(len(links), 0, msg)
def test_builds_table_search_box(self):
""" Test the search box in the builds table on the all builds page """
self._get_create_builds()
url = reverse('all-builds')
self.get(url)
# Check search box is present and works
self.wait_until_visible('#allbuildstable tbody tr')
search_box = self.find('#search-input-allbuildstable')
self.assertTrue(search_box.is_displayed())
# Check that we can search for a build by recipe name
search_box.send_keys('foo')
search_btn = self.find('#search-submit-allbuildstable')
search_btn.click()
self.wait_until_visible('#allbuildstable tbody tr')
rows = self.find_all('#allbuildstable tbody tr')
self.assertTrue(len(rows) >= 1)
def test_filtering_on_failure_tasks_column(self):
""" Test the filtering on failure tasks column in the builds table on the all builds page """
def _check_if_filter_failed_tasks_column_is_visible():
# check if failed tasks filter column is visible, if not click on it
# Check edit column
edit_column = self.find('#edit-columns-button')
self.assertTrue(edit_column.is_displayed())
edit_column.click()
# Check dropdown is visible
self.wait_until_visible('ul.dropdown-menu.editcol')
filter_fails_task_checkbox = self.find('#checkbox-failed_tasks')
if not filter_fails_task_checkbox.is_selected():
filter_fails_task_checkbox.click()
edit_column.click()
self._get_create_builds(success=10, failure=10)
url = reverse('all-builds')
self.get(url)
# Check filtering on failure tasks column
self.wait_until_visible('#allbuildstable tbody tr')
_check_if_filter_failed_tasks_column_is_visible()
failed_tasks_filter = self.find('#failed_tasks_filter')
failed_tasks_filter.click()
# Check popup is visible
self.wait_until_visible('#filter-modal-allbuildstable')
self.assertTrue(
self.find('#filter-modal-allbuildstable').is_displayed())
# Check that we can filter by failure tasks
build_without_failure_tasks = self.find(
'#failed_tasks_filter\\:without_failed_tasks')
build_without_failure_tasks.click()
# click on apply button
self.find('#filter-modal-allbuildstable .btn-primary').click()
self.wait_until_visible('#allbuildstable tbody tr')
# Check if filter is applied, by checking if failed_tasks_filter has btn-primary class
self.assertTrue(self.find('#failed_tasks_filter').get_attribute(
'class').find('btn-primary') != -1)
def test_filtering_on_completedOn_column(self):
""" Test the filtering on completed_on column in the builds table on the all builds page """
self._get_create_builds(success=10, failure=10)
url = reverse('all-builds')
self.get(url)
# Check filtering on failure tasks column
self.wait_until_visible('#allbuildstable tbody tr')
completed_on_filter = self.find('#completed_on_filter')
completed_on_filter.click()
# Check popup is visible
self.wait_until_visible('#filter-modal-allbuildstable')
self.assertTrue(
self.find('#filter-modal-allbuildstable').is_displayed())
# Check that we can filter by failure tasks
build_without_failure_tasks = self.find(
'#completed_on_filter\\:date_range')
build_without_failure_tasks.click()
# click on apply button
self.find('#filter-modal-allbuildstable .btn-primary').click()
self.wait_until_visible('#allbuildstable tbody tr')
# Check if filter is applied, by checking if completed_on_filter has btn-primary class
self.assertTrue(self.find('#completed_on_filter').get_attribute(
'class').find('btn-primary') != -1)
# Filter by date range
self.find('#completed_on_filter').click()
self.wait_until_visible('#filter-modal-allbuildstable')
date_ranges = self.driver.find_elements(
By.XPATH, '//input[@class="form-control hasDatepicker"]')
today = timezone.now()
yestersday = today - timezone.timedelta(days=1)
date_ranges[0].send_keys(yestersday.strftime('%Y-%m-%d'))
date_ranges[1].send_keys(today.strftime('%Y-%m-%d'))
self.find('#filter-modal-allbuildstable .btn-primary').click()
self.wait_until_visible('#allbuildstable tbody tr')
self.assertTrue(self.find('#completed_on_filter').get_attribute(
'class').find('btn-primary') != -1)
# Check if filter is applied, number of builds displayed should be 6
self.assertTrue(len(self.find_all('#allbuildstable tbody tr')) >= 4)
def test_builds_table_editColumn(self):
""" Test the edit column feature in the builds table on the all builds page """
self._get_create_builds(success=10, failure=10)
def test_edit_column(check_box_id):
# Check that we can hide/show table column
check_box = self.find(f'#{check_box_id}')
th_class = str(check_box_id).replace('checkbox-', '')
if check_box.is_selected():
# check if column is visible in table
self.assertTrue(
self.find(
f'#allbuildstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
check_box.click()
# check if column is hidden in table
self.assertFalse(
self.find(
f'#allbuildstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
else:
# check if column is hidden in table
self.assertFalse(
self.find(
f'#allbuildstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
check_box.click()
# check if column is visible in table
self.assertTrue(
self.find(
f'#allbuildstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
url = reverse('all-builds')
self.get(url)
self.wait_until_visible('#allbuildstable tbody tr')
# Check edit column
edit_column = self.find('#edit-columns-button')
self.assertTrue(edit_column.is_displayed())
edit_column.click()
# Check dropdown is visible
self.wait_until_visible('ul.dropdown-menu.editcol')
# Check that we can hide the edit column
test_edit_column('checkbox-errors_no')
test_edit_column('checkbox-failed_tasks')
test_edit_column('checkbox-image_files')
test_edit_column('checkbox-project')
test_edit_column('checkbox-started_on')
test_edit_column('checkbox-time')
test_edit_column('checkbox-warnings_no')
def test_builds_table_show_rows(self):
""" Test the show rows feature in the builds table on the all builds page """
self._get_create_builds(success=100, failure=100)
def test_show_rows(row_to_show, show_row_link):
# Check that we can show rows == row_to_show
show_row_link.select_by_value(str(row_to_show))
self.wait_until_visible('#allbuildstable tbody tr', poll=3)
# check at least some rows are visible
self.assertTrue(
len(self.find_all('#allbuildstable tbody tr')) > 0
)
url = reverse('all-builds')
self.get(url)
self.wait_until_visible('#allbuildstable tbody tr')
show_rows = self.driver.find_elements(
By.XPATH,
'//select[@class="form-control pagesize-allbuildstable"]'
)
# Check show rows
for show_row_link in show_rows:
show_row_link = Select(show_row_link)
test_show_rows(10, show_row_link)
test_show_rows(25, show_row_link)
test_show_rows(50, show_row_link)
test_show_rows(100, show_row_link)
test_show_rows(150, show_row_link)

View File

@@ -7,10 +7,12 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import os
import re
from django.urls import reverse
from django.utils import timezone
from selenium.webdriver.support.select import Select
from tests.browser.selenium_helpers import SeleniumTestCase
from orm.models import BitbakeVersion, Release, Project, Build
@@ -18,6 +20,7 @@ from orm.models import ProjectVariable
from selenium.webdriver.common.by import By
class TestAllProjectsPage(SeleniumTestCase):
""" Browser tests for projects page /projects/ """
@@ -27,7 +30,8 @@ class TestAllProjectsPage(SeleniumTestCase):
def setUp(self):
""" Add default project manually """
project = Project.objects.create_project(self.CLI_BUILDS_PROJECT_NAME, None)
project = Project.objects.create_project(
self.CLI_BUILDS_PROJECT_NAME, None)
self.default_project = project
self.default_project.is_default = True
self.default_project.save()
@@ -37,6 +41,17 @@ class TestAllProjectsPage(SeleniumTestCase):
self.release = None
def _create_projects(self, nb_project=10):
projects = []
for i in range(1, nb_project + 1):
projects.append(
Project(
name='test project {}'.format(i),
release=self.release,
)
)
Project.objects.bulk_create(projects)
def _add_build_to_default_project(self):
""" Add a build to the default project (not used in all tests) """
now = timezone.now()
@@ -47,12 +62,14 @@ class TestAllProjectsPage(SeleniumTestCase):
def _add_non_default_project(self):
""" Add another project """
bbv = BitbakeVersion.objects.create(name='test bbv', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='test bbv', giturl=f'{builldir}/',
branch='master', dirpath='')
self.release = Release.objects.create(name='test release',
branch_name='master',
bitbake_version=bbv)
self.project = Project.objects.create_project(self.PROJECT_NAME, self.release)
self.project = Project.objects.create_project(
self.PROJECT_NAME, self.release)
self.project.is_default = False
self.project.save()
@@ -64,7 +81,7 @@ class TestAllProjectsPage(SeleniumTestCase):
def _get_row_for_project(self, project_name):
""" Get the HTML row for a project, or None if not found """
self.wait_until_present('#projectstable tbody tr')
self.wait_until_visible('#projectstable tbody tr', poll=3)
rows = self.find_all('#projectstable tbody tr')
# find the row with a project name matching the one supplied
@@ -95,7 +112,8 @@ class TestAllProjectsPage(SeleniumTestCase):
url = reverse('all-projects')
self.get(url)
default_project_row = self._get_row_for_project(self.default_project.name)
default_project_row = self._get_row_for_project(
self.default_project.name)
self.assertNotEqual(default_project_row, None,
'default project "cli builds" should be in page')
@@ -115,7 +133,8 @@ class TestAllProjectsPage(SeleniumTestCase):
self.wait_until_visible("#projectstable tr")
# find the row for the default project
default_project_row = self._get_row_for_project(self.default_project.name)
default_project_row = self._get_row_for_project(
self.default_project.name)
# check the release text for the default project
selector = 'span[data-project-field="release"] span.text-muted'
@@ -150,7 +169,8 @@ class TestAllProjectsPage(SeleniumTestCase):
self.wait_until_visible("#projectstable tr")
# find the row for the default project
default_project_row = self._get_row_for_project(self.default_project.name)
default_project_row = self._get_row_for_project(
self.default_project.name)
# check the machine cell for the default project
selector = 'span[data-project-field="machine"] span.text-muted'
@@ -185,13 +205,15 @@ class TestAllProjectsPage(SeleniumTestCase):
self.get(reverse('all-projects'))
# find the row for the default project
default_project_row = self._get_row_for_project(self.default_project.name)
default_project_row = self._get_row_for_project(
self.default_project.name)
# check the link on the name field
selector = 'span[data-project-field="name"] a'
element = default_project_row.find_element(By.CSS_SELECTOR, selector)
link_url = element.get_attribute('href').strip()
expected_url = reverse('projectbuilds', args=(self.default_project.id,))
expected_url = reverse(
'projectbuilds', args=(self.default_project.id,))
msg = 'link on default project name should point to builds but was %s' % link_url
self.assertTrue(link_url.endswith(expected_url), msg)
@@ -205,3 +227,111 @@ class TestAllProjectsPage(SeleniumTestCase):
expected_url = reverse('project', args=(self.project.id,))
msg = 'link on project name should point to configuration but was %s' % link_url
self.assertTrue(link_url.endswith(expected_url), msg)
def test_allProject_table_search_box(self):
""" Test the search box in the all project table on the all projects page """
self._create_projects()
url = reverse('all-projects')
self.get(url)
# Chseck search box is present and works
self.wait_until_visible('#projectstable tbody tr', poll=3)
search_box = self.find('#search-input-projectstable')
self.assertTrue(search_box.is_displayed())
# Check that we can search for a project by project name
search_box.send_keys('test project 10')
search_btn = self.find('#search-submit-projectstable')
search_btn.click()
self.wait_until_visible('#projectstable tbody tr', poll=3)
rows = self.find_all('#projectstable tbody tr')
self.assertTrue(len(rows) == 1)
def test_allProject_table_editColumn(self):
""" Test the edit column feature in the projects table on the all projects page """
self._create_projects()
def test_edit_column(check_box_id):
# Check that we can hide/show table column
check_box = self.find(f'#{check_box_id}')
th_class = str(check_box_id).replace('checkbox-', '')
if check_box.is_selected():
# check if column is visible in table
self.assertTrue(
self.find(
f'#projectstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
check_box.click()
# check if column is hidden in table
self.assertFalse(
self.find(
f'#projectstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
else:
# check if column is hidden in table
self.assertFalse(
self.find(
f'#projectstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
check_box.click()
# check if column is visible in table
self.assertTrue(
self.find(
f'#projectstable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
url = reverse('all-projects')
self.get(url)
self.wait_until_visible('#projectstable tbody tr', poll=3)
# Check edit column
edit_column = self.find('#edit-columns-button')
self.assertTrue(edit_column.is_displayed())
edit_column.click()
# Check dropdown is visible
self.wait_until_visible('ul.dropdown-menu.editcol')
# Check that we can hide the edit column
test_edit_column('checkbox-errors')
test_edit_column('checkbox-image_files')
test_edit_column('checkbox-last_build_outcome')
test_edit_column('checkbox-recipe_name')
test_edit_column('checkbox-warnings')
def test_allProject_table_show_rows(self):
""" Test the show rows feature in the projects table on the all projects page """
self._create_projects(nb_project=200)
def test_show_rows(row_to_show, show_row_link):
# Check that we can show rows == row_to_show
show_row_link.select_by_value(str(row_to_show))
self.wait_until_visible('#projectstable tbody tr', poll=3)
# check at least some rows are visible
self.assertTrue(
len(self.find_all('#projectstable tbody tr')) > 0
)
url = reverse('all-projects')
self.get(url)
self.wait_until_visible('#projectstable tbody tr', poll=3)
show_rows = self.driver.find_elements(
By.XPATH,
'//select[@class="form-control pagesize-projectstable"]'
)
# Check show rows
for show_row_link in show_rows:
show_row_link = Select(show_row_link)
test_show_rows(10, show_row_link)
test_show_rows(25, show_row_link)
test_show_rows(50, show_row_link)
test_show_rows(100, show_row_link)
test_show_rows(150, show_row_link)

View File

@@ -7,6 +7,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import os
from django.urls import reverse
from django.utils import timezone
@@ -21,7 +22,8 @@ class TestBuildDashboardPage(SeleniumTestCase):
""" Tests for the build dashboard /build/X """
def setUp(self):
bbv = BitbakeVersion.objects.create(name='bbv1', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='bbv1', giturl=f'{builldir}/',
branch='master', dirpath="")
release = Release.objects.create(name='release1',
bitbake_version=bbv)
@@ -160,6 +162,7 @@ class TestBuildDashboardPage(SeleniumTestCase):
"""
url = reverse('builddashboard', args=(build.id,))
self.get(url)
self.wait_until_visible('#global-nav', poll=3)
def _get_build_dashboard_errors(self, build):
"""

View File

@@ -7,6 +7,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import os
from django.urls import reverse
from django.utils import timezone
@@ -20,7 +21,8 @@ class TestBuildDashboardPageArtifacts(SeleniumTestCase):
""" Tests for artifacts on the build dashboard /build/X """
def setUp(self):
bbv = BitbakeVersion.objects.create(name='bbv1', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='bbv1', giturl=f'{builldir}/',
branch='master', dirpath="")
release = Release.objects.create(name='release1',
bitbake_version=bbv)
@@ -197,12 +199,12 @@ class TestBuildDashboardPageArtifacts(SeleniumTestCase):
# check package count and size, link on target name
selector = '[data-value="target-package-count"]'
element = self.find(selector)
self.assertEquals(element.text, '1',
self.assertEqual(element.text, '1',
'package count should be shown for image builds')
selector = '[data-value="target-package-size"]'
element = self.find(selector)
self.assertEquals(element.text, '1.0 KB',
self.assertEqual(element.text, '1.0 KB',
'package size should be shown for image builds')
selector = '[data-link="target-packages"]'

View File

@@ -0,0 +1,103 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux Inc
#
# SPDX-License-Identifier: GPL-2.0-only
import pytest
from django.urls import reverse
from selenium.webdriver.support.ui import Select
from tests.browser.selenium_helpers import SeleniumTestCase
from orm.models import BitbakeVersion, Project, Release
from selenium.webdriver.common.by import By
class TestDeleteProject(SeleniumTestCase):
def setUp(self):
bitbake, _ = BitbakeVersion.objects.get_or_create(
name="master",
giturl="git://master",
branch="master",
dirpath="master")
self.release, _ = Release.objects.get_or_create(
name="master",
description="Yocto Project master",
branch_name="master",
helptext="latest",
bitbake_version=bitbake)
Release.objects.get_or_create(
name="foo",
description="Yocto Project foo",
branch_name="foo",
helptext="latest",
bitbake_version=bitbake)
@pytest.mark.django_db
def test_delete_project(self):
""" Test delete a project
- Check delete modal is visible
- Check delete modal has right text
- Confirm delete
- Check project is deleted
"""
project_name = "project_to_delete"
url = reverse('newproject')
self.get(url)
self.enter_text('#new-project-name', project_name)
select = Select(self.find('#projectversion'))
select.select_by_value(str(self.release.pk))
self.click("#create-project-button")
# We should get redirected to the new project's page with the
# notification at the top
element = self.wait_until_visible('#project-created-notification')
self.assertTrue(project_name in element.text,
"New project name not in new project notification")
self.assertTrue(Project.objects.filter(name=project_name).count(),
"New project not found in database")
# Delete project
delete_project_link = self.driver.find_element(
By.XPATH, '//a[@href="#delete-project-modal"]')
delete_project_link.click()
# Check delete modal is visible
self.wait_until_visible('#delete-project-modal')
# Check delete modal has right text
modal_header_text = self.find('#delete-project-modal .modal-header').text
self.assertTrue(
"Are you sure you want to delete this project?" in modal_header_text,
"Delete project modal header text is wrong")
modal_body_text = self.find('#delete-project-modal .modal-body').text
self.assertTrue(
"Cancel its builds currently in progress" in modal_body_text,
"Modal body doesn't contain: Cancel its builds currently in progress")
self.assertTrue(
"Remove its configuration information" in modal_body_text,
"Modal body doesn't contain: Remove its configuration information")
self.assertTrue(
"Remove its imported layers" in modal_body_text,
"Modal body doesn't contain: Remove its imported layers")
self.assertTrue(
"Remove its custom images" in modal_body_text,
"Modal body doesn't contain: Remove its custom images")
self.assertTrue(
"Remove all its build information" in modal_body_text,
"Modal body doesn't contain: Remove all its build information")
# Confirm delete
delete_btn = self.find('#delete-project-confirmed')
delete_btn.click()
# Check project is deleted
self.wait_until_visible('#change-notification')
delete_notification = self.find('#change-notification-msg')
self.assertTrue("You have deleted 1 project:" in delete_notification.text)
self.assertTrue(project_name in delete_notification.text)
self.assertFalse(Project.objects.filter(name=project_name).exists(),
"Project not deleted from database")

View File

@@ -10,8 +10,10 @@
from django.urls import reverse
from django.utils import timezone
from tests.browser.selenium_helpers import SeleniumTestCase
from selenium.webdriver.common.by import By
from orm.models import Layer, Layer_Version, Project, Build
from orm.models import Project, Build
class TestLandingPage(SeleniumTestCase):
""" Tests for redirects on the landing page """
@@ -29,6 +31,130 @@ class TestLandingPage(SeleniumTestCase):
self.project.is_default = True
self.project.save()
def test_icon_info_visible_and_clickable(self):
""" Test that the information icon is visible and clickable """
self.get(reverse('landing'))
info_sign = self.find('#toaster-version-info-sign')
# check that the info sign is visible
self.assertTrue(info_sign.is_displayed())
# check that the info sign is clickable
# and info modal is appearing when clicking on the info sign
info_sign.click() # click on the info sign make attribute 'aria-describedby' visible
info_model_id = info_sign.get_attribute('aria-describedby')
info_modal = self.find(f'#{info_model_id}')
self.assertTrue(info_modal.is_displayed())
self.assertTrue("Toaster version information" in info_modal.text)
def test_documentation_link_displayed(self):
""" Test that the documentation link is displayed """
self.get(reverse('landing'))
documentation_link = self.find('#navbar-docs > a')
# check that the documentation link is visible
self.assertTrue(documentation_link.is_displayed())
# check browser open new tab toaster manual when clicking on the documentation link
self.assertEqual(documentation_link.get_attribute('target'), '_blank')
self.assertEqual(
documentation_link.get_attribute('href'),
'http://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual')
self.assertTrue("Documentation" in documentation_link.text)
def test_openembedded_jumbotron_link_visible_and_clickable(self):
""" Test OpenEmbedded link jumbotron is visible and clickable: """
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check OpenEmbedded
openembedded = jumbotron.find_element(By.LINK_TEXT, 'OpenEmbedded')
self.assertTrue(openembedded.is_displayed())
openembedded.click()
self.assertTrue("openembedded.org" in self.driver.current_url)
def test_bitbake_jumbotron_link_visible_and_clickable(self):
""" Test BitBake link jumbotron is visible and clickable: """
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check BitBake
bitbake = jumbotron.find_element(By.LINK_TEXT, 'BitBake')
self.assertTrue(bitbake.is_displayed())
bitbake.click()
self.assertTrue(
"docs.yoctoproject.org/bitbake.html" in self.driver.current_url)
def test_yoctoproject_jumbotron_link_visible_and_clickable(self):
""" Test Yocto Project link jumbotron is visible and clickable: """
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check Yocto Project
yoctoproject = jumbotron.find_element(By.LINK_TEXT, 'Yocto Project')
self.assertTrue(yoctoproject.is_displayed())
yoctoproject.click()
self.assertTrue("yoctoproject.org" in self.driver.current_url)
def test_link_setup_using_toaster_visible_and_clickable(self):
""" Test big magenta button setting up and using toaster link in jumbotron
if visible and clickable
"""
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check Big magenta button
big_magenta_button = jumbotron.find_element(By.LINK_TEXT,
'Toaster is ready to capture your command line builds'
)
self.assertTrue(big_magenta_button.is_displayed())
big_magenta_button.click()
self.assertTrue(
"docs.yoctoproject.org/toaster-manual/setup-and-use.html#setting-up-and-using-toaster" in self.driver.current_url)
def test_link_create_new_project_in_jumbotron_visible_and_clickable(self):
""" Test big blue button create new project jumbotron if visible and clickable """
# Create a layer and a layer version to make visible the big blue button
layer = Layer.objects.create(name='bar')
Layer_Version.objects.create(layer=layer)
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check Big Blue button
big_blue_button = jumbotron.find_element(By.LINK_TEXT,
'Create your first Toaster project to run manage builds'
)
self.assertTrue(big_blue_button.is_displayed())
big_blue_button.click()
self.assertTrue("toastergui/newproject/" in self.driver.current_url)
def test_toaster_manual_link_visible_and_clickable(self):
""" Test Read the Toaster manual link jumbotron is visible and clickable: """
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check Read the Toaster manual
toaster_manual = jumbotron.find_element(
By.LINK_TEXT, 'Read the Toaster manual')
self.assertTrue(toaster_manual.is_displayed())
toaster_manual.click()
self.assertTrue(
"https://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual" in self.driver.current_url)
def test_contrib_to_toaster_link_visible_and_clickable(self):
""" Test Contribute to Toaster link jumbotron is visible and clickable: """
self.get(reverse('landing'))
jumbotron = self.find('.jumbotron')
# check Contribute to Toaster
contribute_to_toaster = jumbotron.find_element(
By.LINK_TEXT, 'Contribute to Toaster')
self.assertTrue(contribute_to_toaster.is_displayed())
contribute_to_toaster.click()
self.assertTrue(
"wiki.yoctoproject.org/wiki/contribute_to_toaster" in str(self.driver.current_url).lower())
def test_only_default_project(self):
"""
No projects except default
@@ -87,10 +213,9 @@ class TestLandingPage(SeleniumTestCase):
self.get(reverse('landing'))
self.wait_until_visible("#latest-builds", poll=3)
elements = self.find_all('#allbuildstable')
self.assertEqual(len(elements), 1, 'should redirect to builds')
content = self.get_page_source()
self.assertTrue(self.PROJECT_NAME in content,
'should show builds for project %s' % self.PROJECT_NAME)
self.assertFalse(self.CLI_BUILDS_PROJECT_NAME in content,
'should not show builds for cli project')

View File

@@ -8,6 +8,7 @@
#
from django.urls import reverse
from selenium.common.exceptions import ElementClickInterceptedException, TimeoutException
from tests.browser.selenium_helpers import SeleniumTestCase
from orm.models import Layer, Layer_Version, Project, LayerSource, Release
@@ -63,11 +64,12 @@ class TestLayerDetailsPage(SeleniumTestCase):
args=(self.project.pk,
self.imported_layer_version.pk))
def test_edit_layerdetails(self):
def _edit_layerdetails(self):
""" Edit all the editable fields for the layer refresh the page and
check that the new values exist"""
self.get(self.url)
self.wait_until_visible("#add-remove-layer-btn")
self.click("#add-remove-layer-btn")
self.click("#edit-layer-source")
@@ -105,7 +107,18 @@ class TestLayerDetailsPage(SeleniumTestCase):
for save_btn in self.find_all(".change-btn"):
save_btn.click()
self.click("#save-changes-for-switch")
try:
self.wait_until_visible("#save-changes-for-switch", poll=3)
btn_save_chg_for_switch = self.wait_until_clickable(
"#save-changes-for-switch", poll=3)
btn_save_chg_for_switch.click()
except ElementClickInterceptedException:
self.skipTest(
"save-changes-for-switch click intercepted. Element not visible or maybe covered by another element.")
except TimeoutException:
self.skipTest(
"save-changes-for-switch is not clickable within the specified timeout.")
self.wait_until_visible("#edit-layer-source")
# Refresh the page to see if the new values are returned
@@ -134,7 +147,18 @@ class TestLayerDetailsPage(SeleniumTestCase):
new_dir = "/home/test/my-meta-dir"
dir_input.send_keys(new_dir)
self.click("#save-changes-for-switch")
try:
self.wait_until_visible("#save-changes-for-switch", poll=3)
btn_save_chg_for_switch = self.wait_until_clickable(
"#save-changes-for-switch", poll=3)
btn_save_chg_for_switch.click()
except ElementClickInterceptedException:
self.skipTest(
"save-changes-for-switch click intercepted. Element not properly visible or maybe behind another element.")
except TimeoutException:
self.skipTest(
"save-changes-for-switch is not clickable within the specified timeout.")
self.wait_until_visible("#edit-layer-source")
# Refresh the page to see if the new values are returned
@@ -144,6 +168,13 @@ class TestLayerDetailsPage(SeleniumTestCase):
"Expected %s in the dir value for layer directory" %
new_dir)
def test_edit_layerdetails_page(self):
try:
self._edit_layerdetails()
except ElementClickInterceptedException:
self.skipTest(
"ElementClickInterceptedException occured. Element not visible or maybe covered by another element.")
def test_delete_layer(self):
""" Delete the layer """

View File

@@ -6,7 +6,6 @@
#
# Copyright (C) 2013-2016 Intel Corporation
#
import time
from django.urls import reverse
from django.utils import timezone
from tests.browser.selenium_helpers import SeleniumTestCase
@@ -47,7 +46,7 @@ class TestMostRecentBuildsStates(SeleniumTestCase):
# build queued; check shown as queued
selector = base_selector + '[data-build-state="Queued"]'
element = self.wait_until_visible(selector)
self.assertRegexpMatches(element.get_attribute('innerHTML'),
self.assertRegex(element.get_attribute('innerHTML'),
'Build queued', 'build should show queued status')
# waiting for recipes to be parsed
@@ -97,7 +96,7 @@ class TestMostRecentBuildsStates(SeleniumTestCase):
selector = base_selector + '[data-build-state="Starting"]'
element = self.wait_until_visible(selector)
self.assertRegexpMatches(element.get_attribute('innerHTML'),
self.assertRegex(element.get_attribute('innerHTML'),
'Tasks starting', 'build should show "tasks starting" status')
# first task finished; check tasks progress bar
@@ -186,7 +185,7 @@ class TestMostRecentBuildsStates(SeleniumTestCase):
selector = '[data-latest-build-result="%s"] ' \
'[data-build-state="Cancelling"]' % build.id
element = self.wait_until_visible(selector)
self.assertRegexpMatches(element.get_attribute('innerHTML'),
self.assertRegex(element.get_attribute('innerHTML'),
'Cancelling the build', 'build should show "cancelling" status')
# check cancelled state
@@ -198,5 +197,5 @@ class TestMostRecentBuildsStates(SeleniumTestCase):
selector = '[data-latest-build-result="%s"] ' \
'[data-build-state="Cancelled"]' % build.id
element = self.wait_until_visible(selector)
self.assertRegexpMatches(element.get_attribute('innerHTML'),
self.assertRegex(element.get_attribute('innerHTML'),
'Build cancelled', 'build should show "cancelled" status')

View File

@@ -45,11 +45,16 @@ class TestNewCustomImagePage(SeleniumTestCase):
)
# add a fake image recipe to the layer that can be customised
builldir = os.environ.get('BUILDDIR', './')
self.recipe = Recipe.objects.create(
name='core-image-minimal',
layer_version=layer_version,
file_path=f'{builldir}/core-image-minimal.bb',
is_image=True
)
# create a tmp file for the recipe
with open(self.recipe.file_path, 'w') as f:
f.write('foo')
# another project with a custom image already in it
project2 = Project.objects.create(name='whoop', release=release)
@@ -85,6 +90,7 @@ class TestNewCustomImagePage(SeleniumTestCase):
"""
url = reverse('newcustomimage', args=(self.project.id,))
self.get(url)
self.wait_until_visible('#global-nav', poll=3)
self.click('button[data-recipe="%s"]' % self.recipe.id)
@@ -132,7 +138,7 @@ class TestNewCustomImagePage(SeleniumTestCase):
"""
self._create_custom_image(self.recipe.name)
element = self.wait_until_visible('#invalid-name-help')
self.assertRegexpMatches(element.text.strip(),
self.assertRegex(element.text.strip(),
'image with this name already exists')
def test_new_duplicates_project_image(self):
@@ -150,4 +156,4 @@ class TestNewCustomImagePage(SeleniumTestCase):
self._create_custom_image(custom_image_name)
element = self.wait_until_visible('#invalid-name-help')
expected = 'An image with this name already exists in this project'
self.assertRegexpMatches(element.text.strip(), expected)
self.assertRegex(element.text.strip(), expected)

View File

@@ -6,8 +6,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
import time
from django.urls import reverse
from tests.browser.selenium_helpers import SeleniumTestCase
from selenium.webdriver.support.ui import Select
@@ -49,18 +47,18 @@ class TestNewProjectPage(SeleniumTestCase):
url = reverse('newproject')
self.get(url)
self.wait_until_visible('#new-project-name', poll=3)
self.enter_text('#new-project-name', project_name)
select = Select(self.find('#projectversion'))
select.select_by_value(str(self.release.pk))
time.sleep(1)
self.click("#create-project-button")
time.sleep(2)
# We should get redirected to the new project's page with the
# notification at the top
element = self.wait_until_visible('#project-created-notification')
element = self.wait_until_visible(
'#project-created-notification', poll=3)
self.assertTrue(project_name in element.text,
"New project name not in new project notification")
@@ -81,6 +79,7 @@ class TestNewProjectPage(SeleniumTestCase):
url = reverse('newproject')
self.get(url)
self.wait_until_visible('#new-project-name', poll=3)
self.enter_text('#new-project-name', project_name)
@@ -91,9 +90,9 @@ class TestNewProjectPage(SeleniumTestCase):
radio.click()
self.click("#create-project-button")
time.sleep(2)
element = self.wait_until_visible('#hint-error-project-name')
self.wait_until_present('#hint-error-project-name', poll=3)
element = self.find('#hint-error-project-name')
self.assertTrue(("Project names must be unique" in element.text),
"Did not find unique project name error message")
@@ -105,7 +104,6 @@ class TestNewProjectPage(SeleniumTestCase):
except InvalidElementStateException:
pass
time.sleep(2)
self.assertTrue(
(Project.objects.filter(name=project_name).count() == 1),
"New project not found in database")

View File

@@ -7,6 +7,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import os
import re
from django.urls import reverse
@@ -22,7 +23,8 @@ class TestProjectBuildsPage(SeleniumTestCase):
CLI_BUILDS_PROJECT_NAME = 'command line builds'
def setUp(self):
bbv = BitbakeVersion.objects.create(name='bbv1', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='bbv1', giturl=f'{builldir}/',
branch='master', dirpath='')
release = Release.objects.create(name='release1',
bitbake_version=bbv)

View File

@@ -7,6 +7,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import os
from django.urls import reverse
from tests.browser.selenium_helpers import SeleniumTestCase
@@ -22,7 +23,8 @@ class TestProjectConfigsPage(SeleniumTestCase):
'any of these characters'
def setUp(self):
bbv = BitbakeVersion.objects.create(name='bbv1', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='bbv1', giturl=f'{builldir}/',
branch='master', dirpath='')
release = Release.objects.create(name='release1',
bitbake_version=bbv)

View File

@@ -27,3 +27,13 @@ class TestSample(SeleniumTestCase):
self.get(url)
brand_link = self.find('.toaster-navbar-brand a.brand')
self.assertEqual(brand_link.text.strip(), 'Toaster')
def test_no_builds_message(self):
""" Test that a message is shown when there are no builds """
url = reverse('all-builds')
self.get(url)
self.wait_until_visible('#empty-state-allbuildstable') # wait for the empty state div to appear
div_msg = self.find('#empty-state-allbuildstable .alert-info')
msg = 'Sorry - no data found'
self.assertEqual(div_msg.text, msg)

View File

@@ -8,6 +8,7 @@
#
from datetime import datetime
import os
from django.urls import reverse
from django.utils import timezone
@@ -59,7 +60,8 @@ class TestToasterTableUI(SeleniumTestCase):
later = now + timezone.timedelta(hours=1)
even_later = later + timezone.timedelta(hours=1)
bbv = BitbakeVersion.objects.create(name='test bbv', giturl='/tmp/',
builldir = os.environ.get('BUILDDIR', './')
bbv = BitbakeVersion.objects.create(name='test bbv', giturl=f'{builldir}/',
branch='master', dirpath='')
release = Release.objects.create(name='test release',
branch_name='master',

View File

@@ -88,7 +88,7 @@ def load_build_environment():
class BuildTest(unittest.TestCase):
PROJECT_NAME = "Testbuild"
BUILDDIR = "/tmp/build/"
BUILDDIR = os.environ.get("BUILDDIR")
def build(self, target):
# So that the buildinfo helper uses the test database'
@@ -116,10 +116,19 @@ class BuildTest(unittest.TestCase):
project = Project.objects.create_project(name=BuildTest.PROJECT_NAME,
release=release)
passthrough_variable_names = ["SSTATE_DIR", "DL_DIR", "SSTATE_MIRRORS", "BB_HASHSERVE", "BB_HASHSERVE_UPSTREAM"]
for variable_name in passthrough_variable_names:
current_variable = os.environ.get(variable_name)
if current_variable:
ProjectVariable.objects.get_or_create(
name=variable_name,
value=current_variable,
project=project)
if os.environ.get("TOASTER_TEST_USE_SSTATE_MIRROR"):
ProjectVariable.objects.get_or_create(
name="SSTATE_MIRRORS",
value="file://.* http://sstate.yoctoproject.org/PATH;downloadfilename=PATH",
value="file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH",
project=project)
ProjectTarget.objects.create(project=project,

View File

@@ -10,6 +10,7 @@
# Ionut Chisanovici, Paul Eggleton and Cristian Iorga
import os
import pytest
from django.db.models import Q
@@ -20,13 +21,13 @@ from orm.models import CustomImagePackage
from tests.builds.buildtest import BuildTest
@pytest.mark.order(4)
@pytest.mark.django_db(True)
class BuildCoreImageMinimal(BuildTest):
"""Build core-image-minimal and test the results"""
def setUp(self):
self.completed_build = self.build("core-image-minimal")
self.built = self.target_already_built("core-image-minimal")
self.completed_build = self.target_already_built("core-image-minimal")
# Check if build name is unique - tc_id=795
def test_Build_Unique_Name(self):
@@ -45,17 +46,6 @@ class BuildCoreImageMinimal(BuildTest):
total_builds,
msg='Build cooker log path is not unique')
# Check if task order is unique for one build - tc=824
def test_Task_Unique_Order(self):
total_task_order = Task.objects.filter(
build=self.built).values('order').count()
distinct_task_order = Task.objects.filter(
build=self.completed_build).values('order').distinct().count()
self.assertEqual(total_task_order,
distinct_task_order,
msg='Errors task order is not unique')
# Check task order sequence for one build - tc=825
def test_Task_Order_Sequence(self):
cnt_err = []
@@ -99,7 +89,6 @@ class BuildCoreImageMinimal(BuildTest):
'task_name',
'sstate_result')
cnt_err = []
for task in tasks:
if (task['sstate_result'] != Task.SSTATE_NA and
task['sstate_result'] != Task.SSTATE_MISS):
@@ -222,6 +211,7 @@ class BuildCoreImageMinimal(BuildTest):
# orm_build.outcome=0 then if the file exists and its size matches
# the file_size value. Need to add the tc in the test run
def test_Target_File_Name_Populated(self):
cnt_err = []
builds = Build.objects.filter(outcome=0).values('id')
for build in builds:
targets = Target.objects.filter(
@@ -231,7 +221,6 @@ class BuildCoreImageMinimal(BuildTest):
target_id=target['id']).values('id',
'file_name',
'file_size')
cnt_err = []
for file_info in target_files:
target_id = file_info['id']
target_file_name = file_info['file_name']

View File

@@ -6,13 +6,13 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
import pytest
from django.test import TestCase
from django.core import management
from orm.models import Layer_Version, Layer, Release, ToasterSetting
@pytest.mark.order(2)
class TestLoadDataFixtures(TestCase):
""" Test loading our 3 provided fixtures """
def test_run_loaddata_poky_command(self):

View File

@@ -7,12 +7,13 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import pytest
from django.test import TestCase
from django.core import management
from orm.models import Layer_Version, Machine, Recipe
@pytest.mark.order(3)
class TestLayerIndexUpdater(TestCase):
def test_run_lsupdates_command(self):
# Load some release information for us to fetch from the layer index

View File

@@ -19,6 +19,8 @@ import time
import subprocess
import signal
import logging
class KillRunbuilds(threading.Thread):
""" Kill the runbuilds process after an amount of time """
@@ -34,9 +36,12 @@ class KillRunbuilds(threading.Thread):
pidfile_path = os.path.join(os.environ.get("BUILDDIR", "."),
".runbuilds.pid")
with open(pidfile_path) as pidfile:
pid = pidfile.read()
os.kill(int(pid), signal.SIGTERM)
try:
with open(pidfile_path) as pidfile:
pid = pidfile.read()
os.kill(int(pid), signal.SIGTERM)
except ProcessLookupError:
logging.warning("Runbuilds not running or already killed")
class TestCommands(TestCase):

View File

@@ -23,6 +23,7 @@
# SOFTWARE.
import sys
import pytest
try:
from StringIO import StringIO
@@ -47,7 +48,7 @@ def capture(command, *args, **kwargs):
def makemigrations():
management.call_command('makemigrations')
@pytest.mark.order(1)
class MigrationTest(TestCase):
def testPendingMigration(self):

View File

@@ -11,40 +11,55 @@ import os
import logging
import subprocess
import signal
import time
import re
from tests.browser.selenium_helpers_base import SeleniumTestCaseBase
from tests.builds.buildtest import load_build_environment
from bldcontrol.models import BuildEnvironment
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
logger = logging.getLogger("toaster")
toaster_processes = []
class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
wait_toaster_time = 5
wait_toaster_time = 10
@classmethod
def setUpClass(cls):
# So that the buildinfo helper uses the test database'
if os.environ.get('DJANGO_SETTINGS_MODULE', '') != \
'toastermain.settings_test':
raise RuntimeError("Please initialise django with the tests settings: " \
raise RuntimeError("Please initialise django with the tests settings: "
"DJANGO_SETTINGS_MODULE='toastermain.settings_test'")
if BuildEnvironment.objects.count() == 0:
BuildEnvironment.objects.create(betype=BuildEnvironment.TYPE_LOCAL)
load_build_environment()
# Wait for any known toaster processes to exit
global toaster_processes
for toaster_process in toaster_processes:
try:
os.waitpid(toaster_process, os.WNOHANG)
except ChildProcessError:
pass
# start toaster
cmd = "bash -c 'source toaster start'"
p = subprocess.Popen(
start_process = subprocess.Popen(
cmd,
cwd=os.environ.get("BUILDDIR"),
shell=True)
if p.wait() != 0:
raise RuntimeError("Can't initialize toaster")
toaster_processes = [start_process.pid]
if start_process.wait() != 0:
port_use = os.popen("lsof -i -P -n | grep '8000 (LISTEN)'").read().strip()
message = ''
if port_use:
process_id = port_use.split()[1]
process = os.popen(f"ps -o cmd= -p {process_id}").read().strip()
message = f"Port 8000 occupied by {process}"
raise RuntimeError(f"Can't initialize toaster. {message}")
builddir = os.environ.get("BUILDDIR")
with open(os.path.join(builddir, '.toastermain.pid'), 'r') as f:
toaster_processes.append(int(f.read()))
with open(os.path.join(builddir, '.runbuilds.pid'), 'r') as f:
toaster_processes.append(int(f.read()))
super(SeleniumFunctionalTestCase, cls).setUpClass()
cls.live_server_url = 'http://localhost:8000/'
@@ -53,22 +68,30 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
def tearDownClass(cls):
super(SeleniumFunctionalTestCase, cls).tearDownClass()
# XXX: source toaster stop gets blocked, to review why?
# from now send SIGTERM by hand
time.sleep(cls.wait_toaster_time)
builddir = os.environ.get("BUILDDIR")
global toaster_processes
with open(os.path.join(builddir, '.toastermain.pid'), 'r') as f:
toastermain_pid = int(f.read())
os.kill(toastermain_pid, signal.SIGTERM)
with open(os.path.join(builddir, '.runbuilds.pid'), 'r') as f:
runbuilds_pid = int(f.read())
os.kill(runbuilds_pid, signal.SIGTERM)
cmd = "bash -c 'source toaster stop'"
stop_process = subprocess.Popen(
cmd,
cwd=os.environ.get("BUILDDIR"),
shell=True)
# Toaster stop has been known to hang in these tests so force kill if it stalls
try:
if stop_process.wait(cls.wait_toaster_time) != 0:
raise Exception('Toaster stop process failed')
except Exception as e:
if e is subprocess.TimeoutExpired:
print('Toaster stop process took too long. Force killing toaster...')
else:
print('Toaster stop process failed. Force killing toaster...')
stop_process.kill()
for toaster_process in toaster_processes:
os.kill(toaster_process, signal.SIGTERM)
def get_URL(self):
rc=self.get_page_source()
project_url=re.search("(projectPageUrl\s:\s\")(.*)(\",)",rc)
project_url=re.search(r"(projectPageUrl\s:\s\")(.*)(\",)",rc)
return project_url.group(2)

View File

@@ -0,0 +1,179 @@
#! /usr/bin/env python3
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
import re
import pytest
from django.urls import reverse
from selenium.webdriver.support.select import Select
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
from orm.models import Project
from selenium.webdriver.common.by import By
@pytest.mark.django_db
@pytest.mark.order("last")
class TestCreateNewProject(SeleniumFunctionalTestCase):
def _create_test_new_project(
self,
project_name,
release,
release_title,
merge_toaster_settings,
):
""" Create/Test new project using:
- Project Name: Any string
- Release: Any string
- Merge Toaster settings: True or False
"""
self.get(reverse('newproject'))
self.wait_until_visible('#new-project-name', poll=3)
self.driver.find_element(By.ID,
"new-project-name").send_keys(project_name)
select = Select(self.find('#projectversion'))
select.select_by_value(release)
# check merge toaster settings
checkbox = self.find('.checkbox-mergeattr')
if merge_toaster_settings:
if not checkbox.is_selected():
checkbox.click()
else:
if checkbox.is_selected():
checkbox.click()
self.driver.find_element(By.ID, "create-project-button").click()
element = self.wait_until_visible('#project-created-notification', poll=3)
self.assertTrue(
self.element_exists('#project-created-notification'),
f"Project:{project_name} creation notification not shown"
)
self.assertTrue(
project_name in element.text,
f"New project name:{project_name} not in new project notification"
)
self.assertTrue(
Project.objects.filter(name=project_name).count(),
f"New project:{project_name} not found in database"
)
# check release
self.assertTrue(re.search(
release_title,
self.driver.find_element(By.XPATH,
"//span[@id='project-release-title']"
).text),
'The project release is not defined')
def test_create_new_project_master(self):
""" Test create new project using:
- Project Name: Any string
- Release: Yocto Project master (option value: 3)
- Merge Toaster settings: False
"""
release = '3'
release_title = 'Yocto Project master'
project_name = 'projectmaster'
self._create_test_new_project(
project_name,
release,
release_title,
False,
)
def test_create_new_project_kirkstone(self):
""" Test create new project using:
- Project Name: Any string
- Release: Yocto Project 4.0 "Kirkstone" (option value: 1)
- Merge Toaster settings: True
"""
release = '1'
release_title = 'Yocto Project 4.0 "Kirkstone"'
project_name = 'projectkirkstone'
self._create_test_new_project(
project_name,
release,
release_title,
True,
)
def test_create_new_project_dunfell(self):
""" Test create new project using:
- Project Name: Any string
- Release: Yocto Project 3.1 "Dunfell" (option value: 5)
- Merge Toaster settings: False
"""
release = '5'
release_title = 'Yocto Project 3.1 "Dunfell"'
project_name = 'projectdunfell'
self._create_test_new_project(
project_name,
release,
release_title,
False,
)
def test_create_new_project_local(self):
""" Test create new project using:
- Project Name: Any string
- Release: Local Yocto Project (option value: 2)
- Merge Toaster settings: True
"""
release = '2'
release_title = 'Local Yocto Project'
project_name = 'projectlocal'
self._create_test_new_project(
project_name,
release,
release_title,
True,
)
def test_create_new_project_without_name(self):
""" Test create new project without project name """
self.get(reverse('newproject'))
select = Select(self.find('#projectversion'))
select.select_by_value(str(3))
# Check input name has required attribute
input_name = self.driver.find_element(By.ID, "new-project-name")
self.assertIsNotNone(input_name.get_attribute('required'),
'Input name has not required attribute')
# Check create button is disabled
create_btn = self.driver.find_element(By.ID, "create-project-button")
self.assertIsNotNone(create_btn.get_attribute('disabled'),
'Create button is not disabled')
def test_import_new_project(self):
""" Test import new project using:
- Project Name: Any string
- Project type: select (Import command line project)
- Import existing project directory: Wrong Path
"""
project_name = 'projectimport'
self.get(reverse('newproject'))
self.driver.find_element(By.ID,
"new-project-name").send_keys(project_name)
# select import project
self.find('#type-import').click()
# set wrong path
wrong_path = '/wrongpath'
self.driver.find_element(By.ID,
"import-project-dir").send_keys(wrong_path)
self.driver.find_element(By.ID, "create-project-button").click()
# check error message
self.assertTrue(self.element_exists('.alert-danger'),
'Allert message not shown')
self.assertTrue(wrong_path in self.find('.alert-danger').text,
"Wrong path not in alert message")

View File

@@ -7,93 +7,111 @@
# SPDX-License-Identifier: GPL-2.0-only
#
import re, time
import re
from django.urls import reverse
import pytest
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
from orm.models import Project
from selenium.webdriver.common.by import By
from tests.functional.utils import get_projectId_from_url
@pytest.mark.django_db
@pytest.mark.order("second_to_last")
class FuntionalTestBasic(SeleniumFunctionalTestCase):
"""Basic functional tests for Toaster"""
project_id = None
def setUp(self):
super(FuntionalTestBasic, self).setUp()
if not FuntionalTestBasic.project_id:
self._create_slenium_project()
current_url = self.driver.current_url
FuntionalTestBasic.project_id = get_projectId_from_url(current_url)
# testcase (1514)
def test_create_slenium_project(self):
def _create_slenium_project(self):
project_name = 'selenium-project'
self.get(reverse('newproject'))
self.wait_until_visible('#new-project-name', poll=3)
self.driver.find_element(By.ID, "new-project-name").send_keys(project_name)
self.driver.find_element(By.ID, 'projectversion').click()
self.driver.find_element(By.ID, "create-project-button").click()
time.sleep(2)
element = self.wait_until_visible('#project-created-notification')
element = self.wait_until_visible('#project-created-notification', poll=10)
self.assertTrue(self.element_exists('#project-created-notification'),'Project creation notification not shown')
self.assertTrue(project_name in element.text,
"New project name not in new project notification")
self.assertTrue(Project.objects.filter(name=project_name).count(),
"New project not found in database")
return Project.objects.last().id
# testcase (1515)
def test_verify_left_bar_menu(self):
self.get(reverse('all-projects'))
self.wait_until_visible('#projectstable')
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(self.element_exists('#config-nav'),'Configuration Tab does not exist')
project_URL=self.get_URL()
self.driver.find_element(By.XPATH, '//a[@href="'+project_URL+'"]').click()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
try:
self.driver.find_element(By.XPATH, "//*[@id='config-nav']/ul/li/a[@href="+'"'+project_URL+'customimages/"'+"]").click()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Custom images",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'Custom images information is not loading properly')
except:
self.fail(msg='No Custom images tab available')
try:
self.driver.find_element(By.XPATH, "//*[@id='config-nav']/ul/li/a[@href="+'"'+project_URL+'images/"'+"]").click()
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Compatible image recipes",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'The Compatible image recipes information is not loading properly')
except:
self.fail(msg='No Compatible image tab available')
try:
self.driver.find_element(By.XPATH, "//*[@id='config-nav']/ul/li/a[@href="+'"'+project_URL+'softwarerecipes/"'+"]").click()
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Compatible software recipes",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'The Compatible software recipe information is not loading properly')
except:
self.fail(msg='No Compatible software recipe tab available')
try:
self.driver.find_element(By.XPATH, "//*[@id='config-nav']/ul/li/a[@href="+'"'+project_URL+'machines/"'+"]").click()
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Compatible machines",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'The Compatible machine information is not loading properly')
except:
self.fail(msg='No Compatible machines tab available')
try:
self.driver.find_element(By.XPATH, "//*[@id='config-nav']/ul/li/a[@href="+'"'+project_URL+'layers/"'+"]").click()
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Compatible layers",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'The Compatible layer information is not loading properly')
except:
self.fail(msg='No Compatible layers tab available')
try:
self.driver.find_element(By.XPATH, "//*[@id='config-nav']/ul/li/a[@href="+'"'+project_URL+'configuration"'+"]").click()
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Bitbake variables",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'The Bitbake variables information is not loading properly')
except:
self.fail(msg='No Bitbake variables tab available')
# testcase (1516)
def test_review_configuration_information(self):
self.get('')
self.driver.find_element(By.XPATH, "//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()
time.sleep(2)
self.wait_until_visible('#projectstable')
self.get(reverse('all-projects'))
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
project_URL=self.get_URL()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
try:
self.assertTrue(self.element_exists('#machine-section'),'Machine section for the project configuration page does not exist')
self.assertTrue(re.search("qemux86",self.driver.find_element(By.XPATH, "//span[@id='project-machine-name']").text),'The machine type is not assigned')
self.assertTrue(re.search("qemux86-64",self.driver.find_element(By.XPATH, "//span[@id='project-machine-name']").text),'The machine type is not assigned')
self.driver.find_element(By.XPATH, "//span[@id='change-machine-toggle']").click()
time.sleep(2)
self.wait_until_visible('#select-machine-form')
self.wait_until_visible('#cancel-machine-change')
self.wait_until_visible('#select-machine-form', poll=10)
self.wait_until_visible('#cancel-machine-change', poll=10)
self.driver.find_element(By.XPATH, "//form[@id='select-machine-form']/a[@id='cancel-machine-change']").click()
except:
self.fail(msg='The machine information is wrong in the configuration page')
@@ -127,49 +145,42 @@ class FuntionalTestBasic(SeleniumFunctionalTestCase):
# testcase (1517)
def test_verify_machine_information(self):
self.get('')
self.driver.find_element(By.XPATH, "//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()
time.sleep(2)
self.wait_until_visible('#projectstable')
self.get(reverse('all-projects'))
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
try:
self.assertTrue(self.element_exists('#machine-section'),'Machine section for the project configuration page does not exist')
self.assertTrue(re.search("qemux86",self.driver.find_element(By.ID, "project-machine-name").text),'The machine type is not assigned')
self.assertTrue(re.search("qemux86-64",self.driver.find_element(By.ID, "project-machine-name").text),'The machine type is not assigned')
self.driver.find_element(By.ID, "change-machine-toggle").click()
time.sleep(2)
self.wait_until_visible('#select-machine-form')
self.wait_until_visible('#cancel-machine-change')
self.wait_until_visible('#select-machine-form', poll=10)
self.wait_until_visible('#cancel-machine-change', poll=10)
self.driver.find_element(By.ID, "cancel-machine-change").click()
except:
self.fail(msg='The machine information is wrong in the configuration page')
# testcase (1518)
def test_verify_most_built_recipes_information(self):
self.get('')
self.driver.find_element(By.XPATH, "//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()
time.sleep(2)
self.wait_until_visible('#projectstable')
self.get(reverse('all-projects'))
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
self.wait_until_present('#config-nav', poll=10)
project_URL=self.get_URL()
time.sleep(2)
try:
self.assertTrue(re.search("You haven't built any recipes yet",self.driver.find_element(By.ID, "no-most-built").text),'Default message of no builds is not present')
self.driver.find_element(By.XPATH, "//div[@id='no-most-built']/p/a[@href="+'"'+project_URL+'images/"'+"]").click()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Compatible image recipes",self.driver.find_element(By.XPATH, "//div[@class='col-md-10']").text),'The Choose a recipe to build link is not working properly')
except:
self.fail(msg='No Most built information in project detail page')
# testcase (1519)
def test_verify_project_release_information(self):
self.get('')
self.driver.find_element(By.XPATH, "//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()
time.sleep(2)
self.wait_until_visible('#projectstable')
self.get(reverse('all-projects'))
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
time.sleep(2)
self.wait_until_present('#config-nav', poll=10)
try:
self.assertTrue(re.search("Yocto Project master",self.driver.find_element(By.ID, "project-release-title").text),'The project release is not defined')
@@ -178,12 +189,11 @@ class FuntionalTestBasic(SeleniumFunctionalTestCase):
# testcase (1520)
def test_verify_layer_information(self):
self.get('')
self.driver.find_element(By.XPATH, "//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()
self.wait_until_visible('#projectstable')
self.get(reverse('all-projects'))
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
self.wait_until_present('#config-nav', poll=10)
project_URL=self.get_URL()
time.sleep(2)
try:
self.driver.find_element(By.XPATH, "//div[@id='layer-container']")
self.assertTrue(re.search("3",self.driver.find_element(By.ID, "project-layers-count").text),'There should be 3 layers listed in the layer count')
@@ -209,18 +219,18 @@ class FuntionalTestBasic(SeleniumFunctionalTestCase):
# testcase (1521)
def test_verify_project_detail_links(self):
self.get('')
self.driver.find_element(By.XPATH, "//div[@id='global-nav']/ul/li/a[@href="+'"'+'/toastergui/projects/'+'"'+"]").click()
time.sleep(2)
self.wait_until_visible('#projectstable')
self.get(reverse('all-projects'))
self.wait_until_present('#projectstable', poll=10)
self.find_element_by_link_text_in_table('projectstable', 'selenium-project').click()
self.wait_until_present('#config-nav', poll=10)
project_URL=self.get_URL()
time.sleep(2)
self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li[@id='topbar-configuration-tab']/a[@href="+'"'+project_URL+'"'+"]").click()
self.wait_until_present('#config-nav', poll=10)
self.assertTrue(re.search("Configuration",self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li[@id='topbar-configuration-tab']/a[@href="+'"'+project_URL+'"'+"]").text), 'Configuration tab in project topbar is misspelled')
try:
self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li/a[@href="+'"'+project_URL+'builds/"'+"]").click()
self.wait_until_visible('#project-topbar', poll=10)
self.assertTrue(re.search("Builds",self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li/a[@href="+'"'+project_URL+'builds/"'+"]").text), 'Builds tab in project topbar is misspelled')
self.driver.find_element(By.XPATH, "//div[@id='empty-state-projectbuildstable']")
except:
@@ -228,6 +238,7 @@ class FuntionalTestBasic(SeleniumFunctionalTestCase):
try:
self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li/a[@href="+'"'+project_URL+'importlayer"'+"]").click()
self.wait_until_visible('#project-topbar', poll=10)
self.assertTrue(re.search("Import layer",self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li/a[@href="+'"'+project_URL+'importlayer"'+"]").text), 'Import layer tab in project topbar is misspelled')
self.driver.find_element(By.XPATH, "//fieldset[@id='repo-select']")
self.driver.find_element(By.XPATH, "//fieldset[@id='git-repo']")
@@ -236,6 +247,7 @@ class FuntionalTestBasic(SeleniumFunctionalTestCase):
try:
self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li/a[@href="+'"'+project_URL+'newcustomimage/"'+"]").click()
self.wait_until_visible('#project-topbar', poll=10)
self.assertTrue(re.search("New custom image",self.driver.find_element(By.XPATH, "//div[@id='project-topbar']/ul[@class='nav nav-tabs']/li/a[@href="+'"'+project_URL+'newcustomimage/"'+"]").text), 'New custom image tab in project topbar is misspelled')
self.assertTrue(re.search("Select the image recipe you want to customise",self.driver.find_element(By.XPATH, "//div[@class='col-md-12']/h2").text),'The new custom image tab is not loading correctly')
except:

View File

@@ -0,0 +1,341 @@
#! /usr/bin/env python3 #
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
import string
import random
import pytest
from django.urls import reverse
from selenium.webdriver import Keys
from selenium.webdriver.support.select import Select
from selenium.common.exceptions import TimeoutException
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
from selenium.webdriver.common.by import By
from .utils import get_projectId_from_url
@pytest.mark.django_db
@pytest.mark.order("last")
class TestProjectConfig(SeleniumFunctionalTestCase):
project_id = None
PROJECT_NAME = 'TestProjectConfig'
INVALID_PATH_START_TEXT = 'The directory path should either start with a /'
INVALID_PATH_CHAR_TEXT = 'The directory path cannot include spaces or ' \
'any of these characters'
def _create_project(self, project_name):
""" Create/Test new project using:
- Project Name: Any string
- Release: Any string
- Merge Toaster settings: True or False
"""
self.get(reverse('newproject'))
self.wait_until_visible('#new-project-name', poll=2)
self.find("#new-project-name").send_keys(project_name)
select = Select(self.find("#projectversion"))
select.select_by_value('3')
# check merge toaster settings
checkbox = self.find('.checkbox-mergeattr')
if not checkbox.is_selected():
checkbox.click()
if self.PROJECT_NAME != 'TestProjectConfig':
# Reset project name if it's not the default one
self.PROJECT_NAME = 'TestProjectConfig'
self.find("#create-project-button").click()
try:
self.wait_until_visible('#hint-error-project-name', poll=2)
url = reverse('project', args=(TestProjectConfig.project_id, ))
self.get(url)
self.wait_until_visible('#config-nav', poll=3)
except TimeoutException:
self.wait_until_visible('#config-nav', poll=3)
def _random_string(self, length):
return ''.join(
random.choice(string.ascii_letters) for _ in range(length)
)
def _get_config_nav_item(self, index):
config_nav = self.find('#config-nav')
return config_nav.find_elements(By.TAG_NAME, 'li')[index]
def _navigate_bbv_page(self):
""" Navigate to project BitBake variables page """
# check if the menu is displayed
if TestProjectConfig.project_id is None:
self._create_project(project_name=self._random_string(10))
current_url = self.driver.current_url
TestProjectConfig.project_id = get_projectId_from_url(current_url)
else:
url = reverse('projectconf', args=(TestProjectConfig.project_id,))
self.get(url)
self.wait_until_visible('#config-nav', poll=3)
bbv_page_link = self._get_config_nav_item(9)
bbv_page_link.click()
self.wait_until_visible('#config-nav', poll=3)
def test_no_underscore_iamgefs_type(self):
"""
Should not accept IMAGEFS_TYPE with an underscore
"""
self._navigate_bbv_page()
imagefs_type = "foo_bar"
self.wait_until_visible('#change-image_fstypes-icon', poll=2)
self.click('#change-image_fstypes-icon')
self.enter_text('#new-imagefs_types', imagefs_type)
element = self.wait_until_visible('#hintError-image-fs_type', poll=2)
self.assertTrue(("A valid image type cannot include underscores" in element.text),
"Did not find underscore error message")
def test_checkbox_verification(self):
"""
Should automatically check the checkbox if user enters value
text box, if value is there in the checkbox.
"""
self._navigate_bbv_page()
imagefs_type = "btrfs"
self.wait_until_visible('#change-image_fstypes-icon', poll=2)
self.click('#change-image_fstypes-icon')
self.enter_text('#new-imagefs_types', imagefs_type)
checkboxes = self.driver.find_elements(By.XPATH, "//input[@class='fs-checkbox-fstypes']")
for checkbox in checkboxes:
if checkbox.get_attribute("value") == "btrfs":
self.assertEqual(checkbox.is_selected(), True)
def test_textbox_with_checkbox_verification(self):
"""
Should automatically add or remove value in textbox, if user checks
or unchecks checkboxes.
"""
self._navigate_bbv_page()
self.wait_until_visible('#change-image_fstypes-icon', poll=2)
self.click('#change-image_fstypes-icon')
checkboxes_selector = '.fs-checkbox-fstypes'
self.wait_until_visible(checkboxes_selector, poll=2)
checkboxes = self.find_all(checkboxes_selector)
for checkbox in checkboxes:
if checkbox.get_attribute("value") == "cpio":
checkbox.click()
element = self.driver.find_element(By.ID, 'new-imagefs_types')
self.wait_until_visible('#new-imagefs_types', poll=2)
self.assertTrue(("cpio" in element.get_attribute('value'),
"Imagefs not added into the textbox"))
checkbox.click()
self.assertTrue(("cpio" not in element.text),
"Image still present in the textbox")
def test_set_download_dir(self):
"""
Validate the allowed and disallowed types in the directory field for
DL_DIR
"""
self._navigate_bbv_page()
# activate the input to edit download dir
try:
change_dl_dir_btn = self.wait_until_visible('#change-dl_dir-icon', poll=2)
except TimeoutException:
# If download dir is not displayed, test is skipped
change_dl_dir_btn = None
if change_dl_dir_btn:
change_dl_dir_btn = self.wait_until_visible('#change-dl_dir-icon', poll=2)
change_dl_dir_btn.click()
# downloads dir path doesn't start with / or ${...}
input_field = self.wait_until_visible('#new-dl_dir', poll=2)
input_field.clear()
self.enter_text('#new-dl_dir', 'home/foo')
element = self.wait_until_visible('#hintError-initialChar-dl_dir', poll=2)
msg = 'downloads directory path starts with invalid character but ' \
'treated as valid'
self.assertTrue((self.INVALID_PATH_START_TEXT in element.text), msg)
# downloads dir path has a space
self.driver.find_element(By.ID, 'new-dl_dir').clear()
self.enter_text('#new-dl_dir', '/foo/bar a')
element = self.wait_until_visible('#hintError-dl_dir', poll=2)
msg = 'downloads directory path characters invalid but treated as valid'
self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg)
# downloads dir path starts with ${...} but has a space
self.driver.find_element(By.ID,'new-dl_dir').clear()
self.enter_text('#new-dl_dir', '${TOPDIR}/down foo')
element = self.wait_until_visible('#hintError-dl_dir', poll=2)
msg = 'downloads directory path characters invalid but treated as valid'
self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg)
# downloads dir path starts with /
self.driver.find_element(By.ID,'new-dl_dir').clear()
self.enter_text('#new-dl_dir', '/bar/foo')
hidden_element = self.driver.find_element(By.ID,'hintError-dl_dir')
self.assertEqual(hidden_element.is_displayed(), False,
'downloads directory path valid but treated as invalid')
# downloads dir path starts with ${...}
self.driver.find_element(By.ID,'new-dl_dir').clear()
self.enter_text('#new-dl_dir', '${TOPDIR}/down')
hidden_element = self.driver.find_element(By.ID,'hintError-dl_dir')
self.assertEqual(hidden_element.is_displayed(), False,
'downloads directory path valid but treated as invalid')
def test_set_sstate_dir(self):
"""
Validate the allowed and disallowed types in the directory field for
SSTATE_DIR
"""
self._navigate_bbv_page()
try:
btn_chg_sstate_dir = self.wait_until_visible(
'#change-sstate_dir-icon',
poll=2
)
self.click('#change-sstate_dir-icon')
except TimeoutException:
# If sstate_dir is not displayed, test is skipped
btn_chg_sstate_dir = None
if btn_chg_sstate_dir: # Skip continuation if sstate_dir is not displayed
# path doesn't start with / or ${...}
input_field = self.wait_until_visible('#new-sstate_dir', poll=2)
input_field.clear()
self.enter_text('#new-sstate_dir', 'home/foo')
element = self.wait_until_visible('#hintError-initialChar-sstate_dir', poll=2)
msg = 'sstate directory path starts with invalid character but ' \
'treated as valid'
self.assertTrue((self.INVALID_PATH_START_TEXT in element.text), msg)
# path has a space
self.driver.find_element(By.ID, 'new-sstate_dir').clear()
self.enter_text('#new-sstate_dir', '/foo/bar a')
element = self.wait_until_visible('#hintError-sstate_dir', poll=2)
msg = 'sstate directory path characters invalid but treated as valid'
self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg)
# path starts with ${...} but has a space
self.driver.find_element(By.ID,'new-sstate_dir').clear()
self.enter_text('#new-sstate_dir', '${TOPDIR}/down foo')
element = self.wait_until_visible('#hintError-sstate_dir', poll=2)
msg = 'sstate directory path characters invalid but treated as valid'
self.assertTrue((self.INVALID_PATH_CHAR_TEXT in element.text), msg)
# path starts with /
self.driver.find_element(By.ID,'new-sstate_dir').clear()
self.enter_text('#new-sstate_dir', '/bar/foo')
hidden_element = self.driver.find_element(By.ID, 'hintError-sstate_dir')
self.assertEqual(hidden_element.is_displayed(), False,
'sstate directory path valid but treated as invalid')
# paths starts with ${...}
self.driver.find_element(By.ID, 'new-sstate_dir').clear()
self.enter_text('#new-sstate_dir', '${TOPDIR}/down')
hidden_element = self.driver.find_element(By.ID, 'hintError-sstate_dir')
self.assertEqual(hidden_element.is_displayed(), False,
'sstate directory path valid but treated as invalid')
def _change_bbv_value(self, **kwargs):
var_name, field, btn_id, input_id, value, save_btn, *_ = kwargs.values()
""" Change bitbake variable value """
self._navigate_bbv_page()
self.wait_until_visible(f'#{btn_id}', poll=2)
if kwargs.get('new_variable'):
self.find(f"#{btn_id}").clear()
self.enter_text(f"#{btn_id}", f"{var_name}")
else:
self.click(f'#{btn_id}')
self.wait_until_visible(f'#{input_id}', poll=2)
if kwargs.get('is_select'):
select = Select(self.find(f'#{input_id}'))
select.select_by_visible_text(value)
else:
self.find(f"#{input_id}").clear()
self.enter_text(f'#{input_id}', f'{value}')
self.click(f'#{save_btn}')
value_displayed = str(self.wait_until_visible(f'#{field}').text).lower()
msg = f'{var_name} variable not changed'
self.assertTrue(str(value).lower() in value_displayed, msg)
def test_change_distro_var(self):
""" Test changing distro variable """
self._change_bbv_value(
var_name='DISTRO',
field='distro',
btn_id='change-distro-icon',
input_id='new-distro',
value='poky-changed',
save_btn="apply-change-distro",
)
def test_set_image_install_append_var(self):
""" Test setting IMAGE_INSTALL:append variable """
self._change_bbv_value(
var_name='IMAGE_INSTALL:append',
field='image_install',
btn_id='change-image_install-icon',
input_id='new-image_install',
value='bash, apt, busybox',
save_btn="apply-change-image_install",
)
def test_set_package_classes_var(self):
""" Test setting PACKAGE_CLASSES variable """
self._change_bbv_value(
var_name='PACKAGE_CLASSES',
field='package_classes',
btn_id='change-package_classes-icon',
input_id='package_classes-select',
value='package_deb',
save_btn="apply-change-package_classes",
is_select=True,
)
def test_create_new_bbv(self):
""" Test creating new bitbake variable """
self._change_bbv_value(
var_name='New_Custom_Variable',
field='configvar-list',
btn_id='variable',
input_id='value',
value='new variable value',
save_btn="add-configvar-button",
new_variable=True
)

View File

@@ -0,0 +1,792 @@
#! /usr/bin/env python3 #
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
import os
import random
import string
from unittest import skip
import pytest
from django.urls import reverse
from django.utils import timezone
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.select import Select
from selenium.common.exceptions import TimeoutException
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
from orm.models import Build, Project, Target
from selenium.webdriver.common.by import By
from .utils import get_projectId_from_url, wait_until_build, wait_until_build_cancelled
@pytest.mark.django_db
@pytest.mark.order("last")
class TestProjectPage(SeleniumFunctionalTestCase):
project_id = None
PROJECT_NAME = 'TestProjectPage'
def _create_project(self, project_name):
""" Create/Test new project using:
- Project Name: Any string
- Release: Any string
- Merge Toaster settings: True or False
"""
self.get(reverse('newproject'))
self.wait_until_visible('#new-project-name')
self.find("#new-project-name").send_keys(project_name)
select = Select(self.find("#projectversion"))
select.select_by_value('3')
# check merge toaster settings
checkbox = self.find('.checkbox-mergeattr')
if not checkbox.is_selected():
checkbox.click()
if self.PROJECT_NAME != 'TestProjectPage':
# Reset project name if it's not the default one
self.PROJECT_NAME = 'TestProjectPage'
self.find("#create-project-button").click()
try:
self.wait_until_visible('#hint-error-project-name')
url = reverse('project', args=(TestProjectPage.project_id, ))
self.get(url)
self.wait_until_visible('#config-nav', poll=3)
except TimeoutException:
self.wait_until_visible('#config-nav', poll=3)
def _random_string(self, length):
return ''.join(
random.choice(string.ascii_letters) for _ in range(length)
)
def _navigate_to_project_page(self):
# Navigate to project page
if TestProjectPage.project_id is None:
self._create_project(project_name=self._random_string(10))
current_url = self.driver.current_url
TestProjectPage.project_id = get_projectId_from_url(current_url)
else:
url = reverse('project', args=(TestProjectPage.project_id,))
self.get(url)
self.wait_until_visible('#config-nav')
def _get_create_builds(self, **kwargs):
""" Create a build and return the build object """
# parameters for builds to associate with the projects
now = timezone.now()
self.project1_build_success = {
'project': Project.objects.get(id=TestProjectPage.project_id),
'started_on': now,
'completed_on': now,
'outcome': Build.SUCCEEDED
}
self.project1_build_failure = {
'project': Project.objects.get(id=TestProjectPage.project_id),
'started_on': now,
'completed_on': now,
'outcome': Build.FAILED
}
build1 = Build.objects.create(**self.project1_build_success)
build2 = Build.objects.create(**self.project1_build_failure)
# add some targets to these builds so they have recipe links
# (and so we can find the row in the ToasterTable corresponding to
# a particular build)
Target.objects.create(build=build1, target='foo')
Target.objects.create(build=build2, target='bar')
if kwargs:
# Create kwargs.get('success') builds with success status with target
# and kwargs.get('failure') builds with failure status with target
for i in range(kwargs.get('success', 0)):
now = timezone.now()
self.project1_build_success['started_on'] = now
self.project1_build_success[
'completed_on'] = now - timezone.timedelta(days=i)
build = Build.objects.create(**self.project1_build_success)
Target.objects.create(build=build,
target=f'{i}_success_recipe',
task=f'{i}_success_task')
for i in range(kwargs.get('failure', 0)):
now = timezone.now()
self.project1_build_failure['started_on'] = now
self.project1_build_failure[
'completed_on'] = now - timezone.timedelta(days=i)
build = Build.objects.create(**self.project1_build_failure)
Target.objects.create(build=build,
target=f'{i}_fail_recipe',
task=f'{i}_fail_task')
return build1, build2
def _mixin_test_table_edit_column(
self,
table_id,
edit_btn_id,
list_check_box_id: list
):
# Check edit column
edit_column = self.find(f'#{edit_btn_id}')
self.assertTrue(edit_column.is_displayed())
edit_column.click()
# Check dropdown is visible
self.wait_until_visible('ul.dropdown-menu.editcol')
for check_box_id in list_check_box_id:
# Check that we can hide/show table column
check_box = self.find(f'#{check_box_id}')
th_class = str(check_box_id).replace('checkbox-', '')
if check_box.is_selected():
# check if column is visible in table
self.assertTrue(
self.find(
f'#{table_id} thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
check_box.click()
# check if column is hidden in table
self.assertFalse(
self.find(
f'#{table_id} thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
else:
# check if column is hidden in table
self.assertFalse(
self.find(
f'#{table_id} thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
check_box.click()
# check if column is visible in table
self.assertTrue(
self.find(
f'#{table_id} thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
def _get_config_nav_item(self, index):
config_nav = self.find('#config-nav')
return config_nav.find_elements(By.TAG_NAME, 'li')[index]
def _navigate_to_config_nav(self, nav_id, nav_index):
# navigate to the project page
self._navigate_to_project_page()
# click on "Software recipe" tab
soft_recipe = self._get_config_nav_item(nav_index)
soft_recipe.click()
self.wait_until_visible(f'#{nav_id}')
def _mixin_test_table_show_rows(self, table_selector, **kwargs):
""" Test the show rows feature in the builds table on the all builds page """
def test_show_rows(row_to_show, show_row_link):
# Check that we can show rows == row_to_show
show_row_link.select_by_value(str(row_to_show))
self.wait_until_visible(f'#{table_selector} tbody tr', poll=3)
# check at least some rows are visible
self.assertTrue(
len(self.find_all(f'#{table_selector} tbody tr')) > 0
)
self.wait_until_present(f'#{table_selector} tbody tr')
show_rows = self.driver.find_elements(
By.XPATH,
f'//select[@class="form-control pagesize-{table_selector}"]'
)
rows_to_show = [10, 25, 50, 100, 150]
to_skip = kwargs.get('to_skip', [])
# Check show rows
for show_row_link in show_rows:
show_row_link = Select(show_row_link)
for row_to_show in rows_to_show:
if row_to_show not in to_skip:
test_show_rows(row_to_show, show_row_link)
def _mixin_test_table_search_input(self, **kwargs):
input_selector, input_text, searchBtn_selector, table_selector, *_ = kwargs.values()
# Test search input
self.wait_until_visible(f'#{input_selector}')
recipe_input = self.find(f'#{input_selector}')
recipe_input.send_keys(input_text)
self.find(f'#{searchBtn_selector}').click()
self.wait_until_visible(f'#{table_selector} tbody tr')
rows = self.find_all(f'#{table_selector} tbody tr')
self.assertTrue(len(rows) > 0)
def test_create_project(self):
""" Create/Test new project using:
- Project Name: Any string
- Release: Any string
- Merge Toaster settings: True or False
"""
self._create_project(project_name=self.PROJECT_NAME)
def test_image_recipe_editColumn(self):
""" Test the edit column feature in image recipe table on project page """
self._get_create_builds(success=10, failure=10)
url = reverse('projectimagerecipes', args=(TestProjectPage.project_id,))
self.get(url)
self.wait_until_present('#imagerecipestable tbody tr')
column_list = [
'get_description_or_summary', 'layer_version__get_vcs_reference',
'layer_version__layer__name', 'license', 'recipe-file', 'section',
'version'
]
# Check that we can hide the edit column
self._mixin_test_table_edit_column(
'imagerecipestable',
'edit-columns-button',
[f'checkbox-{column}' for column in column_list]
)
def test_page_header_on_project_page(self):
""" Check page header in project page:
- AT LEFT -> Logo of Yocto project, displayed, clickable
- "Toaster"+" Information icon", displayed, clickable
- "Server Icon" + "All builds", displayed, clickable
- "Directory Icon" + "All projects", displayed, clickable
- "Book Icon" + "Documentation", displayed, clickable
- AT RIGHT -> button "New project", displayed, clickable
"""
# navigate to the project page
self._navigate_to_project_page()
# check page header
# AT LEFT -> Logo of Yocto project
logo = self.driver.find_element(
By.XPATH,
"//div[@class='toaster-navbar-brand']",
)
logo_img = logo.find_element(By.TAG_NAME, 'img')
self.assertTrue(logo_img.is_displayed(),
'Logo of Yocto project not found')
self.assertTrue(
'/static/img/logo.png' in str(logo_img.get_attribute('src')),
'Logo of Yocto project not found'
)
# "Toaster"+" Information icon", clickable
toaster = self.driver.find_element(
By.XPATH,
"//div[@class='toaster-navbar-brand']//a[@class='brand']",
)
self.assertTrue(toaster.is_displayed(), 'Toaster not found')
self.assertTrue(toaster.text == 'Toaster')
info_sign = self.find('.glyphicon-info-sign')
self.assertTrue(info_sign.is_displayed())
# "Server Icon" + "All builds"
all_builds = self.find('#navbar-all-builds')
all_builds_link = all_builds.find_element(By.TAG_NAME, 'a')
self.assertTrue("All builds" in all_builds_link.text)
self.assertTrue(
'/toastergui/builds/' in str(all_builds_link.get_attribute('href'))
)
server_icon = all_builds.find_element(By.TAG_NAME, 'i')
self.assertTrue(
server_icon.get_attribute('class') == 'glyphicon glyphicon-tasks'
)
self.assertTrue(server_icon.is_displayed())
# "Directory Icon" + "All projects"
all_projects = self.find('#navbar-all-projects')
all_projects_link = all_projects.find_element(By.TAG_NAME, 'a')
self.assertTrue("All projects" in all_projects_link.text)
self.assertTrue(
'/toastergui/projects/' in str(all_projects_link.get_attribute(
'href'))
)
dir_icon = all_projects.find_element(By.TAG_NAME, 'i')
self.assertTrue(
dir_icon.get_attribute('class') == 'icon-folder-open'
)
self.assertTrue(dir_icon.is_displayed())
# "Book Icon" + "Documentation"
toaster_docs_link = self.find('#navbar-docs')
toaster_docs_link_link = toaster_docs_link.find_element(By.TAG_NAME,
'a')
self.assertTrue("Documentation" in toaster_docs_link_link.text)
self.assertTrue(
toaster_docs_link_link.get_attribute('href') == 'http://docs.yoctoproject.org/toaster-manual/index.html#toaster-user-manual'
)
book_icon = toaster_docs_link.find_element(By.TAG_NAME, 'i')
self.assertTrue(
book_icon.get_attribute('class') == 'glyphicon glyphicon-book'
)
self.assertTrue(book_icon.is_displayed())
# AT RIGHT -> button "New project"
new_project_button = self.find('#new-project-button')
self.assertTrue(new_project_button.is_displayed())
self.assertTrue(new_project_button.text == 'New project')
new_project_button.click()
self.assertTrue(
'/toastergui/newproject/' in str(self.driver.current_url)
)
def test_edit_project_name(self):
""" Test edit project name:
- Click on "Edit" icon button
- Change project name
- Click on "Save" button
- Check project name is changed
"""
# navigate to the project page
self._navigate_to_project_page()
# click on "Edit" icon button
self.wait_until_visible('#project-name-container')
edit_button = self.find('#project-change-form-toggle')
edit_button.click()
project_name_input = self.find('#project-name-change-input')
self.assertTrue(project_name_input.is_displayed())
project_name_input.clear()
project_name_input.send_keys('New Name')
self.find('#project-name-change-btn').click()
# check project name is changed
self.wait_until_visible('#project-name-container')
self.assertTrue(
'New Name' in str(self.find('#project-name-container').text)
)
def test_project_page_tabs(self):
""" Test project tabs:
- "configuration" tab
- "Builds" tab
- "Import layers" tab
- "New custom image" tab
Check search box used to build recipes
"""
# navigate to the project page
self._navigate_to_project_page()
# check "configuration" tab
self.wait_until_visible('#topbar-configuration-tab')
config_tab = self.find('#topbar-configuration-tab')
self.assertTrue(config_tab.get_attribute('class') == 'active')
self.assertTrue('Configuration' in str(config_tab.text))
self.assertTrue(
f"/toastergui/project/{TestProjectPage.project_id}" in str(self.driver.current_url)
)
def get_tabs():
# tabs links list
return self.driver.find_elements(
By.XPATH,
'//div[@id="project-topbar"]//li'
)
def check_tab_link(tab_index, tab_name, url):
tab = get_tabs()[tab_index]
tab_link = tab.find_element(By.TAG_NAME, 'a')
self.assertTrue(url in tab_link.get_attribute('href'))
self.assertTrue(tab_name in tab_link.text)
self.assertTrue(tab.get_attribute('class') == 'active')
# check "Builds" tab
builds_tab = get_tabs()[1]
builds_tab.find_element(By.TAG_NAME, 'a').click()
check_tab_link(
1,
'Builds',
f"/toastergui/project/{TestProjectPage.project_id}/builds"
)
# check "Import layers" tab
import_layers_tab = get_tabs()[2]
import_layers_tab.find_element(By.TAG_NAME, 'a').click()
check_tab_link(
2,
'Import layer',
f"/toastergui/project/{TestProjectPage.project_id}/importlayer"
)
# check "New custom image" tab
new_custom_image_tab = get_tabs()[3]
new_custom_image_tab.find_element(By.TAG_NAME, 'a').click()
check_tab_link(
3,
'New custom image',
f"/toastergui/project/{TestProjectPage.project_id}/newcustomimage"
)
# check search box can be use to build recipes
search_box = self.find('#build-input')
search_box.send_keys('core-image-minimal')
self.find('#build-button').click()
self.wait_until_visible('#latest-builds')
lastest_builds = self.driver.find_elements(
By.XPATH,
'//div[@id="latest-builds"]',
)
last_build = lastest_builds[0]
self.assertTrue(
'core-image-minimal' in str(last_build.text)
)
def test_softwareRecipe_page(self):
""" Test software recipe page
- Check title "Compatible software recipes" is displayed
- Check search input
- Check "build recipe" button works
- Check software recipe table feature(show/hide column, pagination)
"""
self._navigate_to_config_nav('softwarerecipestable', 4)
# check title "Compatible software recipes" is displayed
self.assertTrue("Compatible software recipes" in self.get_page_source())
# Test search input
self._mixin_test_table_search_input(
input_selector='search-input-softwarerecipestable',
input_text='busybox',
searchBtn_selector='search-submit-softwarerecipestable',
table_selector='softwarerecipestable'
)
# check "build recipe" button works
rows = self.find_all('#softwarerecipestable tbody tr')
image_to_build = rows[0]
build_btn = image_to_build.find_element(
By.XPATH,
'//td[@class="add-del-layers"]//a[1]'
)
build_btn.click()
build_state = wait_until_build(self, 'queued cloning starting parsing failed')
lastest_builds = self.driver.find_elements(
By.XPATH,
'//div[@id="latest-builds"]/div'
)
self.assertTrue(len(lastest_builds) > 0)
last_build = lastest_builds[0]
cancel_button = last_build.find_element(
By.XPATH,
'//span[@class="cancel-build-btn pull-right alert-link"]',
)
cancel_button.click()
if 'starting' not in build_state: # change build state when cancelled in starting state
wait_until_build_cancelled(self)
# check software recipe table feature(show/hide column, pagination)
self._navigate_to_config_nav('softwarerecipestable', 4)
column_list = [
'get_description_or_summary',
'layer_version__get_vcs_reference',
'layer_version__layer__name',
'license',
'recipe-file',
'section',
'version',
]
self._mixin_test_table_edit_column(
'softwarerecipestable',
'edit-columns-button',
[f'checkbox-{column}' for column in column_list]
)
self._navigate_to_config_nav('softwarerecipestable', 4)
# check show rows(pagination)
self._mixin_test_table_show_rows(
table_selector='softwarerecipestable',
to_skip=[150],
)
def test_machines_page(self):
""" Test Machine page
- Check if title "Compatible machines" is displayed
- Check search input
- Check "Select machine" button works
- Check "Add layer" button works
- Check Machine table feature(show/hide column, pagination)
"""
self._navigate_to_config_nav('machinestable', 5)
# check title "Compatible software recipes" is displayed
self.assertTrue("Compatible machines" in self.get_page_source())
# Test search input
self._mixin_test_table_search_input(
input_selector='search-input-machinestable',
input_text='qemux86-64',
searchBtn_selector='search-submit-machinestable',
table_selector='machinestable'
)
# check "Select machine" button works
rows = self.find_all('#machinestable tbody tr')
machine_to_select = rows[0]
select_btn = machine_to_select.find_element(
By.XPATH,
'//td[@class="add-del-layers"]//a[1]'
)
select_btn.send_keys(Keys.RETURN)
self.wait_until_visible('#config-nav')
project_machine_name = self.find('#project-machine-name')
self.assertTrue(
'qemux86-64' in project_machine_name.text
)
# check "Add layer" button works
self._navigate_to_config_nav('machinestable', 5)
# Search for a machine whit layer not in project
self._mixin_test_table_search_input(
input_selector='search-input-machinestable',
input_text='qemux86-64-tpm2',
searchBtn_selector='search-submit-machinestable',
table_selector='machinestable'
)
self.wait_until_visible('#machinestable tbody tr', poll=3)
rows = self.find_all('#machinestable tbody tr')
machine_to_add = rows[0]
add_btn = machine_to_add.find_element(By.XPATH, '//td[@class="add-del-layers"]')
add_btn.click()
self.wait_until_visible('#change-notification')
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have added 1 layer to your project' in str(change_notification.text)
)
# check Machine table feature(show/hide column, pagination)
self._navigate_to_config_nav('machinestable', 5)
column_list = [
'description',
'layer_version__get_vcs_reference',
'layer_version__layer__name',
'machinefile',
]
self._mixin_test_table_edit_column(
'machinestable',
'edit-columns-button',
[f'checkbox-{column}' for column in column_list]
)
self._navigate_to_config_nav('machinestable', 5)
# check show rows(pagination)
self._mixin_test_table_show_rows(
table_selector='machinestable',
to_skip=[150],
)
def test_layers_page(self):
""" Test layers page
- Check if title "Compatible layerss" is displayed
- Check search input
- Check "Add layer" button works
- Check "Remove layer" button works
- Check layers table feature(show/hide column, pagination)
"""
self._navigate_to_config_nav('layerstable', 6)
# check title "Compatible layers" is displayed
self.assertTrue("Compatible layers" in self.get_page_source())
# Test search input
input_text='meta-tanowrt'
self._mixin_test_table_search_input(
input_selector='search-input-layerstable',
input_text=input_text,
searchBtn_selector='search-submit-layerstable',
table_selector='layerstable'
)
# check "Add layer" button works
self.wait_until_visible('#layerstable tbody tr', poll=3)
rows = self.find_all('#layerstable tbody tr')
layer_to_add = rows[0]
add_btn = layer_to_add.find_element(
By.XPATH,
'//td[@class="add-del-layers"]'
)
add_btn.click()
# check modal is displayed
self.wait_until_visible('#dependencies-modal', poll=3)
list_dependencies = self.find_all('#dependencies-list li')
# click on add-layers button
add_layers_btn = self.driver.find_element(
By.XPATH,
'//form[@id="dependencies-modal-form"]//button[@class="btn btn-primary"]'
)
add_layers_btn.click()
self.wait_until_visible('#change-notification')
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have added {len(list_dependencies)+1} layers to your project: {input_text} and its dependencies' in str(change_notification.text)
)
# check "Remove layer" button works
self.wait_until_visible('#layerstable tbody tr', poll=3)
rows = self.find_all('#layerstable tbody tr')
layer_to_remove = rows[0]
remove_btn = layer_to_remove.find_element(
By.XPATH,
'//td[@class="add-del-layers"]'
)
remove_btn.click()
self.wait_until_visible('#change-notification', poll=2)
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have removed 1 layer from your project: {input_text}' in str(change_notification.text)
)
# check layers table feature(show/hide column, pagination)
self._navigate_to_config_nav('layerstable', 6)
column_list = [
'dependencies',
'revision',
'layer__vcs_url',
'git_subdir',
'layer__summary',
]
self._mixin_test_table_edit_column(
'layerstable',
'edit-columns-button',
[f'checkbox-{column}' for column in column_list]
)
self._navigate_to_config_nav('layerstable', 6)
# check show rows(pagination)
self._mixin_test_table_show_rows(
table_selector='layerstable',
to_skip=[150],
)
def test_distro_page(self):
""" Test distros page
- Check if title "Compatible distros" is displayed
- Check search input
- Check "Add layer" button works
- Check distro table feature(show/hide column, pagination)
"""
self._navigate_to_config_nav('distrostable', 7)
# check title "Compatible distros" is displayed
self.assertTrue("Compatible Distros" in self.get_page_source())
# Test search input
input_text='poky-altcfg'
self._mixin_test_table_search_input(
input_selector='search-input-distrostable',
input_text=input_text,
searchBtn_selector='search-submit-distrostable',
table_selector='distrostable'
)
# check "Add distro" button works
rows = self.find_all('#distrostable tbody tr')
distro_to_add = rows[0]
add_btn = distro_to_add.find_element(
By.XPATH,
'//td[@class="add-del-layers"]//a[1]'
)
add_btn.click()
self.wait_until_visible('#change-notification', poll=2)
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have changed the distro to: {input_text}' in str(change_notification.text)
)
# check distro table feature(show/hide column, pagination)
self._navigate_to_config_nav('distrostable', 7)
column_list = [
'description',
'templatefile',
'layer_version__get_vcs_reference',
'layer_version__layer__name',
]
self._mixin_test_table_edit_column(
'distrostable',
'edit-columns-button',
[f'checkbox-{column}' for column in column_list]
)
self._navigate_to_config_nav('distrostable', 7)
# check show rows(pagination)
self._mixin_test_table_show_rows(
table_selector='distrostable',
to_skip=[150],
)
def test_single_layer_page(self):
""" Test layer page
- Check if title is displayed
- Check add/remove layer button works
- Check tabs(layers, recipes, machines) are displayed
- Check left section is displayed
- Check layer name
- Check layer summary
- Check layer description
"""
url = reverse("layerdetails", args=(TestProjectPage.project_id, 8))
self.get(url)
self.wait_until_visible('.page-header')
# check title is displayed
self.assertTrue(self.find('.page-header h1').is_displayed())
# check add layer button works
remove_layer_btn = self.find('#add-remove-layer-btn')
remove_layer_btn.click()
self.wait_until_visible('#change-notification', poll=2)
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have removed 1 layer from your project' in str(change_notification.text)
)
# check add layer button works, 18 is the random layer id
add_layer_btn = self.find('#add-remove-layer-btn')
add_layer_btn.click()
self.wait_until_visible('#change-notification')
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have added 1 layer to your project' in str(change_notification.text)
)
# check tabs(layers, recipes, machines) are displayed
tabs = self.find_all('.nav-tabs li')
self.assertEqual(len(tabs), 3)
# Check first tab
tabs[0].click()
self.assertTrue(
'active' in str(self.find('#information').get_attribute('class'))
)
# Check second tab
tabs[1].click()
self.assertTrue(
'active' in str(self.find('#recipes').get_attribute('class'))
)
# Check third tab
tabs[2].click()
self.assertTrue(
'active' in str(self.find('#machines').get_attribute('class'))
)
# Check left section is displayed
section = self.find('.well')
# Check layer name
self.assertTrue(
section.find_element(By.XPATH, '//h2[1]').is_displayed()
)
# Check layer summary
self.assertTrue("Summary" in section.text)
# Check layer description
self.assertTrue("Description" in section.text)
def test_single_recipe_page(self):
""" Test recipe page
- Check if title is displayed
- Check add recipe layer displayed
- Check left section is displayed
- Check recipe: name, summary, description, Version, Section,
License, Approx. packages included, Approx. size, Recipe file
"""
url = reverse("recipedetails", args=(TestProjectPage.project_id, 53428))
self.get(url)
self.wait_until_visible('.page-header')
# check title is displayed
self.assertTrue(self.find('.page-header h1').is_displayed())
# check add recipe layer displayed
add_recipe_layer_btn = self.find('#add-layer-btn')
self.assertTrue(add_recipe_layer_btn.is_displayed())
# check left section is displayed
section = self.find('.well')
# Check recipe name
self.assertTrue(
section.find_element(By.XPATH, '//h2[1]').is_displayed()
)
# Check recipe sections details info are displayed
self.assertTrue("Summary" in section.text)
self.assertTrue("Description" in section.text)
self.assertTrue("Version" in section.text)
self.assertTrue("Section" in section.text)
self.assertTrue("License" in section.text)
self.assertTrue("Approx. packages included" in section.text)
self.assertTrue("Approx. package size" in section.text)
self.assertTrue("Recipe file" in section.text)

View File

@@ -0,0 +1,528 @@
#! /usr/bin/env python3 #
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
import string
import random
import pytest
from django.urls import reverse
from selenium.webdriver import Keys
from selenium.webdriver.support.select import Select
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, TimeoutException
from orm.models import Project
from tests.functional.functional_helpers import SeleniumFunctionalTestCase
from selenium.webdriver.common.by import By
from .utils import get_projectId_from_url, wait_until_build, wait_until_build_cancelled
@pytest.mark.django_db
@pytest.mark.order("last")
class TestProjectConfigTab(SeleniumFunctionalTestCase):
PROJECT_NAME = 'TestProjectConfigTab'
project_id = None
def _create_project(self, project_name, **kwargs):
""" Create/Test new project using:
- Project Name: Any string
- Release: Any string
- Merge Toaster settings: True or False
"""
release = kwargs.get('release', '3')
self.get(reverse('newproject'))
self.wait_until_visible('#new-project-name')
self.find("#new-project-name").send_keys(project_name)
select = Select(self.find("#projectversion"))
select.select_by_value(release)
# check merge toaster settings
checkbox = self.find('.checkbox-mergeattr')
if not checkbox.is_selected():
checkbox.click()
if self.PROJECT_NAME != 'TestProjectConfigTab':
# Reset project name if it's not the default one
self.PROJECT_NAME = 'TestProjectConfigTab'
self.find("#create-project-button").click()
try:
self.wait_until_visible('#hint-error-project-name', poll=3)
url = reverse('project', args=(TestProjectConfigTab.project_id, ))
self.get(url)
self.wait_until_visible('#config-nav', poll=3)
except TimeoutException:
self.wait_until_visible('#config-nav', poll=3)
def _random_string(self, length):
return ''.join(
random.choice(string.ascii_letters) for _ in range(length)
)
def _navigate_to_project_page(self):
# Navigate to project page
if TestProjectConfigTab.project_id is None:
self._create_project(project_name=self._random_string(10))
current_url = self.driver.current_url
TestProjectConfigTab.project_id = get_projectId_from_url(
current_url)
else:
url = reverse('project', args=(TestProjectConfigTab.project_id,))
self.get(url)
self.wait_until_visible('#config-nav')
def _create_builds(self):
# check search box can be use to build recipes
search_box = self.find('#build-input')
search_box.send_keys('foo')
self.find('#build-button').click()
self.wait_until_present('#latest-builds')
# loop until reach the parsing state
wait_until_build(self, 'queued cloning starting parsing failed')
lastest_builds = self.driver.find_elements(
By.XPATH,
'//div[@id="latest-builds"]/div',
)
last_build = lastest_builds[0]
self.assertTrue(
'foo' in str(last_build.text)
)
last_build = lastest_builds[0]
try:
cancel_button = last_build.find_element(
By.XPATH,
'//span[@class="cancel-build-btn pull-right alert-link"]',
)
cancel_button.click()
except NoSuchElementException:
# Skip if the build is already cancelled
pass
wait_until_build_cancelled(self)
def _get_tabs(self):
# tabs links list
return self.driver.find_elements(
By.XPATH,
'//div[@id="project-topbar"]//li'
)
def _get_config_nav_item(self, index):
config_nav = self.find('#config-nav')
return config_nav.find_elements(By.TAG_NAME, 'li')[index]
def test_project_config_nav(self):
""" Test project config tab navigation:
- Check if the menu is displayed and contains the right elements:
- Configuration
- COMPATIBLE METADATA
- Custom images
- Image recipes
- Software recipes
- Machines
- Layers
- Distro
- EXTRA CONFIGURATION
- Bitbake variables
- Actions
- Delete project
"""
self._navigate_to_project_page()
def _get_config_nav_item(index):
config_nav = self.find('#config-nav')
return config_nav.find_elements(By.TAG_NAME, 'li')[index]
def check_config_nav_item(index, item_name, url):
item = _get_config_nav_item(index)
self.assertTrue(item_name in item.text)
self.assertTrue(item.get_attribute('class') == 'active')
self.assertTrue(url in self.driver.current_url)
# check if the menu contains the right elements
# COMPATIBLE METADATA
compatible_metadata = _get_config_nav_item(1)
self.assertTrue(
"compatible metadata" in compatible_metadata.text.lower()
)
# EXTRA CONFIGURATION
extra_configuration = _get_config_nav_item(8)
self.assertTrue(
"extra configuration" in extra_configuration.text.lower()
)
# Actions
actions = _get_config_nav_item(10)
self.assertTrue("actions" in str(actions.text).lower())
conf_nav_list = [
# config
[0, 'Configuration',
f"/toastergui/project/{TestProjectConfigTab.project_id}"],
# custom images
[2, 'Custom images',
f"/toastergui/project/{TestProjectConfigTab.project_id}/customimages"],
# image recipes
[3, 'Image recipes',
f"/toastergui/project/{TestProjectConfigTab.project_id}/images"],
# software recipes
[4, 'Software recipes',
f"/toastergui/project/{TestProjectConfigTab.project_id}/softwarerecipes"],
# machines
[5, 'Machines',
f"/toastergui/project/{TestProjectConfigTab.project_id}/machines"],
# layers
[6, 'Layers',
f"/toastergui/project/{TestProjectConfigTab.project_id}/layers"],
# distro
[7, 'Distros',
f"/toastergui/project/{TestProjectConfigTab.project_id}/distros"],
# [9, 'BitBake variables', f"/toastergui/project/{TestProjectConfigTab.project_id}/configuration"], # bitbake variables
]
for index, item_name, url in conf_nav_list:
item = _get_config_nav_item(index)
if item.get_attribute('class') != 'active':
item.click()
check_config_nav_item(index, item_name, url)
def test_image_recipe_editColumn(self):
""" Test the edit column feature in image recipe table on project page """
def test_edit_column(check_box_id):
# Check that we can hide/show table column
check_box = self.find(f'#{check_box_id}')
th_class = str(check_box_id).replace('checkbox-', '')
if check_box.is_selected():
# check if column is visible in table
self.assertTrue(
self.find(
f'#imagerecipestable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
check_box.click()
# check if column is hidden in table
self.assertFalse(
self.find(
f'#imagerecipestable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
else:
# check if column is hidden in table
self.assertFalse(
self.find(
f'#imagerecipestable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is unchecked in EditColumn dropdown, but it's visible in table"
)
check_box.click()
# check if column is visible in table
self.assertTrue(
self.find(
f'#imagerecipestable thead th.{th_class}'
).is_displayed(),
f"The {th_class} column is checked in EditColumn dropdown, but it's not visible in table"
)
self._navigate_to_project_page()
# navigate to project image recipe page
recipe_image_page_link = self._get_config_nav_item(3)
recipe_image_page_link.click()
self.wait_until_present('#imagerecipestable tbody tr')
# Check edit column
edit_column = self.find('#edit-columns-button')
self.assertTrue(edit_column.is_displayed())
edit_column.click()
# Check dropdown is visible
self.wait_until_visible('ul.dropdown-menu.editcol')
# Check that we can hide the edit column
test_edit_column('checkbox-get_description_or_summary')
test_edit_column('checkbox-layer_version__get_vcs_reference')
test_edit_column('checkbox-layer_version__layer__name')
test_edit_column('checkbox-license')
test_edit_column('checkbox-recipe-file')
test_edit_column('checkbox-section')
test_edit_column('checkbox-version')
def test_image_recipe_show_rows(self):
""" Test the show rows feature in image recipe table on project page """
def test_show_rows(row_to_show, show_row_link):
# Check that we can show rows == row_to_show
show_row_link.select_by_value(str(row_to_show))
self.wait_until_visible('#imagerecipestable tbody tr', poll=3)
# check at least some rows are visible
self.assertTrue(
len(self.find_all('#imagerecipestable tbody tr')) > 0
)
self._navigate_to_project_page()
# navigate to project image recipe page
recipe_image_page_link = self._get_config_nav_item(3)
recipe_image_page_link.click()
self.wait_until_present('#imagerecipestable tbody tr')
show_rows = self.driver.find_elements(
By.XPATH,
'//select[@class="form-control pagesize-imagerecipestable"]'
)
# Check show rows
for show_row_link in show_rows:
show_row_link = Select(show_row_link)
test_show_rows(10, show_row_link)
test_show_rows(25, show_row_link)
test_show_rows(50, show_row_link)
test_show_rows(100, show_row_link)
test_show_rows(150, show_row_link)
def test_project_config_tab_right_section(self):
""" Test project config tab right section contains five blocks:
- Machine:
- check 'Machine' is displayed
- check can change Machine
- Distro:
- check 'Distro' is displayed
- check can change Distro
- Most built recipes:
- check 'Most built recipes' is displayed
- check can select a recipe and build it
- Project release:
- check 'Project release' is displayed
- check project has right release displayed
- Layers:
- check can add a layer if exists
- check at least three layers are displayed
- openembedded-core
- meta-poky
- meta-yocto-bsp
"""
# Create a new project for this test
project_name = self._random_string(10)
self._create_project(project_name=project_name)
# check if the menu is displayed
self.wait_until_visible('#project-page')
block_l = self.driver.find_element(
By.XPATH, '//*[@id="project-page"]/div[2]')
project_release = self.driver.find_element(
By.XPATH, '//*[@id="project-page"]/div[1]/div[4]')
layers = block_l.find_element(By.ID, 'layer-container')
def check_machine_distro(self, item_name, new_item_name, block_id):
block = self.find(f'#{block_id}')
title = block.find_element(By.TAG_NAME, 'h3')
self.assertTrue(item_name.capitalize() in title.text)
edit_btn = self.find(f'#change-{item_name}-toggle')
edit_btn.click()
self.wait_until_visible(f'#{item_name}-change-input')
name_input = self.find(f'#{item_name}-change-input')
name_input.clear()
name_input.send_keys(new_item_name)
change_btn = self.find(f'#{item_name}-change-btn')
change_btn.click()
self.wait_until_visible(f'#project-{item_name}-name')
project_name = self.find(f'#project-{item_name}-name')
self.assertTrue(new_item_name in project_name.text)
# check change notificaiton is displayed
change_notification = self.find('#change-notification')
self.assertTrue(
f'You have changed the {item_name} to: {new_item_name}' in change_notification.text
)
# Machine
check_machine_distro(self, 'machine', 'qemux86-64', 'machine-section')
# Distro
check_machine_distro(self, 'distro', 'poky-altcfg', 'distro-section')
# Project release
title = project_release.find_element(By.TAG_NAME, 'h3')
self.assertTrue("Project release" in title.text)
self.assertTrue(
"Yocto Project master" in self.find('#project-release-title').text
)
# Layers
title = layers.find_element(By.TAG_NAME, 'h3')
self.assertTrue("Layers" in title.text)
# check at least three layers are displayed
# openembedded-core
# meta-poky
# meta-yocto-bsp
layers_list = layers.find_element(By.ID, 'layers-in-project-list')
layers_list_items = layers_list.find_elements(By.TAG_NAME, 'li')
# remove all layers except the first three layers
for i in range(3, len(layers_list_items)):
layers_list_items[i].find_element(By.TAG_NAME, 'span').click()
# check can add a layer if exists
add_layer_input = layers.find_element(By.ID, 'layer-add-input')
add_layer_input.send_keys('meta-oe')
self.wait_until_visible('#layer-container > form > div > span > div')
dropdown_item = self.driver.find_element(
By.XPATH,
'//*[@id="layer-container"]/form/div/span/div'
)
try:
dropdown_item.click()
except ElementClickInterceptedException:
self.skipTest(
"layer-container dropdown item click intercepted. Element not properly visible.")
add_layer_btn = layers.find_element(By.ID, 'add-layer-btn')
add_layer_btn.click()
self.wait_until_visible('#layers-in-project-list')
# check layer is added
layers_list_items = layers_list.find_elements(By.TAG_NAME, 'li')
self.assertTrue(len(layers_list_items) == 4)
def test_most_build_recipes(self):
""" Test most build recipes block contains"""
def rebuild_from_most_build_recipes(recipe_list_items):
checkbox = recipe_list_items[0].find_element(By.TAG_NAME, 'input')
checkbox.click()
build_btn = self.find('#freq-build-btn')
build_btn.click()
self.wait_until_visible('#latest-builds')
wait_until_build(self, 'queued cloning starting parsing failed')
lastest_builds = self.driver.find_elements(
By.XPATH,
'//div[@id="latest-builds"]/div'
)
self.assertTrue(len(lastest_builds) >= 2)
last_build = lastest_builds[0]
try:
cancel_button = last_build.find_element(
By.XPATH,
'//span[@class="cancel-build-btn pull-right alert-link"]',
)
cancel_button.click()
except NoSuchElementException:
# Skip if the build is already cancelled
pass
wait_until_build_cancelled(self)
# Create a new project for remaining asserts
project_name = self._random_string(10)
self._create_project(project_name=project_name, release='2')
current_url = self.driver.current_url
TestProjectConfigTab.project_id = get_projectId_from_url(current_url)
url = current_url.split('?')[0]
# Create a new builds
self._create_builds()
# back to project page
self.driver.get(url)
self.wait_until_visible('#project-page', poll=3)
# Most built recipes
most_built_recipes = self.driver.find_element(
By.XPATH, '//*[@id="project-page"]/div[1]/div[3]')
title = most_built_recipes.find_element(By.TAG_NAME, 'h3')
self.assertTrue("Most built recipes" in title.text)
# check can select a recipe and build it
self.wait_until_visible('#freq-build-list', poll=3)
recipe_list = self.find('#freq-build-list')
recipe_list_items = recipe_list.find_elements(By.TAG_NAME, 'li')
self.assertTrue(
len(recipe_list_items) > 0,
msg="Any recipes found in the most built recipes list",
)
rebuild_from_most_build_recipes(recipe_list_items)
TestProjectConfigTab.project_id = None # reset project id
def test_project_page_tab_importlayer(self):
""" Test project page tab import layer """
self._navigate_to_project_page()
# navigate to "Import layers" tab
import_layers_tab = self._get_tabs()[2]
import_layers_tab.find_element(By.TAG_NAME, 'a').click()
self.wait_until_visible('#layer-git-repo-url')
# Check git repo radio button
git_repo_radio = self.find('#git-repo-radio')
git_repo_radio.click()
# Set git repo url
input_repo_url = self.find('#layer-git-repo-url')
input_repo_url.send_keys('git://git.yoctoproject.org/meta-fake')
# Blur the input to trigger the validation
input_repo_url.send_keys(Keys.TAB)
# Check name is set
input_layer_name = self.find('#import-layer-name')
self.assertTrue(input_layer_name.get_attribute('value') == 'meta-fake')
# Set branch
input_branch = self.find('#layer-git-ref')
input_branch.send_keys('master')
# Import layer
self.find('#import-and-add-btn').click()
# Check layer is added
self.wait_until_visible('#layer-container')
block_l = self.driver.find_element(
By.XPATH, '//*[@id="project-page"]/div[2]')
layers = block_l.find_element(By.ID, 'layer-container')
layers_list = layers.find_element(By.ID, 'layers-in-project-list')
layers_list_items = layers_list.find_elements(By.TAG_NAME, 'li')
self.assertTrue(
'meta-fake' in str(layers_list_items[-1].text)
)
def test_project_page_custom_image_no_image(self):
""" Test project page tab "New custom image" when no custom image """
project_name = self._random_string(10)
self._create_project(project_name=project_name)
current_url = self.driver.current_url
TestProjectConfigTab.project_id = get_projectId_from_url(current_url)
# navigate to "Custom image" tab
custom_image_section = self._get_config_nav_item(2)
custom_image_section.click()
self.wait_until_visible('#empty-state-customimagestable')
# Check message when no custom image
self.assertTrue(
"You have not created any custom images yet." in str(
self.find('#empty-state-customimagestable').text
)
)
div_empty_msg = self.find('#empty-state-customimagestable')
link_create_custom_image = div_empty_msg.find_element(
By.TAG_NAME, 'a')
self.assertTrue(TestProjectConfigTab.project_id is not None)
self.assertTrue(
f"/toastergui/project/{TestProjectConfigTab.project_id}/newcustomimage" in str(
link_create_custom_image.get_attribute('href')
)
)
self.assertTrue(
"Create your first custom image" in str(
link_create_custom_image.text
)
)
TestProjectConfigTab.project_id = None # reset project id
def test_project_page_image_recipe(self):
""" Test project page section images
- Check image recipes are displayed
- Check search input
- Check image recipe build button works
- Check image recipe table features(show/hide column, pagination)
"""
self._navigate_to_project_page()
# navigate to "Images section"
images_section = self._get_config_nav_item(3)
images_section.click()
self.wait_until_visible('#imagerecipestable')
rows = self.find_all('#imagerecipestable tbody tr')
self.assertTrue(len(rows) > 0)
# Test search input
self.wait_until_visible('#search-input-imagerecipestable')
recipe_input = self.find('#search-input-imagerecipestable')
recipe_input.send_keys('core-image-minimal')
self.find('#search-submit-imagerecipestable').click()
self.wait_until_visible('#imagerecipestable tbody tr')
rows = self.find_all('#imagerecipestable tbody tr')
self.assertTrue(len(rows) > 0)

View File

@@ -0,0 +1,89 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
from time import sleep
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException, TimeoutException
from selenium.webdriver.common.by import By
from orm.models import Build
def wait_until_build(test_instance, state):
timeout = 60
start_time = 0
build_state = ''
while True:
try:
if start_time > timeout:
raise TimeoutException(
f'Build did not reach {state} state within {timeout} seconds'
)
last_build_state = test_instance.driver.find_element(
By.XPATH,
'//*[@id="latest-builds"]/div[1]//div[@class="build-state"]',
)
build_state = last_build_state.get_attribute(
'data-build-state')
state_text = state.lower().split()
if any(x in str(build_state).lower() for x in state_text):
return str(build_state).lower()
if 'failed' in str(build_state).lower():
break
except NoSuchElementException:
continue
except TimeoutException:
break
start_time += 1
sleep(1) # take a breath and try again
def wait_until_build_cancelled(test_instance):
""" Cancel build take a while sometime, the method is to wait driver action
until build being cancelled
"""
timeout = 30
start_time = 0
build = None
while True:
try:
if start_time > timeout:
raise TimeoutException(
f'Build did not reach cancelled state within {timeout} seconds'
)
last_build_state = test_instance.driver.find_element(
By.XPATH,
'//*[@id="latest-builds"]/div[1]//div[@class="build-state"]',
)
build_state = last_build_state.get_attribute(
'data-build-state')
if 'failed' in str(build_state).lower():
break
if 'cancelling' in str(build_state).lower():
# Change build state to cancelled
if not build: # get build object only once
build = Build.objects.last()
build.outcome = Build.CANCELLED
build.save()
if 'cancelled' in str(build_state).lower():
break
except NoSuchElementException:
continue
except StaleElementReferenceException:
continue
except TimeoutException:
break
start_time += 1
sleep(1) # take a breath and try again
def get_projectId_from_url(url):
# url = 'http://domainename.com/toastergui/project/1656/whatever
# or url = 'http://domainename.com/toastergui/project/1/
# or url = 'http://domainename.com/toastergui/project/186
assert '/toastergui/project/' in url, "URL is not valid"
url_to_list = url.split('/toastergui/project/')
return int(url_to_list[1].split('/')[0]) # project_id

View File

@@ -1 +1,7 @@
selenium>=4.13.0
pytest==7.4.2
pytest-django==4.5.2
pytest-env==1.1.0
pytest-html==4.0.2
pytest-metadata==3.0.0
pytest-order==1.1.0

View File

@@ -9,6 +9,8 @@
"""Test cases for Toaster GUI and ReST."""
import os
import pytest
from django.test import TestCase
from django.test.client import RequestFactory
from django.urls import reverse
@@ -33,15 +35,25 @@ PROJECT_NAME2 = "test project 2"
CLI_BUILDS_PROJECT_NAME = 'Command line builds'
class ViewTests(TestCase):
"""Tests to verify view APIs."""
fixtures = ['toastergui-unittest-data']
builldir = os.environ.get('BUILDDIR')
def setUp(self):
self.project = Project.objects.first()
self.recipe1 = Recipe.objects.get(pk=2)
# create a file and to recipe1 file_path
file_path = f"{self.builldir}/{self.recipe1.name.strip().replace(' ', '-')}.bb"
with open(file_path, 'w') as f:
f.write('foo')
self.recipe1.file_path = file_path
self.recipe1.save()
self.customr = CustomImageRecipe.objects.first()
self.cust_package = CustomImagePackage.objects.first()
self.package = Package.objects.first()
@@ -230,7 +242,7 @@ class ViewTests(TestCase):
recipe = CustomImageRecipe.objects.create(
name=name, project=self.project,
base_recipe=self.recipe1,
file_path="/tmp/testing",
file_path=f"{self.builldir}/testing",
layer_version=self.customr.layer_version)
url = reverse('xhr_customrecipe_id', args=(recipe.id,))
response = self.client.delete(url)
@@ -301,7 +313,7 @@ class ViewTests(TestCase):
"""Download the recipe file generated for the custom image"""
# Create a dummy recipe file for the custom image generation to read
open("/tmp/a_recipe.bb", 'a').close()
open(f"{self.builldir}/a_recipe.bb", 'a').close()
response = self.client.get(reverse('customrecipedownload',
args=(self.project.id,
self.customr.id)))

View File

@@ -6,10 +6,22 @@
<field type="CharField" name="dirpath">b</field>
<field type="CharField" name="branch">a</field>
</object>
<object pk="1" model="orm.distro">
<field type="DateTimeField" name="up_date"><None></None></field>
<field to="orm.layer_version" name="layer_version" rel="ManyToOneRel">1</field>
<field type="CharField" name="name">poky_distro1</field>
<field type="CharField" name="description">poky_distro1 description</field>
</object>
<object pk="2" model="orm.distro">
<field type="DateTimeField" name="up_date"><None></None></field>
<field to="orm.layer_version" name="layer_version" rel="ManyToOneRel">2</field>
<field type="CharField" name="name">poky_distro2</field>
<field type="CharField" name="description">poky_distro2 description</field>
</object>
<object pk="1" model="orm.release">
<field type="CharField" name="name">master</field>
<field type="CharField" name="name">foo_master</field>
<field type="CharField" name="description">master project</field>
<field to="orm.bitbake_version" name="bitbake_version">1</field>
<field to="orm.bitbakeversion" name="bitbake_version">1</field>
</object>
<object pk="1" model="orm.project">
<field type="CharField" name="name">a test project</field>
@@ -34,12 +46,12 @@
<object pk="1" model="orm.ProjectVariable">
<field to="orm.project" name="project" rel="ManyToOneRel">1</field>
<field type="CharField" name="name">MACHINE</field>
<field type="TextField" name="value">qemux86</field>
<field type="TextField" name="value">qemux86-64</field>
</object>
<object pk="2" model="orm.ProjectVariable">
<field to="orm.project" name="project" rel="ManyToOneRel">2</field>
<field type="CharField" name="name">MACHINE</field>
<field type="TextField" name="value">qemux86</field>
<field type="TextField" name="value">qemux86-64</field>
</object>
<object pk="1" model="orm.build">
<field to="orm.project" name="project" rel="ManyToOneRel">1</field>
@@ -67,7 +79,7 @@
</object>
<object pk="3" model="orm.build">
<field to="orm.project" name="project" rel="ManyToOneRel">1</field>
<field type="CharField" name="machine">qemux86</field>
<field type="CharField" name="machine">qemux86-64</field>
<field type="CharField" name="distro"></field>
<field type="CharField" name="distro_version"></field>
<field type="DateTimeField" name="started_on">2016-02-12T18:46:20.114530+00:00</field>
@@ -79,7 +91,7 @@
</object>
<object pk="4" model="orm.build">
<field to="orm.project" name="project" rel="ManyToOneRel">2</field>
<field type="CharField" name="machine">qemux86</field>
<field type="CharField" name="machine">qemux86-64</field>
<field type="CharField" name="distro"></field>
<field type="CharField" name="distro_version"></field>
<field type="DateTimeField" name="started_on">2016-02-11T18:46:20.114530+00:00</field>

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# BitBake Toaster UI tests implementation
#
# Copyright (C) 2023 Savoir-faire Linux
#
# SPDX-License-Identifier: GPL-2.0-only
#
from django import forms
from django.core.validators import FileExtensionValidator
class LoadFileForm(forms.Form):
eventlog_file = forms.FileField(widget=forms.FileInput(attrs={'accept': '.json'}))

Some files were not shown because too many files have changed in this diff Show More