]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
3 years agowebkitgtk: Fix reproducibility in minibrowser
Khem Raj [Sun, 2 May 2021 20:16:30 +0000 (13:16 -0700)]
webkitgtk: Fix reproducibility in minibrowser

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8f08ca440b6c2ad3494808ffa4ec6091722c0339)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa: reproducible: Fix test not producing diffs
Joshua Watt [Sun, 30 Aug 2020 03:00:34 +0000 (22:00 -0500)]
oeqa: reproducible: Fix test not producing diffs

Diffoscope changed the --exclude-directory-metadata option to require an
argument.

Add a test to validate that diffoscope is functioning as
expected to ensure that future upgrades do not unintentionally break
the reproducibility tests.

[YOCTO #14025]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ea8fbcb7978ce48d7a9a83143d09402329535f86)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agometa/scripts: Manual git url branch additions
Richard Purdie [Fri, 29 Oct 2021 12:34:24 +0000 (13:34 +0100)]
meta/scripts: Manual git url branch additions

Following the scripted conversion adding branches to git://
SRC_URI entries, add the remaining references, mainly in the selftests
and recipetool.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5340c0d688036c1be6c938f05d8a8c1e3b49ec38)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agometa: Add explict branch to git SRC_URIs, handle github url changes
Steve Sakoman [Tue, 2 Nov 2021 14:45:10 +0000 (04:45 -1000)]
meta: Add explict branch to git SRC_URIs, handle github url changes

This update was made with the convert-scruri.py script in scripts/contrib

This script handles two emerging issues:

    1. There is uncertainty about the default branch name in git going forward.
    To try and cover the different possible outcomes, add branch names to all
    git:// and gitsm:// SRC_URI entries.

    2. Github are dropping support for git:// protocol fetching, so remap github
     urls as needed. For more details see:

    https://github.blog/2021-09-01-improving-git-protocol-security-github/

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoscripts/convert-srcuri: Backport SRC_URI conversion script from master branch
Richard Purdie [Tue, 2 Nov 2021 11:34:21 +0000 (11:34 +0000)]
scripts/convert-srcuri: Backport SRC_URI conversion script from master branch

This script handles two emerging issues:

1. There is uncertainty about the default branch name in git going forward.
To try and cover the different possible outcomes, add branch names to all
git:// and gitsm:// SRC_URI entries.

2. Github are dropping support for git:// protocol fetching, so remap github
 urls as needed. For more details see:

https://github.blog/2021-09-01-improving-git-protocol-security-github/

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotzdata: update 2021d -> 2021e
Alexander Kanavin [Wed, 27 Oct 2021 09:07:26 +0000 (11:07 +0200)]
tzdata: update 2021d -> 2021e

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 660f932c21fed410ad092ec610749e7090b6a324)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotzdata: upgrade 2021a -> 2021d
Alexander Kanavin [Tue, 19 Oct 2021 15:33:37 +0000 (17:33 +0200)]
tzdata: upgrade 2021a -> 2021d

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f171f4f528090fc108624de6049274aa4d4880eb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoca-certificates: update 20210119 -> 20211016
Alexander Kanavin [Tue, 19 Oct 2021 15:33:29 +0000 (17:33 +0200)]
ca-certificates: update 20210119 -> 20211016

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c479b8a810d966d7267af1b4dac38a46f55fc547)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agowireless-regdb: upgrade 2021.07.14 -> 2021.08.28
Alexander Kanavin [Tue, 19 Oct 2021 15:34:06 +0000 (17:34 +0200)]
wireless-regdb: upgrade 2021.07.14 -> 2021.08.28

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 00c590f50d6894089ff7ce8ad6e263431d9cc550)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agowireless-regdb: upgrade 2021.04.21 -> 2021.07.14
Alexander Kanavin [Sun, 22 Aug 2021 12:50:55 +0000 (14:50 +0200)]
wireless-regdb: upgrade 2021.04.21 -> 2021.07.14

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7f4d11e8da6bb79232535c42ad41798a56162ac7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolinux-firmware: upgrade 20210818 -> 20210919
Alexander Kanavin [Tue, 19 Oct 2021 15:34:05 +0000 (17:34 +0200)]
linux-firmware: upgrade 20210818 -> 20210919

License-Update: additional files
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8dac57dfed45a0d8a049473f2efc1711b56273a4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolinux-firmware: upgrade 20210511 -> 20210818
Alexander Kanavin [Sun, 22 Aug 2021 12:50:54 +0000 (14:50 +0200)]
linux-firmware: upgrade 20210511 -> 20210818

License-Update: new firmware files, copyright years, file names
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bfceaba4f38771047dfdfdfdbf16b794006dfd78)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogit: Fix determinism issue
Richard Purdie [Wed, 17 Feb 2021 17:57:13 +0000 (17:57 +0000)]
git: Fix determinism issue

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9ae740939f8315c64fe7571f912404127a29dc89)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agostress-ng: improve reproducibility
Steve Sakoman [Thu, 28 Oct 2021 16:08:11 +0000 (06:08 -1000)]
stress-ng: improve reproducibility

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agostress-ng: convert to git, website is down
Steve Sakoman [Thu, 28 Oct 2021 15:42:34 +0000 (05:42 -1000)]
stress-ng: convert to git, website is down

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agowaffle: old website is down, update to new project URLs
Steve Sakoman [Tue, 26 Oct 2021 16:17:36 +0000 (06:17 -1000)]
waffle: old website is down, update to new project URLs

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomirrors.bbclass: remove dead infozip mirrors
Oleksandr Kravchuk [Thu, 14 Oct 2021 21:48:59 +0000 (23:48 +0200)]
mirrors.bbclass: remove dead infozip mirrors

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0140df8724a1c73f7b62fbbbaee58c3eb119eeba)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/runtime/parselogs: modified drm error in common errors list
Teoh Jay Shen [Thu, 28 Oct 2021 11:15:44 +0000 (19:15 +0800)]
oeqa/runtime/parselogs: modified drm error in common errors list

Changed the following line from:

  [drm] Cannot find any crtc or sizes - going 1024x768  >  [drm] Cannot find any crtc or sizes

This will expand the coverage of the failure to also cover the case when fallback size is not set.

Signed-off-by: Teoh Jay Shen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0569fa735458512d6e15aa3315218ecbdf8510a3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/runtime: search sys.path explicitly for modules
Ross Burton [Wed, 20 Oct 2021 17:30:07 +0000 (18:30 +0100)]
oeqa/runtime: search sys.path explicitly for modules

The controller module loading code needs to be told what directories
to search for modules via the target_modules_path keyword argument, which
is set to BBPATH.

However, as the actual module loading is done via importlib this relies
on the paths being on sys.path, which it is as base.bbclass puts each
layer's lib/ in sys.path.

Simplify the code by removing this indirection, and simply search
sys.path directly.

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>
(cherry picked from commit 570a19581f582f77e04d6892adb647cd649a6943)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/runtime: load modules using importlib
Ross Burton [Wed, 20 Oct 2021 17:30:06 +0000 (18:30 +0100)]
oeqa/runtime: load modules using importlib

Instead of using __import__() which is low-level and discouraged, use
importlib.

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>
(cherry picked from commit 9f501d22eab5dbd565f3f5783f4f484a6d1f70a2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotestimage: fix unclosed testdata file
Ross Burton [Fri, 15 Oct 2021 17:41:20 +0000 (18:41 +0100)]
testimage: fix unclosed testdata file

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0c192a97e3e1c015a48667d6903cc07a8b2620e4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoreproducible_build: Drop obsolete sstate workaround
Richard Purdie [Thu, 14 Oct 2021 11:04:46 +0000 (12:04 +0100)]
reproducible_build: Drop obsolete sstate workaround

sstate has been sufficiently invalidated since this change was made, drop
the workaround now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7a497d8f30f21bafc78d0f22f3442a9cc99544cb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooe/utils: log exceptions in ThreadedWorker functions
Ross Burton [Thu, 14 Oct 2021 16:33:18 +0000 (17:33 +0100)]
oe/utils: log exceptions in ThreadedWorker functions

If the function a ThreadedWorker is executing raises an exception, don't
use print() as that mostly disappears.  Instead, output it to the logger.

This is done using bb.mainlogger.debug directly instead of bb.debug() as
this allows us to pass the exception instance directly, which is then
incorporated into the log stream.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2f1ea25c222b344dd8b784b2bc73a6540ab30274)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolicense.bbclass: implement ast.NodeVisitor.visit_Constant
Ross Burton [Wed, 13 Oct 2021 15:10:24 +0000 (16:10 +0100)]
license.bbclass: implement ast.NodeVisitor.visit_Constant

Since Python 3.8 visit_Num(), visit_Str() and so on are all deprecated
and replaced with visit_Constant.  We can't yet remove the deprecated
functions until we require 3.8, but we can implement visit_Constant to
silence the deprecation warnings.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 875a944392a3c93f40081a14af357f70b6b8264f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooe/license: implement ast.NodeVisitor.visit_Constant
Ross Burton [Wed, 13 Oct 2021 15:10:23 +0000 (16:10 +0100)]
oe/license: implement ast.NodeVisitor.visit_Constant

Since Python 3.8 visit_Num(), visit_Str() and so on are all deprecated
and replaced with visit_Constant.  We can't yet remove the deprecated
functions until we require 3.8, but we can implement visit_Constant to
silence the deprecation warnings.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit abc93390a3f19bc4cc159c5690a478b9e2270906)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobitbake.conf: Add gpg-agent as a host tool
Daniel McGregor [Tue, 12 Oct 2021 15:44:50 +0000 (09:44 -0600)]
bitbake.conf: Add gpg-agent as a host tool

If gpg is used, it will find the first gpg agent in the path, this
may lead to issues where gpg comes from the host, and the agent
comes from a gnupg-native due to package signing. The versions
being out of sync causes gpg to fail.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2b59fb9d52a405a32a1d069d4c5320b72fbd35ce)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobase: Use repr() for printing exceptions
Richard Purdie [Sat, 9 Oct 2021 22:33:15 +0000 (23:33 +0100)]
base: Use repr() for printing exceptions

Exceptions print more clearly using repr() instead of str(), fix
in fetch and unpack tasks.

Drop part of the test which no longer makes sense after this change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c94816259cc1c09746353ad26ca0c811e0c962c2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobase: Clean up unneeded len() calls
Richard Purdie [Sat, 9 Oct 2021 16:46:17 +0000 (17:46 +0100)]
base: Clean up unneeded len() calls

This code pattern isn't very pythonic, improve it to drop the unneeded
len() calls.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 69376ac1a6147b26fe1abaa4cf68414024814d63)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agosstate: don't silently handle all exceptions in sstate_checkhashes
Ross Burton [Thu, 14 Oct 2021 16:33:19 +0000 (17:33 +0100)]
sstate: don't silently handle all exceptions in sstate_checkhashes

If checkstatus returns an exception we should silently handle
FetchError, as this means the fetch failed for 'normal' reasons such as
file not found.  However, other exceptions may be raised, and these
should be made visible.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 50d99faf88a1d82cbd939b9bd6e33ebed2b1ffd8)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agodevtool: fix modify with patches in override directories
Ross Burton [Thu, 28 Oct 2021 08:05:37 +0000 (10:05 +0200)]
devtool: fix modify with patches in override directories

If a recipe applies patches which are in machine-specific override
directories, devtool will fail to fetch the patches that don't match the
default configuration.  For example where there are patches at
qemux86/x86.patch and qemuarm/arm.patch:

SRC_URI = "file://source"
SRC_URI_append_qemuarm = " file://arm.patch"
SRC_URI_append_qemux86 = " file://x86.patch"

The patch apply phase sets OVERRIDES but does not set FILESOVERRIDES, so
it cannot find the patch files as the search path isn't correct.  Fix
this by setting FILESOVERRIDES too.

Also when iterating through the overrides we need to be sure that other
overrides that are used are not enabled, so extend no_overrides instead of
simply appending the current override.

Fixes most but not all of [ YOCTO #14060 ].

(From OE-Core rev: a372cdf8e175423c47faeecc98ad076ee26bbec8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4a35bcc9d164ac038a31356a15a0f61ccdd38be2)
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agosstate: fix touching files inside pseudo
Jose Quaresma [Wed, 20 Oct 2021 17:25:46 +0000 (18:25 +0100)]
sstate: fix touching files inside pseudo

running the 'id' command inside the sstate_create_package
function shows that this funcion run inside the pseudo:

 uid=0(root) gid=0(root) groups=0(root)

The check for touch files [ ! -w ${SSTATE_PKG} ]
will always return true and the touch can fail
when the real user don't have permission or
in readonly filesystem.

As the documentation refers, the file test operator "-w"
check if the file has write permission (for the user running the test).

We can avoid this test running the touch and mask any return errors
that we have.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f6e7445c94443544e92fda97a017ce93393c5f84)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: fix 2021-3796
Minjae Kim [Mon, 25 Oct 2021 07:28:57 +0000 (16:28 +0900)]
vim: fix 2021-3796

vim is vulnerable to Use After Free
Problem: Checking first character of url twice.

reference:
https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3

Signed-off-by: Minjae Kim <flowergom@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agocurl: Whitelist CVE-2021-22897
Ranjitsinh Rathod [Wed, 27 Oct 2021 12:56:18 +0000 (18:26 +0530)]
curl: Whitelist CVE-2021-22897

CVE-2021-22897 is affecting only Windows, hence whitelisting this CVE.
Link: https://security-tracker.debian.org/tracker/CVE-2021-22897
Link: https://ubuntu.com/security/CVE-2021-22897
Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Signed-off-by: Ranjitsinh Rathod <ranjitsinhrathod1991@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoselftest/reproducible: adjust exclusion list for dunfell
Steve Sakoman [Thu, 21 Oct 2021 22:10:20 +0000 (12:10 -1000)]
selftest/reproducible: adjust exclusion list for dunfell

Signed-off-be: Steve Sakoman <steve@sakoman.com>

3 years agoclasses/reproducible_build: Use atomic rename for SDE file
Joshua Watt [Wed, 2 Jun 2021 02:36:48 +0000 (21:36 -0500)]
classes/reproducible_build: Use atomic rename for SDE file

If an existing source date epoch file was found during do_unpack, it was
deleted and a new one would be written in its place. This causes a race
with check-before-use code in get_source_date_epoch_value. Resolve the
problem by making do_unpack write the new source date epoch to a
temporary file, then do an atomic rename to ensure it's always present,
and change the check-before-use code to use a EAFP exception instead of
checking for file existence.

[YOCTO #14384]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0b5e3b33187bf78a2d62cc886463e4b27d6bd228)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoreproducible_build: Work around caching issues
Richard Purdie [Sun, 3 Oct 2021 19:12:26 +0000 (20:12 +0100)]
reproducible_build: Work around caching issues

SOURCE_DATE_EPOCH can be expanded early in the parsing process before
the class extensions are applied. This can mean the directory pointed
to for the SDE can be incorrect until later in parsing. Cache the file
name in the cached value and allow it to dynamically update.

This isn't ideal but avoding expansion of the variable likely isn't
possible and I'm not sure how else to handle this. This works around
the issue until a better solution can be found.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44dc97cd1223e4d2b635669627ec5f796838d42d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agorpm: Deterministically set vendor macro entry
Richard Purdie [Thu, 7 Oct 2021 10:14:18 +0000 (11:14 +0100)]
rpm: Deterministically set vendor macro entry

On an aarch64 build host, vendor is found to be "unknown", on x86 systems
it is "pc". This filters through to the PLATFORM tag in target rpms.

We saw reproducibility test failures where the PLATFORM tags in noarch
rpms were changing depending upon which host built them. Forcing the
vendor value to a consistent one makes things deterministic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f6434075b2bdfc23c683d22281b674b1e6abde77)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agouninative: Upgrade to 3.4
Michael Halstead [Tue, 31 Aug 2021 20:54:15 +0000 (13:54 -0700)]
uninative: Upgrade to 3.4

This adds a patch to glibc which allows it to work with Docker and
clone3 syscall issues cased by EPERM vs ENOSYS.

(From OE-Core rev: 2b01964e7eb535de374e840ae7d853cdea934c0d)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 06d55ee67ef81a9f9da178b06bb797cc62881643)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agotarget/ssh.py: add HostKeyAlgorithms option to test commands
Steve Sakoman [Mon, 18 Oct 2021 23:17:29 +0000 (13:17 -1000)]
target/ssh.py: add HostKeyAlgorithms option to test commands

After recent updates to the autobuilder tumbleweed workers there are tests where the client and
server fail to agree on a public key algorithm for host authentication:

DEBUG: [Running]$ ssh -l root -o PubkeyAcceptedKeyTypes=+ssh-rsa -o UserKnownHostsFile=/dev/null
    -o StrictHostKeyChecking=no -o LogLevel=VERBOSE 192.168.7.6 export PATH=/usr/sbin:/sbin:/usr/bin:/bin; uname -a
DEBUG: time: 1634578090.4632802, endtime: 1634578390.4592378
DEBUG: Partial data from SSH call: Unable to negotiate with 192.168.7.6 port 22: no matching host key type found. Their offer: ssh-rsa

This appears to be an issue with recent versions of shh.  Add -o HostKeyAlgorithms=+ssh-rsa to
command invocation as suggested at:

http://www.openssh.com/legacy.html

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopython3: Add a fix for a make install race
Richard Purdie [Tue, 13 Jul 2021 22:19:29 +0000 (23:19 +0100)]
python3: Add a fix for a make install race

Add a fix for reproducibility issues where pyc files for python-config.py
may not always be generated.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1c3a87c48b598b6e5624d0affe8bd89320631bf)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibnewt: Use python3targetconfig to fix reproducibility issue
Richard Purdie [Tue, 12 Oct 2021 10:45:26 +0000 (11:45 +0100)]
libnewt: Use python3targetconfig to fix reproducibility issue

We're seeing pthread being linked sometimes and not others leading to
non-reproducible target binaries. The reason is mixing the native python
config with the target one. We should use the target one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3fe5101b335384ef83e96ccc58687fd631164075)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibxml2: Use python3targetconfig to fix reproducibility issue
Richard Purdie [Tue, 12 Oct 2021 10:41:41 +0000 (11:41 +0100)]
libxml2: Use python3targetconfig to fix reproducibility issue

We're seeing pthread being linked sometimes and not others leading to
non-reproducible target binaries. The reason is mixing the native python
config with the target one. We should use the target one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1bc5378db760963e2ad46542f2907dd6a592eb66)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexternalsrc: Fix a source date epoch race in reproducible builds
Richard Purdie [Tue, 21 Sep 2021 10:55:44 +0000 (11:55 +0100)]
externalsrc: Fix a source date epoch race in reproducible builds

When reproducible builds are enabled and externalsrc is in use, the
source date epoch function is added. The conditions on the conditional
code removing the unpack task need to match the deltask function, else
the source date epoch function can end up running twice and the functions
can race with each other causing build failures or corruption.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e82095c02881410035ca23dc12692f074d8ed39b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoexternalsrc: Work with reproducible_build
Mark Hatle [Fri, 10 Sep 2021 02:22:13 +0000 (21:22 -0500)]
externalsrc: Work with reproducible_build

Externalsrc removes do_fetch, do_unpack, and do_patch.  The system normally
discovers the correct reproducible date as a postfuncs of do_unpack, so this
date is never found, so it falls back to the default epoch.

Instead we can move the discovery function to a prefuncs on the epoch
deploy task.  This task will run before do_configure, and since the source
is already available can run safely at anytime.

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0b7dd711a54e92ce54abe99f59fc67e683d52dfe)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogobject-introspection: Don't write $HOME into scripts
Richard Purdie [Thu, 30 Sep 2021 10:14:41 +0000 (11:14 +0100)]
gobject-introspection: Don't write $HOME into scripts

Writing an expanded version of $HOME into the wrapper script breaks
reproducibility. We don't need this here so don't.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5df092524e93cd7d0eaa633ec8a5689d4c0d018d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibtool: Allow libtool-cross to reproduce
Richard Purdie [Thu, 30 Sep 2021 10:17:05 +0000 (11:17 +0100)]
libtool: Allow libtool-cross to reproduce

The hostname removal from the script is useful to make libtool-cross
reproduce. Apply the patch everywhere as it doesn't cause any issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3c61c6f20187154d677085fc9ccdcd762d4cdf3a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibtool: Fix lto option passing for reproducible builds
Richard Purdie [Thu, 5 Aug 2021 10:18:20 +0000 (11:18 +0100)]
libtool: Fix lto option passing for reproducible builds

If lto is enabled, we need the prefix-map variables to be passed to the linker.
Add these to the list of options libtool passes through.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2c26d2c00b47df856fb2d9c35486b135094d46ac)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoutil-linux: Fix reproducibility
Steve Sakoman [Mon, 4 Oct 2021 14:35:55 +0000 (04:35 -1000)]
util-linux: Fix reproducibility

Sort the list of files to ensure the pkgdata output is deterministic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3a55194f90e11da5671b24391a4aaf2b86a8e1e6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agognupg: Be deterministic about sendmail
Richard Purdie [Wed, 29 Sep 2021 19:01:12 +0000 (20:01 +0100)]
gnupg: Be deterministic about sendmail

Set a path to where sendmail would exist making the output deterministic
as it no longer depends on the build host and the presense of sendmail
there.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 32e03a430f13960fe07f08c04eaa58017d977f6c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomesa: Ensure megadrivers runtime mappings are deterministic
Richard Purdie [Wed, 29 Sep 2021 23:30:19 +0000 (00:30 +0100)]
mesa: Ensure megadrivers runtime mappings are deterministic

Add a sort to ensure the package dependency output is determnistic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 693e8d0dfe0b475bc233ccc1ad7674d39de346ce)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopackage: Ensure pclist files are deterministic and don't use full paths
Richard Purdie [Wed, 29 Sep 2021 12:30:59 +0000 (13:30 +0100)]
package: Ensure pclist files are deterministic and don't use full paths

Currently the pkgconfig pclist files contain full paths which are build
host specific and the order of entries is not deterministic.

Fix both these issues so the files are deterministic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e422e29bca4af3ab4073e04490f38b05cd7c38c0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agouninative: Upgrade to 3.3, support glibc 2.34
Michael Halstead [Mon, 16 Aug 2021 23:03:49 +0000 (16:03 -0700)]
uninative: Upgrade to 3.3, support glibc 2.34

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4aa4dcd5f31657073f2207a9a4a43247322c7eb1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agouninative: Improve glob to handle glibc 2.34
Ross Burton [Fri, 13 Aug 2021 14:59:18 +0000 (15:59 +0100)]
uninative: Improve glob to handle glibc 2.34

With glibc 2.34, the libraries were renamed. Tweak the glob to support both
as this is needed for newer uninative versions.

[RP: tweak commit message]
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 98248306e4b5f023e96375293b60524574ebb686)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agonativesdk-pseudo: Fix to work with glibc 2.34 systems
Hongxu Jia [Thu, 26 Aug 2021 05:03:09 +0000 (22:03 -0700)]
nativesdk-pseudo: Fix to work with glibc 2.34 systems

Since commit [df313aa810 pseudo: Fix to work with glibc 2.34
systems] applied, it fixed native only. And nativesdk has
the similar issue

Tweak library search order, make prebuilt lib ahead of recipe lib,
after apply the fix:
...
$ readelf -a lib/pseudo/lib64/libpseudo.so | grep 'Shared library'
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library:[libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d6d116b5db78645958ea30be3d0572e0f6d7bd92)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopseudo: Update with fcntl and glibc 2.34 fixes
Richard Purdie [Wed, 8 Sep 2021 22:45:54 +0000 (23:45 +0100)]
pseudo: Update with fcntl and glibc 2.34 fixes

Pull in the following changes:

* ports/linux/guts: Add closefrom support for glibc 2.34
* pseudo_client: Make msg static in pseudo_op_client
* ports/linux/guts: Add close_range wrapper for glibc 2.34
* pseudo_client: Do not pass null argument to pseudo_diag()
* test-openat: Consider device as well as inode number
* test: Add missing test-statx test case
* fcntl: Add support for fcntl F_GETPIPE_SZ and F_SETPIPE_SZ

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 71b549924a7fa7973a8e03e11f3db45fdc29889d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopseudo: Fix to work with glibc 2.34 systems
Richard Purdie [Tue, 17 Aug 2021 14:21:26 +0000 (15:21 +0100)]
pseudo: Fix to work with glibc 2.34 systems

The merge of libdl into libc in glibc 2.34 causes problems for pseudo. Add a fix
that works around this issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dd3e46a043c81cd4d81731a0f691868d3c059742)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoutil-linux: disable raw
Markus Volk [Sun, 12 Sep 2021 17:19:19 +0000 (19:19 +0200)]
util-linux: disable raw

raw.h has been dropped in linux-libc-headers-5.14 leading to:

configure: error: raw selected, but required raw.h header file not available
WARNING: exit code 1 from a shell command.

Signed-off-by: MarkusVolk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7f577c10913104860121f682b9b3754870c4db23)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogpgme: Use glibc provided closefrom API when available
Khem Raj [Thu, 15 Jul 2021 22:28:52 +0000 (15:28 -0700)]
gpgme: Use glibc provided closefrom API when available

glibc 2.34+ has added this API new

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>
(cherry picked from commit a2b2479d20d029f5a11dba8cf7f7ca3e4a5bbbe2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agom4: Do not use SIGSTKSZ
Khem Raj [Sat, 1 May 2021 17:46:55 +0000 (10:46 -0700)]
m4: Do not use SIGSTKSZ

Fixes
../../m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |                          ^~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44ca8edd622782733d507e20a3d5ee9e44eb8be4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agogcc: fix missing dependencies for selftests
Steve Sakoman [Tue, 5 Oct 2021 23:39:20 +0000 (13:39 -1000)]
gcc: fix missing dependencies for selftests

Building GCC with multiple make jobs appears to trigger a race condition.  The build fails with:

/bin/bash: TOPDIR/tmp/work/x86_64-linux/gcc-cross-i686/9.3.0-r0/gcc-9.3.0/build.x86_64-linux.i686-poky-linux/./gcc/xgcc: No such file or directory

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibpsl: Add config knobs for runtime/builtin conversion choices
Andrej Valek [Sat, 16 Oct 2021 18:40:48 +0000 (20:40 +0200)]
libpsl: Add config knobs for runtime/builtin conversion choices

Based on d22d87b9c4ac85ffb3506e2acaf2a8a627f55e8e, but kept idn2
as default.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopatch.bbclass: when the patch fails show more info on the fatal error
Jose Quaresma [Sun, 3 Oct 2021 21:31:50 +0000 (22:31 +0100)]
patch.bbclass: when the patch fails show more info on the fatal error

There are situations when the user have the 'patchdir' defined
as a parameter on SRC_URI. However he doesn't know that with this
the patch is applied relatively to the receipe source dir 'S'.

- When user have 'patchdir' defined check if this directory exist.
- If the patch fails show addition info to the user:
  - Import: show the striplevel
  - Resolver: show the expanded 'patchdir' to the user.

The next example is from opencv in meta-oe layer, here the
patch is applied on the target directory ${WORKDIR}/git/contrib.

S = "${WORKDIR}/git"
SRCREV_FORMAT = "opencv_contrib"
SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \
           git://github.com/opencv/opencv_contrib.git;destsuffix=contrib;name=contrib \
           file://0001-sfm-link-with-Glog_LIBS.patch;patchdir=../contrib \
           "

* When the patch fail there are no message that indicates the real reason.
  patchdir=../no-found-on-file-system

ERROR: opencv-4.5.2-r0 do_patch: Command Error: 'quilt --quiltrc /build/tmp/work/core2-64-poky-linux/opencv/4.5.2-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
stdout: Applying patch 0001-sfm-link-with-Glog_LIBS.patch
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?

* The check of the patchdir will add a new fatal error
  when the user specifies a wrong path than don't exist.
  patchdir=../no-found-on-file-system

ERROR: opencv-4.5.2-r0 do_patch: Target directory '/build/tmp/work/core2-64-poky-linux/opencv/4.5.2-r0/git/../no-found-on-file-system' not found, patchdir '../no-found-on-file-system' is incorrect in patch file '0001-sfm-link-with-Glog_LIBS.patch'

* When we can't aplly the patch but the patchdir exist,
  show the expanded patchdir on fatal error.
  patchdir=../git

ERROR: opencv-4.5.2-r0 do_patch: Applying patch '0001-sfm-link-with-Glog_LIBS.patch' on target directory '/build/tmp/work/core2-64-poky-linux/opencv/4.5.2-r0/git/../git'
Command Error: 'quilt --quiltrc /build/tmp/work/core2-64-poky-linux/opencv/4.5.2-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
stdout: Applying patch 0001-sfm-link-with-Glog_LIBS.patch
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit c44bc7c0fb8b7c2e44dd93607a3bfd9733e1df80)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/selftest/sstatetests: fix typo ware -> were
Alexandre Belloni [Sun, 3 Oct 2021 10:36:24 +0000 (12:36 +0200)]
oeqa/selftest/sstatetests: fix typo ware -> were

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit c94a9ece226b1d2012f5ee966b81bf607d954937)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotar: filter CVEs using vendor name
Ralph Siemsen [Tue, 14 Sep 2021 19:15:47 +0000 (15:15 -0400)]
tar: filter CVEs using vendor name

Recently a number of CVEs have been logged against a nodejs project
called "node-tar". These appear as false positives against the GNU tar
being built by Yocto. Some of these have been manually excluded using
CVE_CHECK_WHITELIST.

To avoid this problem, use the vendor name (in addition to package name)
for filtering CVEs. The syntax for this is:
  CVE_PRODUCT = "vendor:package"
When not specified, the vendor defaults to "%" which matches anything.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 45d1a0bea0c628f84a00d641a4d323491988106f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agorng-tools: add systemd-udev-settle wants to service
Claudius Heine [Fri, 17 Sep 2021 08:08:04 +0000 (10:08 +0200)]
rng-tools: add systemd-udev-settle wants to service

rngd needs to start after `systemd-udev-settle` in order for the kernel
modules of the random source hardware to be loaded before it is started.

However, since the `rngd.service` does not require or want
`systemd-udev-settle.service` it might not be scheduled for start and
the `After=systemd-udev-settle.service` there has no effect.

Adding `Wants=systemd-udev-settle.service` provides a weak requirement
to it, so that the `rngd` is started after it, if possible.

Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e9715d4234eb7b45dee8b323799014646f0a1b07)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoscriptutils.py: Add check before deleting path
Chandana kalluri [Tue, 28 Sep 2021 02:40:18 +0000 (19:40 -0700)]
scriptutils.py: Add check before deleting path

Add a check before deleting path when using recipetool commands to avoid the following type of errors:

Traceback (most recent call last):
   File "<workdir>/sources/core/scripts/lib/scriptutils.py", line 218, in fetch_url
    shutil.rmtree(path)
  File "/usr/local/lib/python3.7/shutil.py", line 476, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/usr/local/lib/python3.7/shutil.py", line 474, in rmtree
    orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '<workdir>/build/tmp/work/recipetool-usg7o81n/work/recipe-sysroot'
ERROR: Command 'script -e -q -c "recipetool --color=always create --devtool -o /tmp/devtool5sq_op37 'file:///<SRCTREE>'  -x <workdir>/build/workspace/sources/devtoolsrcxc1b9zjq -N test" /dev/null' failed

Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b6aa8b47e023004ffd6958d1cec18c2d9c95d77b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobinutils: Fix a missing break in case statement
Christian Eggers [Fri, 8 Oct 2021 20:40:07 +0000 (22:40 +0200)]
binutils: Fix a missing break in case statement

This was missed during patch forward porting
its only effective when printing options

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/manual: Fix no longer valid URLs
Jon Mason [Thu, 7 Oct 2021 15:06:23 +0000 (11:06 -0400)]
oeqa/manual: Fix no longer valid URLs

autobuilder.yoctoproject.org URLS no longer work.  Update them to a
working location.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 56f7bac1f0d1ced41e6908706be27149aa7b87e2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomultilib: Avoid sysroot race issues when multilib enabled
Richard Purdie [Thu, 7 Oct 2021 14:26:58 +0000 (15:26 +0100)]
multilib: Avoid sysroot race issues when multilib enabled

Multilib changes RECIPE_SYSROOT which can make the value in PSEUDO_IGNORE_PATHS
incorrect. Add the correct value, which fixes races over files in the sysroot.

[YOCTO #14581]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 64003e5e1b51c0cd561681b1ac13293546b8182b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoweston: Use systemd notify,
Pavel Zhukov [Wed, 6 Oct 2021 11:19:13 +0000 (13:19 +0200)]
weston: Use systemd notify,

Using systemd notify fixes the problem with dependency chain in case
if other services depend on running weston.
This change required more robust handling of weston modules arguments
due to custom argument parser impmentation in weston (only last
--modules argument is accepted) and fixes the bug in modules handling
in the weston-start script (only last argument is actually parsed by
weston). Master branch implements systemd-notify thus backport but
doesn't utilize modules anymore so this change is mostly dunfell
specific.

Upstream-status: Backport

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoe2fsprogs: upgrade 1.45.6 -> 1.45.7
Wang Mingyu [Fri, 5 Feb 2021 02:27:50 +0000 (10:27 +0800)]
e2fsprogs: upgrade 1.45.6 -> 1.45.7

0001-fix-up-check-for-hardlinks-always-false-if-inode-0xF.patch
removed since it is included in 1.45.7

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f51835e022731d1c0e8e18209e48f1a718048977)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoe2fsprogs: update to 1.45.6
Alexander Kanavin [Tue, 5 May 2020 13:01:28 +0000 (15:01 +0200)]
e2fsprogs: update to 1.45.6

Drop backports, and also 0001-misc-create_inode.c-set-dir-s-mode-correctly.patch
as upstream code has been refactored.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit da9fec8592db913d13af3a936ab518e93496be3e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolinux-yocto/5.4: update to v5.4.153
Bruce Ashfield [Tue, 19 Oct 2021 02:46:18 +0000 (22:46 -0400)]
linux-yocto/5.4: update to v5.4.153

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

    940a14a7d844 Linux 5.4.153
    6a89b1e0c250 x86/Kconfig: Correct reference to MWINCHIP3D
    5b3b400741a5 x86/hpet: Use another crystalball to evaluate HPET usability
    367f643191b3 x86/platform/olpc: Correct ifdef symbol to intended CONFIG_OLPC_XO15_SCI
    9e2a9da532e0 RISC-V: Include clone3() on rv32
    a326f9c01cfb bpf, s390: Fix potential memory leak about jit_data
    60bacf259e8c i2c: acpi: fix resource leak in reconfiguration device addition
    b723b34a9831 net: prefer socket bound to interface when not in VRF
    17063cac4088 i40e: Fix freeing of uninitialized misc IRQ vector
    0a1fcc981dec i40e: fix endless loop under rtnl
    d6c066811921 gve: fix gve_get_stats()
    d83787c26d21 rtnetlink: fix if_nlmsg_stats_size() under estimation
    0311d9775390 gve: Correct available tx qpl check
    11cd944bb87d drm/nouveau/debugfs: fix file release memory leak
    cb7e65187983 video: fbdev: gbefb: Only instantiate device when built for IP32
    04f981251e20 bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893
    809aa82ac64f netlink: annotate data races around nlk->bound
    fd73c2e64b43 net: sfp: Fix typo in state machine debug string
    c951c08a5996 net/sched: sch_taprio: properly cancel timer from taprio_destroy()
    c2c45102ae19 net: bridge: use nla_total_size_64bit() in br_get_linkxstats_size()
    8af0c7d3fb55 ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence
    ebe58e1c1a7f arm64: dts: ls1028a: add missing CAN nodes
    1b9f0d242ab6 arm64: dts: freescale: Fix SP805 clock-names
    27e53e23a3ce ptp_pch: Load module automatically if ID matches
    a7b441a2e209 powerpc/fsl/dts: Fix phy-connection-type for fm1mac3
    c951a3be5e88 net_sched: fix NULL deref in fifo_set_limit()
    414bb4ead136 phy: mdio: fix memory leak
    b14f28126c51 bpf: Fix integer overflow in prealloc_elems_and_freelist()
    a3d68a42457a bpf, arm: Fix register clobbering in div/mod implementation
    e0c6e864d28d xtensa: call irqchip_init only when CONFIG_USE_OF is selected
    d10a2a8f8853 xtensa: use CONFIG_USE_OF instead of CONFIG_OF
    73711563f5b5 xtensa: move XCHAL_KIO_* definitions to kmem_layout.h
    c82cffe17124 arm64: dts: qcom: pm8150: use qcom,pm8998-pon binding
    14c9c75d4809 ARM: dts: imx: Fix USB host power regulator polarity on M53Menlo
    720a4dceee22 ARM: dts: imx: Add missing pinctrl-names for panel on M53Menlo
    6b2855ac7ef7 soc: qcom: mdt_loader: Drop PT_LOAD check on hash segment
    1179cd690a76 ARM: dts: qcom: apq8064: Use 27MHz PXO clock as DSI PLL reference
    bdc189d6b69f soc: qcom: socinfo: Fixed argument passed to platform_set_data()
    1a0fe45501a2 bpf, mips: Validate conditional branch offsets
    7ed040244595 MIPS: BPF: Restore MIPS32 cBPF JIT
    4239cd380afd ARM: dts: qcom: apq8064: use compatible which contains chipid
    30d68bf74d52 ARM: dts: omap3430-sdp: Fix NAND device node
    2abb4077fa1b xen/balloon: fix cancelled balloon action
    42fbcbaa8a99 nfsd4: Handle the NFSv4 READDIR 'dircount' hint being zero
    f88420197a04 nfsd: fix error handling of register_pernet_subsys() in init_nfsd()
    fab338f33c25 ovl: fix missing negative dentry check in ovl_rename()
    4920aae61bd9 mmc: meson-gx: do not use memcpy_to/fromio for dram-access-quirk
    47f7bb3dc2a3 xen/privcmd: fix error handling in mmap-resource processing
    9d93cfdaf8d4 usb: typec: tcpm: handle SRC_STARTUP state if cc changes
    b53aa224ada2 USB: cdc-acm: fix break reporting
    3135935b7f9a USB: cdc-acm: fix racy tty buffer accesses
    7c2392f03f3b Partially revert "usb: Kconfig: using select for USB_COMMON dependency"
    faaca480fd5c Linux 5.4.152
    caff281e2073 libata: Add ATA_HORKAGE_NO_NCQ_ON_ATI for Samsung 860 and 870 SSD.
    fecbe957ef4d silence nfscache allocation warnings with kvzalloc
    5546e3987dd1 perf/x86: Reset destroy callback on event init failure
    2787cde6cb5b kvm: x86: Add AMD PMU MSRs to msrs_to_save_all[]
    ba58770c14e0 KVM: do not shrink halt_poll_ns below grow_start
    d67e01e5e095 tools/vm/page-types: remove dependency on opt_file for idle page tracking
    65c7e3c97378 scsi: ses: Retry failed Send/Receive Diagnostic commands
    e4e756054d1a selftests:kvm: fix get_warnings_count() ignoring fscanf() return warn
    1f830ab34585 selftests: be sure to make khdr before other targets
    8b9c1c33e51d usb: dwc2: check return value after calling platform_get_resource()
    5d124ee0d2d6 usb: testusb: Fix for showing the connection speed
    350d048cc506 scsi: sd: Free scsi_disk device via put_device()
    4f194b57696a ext2: fix sleeping in atomic bugs on error
    2d8eb456742e sparc64: fix pci_iounmap() when CONFIG_PCI is not set
    61504f62bb04 xen-netback: correct success/error reporting for the SKB-with-fraglist case
    2ecca3b282c3 net: mdio: introduce a shutdown method to mdio device drivers
    31cdcb6d430f Linux 5.4.151
    965147067fa1 HID: usbhid: free raw_report buffers in usbhid_stop
    6f2f68640b84 netfilter: ipset: Fix oversized kvmalloc() calls
    fe9bb925e709 HID: betop: fix slab-out-of-bounds Write in betop_probe
    24f3d2609114 crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd()
    62c5cacb0986 usb: hso: remove the bailout parameter
    fe57d53dd91d usb: hso: fix error handling code of hso_create_net_device
    d29c7a1a322d hso: fix bailout in error case of probe
    1f2b324e82c4 libnvdimm/pmem: Fix crash triggered when I/O in-flight during unbind
    dd336267d848 PCI: Fix pci_host_bridge struct device release/free handling
    e81f3b7e7112 net: stmmac: don't attach interface until resume finishes
    f8ffde0bb96d net: udp: annotate data race around udp_sk(sk)->corkflag
    9dbf7e343b69 HID: u2fzero: ignore incomplete packets without data
    d518ea03145c ext4: fix potential infinite loop in ext4_dx_readdir()
    59c19fdcde79 ext4: fix reserved space counter leakage
    c4b8db2b4755 ext4: fix loff_t overflow in ext4_max_bitmap_size()
    3253c87e1e5b ipack: ipoctal: fix module reference leak
    9c802a05749a ipack: ipoctal: fix missing allocation-failure check
    3fd682d461ab ipack: ipoctal: fix tty-registration error handling
    e6a71c173eda ipack: ipoctal: fix tty registration race
    8657158a3b68 ipack: ipoctal: fix stack information leak
    91d5de0b710b debugfs: debugfs_create_file_size(): use IS_ERR to check for error
    98574c91e373 elf: don't use MAP_FIXED_NOREPLACE for elf interpreter mappings
    9356e4dcebd8 perf/x86/intel: Update event constraints for ICX
    0fcfaa8ed9d1 af_unix: fix races in sk_peer_pid and sk_peer_cred accesses
    694b0cee7f85 net: sched: flower: protect fl_walk() with rcu
    5a31d4e73ada net: hns3: do not allow call hns3_nic_net_open repeatedly
    87de237b0b5c scsi: csiostor: Add module softdep on cxgb4
    1b6ccfcec681 Revert "block, bfq: honor already-setup queue merges"
    753096c38aa9 selftests, bpf: test_lwt_ip_encap: Really disable rp_filter
    897d1401d1d6 e100: fix buffer overrun in e100_get_regs
    93372e02f969 e100: fix length calculation in e100_get_regs_len
    a2624e0934f0 net: ipv4: Fix rtnexthop len when RTA_FLOW is present
    c37d3287e7a2 hwmon: (tmp421) fix rounding for negative values
    8a07d5aba34b hwmon: (tmp421) report /PVLD condition as fault
    ec018021cf44 sctp: break out if skb_header_pointer returns NULL in sctp_rcv_ootb
    9bee85de2c81 mac80211-hwsim: fix late beacon hrtimer handling
    21c3a844939c mac80211: mesh: fix potentially unaligned access
    ab85997465b9 mac80211: limit injected vht mcs/nss in ieee80211_parse_tx_radiotap
    87e06c44280d mac80211: Fix ieee80211_amsdu_aggregate frag_tail bug
    a6c42ae1530f hwmon: (mlxreg-fan) Return non-zero value when fan current state is enforced from sysfs
    2c30592255c6 ipvs: check that ip_vs_conn_tab_bits is between 8 and 20
    9a571d83acb5 drm/amd/display: Pass PCI deviceid into DC
    3443eb443f3a x86/kvmclock: Move this_cpu_pvti into kvmclock.h
    50149e0866a8 mac80211: fix use-after-free in CCMP/GCMP RX
    956bc3ee3197 scsi: ufs: Fix illegal offset in UPIU event trace
    44d3c480e4e2 hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field
    200ced5ba724 hwmon: (w83792d) Fix NULL pointer dereference by removing unnecessary structure field
    6cb01fe630ea hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field
    504cf969d585 fs-verity: fix signed integer overflow with i_size near S64_MAX
    b2fb6ce06c0f usb: cdns3: fix race condition before setting doorbell
    e2370e193519 cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory
    67c98e023135 cpufreq: schedutil: Use kobject release() method to free sugov_tunables
    883f7897a25e tty: Fix out-of-bound vmalloc access in imageblit

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolinux-yocto/5.4: update to v5.4.150
Bruce Ashfield [Wed, 6 Oct 2021 00:13:58 +0000 (20:13 -0400)]
linux-yocto/5.4: update to v5.4.150

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

    3a7dc5b4cfbd Linux 5.4.150
    27f8c4402c4a qnx4: work around gcc false positive warning bug
    3a0f951e3725 xen/balloon: fix balloon kthread freezing
    f80b6793811d arm64: dts: marvell: armada-37xx: Extend PCIe MEM space
    04783de9c0f3 thermal/drivers/int340x: Do not set a wrong tcc offset on resume
    de1c3506806d EDAC/synopsys: Fix wrong value type assignment for edac_mode
    8ede848bc99e spi: Fix tegra20 build with CONFIG_PM=n
    d193f7dbf4ec net: 6pack: Fix tx timeout and slot time
    fa56f2c987c7 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
    af4a142ab798 arm64: Mark __stack_chk_guard as __ro_after_init
    aeb19da46c7d parisc: Use absolute_pointer() to define PAGE0
    8cd34eb616d9 qnx4: avoid stringop-overread errors
    1214ace61402 sparc: avoid stringop-overread errors
    113a8edfb9c9 net: i825xx: Use absolute_pointer for memcpy from fixed memory location
    2397ea2db22b compiler.h: Introduce absolute_pointer macro
    d12ddd843f18 blk-cgroup: fix UAF by grabbing blkcg lock before destroying blkg pd
    9d7798823264 sparc32: page align size in arch_dma_alloc
    ec49f3f7f669 nvme-multipath: fix ANA state updates when a namespace is not present
    29917bbb07c3 xen/balloon: use a kernel thread instead a workqueue
    93937596e065 bpf: Add oversize check before call kvcalloc()
    7273cb182f13 ipv6: delay fib6_sernum increase in fib6_add
    7432ecc55fe9 m68k: Double cast io functions to unsigned long
    29c70b0d335a net: stmmac: allow CSR clock of 300MHz
    1da750d1e214 net: macb: fix use after free on rmmod
    ebb8d26d93c3 blktrace: Fix uaf in blk_trace access after removing by sysfs
    2b5befcd4045 md: fix a lock order reversal in md_alloc
    42d3711c2378 irqchip/gic-v3-its: Fix potential VPE leak on error
    71f323f60592 irqchip/goldfish-pic: Select GENERIC_IRQ_CHIP to fix build
    1b59625da697 scsi: lpfc: Use correct scnprintf() limit
    30d373dc3501 scsi: qla2xxx: Restore initiator in dual mode
    d140ccb140c2 cifs: fix a sign extension bug
    1c1062c5cf21 thermal/core: Potential buffer overflow in thermal_build_list_of_policies()
    b869901caba4 fpga: machxo2-spi: Fix missing error code in machxo2_write_complete()
    0ebc3e688f54 fpga: machxo2-spi: Return an error on failure
    5bcead7cde68 tty: synclink_gt: rename a conflicting function name
    c5f27aedf6bb tty: synclink_gt, drop unneeded forward declarations
    1deb94d37a7e scsi: iscsi: Adjust iface sysfs attr detection
    d0f4a2eeebbe net/mlx4_en: Don't allow aRFS for encapsulated packets
    ae7b957ef003 qed: rdma - don't wait for resources under hw error recovery flow
    23716d7153fc gpio: uniphier: Fix void functions to remove return value
    f7fb7dbdfb25 net/smc: add missing error check in smc_clc_prfx_set()
    363438ed5de0 bnxt_en: Fix TX timeout when TX ring size is set to the smallest
    4c4c3052911b enetc: Fix illegal access when reading affinity_hint
    cf9138c966dd platform/x86/intel: punit_ipc: Drop wrong use of ACPI_PTR()
    a8e8b1481930 afs: Fix incorrect triggering of sillyrename on 3rd-party invalidation
    acce91ba0d9f net: hso: fix muxed tty registration
    494260e20ac2 serial: mvebu-uart: fix driver's tx_empty callback
    2d7c20db7220 xhci: Set HCD flag to defer primary roothub registration
    381c8ce0abc0 btrfs: prevent __btrfs_dump_space_info() to underflow its free space
    d4ec140e7158 erofs: fix up erofs_lookup tracepoint
    7751f609eadf mcb: fix error handling in mcb_alloc_bus()
    406ff5bf727d USB: serial: option: add device id for Foxconn T99W265
    4b2cf0faffce USB: serial: option: remove duplicate USB device ID
    59564b0183cb USB: serial: option: add Telit LN920 compositions
    5cc674a3f18e USB: serial: mos7840: remove duplicated 0xac24 device ID
    20c9fdde30fb usb: core: hcd: Add support for deferring roothub registration
    a6c7d3c2d127 Re-enable UAS for LaCie Rugged USB3-FW with fk quirk
    4dc56951a8d9 staging: greybus: uart: fix tty use after free
    aa2c274c279f binder: make sure fd closes complete
    93fa08e9a32f USB: cdc-acm: fix minor-number release
    0dc1cfa7b907 USB: serial: cp210x: add ID for GW Instek GDM-834x Digital Multimeter
    85d3493085ab usb-storage: Add quirk for ScanLogic SL11R-IDE older than 2.6c
    d4e7647695c9 xen/x86: fix PV trap handling on secondary processors
    8b06b0f17f35 cifs: fix incorrect check for null pointer in header_assemble
    b1f6efa27b24 usb: musb: tusb6010: uninitialized data in tusb_fifo_write_unaligned()
    b8c806065160 usb: dwc2: gadget: Fix ISOC transfer complete handling for DDMA
    ff275c870e1b usb: dwc2: gadget: Fix ISOC flow for BDMA and Slave
    f013a5001b4a usb: gadget: r8a66597: fix a loop in set_feature()
    aa40438c7174 ocfs2: drop acl cache for directories too

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolinux-yocto/5.4: update to v5.4.149
Bruce Ashfield [Wed, 6 Oct 2021 00:13:57 +0000 (20:13 -0400)]
linux-yocto/5.4: update to v5.4.149

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

    e74e2950a0d6 Linux 5.4.149
    382526348612 drm/nouveau/nvkm: Replace -ENOSYS with -ENODEV
    409cb0b3d45a rtc: rx8010: select REGMAP_I2C
    43832bf76363 blk-throttle: fix UAF by deleteing timer in blk_throtl_exit()
    c37a34d7975f pwm: stm32-lp: Don't modify HW state in .remove() callback
    8a29e68ea8e8 pwm: rockchip: Don't modify HW state in .remove() callback
    ed60d2db3171 pwm: img: Don't modify HW state in .remove() callback
    b16f4acf6b65 nilfs2: fix memory leak in nilfs_sysfs_delete_snapshot_group
    594addd4369e nilfs2: fix memory leak in nilfs_sysfs_create_snapshot_group
    237ca37ca5ac nilfs2: fix memory leak in nilfs_sysfs_delete_##name##_group
    288c8b5ba52d nilfs2: fix memory leak in nilfs_sysfs_create_##name##_group
    dc70f0c8c3de nilfs2: fix NULL pointer in nilfs_##name##_attr_release
    9c3ba404881d nilfs2: fix memory leak in nilfs_sysfs_create_device_group
    fb4c7d2923de btrfs: fix lockdep warning while mounting sprout fs
    3f2d5c11bef8 ceph: lockdep annotations for try_nonblocking_invalidate
    3bbb11261a75 ceph: request Fw caps before updating the mtime in ceph_write_iter
    2c89a856fa49 dmaengine: xilinx_dma: Set DMA mask for coherent APIs
    2f3206199dc9 dmaengine: ioat: depends on !UML
    644f1e87fe73 dmaengine: sprd: Add missing MODULE_DEVICE_TABLE
    445a3379f6df parisc: Move pci_dev_is_behind_card_dino to where it is used
    2f7bfc07e386 drivers: base: cacheinfo: Get rid of DEFINE_SMP_CALL_CACHE_FUNCTION()
    a12743d07249 thermal/core: Fix thermal_cooling_device_register() prototype
    c7b9a866ee25 Kconfig.debug: drop selecting non-existing HARDLOCKUP_DETECTOR_ARCH
    3c1d9b650c08 net: stmmac: reset Tx desc base address before restarting Tx
    729f9d5ee374 phy: avoid unnecessary link-up delay in polling mode
    81e6b51709da pwm: lpc32xx: Don't modify HW state in .probe() after the PWM chip was registered
    b94def8a475f profiling: fix shift-out-of-bounds bugs
    7e98111cb28e nilfs2: use refcount_dec_and_lock() to fix potential UAF
    5607b1bae1c8 prctl: allow to setup brk for et_dyn executables
    b40301607ca8 9p/trans_virtio: Remove sysfs file on probe failure
    c3b45ea0a3c8 thermal/drivers/exynos: Fix an error code in exynos_tmu_probe()
    e1060803039d dmaengine: acpi: Avoid comparison GSI with Linux vIRQ
    93f8a98ad89c um: virtio_uml: fix memory leak on init failures
    4cd05e390a3b staging: rtl8192u: Fix bitwise vs logical operator in TranslateRxSignalStuff819xUsb()
    2f4b67bceb09 sctp: add param size validation for SCTP_PARAM_SET_PRIMARY
    cbd10b118902 sctp: validate chunk size in __rcv_asconf_lookup
    6a12918e9065 ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE
    2f7974cd7b12 ARM: 9079/1: ftrace: Add MODULE_PLTS support
    1b27a03d1292 ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link()
    490be340c86c ARM: 9077/1: PLT: Move struct plt_entries definition to header
    278df0646003 apparmor: remove duplicate macro list_entry_is_head()
    f23763ab464f ARM: Qualify enabling of swiotlb_init()
    6bfdc3056ca8 s390/pci_mmio: fully validate the VMA before calling follow_pte()
    bd292c687390 console: consume APC, DM, DCS
    b0c813fbbf75 KVM: remember position in kvm->vcpus array
    5163578e9d0b PCI/ACPI: Add Ampere Altra SOC MCFG quirk
    ec29e33e5cba PCI: aardvark: Fix reporting CRS value
    3f0e275e43f6 PCI: pci-bridge-emul: Add PCIe Root Capabilities Register
    296895c4f0c8 PCI: aardvark: Indicate error in 'val' when config read fails
    2fcb7b7a1d20 PCI: pci-bridge-emul: Fix big-endian support
    07e5f23d3fa6 Linux 5.4.148
    54ac8339ae99 s390/bpf: Fix 64-bit subtraction of the -0x80000000 constant
    a5fc48000b0e s390/bpf: Fix optimizing out zero-extensions
    f7f1bac8983f net: renesas: sh_eth: Fix freeing wrong tx descriptor
    3d32ce5472bb ip_gre: validate csum_start only on pull
    f9b308f7302e qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom
    93f54354ccc8 fq_codel: reject silly quantum parameters
    d448b240b175 netfilter: socket: icmp6: fix use-after-scope
    b79204169de5 net: dsa: b53: Fix calculating number of switch ports
    d5c0f016ae85 perf unwind: Do not overwrite FEATURE_CHECK_LDFLAGS-libunwind-{x86,aarch64}
    114bf5776f56 ARC: export clear_user_page() for modules
    9b63c27d6b70 mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()'
    14e0fdc43ddf PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
    810f9b6f0a40 KVM: arm64: Handle PSCI resets before userspace touches vCPU state
    5f289dcf0b02 mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set
    e1746c27c373 PCI: Fix pci_dev_str_match_path() alloc while atomic bug
    beaf65f0fe0c mfd: axp20x: Update AXP288 volatile ranges
    4a6c7c818bcb NTB: perf: Fix an error code in perf_setup_inbuf()
    5a1614194963 NTB: Fix an error code in ntb_msit_probe()
    098069796940 ethtool: Fix an error code in cxgb2.c
    f336aa92b431 PCI: ibmphp: Fix double unmap of io_mem
    0f9550c4f40d block, bfq: honor already-setup queue merges
    b61a99dda392 net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920
    79b584d85912 Set fc_nlinfo in nh_create_ipv4, nh_create_ipv6
    cf4168c4e0ec PCI: Add ACS quirks for Cavium multi-function devices
    b3435cd96848 tracing/probes: Reject events which have the same name of existing one
    32280649f044 mfd: Don't use irq_create_mapping() to resolve a mapping
    e904621ae0b7 fuse: fix use after free in fuse_read_interrupt()
    a1eaaa6b7d88 PCI: Add ACS quirks for NXP LX2xx0 and LX2xx2 platforms
    47c4490617d1 mfd: db8500-prcmu: Adjust map to reality
    88834a62539f dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
    86565668215f mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range()
    d291cca2c4f7 net: hns3: fix the timing issue of VF clearing interrupt sources
    65bcb8f73ae3 net: hns3: disable mac in flr process
    d8fe64c3511e net: hns3: change affinity_mask to numa node range
    dede0381da0b net: hns3: pad the short tunnel frame before sending to hardware
    4bf2c9605dff KVM: PPC: Book3S HV: Tolerate treclaim. in fake-suspend mode changing registers
    235f782d5e3b ibmvnic: check failover_pending in login response
    d3939844ebdc dt-bindings: arm: Fix Toradex compatible typo
    c642afd17ab5 qed: Handle management FW error
    9ebbb8b964f5 tcp: fix tp->undo_retrans accounting in tcp_sacktag_one()
    baf450477143 net: dsa: destroy the phylink instance on any error in dsa_slave_phy_setup
    498e765b8595 net/af_unix: fix a data-race in unix_dgram_poll
    e7332a1ac14e vhost_net: fix OoB on sendmsg() failure.
    172749c879f5 events: Reuse value read using READ_ONCE instead of re-reading it
    cd78d9c9968f net/mlx5: Fix potential sleeping in atomic context
    48e79555c22c net/mlx5: FWTrace, cancel work on alloc pd error flow
    4655f8a5afc2 perf machine: Initialize srcline string member in add_location struct
    6808e70a77e9 tipc: increase timeout in tipc_sk_enqueue()
    678787dcfe92 r6040: Restore MDIO clock frequency after MAC reset
    efe35db94897 net/l2tp: Fix reference count leak in l2tp_udp_recv_core
    5ab04a4ffed0 dccp: don't duplicate ccid when cloning dccp sock
    6c4b7a87ba79 ptp: dp83640: don't define PAGE0
    faf9d465425b net-caif: avoid user-triggerable WARN_ON(1)
    79ab38864d5e tipc: fix an use-after-free issue in tipc_recvmsg
    08f33350ed8a x86/mm: Fix kern_addr_valid() to cope with existing but not present entries
    fde4caf6fe4d s390/sclp: fix Secure-IPL facility detection
    15b674b1e581 drm/etnaviv: add missing MMU context put when reaping MMU mapping
    b2ec1e6f1d6f drm/etnaviv: reference MMU context when setting up hardware state
    5827dbac41c7 drm/etnaviv: fix MMU context leak on GPU reset
    5e67b3843540 drm/etnaviv: exec and MMU state is lost when resetting the GPU
    7068030d5e26 drm/etnaviv: keep MMU context across runtime suspend/resume
    a7970d4f0039 drm/etnaviv: stop abusing mmu_context as FE running marker
    ee52ccecfe2c drm/etnaviv: put submit prev MMU context when it exists
    a9bacefda031 drm/etnaviv: return context from etnaviv_iommu_context_get
    b56b6c51a919 drm/amd/amdgpu: Increase HWIP_MAX_INSTANCE to 10
    c221eb008a98 PCI: Add AMD GPU multi-function power dependencies
    d180a373a014 PM: base: power: don't try to use non-existing RTC for storing data
    484fbe9cc0d9 arm64/sve: Use correct size when reinitialising SVE state
    2f725420339e bnx2x: Fix enabling network interfaces without VFs
    66c88a479357 xen: reset legacy rtc flag for PV domU
    c7fab1f53603 btrfs: fix upper limit for max_inline for page size 64K
    b9cc70e3dcb4 drm/panfrost: Clamp lock region to Bifrost minimum
    9a6c88548935 drm/panfrost: Use u64 for size in lock_region
    6c635129bf49 drm/panfrost: Simplify lock_region calculation
    825ba38dfd6a drm/amdgpu: Fix BUG_ON assert
    d7a936da6389 drm/msi/mdp4: populate priv->kms in mdp4_kms_init
    90358cb02a6c net: dsa: lantiq_gswip: fix maximum frame length
    c1f12f440c0b lib/test_stackinit: Fix static initializer test
    3c232895b835 platform/chrome: cros_ec_proto: Send command again when timeout occurs
    0569920e4310 memcg: enable accounting for pids in nested pid namespaces
    d0ddb80bbf10 mm,vmscan: fix divide by zero in get_scan_count
    22b11dbbf94c mm/hugetlb: initialize hugetlb_usage in mm_init
    1dc6df795c9f s390/pv: fix the forcing of the swiotlb
    f3b57cf09012 cpufreq: powernv: Fix init_chip_info initialization in numa=off
    b5eb54c4a903 scsi: qla2xxx: Sync queue idx with queue_pair_map idx
    f499a9e9edde scsi: qla2xxx: Changes to support kdump kernel
    cfa459132875 scsi: BusLogic: Fix missing pr_cont() use
    a701ae9a0dd6 ovl: fix BUG_ON() in may_delete() when called from ovl_cleanup()
    1a2f728b034a parisc: fix crash with signals and alloca
    76bebc93e1c9 net: w5100: check return value after calling platform_get_resource()
    3179dd79dbcf fix array-index-out-of-bounds in taprio_change
    ef9a7867b25f net: fix NULL pointer reference in cipso_v4_doi_free
    88a4ed85e80f ath9k: fix sleeping in atomic context
    99b950d55e59 ath9k: fix OOB read ar9300_eeprom_restore_internal
    5f70ea4a5c84 parport: remove non-zero check on count
    c30ea33b03ff net/mlx5: DR, Enable QP retransmission
    c9095f788d03 iwlwifi: mvm: fix access to BSS elements
    f950996d64df iwlwifi: mvm: avoid static queue number aliasing
    2db5ae5b28e7 iwlwifi: mvm: fix a memory leak in iwl_mvm_mac_ctxt_beacon_changed
    3da13a1e2a45 drm/amdkfd: Account for SH/SE count when setting up cu masks.
    2af60889c88e ASoC: rockchip: i2s: Fixup config for DAIFMT_DSP_A/B
    98381f840f22 ASoC: rockchip: i2s: Fix regmap_ops hang
    a1c7bc02e192 usbip:vhci_hcd USB port can get stuck in the disabled state
    4f6095b0c9d5 usbip: give back URBs for unsent unlink requests during cleanup
    9a4a6805294f usb: musb: musb_dsps: request_irq() after initializing musb
    d24381e5a73b Revert "USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set"
    aa40cf19bfa9 cifs: fix wrong release in sess_alloc_buffer() failed path
    39111cbb7b7c mmc: core: Return correct emmc response in case of ioctl error
    26f55b60f22f selftests/bpf: Enlarge select() timeout for test_maps
    48f5a5f0276d mmc: rtsx_pci: Fix long reads when clock is prescaled
    4e773c5553b2 mmc: sdhci-of-arasan: Check return value of non-void funtions
    a73bbfabfe6f of: Don't allow __of_attached_node_sysfs() without CONFIG_SYSFS
    2fdf7d38ee86 ASoC: Intel: Skylake: Fix passing loadable flag for module
    f6ff4d5609ca ASoC: Intel: Skylake: Fix module configuration for KPB and MIXER
    736f60bd4883 btrfs: tree-log: check btrfs_lookup_data_extent return value
    53a72858bcae m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch
    3710cff57d3c drm/exynos: Always initialize mapping in exynos_drm_register_dma()
    727c973ffe51 lockd: lockd server-side shouldn't set fl_ops
    a18cfd715e91 usb: chipidea: host: fix port index underflow and UBSAN complains
    8deedce385d2 gfs2: Don't call dlm after protocol is unmounted
    50cf8f1b6c39 staging: rts5208: Fix get_ms_information() heap buffer size
    8dfd785ae110 rpc: fix gss_svc_init cleanup on failure
    0bc818e0231a tcp: enable data-less, empty-cookie SYN with TFO_SERVER_COOKIE_NOT_REQD
    2918eca4970a serial: sh-sci: fix break handling for sysrq
    d02a1c5fd7d9 opp: Don't print an error if required-opps is missing
    d772d993b072 Bluetooth: Fix handling of LE Enhanced Connection Complete
    fb8593e8ed36 nvme-tcp: don't check blk_mq_tag_to_rq when receiving pdu data
    072660f6c688 arm64: dts: ls1046a: fix eeprom entries
    08825a784e56 arm64: tegra: Fix compatible string for Tegra132 CPUs
    a6b69a76c347 ARM: tegra: tamonten: Fix UART pad setting
    a66049c5ff74 mac80211: Fix monitor MTU limit so that A-MSDUs get through
    1e2842fb7ed3 drm/display: fix possible null-pointer dereference in dcn10_set_clock()
    cf82fe45bef9 gpu: drm: amd: amdgpu: amdgpu_i2c: fix possible uninitialized-variable access in amdgpu_i2c_router_select_ddc_port()
    bbaa21da550d net/mlx5: Fix variable type to match 64bit
    0d563020b8a3 Bluetooth: avoid circular locks in sco_sock_connect
    37d7ae2b0578 Bluetooth: schedule SCO timeouts with delayed_work
    c408efcb8ae6 selftests/bpf: Fix xdp_tx.c prog section name
    350e7501eee8 drm/msm: mdp4: drop vblank get/put from prepare/complete_commit
    e5450804778a net: ethernet: stmmac: Do not use unreachable() in ipq806x_gmac_probe()
    ed3400f22b58 arm64: dts: qcom: sdm660: use reg value for memory node
    52f8a30730ee ARM: dts: imx53-ppd: Fix ACHC entry
    e15afa6747fa media: tegra-cec: Handle errors of clk_prepare_enable()
    53d02b04098b media: TDA1997x: fix tda1997x_query_dv_timings() return value
    71de2779e52a media: v4l2-dv-timings.c: fix wrong condition in two for-loops
    d785cef384f1 media: imx258: Limit the max analogue gain to 480
    33bd83fe3ffd media: imx258: Rectify mismatch of VTS value
    8d179746b3f3 ASoC: Intel: bytcr_rt5640: Move "Platform Clock" routes to the maps for the matching in-/output
    37414bd6ec51 arm64: tegra: Fix Tegra194 PCIe EP compatible string
    5a24034ad87f bonding: 3ad: fix the concurrency between __bond_release_one() and bond_3ad_state_machine_handler()
    b6cee3583930 workqueue: Fix possible memory leaks in wq_numa_init()
    9b4f0170e03d Bluetooth: skip invalid hci_sync_conn_complete_evt
    7b1718666fb0 ata: sata_dwc_460ex: No need to call phy_exit() befre phy_init()
    76cbc142a546 samples: bpf: Fix tracex7 error raised on the missing argument
    917eb0bbb8d3 staging: ks7010: Fix the initialization of the 'sleep_status' structure
    44fd61a8bd0d serial: 8250_pci: make setup_port() parameters explicitly unsigned
    4beadefea857 hvsi: don't panic on tty_register_driver failure
    af0bd97b9d71 xtensa: ISS: don't panic in rs_init
    5418023f81cd serial: 8250: Define RX trigger levels for OxSemi 950 devices
    b050848bba7d s390: make PCI mio support a machine flag
    0dd8da8ad04b s390/jump_label: print real address in a case of a jump label bug
    91b4d44c7c4d flow_dissector: Fix out-of-bounds warnings
    8076709052e1 ipv4: ip_output.c: Fix out-of-bounds warning in ip_copy_addrs()
    faf0749c9062 video: fbdev: riva: Error out if 'pixclock' equals zero
    ae0d210aa717 video: fbdev: kyro: Error out if 'pixclock' equals zero
    98551f0a7b57 video: fbdev: asiliantfb: Error out if 'pixclock' equals zero
    9dff06c50572 bpf/tests: Do not PASS tests without actually testing the result
    58831317c9b1 bpf/tests: Fix copy-and-paste error in double word test
    a23430e79ef7 drm/amd/amdgpu: Update debugfs link_settings output link_rate field in hex
    9baa552b2f76 drm/amd/display: Fix timer_per_pixel unit error
    6c78ee1aecb9 tty: serial: jsm: hold port lock when reporting modem line changes
    7993ee173378 staging: board: Fix uninitialized spinlock when attaching genpd
    995567ded019 usb: gadget: composite: Allow bMaxPower=0 if self-powered
    44bbd4e6366f USB: EHCI: ehci-mv: improve error handling in mv_ehci_enable()
    7b96de5c3042 usb: gadget: u_ether: fix a potential null pointer dereference
    e1480bcb407e usb: host: fotg210: fix the actual_length of an iso packet
    33109bdf2c41 usb: host: fotg210: fix the endpoint's transactional opportunities calculation
    b190fdb93a9f igc: Check if num of q_vectors is smaller than max before array access
    f4bf2fdfe37b drm: avoid blocking in drm_clients_info's rcu section
    a1d12196c375 Smack: Fix wrong semantics in smk_access_entry()
    c454b1a2155c netlink: Deal with ESRCH error in nlmsg_notify()
    5adbbb27bb7c video: fbdev: kyro: fix a DoS bug by restricting user input
    4ee6cc0f52db ARM: dts: qcom: apq8064: correct clock names
    b9707a950492 iavf: fix locking of critical sections
    35429d3aa387 iavf: do not override the adapter state in the watchdog task
    ab03f15c1db4 iio: dac: ad5624r: Fix incorrect handling of an optional regulator.
    0de0c1673927 tipc: keep the skb in rcv queue until the whole data is read
    fe14f10c07c8 PCI: Use pci_update_current_state() in pci_enable_device_flags()
    7d356909744f crypto: mxs-dcp - Use sg_mapping_iter to copy data
    80bec14b4e09 media: dib8000: rewrite the init prbs logic
    4cab14bcff25 ASoC: atmel: ATMEL drivers don't need HAS_DMA
    4a7c6e9159be drm/amdgpu: Fix amdgpu_ras_eeprom_init()
    d766826eeec4 userfaultfd: prevent concurrent API initialization
    7bf2913a5bca kbuild: Fix 'no symbols' warning when CONFIG_TRIM_UNUSD_KSYMS=y
    0ac2ecb915e8 MIPS: Malta: fix alignment of the devicetree buffer
    debdff960034 f2fs: fix to unmap pages from userspace process in punch_hole()
    1c28c23dc82e f2fs: fix unexpected ENOENT comes from f2fs_map_blocks()
    1ca5b00782df f2fs: fix to account missing .skipped_gc_rwsem
    ec5cab379832 KVM: PPC: Fix clearing never mapped TCEs in realmode
    e46ce5a8aba5 clk: at91: clk-generated: Limit the requested rate to our range
    557f6445e37f clk: at91: clk-generated: pass the id of changeable parent at registration
    d93a37889e3a clk: at91: sam9x60: Don't use audio PLL
    57188e2cac47 fscache: Fix cookie key hashing
    e2e3758a2cf9 platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call
    ba5d4dc003b4 KVM: PPC: Book3S HV Nested: Reflect guest PMU in-use to L0 when guest SPRs are live
    a02309beb2b8 HID: i2c-hid: Fix Elan touchpad regression
    f934961bf4e2 scsi: target: avoid per-loop XCOPY buffer allocations
    389946024f0e powerpc/config: Renable MTD_PHYSMAP_OF
    db16408d52a8 scsi: qedf: Fix error codes in qedf_alloc_global_queues()
    5e56c8d843fa scsi: qedi: Fix error codes in qedi_alloc_global_queues()
    a90ef02f012a scsi: smartpqi: Fix an error code in pqi_get_raid_map()
    3365d41c0485 pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry()
    ef476b8d5a9c scsi: fdomain: Fix error return code in fdomain_probe()
    9ee7b45eddc4 SUNRPC: Fix potential memory corruption
    be09cbd6a35f dma-debug: fix debugfs initialization order
    9315497b1750 openrisc: don't printk() unconditionally
    f56ee9af23cc f2fs: reduce the scope of setting fsck tag when de->name_len is zero
    2a2afb6d26c6 f2fs: show f2fs instance in printk_ratelimited
    25ed0498915a RDMA/efa: Remove double QP type assignment
    b8bb4b28394a powerpc/stacktrace: Include linux/delay.h
    02889ac588bd vfio: Use config not menuconfig for VFIO_NOIOMMU
    b900cc481618 pinctrl: samsung: Fix pinctrl bank pin count
    e69c28362116 docs: Fix infiniband uverbs minor number
    fb42b9801e0a RDMA/iwcm: Release resources if iw_cm module initialization fails
    7930b1f98dd8 IB/hfi1: Adjust pkey entry in index 0
    2b1addd585a4 scsi: bsg: Remove support for SCSI_IOCTL_SEND_COMMAND
    a02982545e61 f2fs: quota: fix potential deadlock
    bd74d6de0b9e HID: input: do not report stylus battery state as "full"
    0656eb5e7ed8 PCI: aardvark: Fix masking and unmasking legacy INTx interrupts
    2b58db229eb6 PCI: aardvark: Increase polling delay to 1.5s while waiting for PIO response
    0f39f8429c82 PCI: aardvark: Fix checking for PIO status
    d810fa6f5f0f PCI: xilinx-nwl: Enable the clock through CCF
    d43ad02ad3a8 PCI: Return ~0 data on pciconfig_read() CAP_SYS_ADMIN failure
    3aa6d023c6d6 PCI: Restrict ASMedia ASM1062 SATA Max Payload Size Supported
    4d2bc69df9fa PCI/portdrv: Enable Bandwidth Notification only if port supports it
    0445da50b727 ARM: 9105/1: atags_to_fdt: don't warn about stack size
    8ec08f1431ce libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs
    7cfbf391e870 dmaengine: imx-sdma: remove duplicated sdma_load_context
    788122c99d85 Revert "dmaengine: imx-sdma: refine to load context only once"
    86e1abcd143f media: rc-loopback: return number of emitters rather than error
    9d91046f6b4e media: uvc: don't do DMA on stack
    1ccb1fa41f4c VMCI: fix NULL pointer dereference when unmapping queue pair
    80d167590330 dm crypt: Avoid percpu_counter spinlock contention in crypt_page_alloc()
    a6d4ac3f861b power: supply: max17042: handle fails of reading status register
    668370dd4c90 block: bfq: fix bfq_set_next_ioprio_data()
    cfdd25cd426d crypto: public_key: fix overflow during implicit conversion
    3411b481ed24 arm64: head: avoid over-mapping in map_memory
    991b64b89b66 soc: aspeed: p2a-ctrl: Fix boundary check for mmap
    2712f29c44f1 soc: aspeed: lpc-ctrl: Fix boundary check for mmap
    24c245de17ea soc: qcom: aoss: Fix the out of bound usage of cooling_devs
    603dbb1fa272 pinctrl: ingenic: Fix incorrect pull up/down info
    eda59ca42fde pinctrl: stmfx: Fix hazardous u8[] to unsigned long cast
    d4acec5e9454 tools/thermal/tmon: Add cross compiling support
    8a964aa6ed43 9p/xen: Fix end of loop tests for list_for_each_entry
    7d81fcc20316 include/linux/list.h: add a macro to test if entry is pointing to the head
    4bc0d1b535da xen: fix setting of max_pfn in shared_info
    27f3b7f5c6e0 powerpc/perf/hv-gpci: Fix counter value parsing
    7e9e6d0e07ec PCI/MSI: Skip masking MSI-X on Xen PV
    2edc06fa381a blk-zoned: allow BLKREPORTZONE without CAP_SYS_ADMIN
    8da22cc41ada blk-zoned: allow zone management send operations without CAP_SYS_ADMIN
    cd7b39e7c475 btrfs: reset replace target device to allocation state on close
    8554095328ac btrfs: wake up async_delalloc_pages waiters after submit
    d609c63a7165 rtc: tps65910: Correct driver module alias
    48a24510c328 Linux 5.4.147
    1f8ee024498d Revert "time: Handle negative seconds correctly in timespec64_to_ns()"
    dc15f641c6cc Revert "posix-cpu-timers: Force next expiration recalc after itimer reset"
    541e757944aa Revert "block: nbd: add sanity check for first_minor"
    5f3ecbf4d586 Revert "Bluetooth: Move shutdown callback before flushing tx and rx queue"
    245f15a48cdc Linux 5.4.146
    b40facee46db clk: kirkwood: Fix a clocking boot regression
    8810c51077b0 backlight: pwm_bl: Improve bootloader/kernel device handover
    5de2ee621bc4 fbmem: don't allow too huge resolutions
    4a95b04afab5 IMA: remove the dependency on CRYPTO_MD5
    c69935f0b0aa IMA: remove -Wmissing-prototypes warning
    85b0726d5bd7 fuse: flush extending writes
    8a98ced6e1c8 fuse: truncate pagecache on atomic_o_trunc
    06dad664d4ea KVM: nVMX: Unconditionally clear nested.pi_pending on nested VM-Enter
    1735cec1e83c KVM: x86: Update vCPU's hv_clock before back to guest when tsc_offset is adjusted
    20fff3ef33b2 KVM: s390: index kvm->arch.idle_mask by vcpu_idx
    0323ab5b254e x86/resctrl: Fix a maybe-uninitialized build warning treated as error
    51f4575ca182 perf/x86/amd/ibs: Extend PERF_PMU_CAP_NO_EXCLUDE to IBS Op
    03c3e977eeac tty: Fix data race between tiocsti() and flush_to_ldisc()
    7a25a0a94c8b time: Handle negative seconds correctly in timespec64_to_ns()
    ae968e270f2e bpf: Fix pointer arithmetic mask tightening under state pruning
    a0a4778feae1 bpf: verifier: Allocate idmap scratch in verifier env
    f5893af2704e bpf: Fix leakage due to insufficient speculative store bypass mitigation
    e80c3533c354 bpf: Introduce BPF nospec instruction for mitigating Spectre v4
    1c9424a765af ipv4: fix endianness issue in inet_rtm_getroute_build_skb()
    b3fe6d192126 octeontx2-af: Fix loop in free and unmap counter
    8216d7157bcf net: qualcomm: fix QCA7000 checksum handling
    4648917e499c net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed
    e46e23c289f6 ipv4: make exception cache less predictible
    f73cbdd1b8e7 ipv6: make exception cache less predictible
    aa167dcde4c7 brcmfmac: pcie: fix oops on failure to resume and reprobe
    5debec63a28f bcma: Fix memory leak for internally-handled cores
    574e563649ec ath6kl: wmi: fix an error code in ath6kl_wmi_sync_point()
    d946e685d6b7 ASoC: wcd9335: Disable irq on slave ports in the remove function
    f3ec07f832bb ASoC: wcd9335: Fix a memory leak in the error handling path of the probe function
    a6088f4ed3fc ASoC: wcd9335: Fix a double irq free in the remove function
    7bfa680f3b47 tty: serial: fsl_lpuart: fix the wrong mapbase value
    0f1375fa693b usb: bdc: Fix an error handling path in 'bdc_probe()' when no suitable DMA config is available
    06203abb7275 usb: ehci-orion: Handle errors of clk_prepare_enable() in probe
    a0a9ecca2dc4 i2c: mt65xx: fix IRQ check
    b444064a0e0e CIFS: Fix a potencially linear read overflow
    e37eeaf9506c bpf: Fix possible out of bound write in narrow load handling
    fb8e695e9cfa mmc: moxart: Fix issue with uninitialized dma_slave_config
    48b1f117e8d0 mmc: dw_mmc: Fix issue with uninitialized dma_slave_config
    57314d8414d1 ASoC: Intel: Skylake: Fix module resource and format selection
    92397571c243 ASoC: Intel: Skylake: Leave data as is when invoking TLV IPCs
    b58cf18e384d rsi: fix an error code in rsi_probe()
    d82fe3dd0b0f rsi: fix error code in rsi_load_9116_firmware()
    4be8deab6f0d i2c: s3c2410: fix IRQ check
    da3e5f32049a i2c: iop3xx: fix deferred probing
    2da3272ae0ea Bluetooth: add timeout sanity check to hci_inquiry
    70d71611eb83 mm/swap: consider max pages in iomap_swapfile_add_extent
    8f5e26053c46 usb: gadget: mv_u3d: request_irq() after initializing UDC
    eb3c6a25012f nfsd4: Fix forced-expiry locking
    81e69d3fdd9e lockd: Fix invalid lockowner cast after vfs_test_lock
    e1c02e2e6a7a mac80211: Fix insufficient headroom issue for AMSDU
    606668e24a0d usb: phy: tahvo: add IRQ check
    ecf18ac8ff76 usb: host: ohci-tmio: add IRQ check
    abbcd61d091f Bluetooth: Move shutdown callback before flushing tx and rx queue
    93ec1fd04f0f usb: gadget: udc: renesas_usb3: Fix soc_device_match() abuse
    30d9607bcd73 usb: phy: twl6030: add IRQ checks
    e1473ac28563 usb: phy: fsl-usb: add IRQ check
    9535f55d0cba usb: gadget: udc: at91: add IRQ check
    05e5b16b79dc drm/msm/dsi: Fix some reference counted resource leaks
    5ccb04c6e1fb Bluetooth: fix repeated calls to sco_sock_kill
    c2451d5439d0 counter: 104-quad-8: Return error when invalid mode during ceiling_write
    a1194b805c90 arm64: dts: exynos: correct GIC CPU interfaces address range on Exynos7
    1b6fcd10375a drm/msm/dpu: make dpu_hw_ctl_clear_all_blendstages clear necessary LMs
    156eaacba3d2 PM: EM: Increase energy calculation precision
    5537dc810b2a Bluetooth: increase BTNAMSIZ to 21 chars to fix potential buffer overflow
    c0faa638f016 debugfs: Return error during {full/open}_proxy_open() on rmmod
    f44714b4eb2a soc: qcom: smsm: Fix missed interrupts if state changes while masked
    e7997fe3e9ca PCI: PM: Enable PME if it can be signaled from D3cold
    9e570f3d4777 PCI: PM: Avoid forcing PCI_D0 for wakeup reasons inconsistently
    f865b316ccc6 media: venus: venc: Fix potential null pointer dereference on pointer fmt
    d2ea2f0725cc media: em28xx-input: fix refcount bug in em28xx_usb_disconnect
    ebf570042b5f leds: trigger: audio: Add an activate callback to ensure the initial brightness is set
    0a01dc77662c leds: lt3593: Put fwnode in any case during ->probe()
    e39c73563a38 i2c: highlander: add IRQ check
    fba783ddd945 net: cipso: fix warnings in netlbl_cipsov4_add_std
    9fdac650c413 cgroup/cpuset: Fix a partition bug with hotplug
    ffde05819953 net/mlx5e: Prohibit inner indir TIRs in IPoIB
    87f817c560e6 ARM: dts: meson8b: ec100: Fix the pwm regulator supply properties
    e55d7cbe1fe2 ARM: dts: meson8b: mxq: Fix the pwm regulator supply properties
    4b0bbc412b51 ARM: dts: meson8b: odroidc1: Fix the pwm regulator supply properties
    f7058060c01b ARM: dts: meson8: Use a higher default GPU clock frequency
    37ed461b52e9 tcp: seq_file: Avoid skipping sk during tcp_seek_last_pos
    952136275367 drm/amdgpu/acp: Make PM domain really work
    252fad3d0234 netns: protect netns ID lookups with RCU
    bd1cd32caa67 6lowpan: iphc: Fix an off-by-one check of array index
    c4895cf45fd5 Bluetooth: sco: prevent information leak in sco_conn_defer_accept()
    a96eb96ce4c1 media: coda: fix frame_mem_ctrl for YUV420 and YVU420 formats
    7163014d7d29 media: go7007: remove redundant initialization
    810149287981 media: dvb-usb: Fix error handling in dvb_usb_i2c_init
    fa8aaa769092 media: dvb-usb: fix uninit-value in vp702x_read_mac_addr
    88933f9c93a0 media: dvb-usb: fix uninit-value in dvb_usb_adapter_dvb_init
    f81c89614ee8 soc: qcom: rpmhpd: Use corner in power_off
    5b3987f58325 arm64: dts: renesas: r8a77995: draak: Remove bogus adv7511w properties
    6c106c73208a ARM: dts: aspeed-g6: Fix HVI3C function-group in pinctrl dtsi
    004778bf390a bpf: Fix potential memleak and UAF in the verifier.
    fa4802c54e69 bpf: Fix a typo of reuseport map in bpf.h.
    9a193caf9d79 media: cxd2880-spi: Fix an error handling path
    34106f526015 soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally
    b92893053003 media: TDA1997x: enable EDID support
    43282ca83ace drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()
    fc9cf2229087 EDAC/i10nm: Fix NVDIMM detection
    32d8a3684bba spi: spi-zynq-qspi: use wait_for_completion_timeout to make zynq_qspi_exec_mem_op not interruptible
    4206dbc9857b spi: sprd: Fix the wrong WDG_LOAD_VAL
    1f70517eac57 regulator: vctrl: Avoid lockdep warning in enable/disable ops
    d255d6a6457f regulator: vctrl: Use locked regulator_get_voltage in probe path
    013177ccc4c5 certs: Trigger creation of RSA module signing key if it's not an RSA key
    cc74533a47c9 crypto: qat - use proper type for vf_mask
    b3fa499d72a0 block: nbd: add sanity check for first_minor
    c60a31db3990 clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel
    6b10d3d3a9ff lib/mpi: use kcalloc in mpi_resize
    57c8e2ea47bc genirq/timings: Fix error return code in irq_timings_test_irqs()
    2d00b22c8b81 spi: spi-pic32: Fix issue with uninitialized dma_slave_config
    b29593d0696d spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config
    449884aeb358 sched: Fix UCLAMP_FLAG_IDLE setting
    67da2d9c9e99 m68k: emu: Fix invalid free in nfeth_cleanup()
    c68ba4a708fb s390/debug: fix debug area life cycle
    7a67a00ea8a7 s390/kasan: fix large PMD pages address alignment check
    98296eb3deca udf_get_extendedattr() had no boundary checks.
    ae4240d1f4bf fcntl: fix potential deadlock for &fasync_struct.fa_lock
    a6273c8c2aca crypto: qat - do not export adf_iov_putmsg()
    7dfa7bb69e13 crypto: qat - fix naming for init/shutdown VF to PF notifications
    843b4e713a80 crypto: qat - fix reuse of completion variable
    4a988264556c crypto: qat - handle both source of interrupt in VF ISR
    c2b3f81125a6 crypto: qat - do not ignore errors from enable_vf2pf_comms()
    1c189ccef0cf libata: fix ata_host_start()
    e55b627d6e1f s390/cio: add dev_busid sysfs entry for each subchannel
    0423517520d3 power: supply: max17042_battery: fix typo in MAx17042_TOFF
    eb45ae88bf10 nvmet: pass back cntlid on successful completion
    6cb5d6ae687d nvme-rdma: don't update queue count when failing to set io queues
    3073ec7f0642 nvme-tcp: don't update queue count when failing to set io queues
    93cf19b4d9b3 bcache: add proper error unwinding in bcache_device_init
    e55f20798f53 isofs: joliet: Fix iocharset=utf8 mount option
    0f5cd92e5eb5 udf: Fix iocharset=utf8 mount option
    86987cf0fbd2 udf: Check LVID earlier
    cc608af36e00 hrtimer: Ensure timerfd notification for HIGHRES=n
    a8457878307f hrtimer: Avoid double reprogramming in __hrtimer_start_range_ns()
    c322a963d522 posix-cpu-timers: Force next expiration recalc after itimer reset
    28996dbb8a74 rcu/tree: Handle VM stoppage in stall detection
    b7c560ae51c6 sched/deadline: Fix missing clock update in migrate_task_rq_dl()
    40db13e3efce crypto: omap-sham - clear dma flags only after omap_sham_update_dma_stop()
    ebf0f71ae3bd power: supply: axp288_fuel_gauge: Report register-address on readb / writeb errors
    bba2b82d1b48 sched/deadline: Fix reset_on_fork reporting of DL tasks
    53a6ef40c6bc crypto: mxs-dcp - Check for DMA mapping errors
    344a38789ab2 regmap: fix the offset of register error log
    a5e42516a61e locking/mutex: Fix HANDOFF condition
    a0f68fb55ebc Linux 5.4.145
    d83f0b39e72e PCI: Call Max Payload Size-related fixup quirks early
    0c8277e334da x86/reboot: Limit Dell Optiplex 990 quirk to early BIOS versions
    d31a4c35b925 xhci: fix unsafe memory usage in xhci tracing
    e00d39ca92bb usb: mtu3: fix the wrong HS mult value
    c3ffd3501470 usb: mtu3: use @mult for HS isoc or intr
    00b6325590a4 usb: host: xhci-rcar: Don't reload firmware after the completion
    7a74ae301c2c ALSA: usb-audio: Add registration quirk for JBL Quantum 800
    c1ea74f64209 Revert "btrfs: compression: don't try to compress if we don't have enough pages"
    f05c74e10463 x86/events/amd/iommu: Fix invalid Perf result due to IOMMU PMC power-gating
    b1ca1665e674 Revert "r8169: avoid link-up interrupt issue on RTL8106e if user enables ASPM"
    cf1222b877b0 mm/page_alloc: speed up the iteration of max_order
    17d409c83e76 net: ll_temac: Remove left-over debug message
    ccadb9143796 powerpc/boot: Delete unneeded .globl _zimage_start
    295501c77c4c ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)
    6dec8e17b8db USB: serial: mos7720: improve OOM-handling in read_mos_reg()
    d84708451d90 igmp: Add ip_mc_list lock in ip_check_mc_rcu
    cd8ad6ed9ae5 media: stkwebcam: fix memory leak in stk_camera_probe
    9febc9153fdb ARC: wireup clone3 syscall
    417b11d3255c ALSA: pcm: fix divide error in snd_pcm_lib_ioctl
    cf28619cd9c6 ALSA: hda/realtek: Workaround for conflicting SSID on ASUS ROG Strix G17
    a8146f149028 ARM: 8918/2: only build return_address() if needed
    ebad44b6432e cryptoloop: add a deprecation warning
    d12526ddf5e3 perf/x86/amd/power: Assign pmu.module
    be1f76fceec4 perf/x86/amd/ibs: Work around erratum #1197
    861118d64e50 perf/x86/intel/pt: Fix mask of num_address_ranges
    40d23de514cd qede: Fix memset corruption
    468623f69683 net: macb: Add a NULL check on desc_ptp
    50f73f31ae63 qed: Fix the VF msix vectors flow
    92abb09f7ab7 reset: reset-zynqmp: Fixed the argument data type
    b820c4c651ea gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats
    48051387fa80 xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
    56c77c1b5229 kthread: Fix PF_KTHREAD vs to_kthread() race
    af3cf928b998 ubifs: report correct st_size for encrypted symlinks
    aa4e216156e8 f2fs: report correct st_size for encrypted symlinks
    52d8e5b0abb9 ext4: report correct st_size for encrypted symlinks
    228a4203d8b6 fscrypt: add fscrypt_symlink_getattr() for computing st_size
    9b3849ba667a ext4: fix race writing to an inline_data file while its xattrs are changing

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoffmpeg: Add fix for CVEs
Saloni [Tue, 5 Oct 2021 15:02:21 +0000 (11:02 -0400)]
ffmpeg: Add fix for CVEs

Add fix for below CVE:
CVE-2021-3566
Link: [http://git.videolan.org/?p=ffmpeg.git;a=patch;h=3bce9e9b3ea35c54bacccc793d7da99ea5157532]

CVE-2021-38291
Link: [http://git.videolan.org/?p=ffmpeg.git;a=patch;h=e01d306c647b5827102260b885faa223b646d2d1]

Signed-off-by: Saloni Jain <jainsaloni0918@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoglew: Stop polluting /tmp during builds
Richard Purdie [Mon, 27 Sep 2021 09:58:08 +0000 (10:58 +0100)]
glew: Stop polluting /tmp during builds

Currently the glew code creates a new directory in /tmp for each make
invocation. This is a bit ugly, don't do that. The patch does break the
dist targets but we don't use them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3a55194f90e11da5671b24391a4aaf2b86a8e1e6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/buildproject: Ensure temp directories are cleaned up
Richard Purdie [Sat, 25 Sep 2021 15:14:47 +0000 (16:14 +0100)]
oeqa/buildproject: Ensure temp directories are cleaned up

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d10aff865120a5feecc42c24726bd119364e0188)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/selftest/gotoolchain: Fix temp file cleanup
Richard Purdie [Sat, 25 Sep 2021 18:02:15 +0000 (19:02 +0100)]
oeqa/selftest/gotoolchain: Fix temp file cleanup

The go tests leave readonly files and directories behind.
Fix this to allow cleanup.

[YOCTO #14575]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5680e95d7bd9fe00a797b2d0deb8cb4790027508)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agorm_work.bbclass: Fix for files starting with -
William A. Kennington III [Mon, 27 Sep 2021 22:00:39 +0000 (15:00 -0700)]
rm_work.bbclass: Fix for files starting with -

This makes it possible to name files starting with a hyphen in the work
directory. Without this change rm will fail due to an unexpected option
being passed.

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5f1a63e0de4921ef970114a16d0827fcddcdaa0e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibc_package/buildstats: Fix python regex quoting warnings
Richard Purdie [Sat, 25 Sep 2021 12:26:23 +0000 (13:26 +0100)]
libc_package/buildstats: Fix python regex quoting warnings

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6a8077317ce12e13018ec4472f728dd24880bda9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agooeqa/qemurunner: Use oe._exit(), not sys.exit()
Richard Purdie [Sat, 25 Sep 2021 09:21:58 +0000 (10:21 +0100)]
oeqa/qemurunner: Use oe._exit(), not sys.exit()

sys.exit will cause finally statements and other code to run at exit. Since
we're using os.fork() here, os._exit() is apprioriate in this codepath.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ec08498ff29de9ccd23be88b9d7af3dab6bbb81e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agopybootchart: Avoid divide by zero
Richard Purdie [Mon, 20 Sep 2021 15:40:32 +0000 (16:40 +0100)]
pybootchart: Avoid divide by zero

Avoid a rare divide by zero error if there isn't data point spread.

[YOCTO #14547]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d7e36d01e87ddf89f76f164a0b7d98f597a53fa5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibsamplerate0: Set correct soname for 0.1.9
Tom Pollard [Fri, 24 Sep 2021 12:47:57 +0000 (13:47 +0100)]
libsamplerate0: Set correct soname for 0.1.9

Manually patch SHARED_VERSION_INFO, which was missed in
the 0.1.9 release and later incorrectly fixed until 0.2.1

Signed-off-by: Tom Pollard <tom.pollard@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cb2e8efd316d44b9b1453882114856e0eb7b3500)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobzip2: Update soname for libbz2 1.0.8
Tom Pollard [Fri, 24 Sep 2021 11:33:52 +0000 (12:33 +0100)]
bzip2: Update soname for libbz2 1.0.8

Set shared library name as libbz2.so.1.0.8, version in configure.ac
already synced via do_configure PV substitution.

Signed-off-by: Tom Pollard <tom.pollard@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 07e3abc9d282a54add69a6905ec4248f3104219f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agocommon-licenses: add "Unlicense" license file
Robert P. J. Day [Wed, 13 May 2020 11:27:02 +0000 (07:27 -0400)]
common-licenses: add "Unlicense" license file

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7698f3145a9c48778d7bb79f54df169cf375349c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agosystemd: Add fix for systemd-networkd crash during free
Ranjitsinh Rathod [Wed, 22 Sep 2021 15:38:08 +0000 (21:08 +0530)]
systemd: Add fix for systemd-networkd crash during free

We are observing systemd-network service crash during link down
while freeing link->ifname pointer

Backtrace:
(gdb) bt
0  __GI_abort () at abort.c:107
1  0x0000007f861d32b4 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f8628d500 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
2  0x0000007f861da51c in malloc_printerr (str=str@entry=0x7f86289070 "free(): invalid next size (fast)") at malloc.c:5347
3  0x0000007f861dbd58 in _int_free (av=0x7f862c9a28 <main_arena>, p=0x558aa28eb0, have_lock=0) at malloc.c:4249
4  0x0000005569249cf0 in link_free (link=0x558aa1c0d0) at ../git/src/network/networkd-link.c:715
5  link_unref (p=0x558aa1c0d0) at ../git/src/network/networkd-link.c:734
6  0x000000556920f34c in manager_rtnl_process_link (rtnl=<optimized out>, message=0x558aa2a430, userdata=0x558a9fc630)

While checking upstream code change with regards to link->ifname
memory allocation and free, we found below PR which also fixes
random systemd-networkd crash:

https://github.com/systemd/systemd/pull/19631
https://github.com/systemd/systemd/issues/19629

Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Signed-off-by: Ranjitsinh Rathod <ranjitsinhrathod1991@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomtd-utils: upgrade 2.1.2 -> 2.1.3
Stefano Babic [Fri, 24 Sep 2021 00:40:20 +0000 (02:40 +0200)]
mtd-utils: upgrade 2.1.2 -> 2.1.3

Drop also --enable-install-tests from configuration options because this
was removed in 2.1.3.

(cherry picked from commit c95c852b84f02f5e2ad5c575ab683bba0471f221)
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agomtd-utils: upgrade 2.1.1 -> 2.1.2
Richard Purdie [Fri, 24 Sep 2021 00:40:19 +0000 (02:40 +0200)]
mtd-utils: upgrade 2.1.1 -> 2.1.2

Drop backported patch.

(cherry picked from commit e38fd1ac331d824b2db94a7ae46026b111257e83)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoopenssh: Fix CVE-2021-28041
sana kazi [Thu, 30 Sep 2021 08:16:30 +0000 (13:46 +0530)]
openssh: Fix CVE-2021-28041

Added patch to fix CVE-2021-28041.

Link:
http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh_8.2p1-4ubuntu0.3.debian.tar.xz

Signed-off-by: Sana Kazi <Sana.Kazi@kpit.com>
Signed-off-by: Sana Kazi <sanakazisk19@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agovim: fix CVE-2021-3778
Minjae Kim [Sat, 4 Sep 2021 04:08:21 +0000 (13:08 +0900)]
vim: fix CVE-2021-3778

vim is vulnerable to Heap-based Buffer Overflow

reference:
https://github.com/vim/vim/commit/65b605665997fad54ef39a93199e305af2fe4d7f
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoconnman: add CVE_PRODUCT
Steve Sakoman [Tue, 21 Sep 2021 15:04:07 +0000 (05:04 -1000)]
connman: add CVE_PRODUCT

Upstream database uses both "connman" and "connection_manager" to report CVEs

Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agolibsoup-2.4: remove obsolete intltool dependency
Ross Burton [Tue, 21 Sep 2021 09:34:44 +0000 (10:34 +0100)]
libsoup-2.4: remove obsolete intltool dependency

This hasn't been needed since libsoup 2.65.2.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 250a3f9a804917c8a9427d0209365d27b1b8fa4a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agotestimage: symlink the task log and qemu console log to tmp/log/oeqa
Alexander Kanavin [Sun, 19 Sep 2021 16:54:16 +0000 (18:54 +0200)]
testimage: symlink the task log and qemu console log to tmp/log/oeqa

This makes it easier for the AB scripts (particularly, collect-results)
to access and archive these items, as they can contain useful information
when ptests or other qemu tests fail (and also if they don't fail).

[YOCTO #14518]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1965b344abcff0ba584136f929b4a14645f1585e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agowic: keep rootfs_size as integer
Alexander Kanavin [Fri, 17 Sep 2021 12:59:20 +0000 (14:59 +0200)]
wic: keep rootfs_size as integer

The corrected line accidentally converted it to float,
which causes problems later on with python 3.10:

|   File "/home/alex/development/poky/scripts/lib/wic/partition.py", line 278, in prepare_rootfs_ext
|     os.ftruncate(sparse.fileno(), rootfs_size * 1024)
| TypeError: 'float' object cannot be interpreted as an integer

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1d260dd2d196d10379ed9e238bcb34f39f3a3b7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agocore-image-sato: Fix runqemu error for qemuarmv5
Jon Mason [Thu, 16 Sep 2021 22:19:32 +0000 (18:19 -0400)]
core-image-sato: Fix runqemu error for qemuarmv5

When attempting to execute runqemu on qemuarmv5, the following error is
encountered:

runqemu - ERROR - Failed to run qemu: qemu-system-arm: versatilepb: memory size must not exceed 256MB

To work around this, limit the QB_MEM size for qemuarmv5, similar to
what is being done for qemumips.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6450138afebffcc55ab32afadd5fb979274fff2b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agoUpdate mailing list address
Jon Mason [Thu, 16 Sep 2021 22:40:10 +0000 (18:40 -0400)]
Update mailing list address

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 83169c33f7585da25560784f79eaad2c6f029f3c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agobash: Ensure deterministic build
Richard Purdie [Mon, 13 Sep 2021 22:56:49 +0000 (23:56 +0100)]
bash: Ensure deterministic build

Bash keeps a count of the number of times make was invoked on a directory
and changes the output versioning accordingly. We want deterministic output
so disable this behaviour.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 13a039e03195a47c750d5901e96fe81cf523481f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agouseradd: Ensure preinst data is expanded correctly in pkgdata
Richard Purdie [Wed, 15 Sep 2021 21:42:03 +0000 (22:42 +0100)]
useradd: Ensure preinst data is expanded correctly in pkgdata

The preinst data in pkgdata will not expand out the ${XXX_PARAM} variables
since they don't use a package suffix. It happens that the final expansion
used for the packages is corrected by a second trip through the datastore.

The first version is used for calculation of the task output hash and
recent improvements in hash reuse showed this data wasn't using included
in the hashes, meaning for example builds with dynamic IDs were mixing
sstate with builds using static IDs. The result was a mess.

Fix this by expanding the data in the preinst correctly to use the
package specific _PARAM values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 375430f249e7e0b6622e566e2478b40ba7e606ab)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
3 years agorpm: Handle proper return value to avoid major issues
Ranjitsinh Rathod [Wed, 8 Sep 2021 17:45:15 +0000 (23:15 +0530)]
rpm: Handle proper return value to avoid major issues

0001-rpm-rpmio.c-restrict-virtual-memory-usage-if-limit-s.patch changed
to avoid critical issues
Handled return values of getrlimit() and lzma_cputhreads() functions
to avoid unexpected behaviours like devide by zero and potential read
of uninitialized variable 'virtual_memory'
Upstream-Status: Pending [merge of multithreading patches to upstream]

Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5aae9c2cb464350bc443a0f60fd6602942e61f46)
Signed-off-by: Steve Sakoman <steve@sakoman.com>