]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agosato-screenshot: improve .la removal
Ross Burton [Tue, 15 Sep 2020 11:05:32 +0000 (12:05 +0100)]
sato-screenshot: improve .la removal

Don't assume that the .la files are installed, because some libtool
alternatives don't install these.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e545ae3a7961111ceb4e2a468e9ec53cebfed721)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoalsa-plugins: improve .la removal
Ross Burton [Tue, 15 Sep 2020 11:05:31 +0000 (12:05 +0100)]
alsa-plugins: improve .la removal

Don't assume that the .la files are installed, because some libtool
alternatives don't install these.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e92b24368b71e4b178f81097b2a8d141c3b65481)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-update-db-native: remove unused variable
Chris Laplante [Mon, 14 Sep 2020 15:33:20 +0000 (11:33 -0400)]
cve-update-db-native: remove unused variable

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 790f8a5bfbd1851226fa5fc5b09e79f6396e747d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-update-db-native: move -journal checking into do_fetch
Chris Laplante [Mon, 14 Sep 2020 15:33:19 +0000 (11:33 -0400)]
cve-update-db-native: move -journal checking into do_fetch

It was always questionable to do this in an anonymous function, but now
with multiconfig it is a critical mistake and leads to more strange
"Exception: sqlite3.OperationalError: disk I/O error" errors.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fcbc9d0e8421a3a559db05005ba042337cd5d864)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-update-db-native: be less magical about checking whether the cve-check class...
Chris Laplante [Mon, 14 Sep 2020 15:33:18 +0000 (11:33 -0400)]
cve-update-db-native: be less magical about checking whether the cve-check class is enabled

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cbc717350b21fb417fa6f83621022ac633a26124)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibx11: fix CVE-2020-14363
Chee Yang Lee [Mon, 21 Sep 2020 09:29:04 +0000 (17:29 +0800)]
libx11: fix CVE-2020-14363

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoxserver-xorg: fix CVE-2020-14346/14361/14362
Chee Yang Lee [Mon, 21 Sep 2020 09:29:03 +0000 (17:29 +0800)]
xserver-xorg: fix CVE-2020-14346/14361/14362

fix :
CVE-2020-14346
https://gitlab.freedesktop.org/xorg/xserver/-/commit/c940cc8b6c0a2983c1ec974f1b3f019795dd4cff

CVE-2020-14361
https://gitlab.freedesktop.org/xorg/xserver/-/commit/144849ea27230962227e62a943b399e2ab304787

CVE-2020-14362
https://gitlab.freedesktop.org/xorg/xserver/-/commit/2902b78535ecc6821cc027351818b28a5c7fdbdc

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agobash : inlcude patch 17 & 18
Chee Yang Lee [Fri, 18 Sep 2020 09:37:02 +0000 (17:37 +0800)]
bash : inlcude patch 17 & 18

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoqemu : fix CVE-2020-16092
Chee Yang Lee [Fri, 18 Sep 2020 09:37:01 +0000 (17:37 +0800)]
qemu : fix CVE-2020-16092

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agosite: Make sys_siglist default to no
Khem Raj [Tue, 21 Jul 2020 22:10:09 +0000 (15:10 -0700)]
site: Make sys_siglist default to no

glibc 2.32 has deprecated sys_siglist [1]

since no is default for musl as well, therefore elevate it to common
site file for all

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7c19f30849e9a73a7497d8e6c4719a2e57017086)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agobuildtools-tarball: Add python3-jinja2
Richard Purdie [Mon, 21 Sep 2020 11:56:53 +0000 (12:56 +0100)]
buildtools-tarball: Add python3-jinja2

This is used by various pieces of the result handling code, particularly the
performance testing and we're seeing autobuilder failures that are
easiest resolved using this.

Acked-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dc6d4d438b71365f5c6f54b8482d4f01f1d0dc8e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopython3-jinja2: Import from meta-oe/meta-python
Richard Purdie [Mon, 21 Sep 2020 11:55:28 +0000 (12:55 +0100)]
python3-jinja2: Import from meta-oe/meta-python

This is used by some of the results handling code and needed as part of
buildtools tarball on various autobuilder worker for testing.

ptest is disabled for OE-Core, at least for now since it depends on
python3-pytest which in turn has may other dependencies.

Acked-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b5156e95e9e80e3e0f7eea181cd12f85e03a111d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopython3-markupsafe: Import from meta-oe/meta-python
Richard Purdie [Mon, 21 Sep 2020 11:54:12 +0000 (12:54 +0100)]
python3-markupsafe: Import from meta-oe/meta-python

Needed as a dependency of python3-jinja2. ptest is disabled for OE-Core, at
least for now since it depends on python3-pytest which in turn has may other
dependencies.

Acked-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a6f2727fd309b8b46a7ac1b8d99ae1d77a6ee74c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agobuild-appliance-image: Update to dunfell head revision 2020-04.3-dunfell
Richard Purdie [Wed, 23 Sep 2020 11:48:03 +0000 (12:48 +0100)]
build-appliance-image: Update to dunfell head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoscripts/oe-build-perf-report: Use python3 from the environment
Richard Purdie [Sun, 20 Sep 2020 11:46:43 +0000 (12:46 +0100)]
scripts/oe-build-perf-report: Use python3 from the environment

This means ot matches the rest of the system rather than causing confusing errors
where multiple python versions are mixed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobuild-appliance-image: Update to dunfell head revision
Richard Purdie [Tue, 22 Sep 2020 22:34:45 +0000 (23:34 +0100)]
build-appliance-image: Update to dunfell head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoRevert "kernel.bbclass: run do_symlink_kernsrc before do_patch"
Steve Sakoman [Wed, 16 Sep 2020 15:18:45 +0000 (05:18 -1000)]
Revert "kernel.bbclass: run do_symlink_kernsrc before do_patch"

This reverts commit 914d8a00e34a8edf75a349da6f5978e4ed60e6d5.

Due to bug introduced for externalsrc

https://bugzilla.yoctoproject.org/show_bug.cgi?id=14044

Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopopulate_sdk_ext: Do not assume local.conf will always exist
Khem Raj [Sun, 13 Sep 2020 07:44:00 +0000 (00:44 -0700)]
populate_sdk_ext: Do not assume local.conf will always exist

Some distros may not have local.conf, and use auto.conf or site.conf
alone to describe distro config metadata, therefore make code robust
to not fail eSDK builds for such setups

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6379f951ba92b2b86a55de5fc267bacf8c6095d2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agosysvinit: Remove ${B} assignment
Michael Gloff [Sat, 12 Sep 2020 22:39:17 +0000 (17:39 -0500)]
sysvinit: Remove ${B} assignment

The VERSION variable is not set unless the
top level Makefile is used as the version is
derived from the Changelog.
If VERSION is not set, none of the binaries built
in the sysvinit recipe will have a valid version
output.
Before:
INIT: version  booting
After:
INIT: version 2.96 booting

Using the top level Makefile does not cause any
additional builds to occur.

Signed-off-by: Michael Gloff <mgloff@emacinc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 10992ad4f343d0f92d9d6246cc2e58effd3f3eeb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibubootenv: upgrade 0.3 -> 0.3.1
Pierre-Jean Texier [Sat, 12 Sep 2020 13:37:08 +0000 (15:37 +0200)]
libubootenv: upgrade 0.3 -> 0.3.1

This is a bugfix release which includes the following changes:

824551a Prepare 0.3.1
ca6aaa1 Fix file reading/writing when the environment is in EEPROM
a031dea Fix regression in UBI volume support
c91c150 Define SOVERSION to indicate API version

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 447eb941ef43cd5af19aed650fb7da718cedda61)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoinitramfs-framework: support kernel cmdline with double quotes
Christophe GUIBOUT [Thu, 10 Sep 2020 14:06:31 +0000 (14:06 +0000)]
initramfs-framework: support kernel cmdline with double quotes

It avoids init to crash when kernel cmdline contains a string with
spaces inside, like that:
dyndbg="file drivers/usb/core/hub.c +pltf"

Signed-off-by: Christophe Guibout <christophe.guibout@st.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 88b8b94bd2d052bca29d27bd5cd00eddb0f5999d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agosystemd-serialgetty: Replace sed quoting using ' with " to allow var expansion
Geoff Parker [Sat, 12 Sep 2020 03:07:05 +0000 (20:07 -0700)]
systemd-serialgetty: Replace sed quoting using ' with " to allow var expansion

A recent commit added single quotes around the sed regex's. This prevented the
expansion of $default_baudrate in do_install(), and ended up with systemd's'
serial-getty@.service file having a literal $default_baudrate.

This broke the serial console getty service.

serial-getty@.service was getting a line which looked like this:

  ExecStart=-/sbin/agetty -8 -L %I $default_baudrate $TERM

Rather than:

  ExecStart=-/sbin/agetty -8 -L %I 115200 $TERM

Fixed by repacing the single quotes with double quotes in the sed expressions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 80b721bfa4fe300a2f52f233f44fa2835426d304)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agosystemd-serialgetty: Fix sed expression quoting
Rahul Kumar [Sun, 6 Sep 2020 17:31:28 +0000 (23:01 +0530)]
systemd-serialgetty: Fix sed expression quoting

Fix sed: -e expression #1, char 13: unterminated `s' command

Error Message:
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['pseudo-native', 'glibc', 'patch-native', 'quilt-native', 'gcc-cross-arm', 'gcc-runtime', 'linux-libc-headers', 'libgcc', 'flex-native', 'xz-native', 'libtool-native', 'automake-native', 'binutils-cross-arm', 'zlib-native', 'mpfr-native', 'texinfo-dummy-native', 'autoconf-native', 'libmpc-native', 'gnu-config-native', 'gmp-native', 'attr-native', 'm4-native', 'gettext-minimal-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| sed: -e expression #1, char 13: unterminated `s' command
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/opt/Projects/poky/build/tmp/work/qemux86_64-poky-linux/systemd-serialgetty/1.0-r5/temp/run.do_install.11228' failed with exit code 1:
| sed: -e expression #1, char 13: unterminated `s' command
| WARNING: exit code 1 from a shell command.
|

To Fix this Issue using the strong (single quote) character in sed command.
It is recommend to use quotes. If we have meta-characters in the command, quotes are necessary.

Signed-off-by: Rahul Kumar <rahulk@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e2fea05e150dcfec4b7dfbd8edddb53897026bf9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-check: avoid FileNotFoundError if no do_cve_check task has run
Chris Laplante [Wed, 9 Sep 2020 20:51:09 +0000 (16:51 -0400)]
cve-check: avoid FileNotFoundError if no do_cve_check task has run

For example, if you just run 'bitbake cve-update-db-native' in a clean
build system, |cve_tmp_file| won't exist yet.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dd4473f3d8e1c1a587b6de660775e4b46ddc5fad)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-update-db-native: use context manager for cve_f
Chris Laplante [Wed, 9 Sep 2020 20:51:08 +0000 (16:51 -0400)]
cve-update-db-native: use context manager for cve_f

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ff422652e1b5db62205fafc75ce56bb5951d478d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-check/cve-update-db-native: use lockfile to fix usage under multiconfig
Chris Laplante [Wed, 9 Sep 2020 20:51:07 +0000 (16:51 -0400)]
cve-check/cve-update-db-native: use lockfile to fix usage under multiconfig

Previously CVE_CHECK_DB_FILE / CVE_CHECK_DB_DIR was the same across
multiconfigs which led to a race condition wherein multiple
cve-update-db-native:do_populate_cve_db tasks could attempt to write to
the same sqlite database. This led to the following task failure:

    Error executing a python function in exec_python_func() autogenerated:

    The stack trace of python calls that resulted in this exception/failure was:
    File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
         0001:
     *** 0002:do_populate_cve_db(d)
         0003:
    File: '/mnt/data/agent/work/74f119cccb44f133/yocto/sources/poky/meta/recipes-core/meta/cve-update-db-native.bb', lineno: 103, function: do_populate_cve_db
         0099:        if year == date.today().year:
         0100:            cve_f.write('CVE database update : %s\n\n' % date.today())
         0101:
         0102:    cve_f.close()
     *** 0103:    conn.commit()
         0104:    conn.close()
         0105:}
         0106:
         0107:def initialize_db(c):
    Exception: sqlite3.OperationalError: disk I/O error

Use a lockfile to ensure multiple tasks don't step over each other.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 24e9380643a2ae3fcae193519cb64aedaf682153)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-update-db-native: add progress handler
Chris Laplante [Wed, 9 Sep 2020 20:51:06 +0000 (16:51 -0400)]
cve-update-db-native: add progress handler

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 79ae2e82b8ec11578177f428060b568d6c7d44ca)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocve-check.bbclass: always save cve report
akuster [Sun, 12 Jul 2020 22:38:28 +0000 (22:38 +0000)]
cve-check.bbclass: always save cve report

The cve-check file should be saved always, it has good info.

Put a copy in the log dir as cve-summary with symlinks to latest run.

[Yocto #13974]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 859849c7b594d844819ad8c3f7d8325388d94b93)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibxml2: Fix CVE-2020-24977
Ovidiu Panait [Wed, 9 Sep 2020 08:11:53 +0000 (11:11 +0300)]
libxml2: Fix CVE-2020-24977

GNOME project libxml2 v2.9.10 and earlier have a global Buffer Overflow
vulnerability in xmlEncodeEntitiesInternal at libxml2/entities.c. The issue has
been fixed in commit 8e7c20a1 (20910-GITv2.9.10-103-g8e7c20a1).

Reference:
https://gitlab.gnome.org/GNOME/libxml2/-/issues/178

Upstream patch:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/50f06b3efb638efb0abd95dc62dca05ae67882c2

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 92dc02b8f03f3586de0a2ec1463b189a3918e303)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocmake: whitelist CVE-2016-10642
Ross Burton [Tue, 8 Sep 2020 16:47:44 +0000 (17:47 +0100)]
cmake: whitelist CVE-2016-10642

This CVE is specific to the npm package that can install cmake, so isn't
relevant to our cmake recipe.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8e74ed809ec4c1f61264ecf5be4bc319e5e07766)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocurl: add vendors to CVE_PRODUCT to exclude false positives
Ross Burton [Tue, 8 Sep 2020 12:23:24 +0000 (13:23 +0100)]
curl: add vendors to CVE_PRODUCT to exclude false positives

To avoid false positives (such as CVE-2010-0734, rubygems:curl), expand
the CVE_PRODUCT list to include all the vendors that have been used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bb265122cccea9466405fdd924ad10ce8cda0dec)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoell: update to 0.33
Oleksandr Kravchuk [Tue, 8 Sep 2020 06:57:23 +0000 (08:57 +0200)]
ell: update to 0.33

Changelog
- Fix issue with uintset and number of bytes copied.
- Fix issue with overflow in DHCP lease T2 computation.
- Fix issue with side channel leak in l_ecc_scalar_new.
- Fix issue with missing MSG_MORE in l_cipher_set_iv.
- Add support for DHCP v6 client implementation.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3ad8ca257d40f5041b3ec167e4117c687da448a9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agognutls: CVE-2020-24659
Zhixiong Chi [Tue, 8 Sep 2020 02:57:36 +0000 (19:57 -0700)]
gnutls: CVE-2020-24659

Backport the CVE patch from the usptream:
https://gitlab.com/gnutls/gnutls.git
commit 29ee67c205855e848a0a26e6d0e4f65b6b943e0a

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 84b1bc500e318657cb7a8a189b59cc63bc91dca3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agooeqa/concurrencytest: Improve builddir path manipulations
Richard Purdie [Tue, 8 Sep 2020 08:59:54 +0000 (09:59 +0100)]
oeqa/concurrencytest: Improve builddir path manipulations

Its possible some patterns may cause problems with the current path
manipulations, make a small tweak to try and avoid potential pathname
overlap issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 889005dc17d3e3b8eadee907ee2c05b8ff613285)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoselftest/signing: Ensure build path relocation is safe
Richard Purdie [Mon, 7 Sep 2020 15:29:52 +0000 (16:29 +0100)]
selftest/signing: Ensure build path relocation is safe

Similarly to 04ee0e8b95cd8ed890374e0007f976684206b630, ensure only full
build paths are replaced in the environment to avoid breaking buildtools.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fcd0a9683af1a9155eabbd9056e3b46d4a931b2e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agooe-publish-sdk: fix layers init via ssh
Adrian Freihofer [Mon, 7 Sep 2020 16:43:13 +0000 (18:43 +0200)]
oe-publish-sdk: fix layers init via ssh

Escaping does not work in my use case. It must be escaped for
python, ssh and shell as well as for different versions of echo.
Let's try it a little less elegant, but hopefully more reliable.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5cc1ae332eb6b05d83802c8d64ab2767c7079412)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoimage.bbclass: fix REPRODUCIBLE_TIMESTAMP_ROOTFS reference
Matt Madison [Mon, 7 Sep 2020 13:21:15 +0000 (06:21 -0700)]
image.bbclass: fix REPRODUCIBLE_TIMESTAMP_ROOTFS reference

Commit 97b439469a45a089431ca9c31893288c855045f4 added a fallback
mechanism for getting the rootfs timestamp. However, it uses curly
braces around the variable name, which causes bitbake resolve the
variable reference, rather than the shell, so the git timestamp
never gets used. Fix the reference to restore the intent of
making it a fallback for when there is no git timestamp to
retrieve.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fbcf2c1c255b0c61a795c032cf7b67f5db41baa8)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agorunqemu: Add a hook to allow it to renice
Richard Purdie [Sat, 5 Sep 2020 14:06:07 +0000 (15:06 +0100)]
runqemu: Add a hook to allow it to renice

We have an issue where qemu is being starved of resources on our autobuilders.
We can't raise its priority without special capacilties, therefore add a hook
which if present can allow this to happen using an executable
"~/runqemu-renice".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 141a3c9ce93bc3d526303021ecf0460c6e9fea8a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoautoconf: consolidate DEPENDS
Ross Burton [Thu, 3 Sep 2020 14:39:25 +0000 (15:39 +0100)]
autoconf: consolidate DEPENDS

Depending on nativesdk- varients in a nativesdk build isn't correct, so
just collapse the DEPENDS down and let bitbake do the right thing (which
is leaving them as -native).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4864167ad4ed4c57e49f2aa5e7c58383bddb052b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoinsane: only load real files as ELF
Ross Burton [Thu, 3 Sep 2020 12:43:19 +0000 (13:43 +0100)]
insane: only load real files as ELF

The file path checks are passed an ELF object if the file is an ELF. It
doesn't make a lot of sense to load symlinks to ELFs as if they're in
the same package then the real file will be checked too.

This should speed up do_package_qa slightly as libraries won't be
scanned repeatedly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c63af30d3b6350361daff94a59d4f14d7c5395e1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agogdk-pixbuf: add tests PACKAGECONFIG
Ross Burton [Thu, 3 Sep 2020 10:54:39 +0000 (11:54 +0100)]
gdk-pixbuf: add tests PACKAGECONFIG

Convert the installed-tests toggle from simply respecting PTEST_ENABLED
to a PACKAGECONFIG, so that it can be turned on/off in the usual manner.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 08e61ffae6056055b56f93678bcbb9fd71f3303e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agorpcbind: Use update-alternatives for rpcinfo
Khem Raj [Tue, 1 Sep 2020 22:32:27 +0000 (15:32 -0700)]
rpcbind: Use update-alternatives for rpcinfo

rpcinfo is also provided vy netkit in meta-networking

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 28183dfd7446de9113773ab89edd0afb4ab82f7e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibx11 : fix CVE-2020-14344
Lee Chee Yang [Tue, 8 Sep 2020 13:07:44 +0000 (21:07 +0800)]
libx11 : fix CVE-2020-14344

fix CVE-2020-14344 with squashed patch.
squashed patch include below patch,
https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/1703b9f3435079d3c6021e1ee2ec34fd4978103d
https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/1a566c9e00e5f35c1f9e7f3d741a02e5170852b2
https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/2fcfcc49f3b1be854bb9085993a01d17c62acf60
https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/388b303c62aa35a245f1704211a023440ad2c488

also include fix to issue introduced in above patch
(388b303c62aa35a245f1704211a023440ad2c488)
https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/93fce3f4e79cbc737d6468a4f68ba3de1b83953b

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoqemu: fix CVE-2020-14364 CVE-2020-14415
Lee Chee Yang [Tue, 8 Sep 2020 13:07:43 +0000 (21:07 +0800)]
qemu: fix CVE-2020-14364 CVE-2020-14415

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoxserver-xorg: fix CVE-2020-14347
Lee Chee Yang [Tue, 8 Sep 2020 13:07:42 +0000 (21:07 +0800)]
xserver-xorg: fix CVE-2020-14347

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agouninative: Upgrade to 2.9
Khem Raj [Mon, 7 Sep 2020 16:10:39 +0000 (09:10 -0700)]
uninative: Upgrade to 2.9

This supports glibc upto 2.32 which is now rolling into distributions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5cda8c7d642cfb72242c95f450e3391bd6537709)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopackage: get_package_mapping: avoid dependency mapping if renamed package provides...
Yann Dirson [Tue, 1 Sep 2020 12:35:12 +0000 (14:35 +0200)]
package: get_package_mapping: avoid dependency mapping if renamed package provides original name

Packages with a runtime dependency on a target package whose name is
changed by the PKG_* mechanism must rebuild when that mapping changes,
but we have no way of tracking this today, so
eg. packagegroup-machine-base ends up with a relationship on a
versioned kernel-image, and does not get rebuilt when that version
changes, leading to unsatisfiable dependency and reproducibility
issue.

OTOH there is no reason for the dependency to get rewritten if the
renamed package already has a RPROVIDES on the non-rewritten package
name, and if the dependency relationship is an unversionned one.  This
is what this patch prevents.

Note that this may not cover all cases of rewritten package names.

Notably I had to let the rewrite be done in the case of versionned
dependencies, as package managers usually can follow "Provides" in
such case; this includes many dependencies against shared-lib packages
renamed to their soname, and those at least are OK, since the
dependent recipe should explicitly depend on the target recipe.

(From OE-Core rev: 920beaaeef62b558e046f32c8ef0332250969ef1)

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-libc-headers: kernel headers are installed in STAGING_KERNEL_BUILDDIR
Nicolas Dechesne [Wed, 2 Sep 2020 10:47:44 +0000 (12:47 +0200)]
linux-libc-headers: kernel headers are installed in STAGING_KERNEL_BUILDDIR

Since 'fido', kernel headers are installed in STAGING_KERNEL_BUILDDIR,
not STAGING_KERNEL_DIR. So this message in the linux-libc-headers
recipe is slightly misleading.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bdd06f8ed58ed1c4983f8188e98f1a132da91e3d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agojson-glib: Backport a build fix with clang
Khem Raj [Wed, 2 Sep 2020 06:43:02 +0000 (23:43 -0700)]
json-glib: Backport a build fix with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a654c916853f6ead4268282e15dc8c9ef962446e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoselftest/prservice: Improve test failure message
Richard Purdie [Tue, 1 Sep 2020 22:41:15 +0000 (23:41 +0100)]
selftest/prservice: Improve test failure message

When failing, give more information about why exactly a failure is
happening such as the PR values in question.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bdd3abcc210e8f58b7b411da6bbd9c5314819908)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agodevtool: deploy-target: Fix size calculation for hard links
Michael Tretter [Tue, 1 Sep 2020 13:29:00 +0000 (15:29 +0200)]
devtool: deploy-target: Fix size calculation for hard links

If a package contains hard links to a file, the file size is added for
each hard link instead of once for the file. Therefore, the calculated
size may be much larger than the actual package size.

For example, the mesa-megadriver package contains several hard links to
the same library.

Keep track of the inode numbers when listing the files that are
installed and use the actual size only for the first occurrence of an
inode. All further hard links to the same inode are added to the file
list, but accounted with size 0.

All file names need to be added to the file list, because the list is
used for preserving the files/hard links on the target.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 17e92572278980d1a7f06de9d72c68baf57698f1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoinsane: improve gnu-hash-style warning
Ross Burton [Wed, 2 Sep 2020 10:41:53 +0000 (11:41 +0100)]
insane: improve gnu-hash-style warning

Instead of showing a filename under packages-split, show the package
name and filename inside the package.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4f78fc65bb0c9bff05651d9e543bab3d75998f79)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoinsane: fix gnu-hash-style check
Sumit Garg [Tue, 1 Sep 2020 12:59:23 +0000 (18:29 +0530)]
insane: fix gnu-hash-style check

Fix gnu-hash-style check that always returned True after commit [1]
leading to false positive presence of "GNU_HASH" in objdump output.

Fixes: 9ff90bf04a4c ("mips: Enable gnu-hash-style on glibc") [1]
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 996010f1b9ca98592e2c87e1adcb0c79b86517b7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agooeqa: sdk: Capture stderr output
Joshua Watt [Mon, 31 Aug 2020 21:53:53 +0000 (16:53 -0500)]
oeqa: sdk: Capture stderr output

Redirect stderr to stdout when running subcommands while doing the SDK
tests. The tests will show stdout when CalledProcessError is raised,
but any output to stderr was lost.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7cb4e9ab8c1596281060e94a216966060103956e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoutil-linux: Allow update alternatives for additional apps
Khem Raj [Mon, 31 Aug 2020 18:57:17 +0000 (11:57 -0700)]
util-linux: Allow update alternatives for additional apps

mcookie/prlimit/uuidgen are also provided by toybox

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b6135777799de531e2cb4017e91a8c41749d1fd5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agorecipes-kernel: linux-firmware add qcom-venus-{5.2,5.4} packages
Anibal Limon [Mon, 31 Aug 2020 18:49:02 +0000 (13:49 -0500)]
recipes-kernel: linux-firmware add qcom-venus-{5.2,5.4} packages

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e20c1e07a807f66f028104d8491d974a36734192)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agowic: misc: Add /bin to the list of searchpaths
Vijai Kumar K [Tue, 1 Sep 2020 10:02:33 +0000 (15:32 +0530)]
wic: misc: Add /bin to the list of searchpaths

/bin is also a valid path where one can find executables. Add
that to the search path.

Signed-off-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ca0a6025351cb2135e87cecf828633cf12aa34c6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agosysstat: fix installed-vs-shipped QA Issue in systemd
hongxu [Fri, 28 Aug 2020 01:46:10 +0000 (18:46 -0700)]
sysstat: fix installed-vs-shipped QA Issue in systemd

While enabling systemd, there is QA issue:
...
|ERROR: sysstat-12.4.0-r0 do_package: QA Issue: sysstat: Files/directories
were installed but not shipped in any package:
|  /lib/systemd/system-sleep
|  /lib/systemd/system-sleep/sysstat.sleep
...

https://www.freedesktop.org/software/systemd/man/systemd-sleep.html
says the files should be dropped into /usr/lib/systemd/system-sleep
(that would be /lib/systemd/system-sleep in our configuration).  By
moving the files to another directory they'll be packaged but not
loaded by systemd.

Suggested-by Ross Burton <ross@burtonini.com>

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3bdd40ea09e50067f11c12290ab465a9ef229fc4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agosanity.conf: update BB_MIN_VERSION to 1.46.0
Steve Sakoman [Wed, 2 Sep 2020 19:49:51 +0000 (09:49 -1000)]
sanity.conf: update BB_MIN_VERSION to 1.46.0

npm changes were merged that require bitbake 1.46.0,
you can't do a recipetool newappend on dunfell otherwise

Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agocml1: Move find_cfgs() helper to cml1.bbclass
Rasmus Villemoes [Thu, 9 Jul 2020 20:19:53 +0000 (22:19 +0200)]
cml1: Move find_cfgs() helper to cml1.bbclass

u-boot.inc and busybox.inc contain identical copies of this little
helper. They both inherit the cml1 class and use cml1_do_configure
right after having used this helper, and other recipes that want to
write similar logic for doing Kconfig via fragments will also need it
or something equivalent.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit af687c9137a3e8efe48afa6fd12866cf656ae913)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agojson-c: Fix CVE-2020-12762
Khem Raj [Mon, 31 Aug 2020 01:23:58 +0000 (18:23 -0700)]
json-c: Fix CVE-2020-12762

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agokernel-yocto: checksum all modifications to available kernel fragments directories
Bruce Ashfield [Thu, 27 Aug 2020 20:04:47 +0000 (16:04 -0400)]
kernel-yocto: checksum all modifications to available kernel fragments directories

This is based on the patch from Zhaolong Zhang <zhangzl2013@126.com>
[kernel-yocto: checksum indirect cfg and scc files]

While the recommended manner to share/reuse feature fragments is to
maintain them in a kernel-meta repository and track the changes via the
standard SRCREV fetcher mechanism, that method is not always practical
for small sets of features or for quick testing of changes.

These other flows use .scc files on the SRC_URI. It has been noted that
config fragments or other features indirectly included by those .scc
files will not trigger the kernel meta-data to be re-run and hence a
build can continue with stale data (or not be triggered at all).

To solve this issue, we can collect the directories that are searchable
via FILESEXTRAPATHS and add them to the do_kernel_metadata task
checksum.

This allows modifications, additions and removals from the potential
kernel feature directories to trigger a re-execution of the meta data
task.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 09f4db415fb6a1398e9e9b359630043c833f6118)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agodevtool: expand SRC_URI when guessing recipe update mode
Martin Jansa [Wed, 19 Aug 2020 11:20:51 +0000 (13:20 +0200)]
devtool: expand SRC_URI when guessing recipe update mode

* I have recipes which use variable inside SRC_URI, e.g.:
  ROS_BRANCH ?= "branch=release/melodic/swri_nodelet"
  SRC_URI = "git://github.com/swri-robotics-gbp/marti_common-release;${ROS_BRANCH};protocol=https"

  and devtool modify works fine, but devtool finish fails with:

  $ devtool finish --force-patch-refresh swri-nodelet meta-ros/meta-ros1-melodic/
  ...
  Traceback (most recent call last):
    File "/OE/openembedded-core/scripts/devtool", line 334, in <module>
      ret = main()
    File "/OE/openembedded-core/scripts/devtool", line 321, in main
      ret = args.func(args, config, basepath, workspace)
    File "/OE/openembedded-core/scripts/lib/devtool/standard.py", line 2082, in finish
      updated, appendfile, removed = _update_recipe(args.recipename, workspace, rd, args.mode, appendlayerdir, wildcard_version=True, no_remove=False, no_report_remove=removing_original, initial_rev=args.initial_rev, dry_run_outdir=dry_run_outdir, no_overrides=args.no_overrides, force_patch_refresh=args.force_patch_refresh)
    File "/OE/openembedded-core/scripts/lib/devtool/standard.py", line 1737, in _update_recipe
      mode = _guess_recipe_update_mode(srctree, rd)
    File "/OE/openembedded-core/scripts/lib/devtool/standard.py", line 1721, in _guess_recipe_update_mode
      params = bb.fetch.decodeurl(uri)[5]
    File "/OE/bitbake/lib/bb/fetch2/__init__.py", line 390, in decodeurl
      raise MalformedUrl(url, "The URL: '%s' is invalid: parameter %s does not specify a value (missing '=')" % (url, s))
  bb.fetch2.MalformedUrl: The URL: 'git://github.com/swri-robotics-gbp/marti_common-release;${ROS_BRANCH};protocol=https' is invalid: parameter ${ROS_BRANCH} does not specify a value (missing '=')

  let it expand the SRC_URI before trying to decode it.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3535cfdbf3d77f550b804276f957acf859da484f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopackage.bbclass: explode the RPROVIDES so we don't think the versions are provides
Ross Burton [Thu, 27 Aug 2020 15:58:04 +0000 (16:58 +0100)]
package.bbclass: explode the RPROVIDES so we don't think the versions are provides

emit_pkgdata() creates symlinks for each of the RPROVIDES in
pkgdata/MACHINE/runtime-rprovides.  However this string can contain
versions which results in directories called (=2.32), so pass the
RPROVIDES string through bb.utils.explode_deps() to strip the versions
out.

Helps mitigate - but not solve - #13999.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6a5395dec34192db233bfb2a060e5ccc99708f03)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-firmware: update 20200721 -> 20200817
Alexander Kanavin [Sun, 23 Aug 2020 20:20:30 +0000 (22:20 +0200)]
linux-firmware: update 20200721 -> 20200817

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 16f2e190ef55e349512b8f70fe437b46ef1dc142)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-firmware: upgrade 20200619 -> 20200721
Alexander Kanavin [Sun, 23 Aug 2020 20:20:12 +0000 (22:20 +0200)]
linux-firmware: upgrade 20200619 -> 20200721

License-Update: firmware versions/filenames
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6c1ee3b8a02cd8c5b4219e06c2d71dac1edf4fdf)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agokernel.bbclass: run do_symlink_kernsrc before do_patch
Rasmus Villemoes [Tue, 25 Aug 2020 14:35:15 +0000 (16:35 +0200)]
kernel.bbclass: run do_symlink_kernsrc before do_patch

There's a race between do_symlink_kernsrc and do_populate_lic, since
the latter is ordered "after do_patch"; so the two may run in
parallel. In some cases, that actually causes do_populate_lic to fail
if it happens to look for a license file somewhere under ${S} in the
short window after shutil.move and before the symlink has been
created.

Fix that by simply ordering symlink_kernsrc before do_patch. Any task
that pokes around in ${S} looking for files should be ordered after
do_patch, so this should also fix similar latent races with other ad
hoc tasks.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c5dfc2586b4135cc86e91bb04fed837daf505676)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: update to v5.4.61
Bruce Ashfield [Thu, 27 Aug 2020 17:53:59 +0000 (13:53 -0400)]
linux-yocto/5.4: update to v5.4.61

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

    6576d69aac94 Linux 5.4.61
    d316d52742c4 KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set
    e1818ffcca0e KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()
    744fde53ec32 xen: don't reschedule in preemption off sections
    d6bca2a8f064 mm/hugetlb: fix calculation of adjust_range_if_pmd_sharing_possible
    42694912aaf1 do_epoll_ctl(): clean the failure exits up a bit
    b158e91610c7 epoll: Keep a reference on files added to the check list
    5167f194da69 efi: add missed destroy_workqueue when efisubsys_init fails
    13b1fc60ecb0 powerpc/pseries: Do not initiate shutdown when system is running on UPS
    dafae068886a net: dsa: b53: check for timeout
    83236e697f79 hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit()
    2dd00ae408a9 net: gemini: Fix missing free_netdev() in error path of gemini_ethernet_port_probe()
    f4adc6430d74 net: ena: Prevent reset after device destruction
    f4ed9ede3441 bonding: fix active-backup failover for current ARP slave
    542a493c8c5e ARM64: vdso32: Install vdso32 from vdso_install
    278eb88ab206 afs: Fix NULL deref in afs_dynroot_depopulate()
    140ac9370b16 RDMA/bnxt_re: Do not add user qps to flushlist
    dc0d58e281a6 Fix build error when CONFIG_ACPI is not set/enabled:
    7cc9812be1c7 efi: avoid error message when booting under Xen
    d3ca317cf62a kconfig: qconf: fix signal connection to invalid slots
    51d85e70e3ad kconfig: qconf: do not limit the pop-up menu to the first row
    da1069e4e727 Revert "scsi: qla2xxx: Disable T10-DIF feature with FC-NVMe during probe"
    6e2aa034d777 kvm: x86: Toggling CR4.PKE does not load PDPTEs in PAE mode
    46713f3d61b3 kvm: x86: Toggling CR4.SMAP does not load PDPTEs in PAE mode
    667a59aa55fb vfio/type1: Add proper error unwind for vfio_iommu_replay()
    503176f5dc07 ASoC: intel: Fix memleak in sst_media_open
    8aeb112d58c0 ASoC: msm8916-wcd-analog: fix register Interrupt offset
    e9849a60facb s390/ptrace: fix storage key handling
    d35f24bc566d s390/runtime_instrumentation: fix storage key handling
    cc215d206881 bonding: fix a potential double-unregister
    8a49739f58f5 can: j1939: add rxtimer for multipacket broadcast session
    d7ab964b6ba9 can: j1939: abort multipacket broadcast session when timeout occurs
    d0dc3d2c71e2 can: j1939: cancel rxtimer on multipacket broadcast session complete
    5159a0a5164b can: j1939: fix support for multipacket broadcast message
    5dc0c1c12094 bonding: show saner speed for broadcast mode
    1b9dee25ad25 net: fec: correct the error path for regulator disable in probe
    c0e04d08e544 i40e: Fix crash during removing i40e driver
    e2a8d4423640 i40e: Set RX_ONLY mode for unicast promiscuous on VLAN
    154ccf69feca can: j1939: transport: add j1939_session_skb_find_by_offset() function
    3bfd1398de6a can: j1939: transport: j1939_simple_recv(): ignore local J1939 messages send not by J1939 stack
    ff723ef6b7b6 can: j1939: fix kernel-infoleak in j1939_sk_sock2sockaddr_can()
    6e0bc946cbee bpf: sock_ops sk access may stomp registers when dst_reg = src_reg
    ece9ca5840e0 ASoC: q6routing: add dummy register read/write function
    aaa6e691b983 ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM
    233d6f2ab120 spi: stm32: fixes suspend/resume management
    666d1d1a0584 netfilter: nf_tables: nft_exthdr: the presence return value should be little-endian
    3473fa198178 ext4: don't allow overlapping system zones
    ea54176e5821 ext4: fix potential negative array index in do_split()
    2585402c5799 fs/signalfd.c: fix inconsistent return codes for signalfd4
    e4f952b031c1 alpha: fix annotation of io{read,write}{16,32}be()
    538c74a9cb26 xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init
    4591461ea9f2 tools/testing/selftests/cgroup/cgroup_util.c: cg_read_strcmp: fix null pointer dereference
    10b2bb101f06 media: camss: fix memory leaks on error handling paths in probe
    05724341d9db virtio_ring: Avoid loop when vq is broken in virtqueue_poll
    34f8368f6634 scsi: libfc: Free skb in fc_disc_gpn_id_resp() for valid cases
    28850b8043cc cpufreq: intel_pstate: Fix cpuinfo_max_freq when MSR_TURBO_RATIO_LIMIT is 0
    cca58a166920 swiotlb-xen: use vmalloc_to_page on vmalloc virt addresses
    2bd8ba398fad ceph: fix use-after-free for fsc->mdsc
    2524bb04d81b jffs2: fix UAF problem
    04aeb884e8a5 drm/ttm: fix offset in VMAs with a pg_offs in ttm_bo_vm_access
    711f5688bb97 xfs: fix inode quota reservation checks
    8fe5e38acbe7 svcrdma: Fix another Receive buffer leak
    7aca2f7d1710 m68knommu: fix overwriting of bits in ColdFire V3 cache control
    1a718d4caa1a MIPS: Fix unable to reserve memory for Crash kernel
    5594a54c520b Input: psmouse - add a newline when printing 'proto' by sysfs
    06d4d9acd7d8 media: vpss: clean up resources in init
    f948f1d02237 rtc: goldfish: Enable interrupt in set_alarm() when necessary
    85ad0d5f3d69 media: budget-core: Improve exception handling in budget_register()
    62b8c76d061f scsi: target: tcmu: Fix crash in tcmu_flush_dcache_range on ARM
    59d587cc3640 scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devices
    10e99c3003d5 opp: Enable resources again if they were disabled earlier
    52d322f91954 kthread: Do not preempt current task if it is going to call schedule()
    504fe0ab2412 drm/amd/display: fix pow() crashing when given base 0
    1f3cfa9338c3 drm/amd/display: Fix EDID parsing after resume from suspend
    6f3bff30f1cb drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal
    f45ab6e7d957 scsi: zfcp: Fix use-after-free in request timeout handlers
    b4062a49ad4a jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock()
    2bc54ba65fdc ext4: fix checking of directory entry validity for inline directories
    59af0759bd46 RDMA/hfi1: Correct an interlock issue for TID RDMA WRITE request
    0cfb9320d00c mm, page_alloc: fix core hung in free_pcppages_bulk()
    5663159e2930 mm: include CMA pages in lowmem_reserve at boot
    e9e3ec03e6ae uprobes: __replace_page() avoid BUG in munlock_vma_page()
    fa2e0d4e4a4c kernel/relay.c: fix memleak on destroy relay channel
    19a77c937a19 romfs: fix uninitialized memory leak in romfs_dev_read()
    3e538c536f01 spi: Prevent adding devices below an unregistering controller
    143df6b3584a can: j1939: socket: j1939_sk_bind(): make sure ml_priv is allocated
    60be1488a3ae can: j1939: transport: j1939_session_tx_dat(): fix use-after-free read in j1939_tp_txtimer()
    055c65c7e7dd ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion
    4fe52a85eeb4 ALSA: hda/realtek: Add quirk for Samsung Galaxy Flex Book
    84bfb4b10d6f btrfs: add wrapper for transaction abort predicate
    745148367b04 btrfs: return EROFS for BTRFS_FS_STATE_ERROR cases
    de88b7e2f02f btrfs: don't show full path of bind mounts in subvol=
    038580b1f58b btrfs: export helpers for subvolume name/id resolution
    b40753984979 bcache: avoid nr_stripes overflow in bcache_device_init()
    9f4f7c08d50b khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()
    9a05b774af30 khugepaged: khugepaged_test_exit() check mmget_still_valid()
    8043d5ee9168 perf probe: Fix memory leakage when the probe point is not found
    888d9b829c25 gfs2: Never call gfs2_block_zero_range with an open transaction
    18a640d3b570 gfs2: Improve mmap write vs. punch_hole consistency
    e42c75ef3477 drm/vgem: Replace opencoded version of drm_gem_dumb_map_offset()
    62353048e2d4 kbuild: support LLVM=1 to switch the default tools to Clang/LLVM
    c7d8f67db126 kbuild: replace AS=clang with LLVM_IAS=1
    244d9026768d kbuild: remove AS variable
    fed06097acce kbuild: remove PYTHON2 variable
    fa84d9f31599 x86/boot: kbuild: allow readelf executable to be specified
    c173511a12e4 net: wan: wanxl: use $(M68KCC) instead of $(M68KAS) for rebuilding firmware
    c7c239c947be net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware
    f781285d09a9 Documentation/llvm: fix the name of llvm-size
    97eab9af0036 Documentation/llvm: add documentation on building w/ Clang/LLVM

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0c67ef9397da5dacaba557956a33c0c457684032)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: update to v5.4.60
Bruce Ashfield [Wed, 26 Aug 2020 13:57:30 +0000 (09:57 -0400)]
linux-yocto/5.4: update to v5.4.60

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

    77fcb48939fc Linux 5.4.60
    53a856c5a6af drm/amd/display: dchubbub p-state warning during surface planes switch
    4287c18a7d8f drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resume
    915ad46bdd4a drm: fix drm_dp_mst_port refcount leaks in drm_dp_mst_allocate_vcpi
    f9f53b7c6a81 drm: Added orientation quirk for ASUS tablet model T103HAF
    aeec14061d53 drm/panfrost: Use kvfree() to free bo->sgts
    a202b42b94bc arm64: dts: marvell: espressobin: add ethernet alias
    0f1c938ef82d khugepaged: retract_page_tables() remember to test exit
    e47e00559893 sh: landisk: Add missing initialization of sh_io_port_base
    64d358a9adb5 perf/x86/rapl: Fix missing psys sysfs attributes
    5c90739d36ce tools build feature: Quote CC and CXX for their arguments
    45989801d7cf perf bench mem: Always memset source before memcpy
    306df54b5b8a ALSA: echoaudio: Fix potential Oops in snd_echo_resume()
    8bc48c35a983 crypto: algif_aead - fix uninitialized ctx->init
    a23269976109 mfd: dln2: Run event handler loop under spinlock
    315b5cbe1aee i2c: iproc: fix race between client unreg and isr
    8620d18575af test_kmod: avoid potential double free in trigger_config_run_type()
    3457ba1acec2 fs/ufs: avoid potential u32 multiplication overflow
    ba40d33e36b2 fs/minix: remove expected error message in block_to_path()
    d91005b645d1 fs/minix: fix block limit check for V1 filesystems
    6def476496a5 fs/minix: set s_maxbytes correctly
    75cf7f895f56 nfs: Fix getxattr kernel panic and memory overflow
    d09d6dca89e9 net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init
    35b5e689abd9 drm/vmwgfx: Fix two list_for_each loop exit tests
    95922cdab4ad drm/vmwgfx: Use correct vmw_legacy_display_unit pointer
    1d8dce52a008 recordmcount: Fix build failure on non arm64
    f41600c55789 Input: sentelic - fix error return when fsp_reg_write fails
    8d7633b5aff9 x86/tsr: Fix tsc frequency enumeration bug on Lightning Mountain SoC
    8645225c7180 md-cluster: Fix potential error pointer dereference in resize_bitmaps()
    3fcd24040f55 watchdog: initialize device before misc_register
    9340d8bfec94 nfs: nfs_file_write() should check for writeback errors
    da14c05ad875 scsi: lpfc: nvmet: Avoid hang / use-after-free again when destroying targetport
    c9220ff3b9cc openrisc: Fix oops caused when dumping stack
    a6d5c5a398d6 libnvdimm/security: ensure sysfs poll thread woke up and fetch updated attr
    dfb5d727d721 libnvdimm/security: fix a typo
    0c51d8f5c83e clk: bcm2835: Do not use prediv with bcm2711's PLLs
    1896dfc97c90 ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename
    7dccbf1111bf nfs: ensure correct writeback errors are returned on close()
    9153e0d43710 i2c: rcar: avoid race when unregistering slave
    4f69483568d6 tools build feature: Use CC and CXX from parent
    3d0808f3c7d9 pwm: bcm-iproc: handle clk_get_rate() return
    ba2c4d0e720b clk: clk-atlas6: fix return value check in atlas6_clk_init()
    c7bd131f4335 clk: qcom: gcc-sdm660: Fix up gcc_mss_mnoc_bimc_axi_clk
    422a01fc23d2 i2c: rcar: slave: only send STOP event when we have been addressed
    043bc80399a8 iommu/vt-d: Enforce PASID devTLB field mask
    99d1472ba802 clk: qcom: clk-alpha-pll: remove unused/incorrect PLL_CAL_VAL
    f66d0154ed2f clk: qcom: gcc: fix sm8150 GPU and NPU clocks
    a31ac4101981 iommu/omap: Check for failure of a call to omap_iommu_dump_ctx
    34c920e2c858 selftests/powerpc: ptrace-pkey: Don't update expected UAMOR value
    cf5078181528 selftests/powerpc: ptrace-pkey: Update the test to mark an invalid pkey correctly
    e4a6919c9908 selftests/powerpc: ptrace-pkey: Rename variables to make it easier to follow code
    ea777df6b8b9 clk: actions: Fix h_clk for Actions S500 SoC
    0e0a146f978e dm rq: don't call blk_mq_queue_stopped() in dm_stop_queue()
    386f82040c84 gpu: ipu-v3: image-convert: Wait for all EOFs before completing a tile
    0f77e95efd75 gpu: ipu-v3: image-convert: Combine rotate/no-rotate irq handlers
    e0a684edf6d7 crypto: caam - Remove broken arc4 support
    64563d1dca80 mmc: renesas_sdhi_internal_dmac: clean up the code for dma complete
    b638533ec6fa RDMA/counter: Allow manually bind QPs with different pids to same counter
    e5a9bb4f1243 RDMA/counter: Only bind user QPs in auto mode
    cf304df99fac devres: keep both device name and resource name in pretty name
    ddd3934f7b39 crypto: af_alg - Fix regression on empty requests
    9705f53eb01a USB: serial: ftdi_sio: clean up receive processing
    aeefe7d15cf1 USB: serial: ftdi_sio: make process-packet buffer unsigned
    8cab023c03aa selftests/bpf: test_progs use another shell exit on non-actions
    de624fbac3eb selftests/bpf: Test_progs indicate to shell on non-actions
    95c736a29105 IB/uverbs: Set IOVA on IB MR in uverbs layer
    ea1cdb1bb80b media: rockchip: rga: Only set output CSC mode for RGB input
    5f51ca677cd2 media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic
    0f334b668455 RDMA/ipoib: Fix ABBA deadlock with ipoib_reap_ah()
    5412efa6285a RDMA/ipoib: Return void from ipoib_ib_dev_stop()
    ab67471562ad platform/chrome: cros_ec_ishtp: Fix a double-unlock issue
    617da16f5ab9 mtd: rawnand: fsl_upm: Remove unused mtd var
    e1f2606892f2 octeontx2-af: change (struct qmem)->entry_sz from u8 to u16
    368caae37037 mfd: arizona: Ensure 32k clock is put on driver unbind and error
    cf368b876f44 crypto: algif_aead - Only wake up when ctx->more is zero
    bb0bba78d365 pinctrl: ingenic: Properly detect GPIO direction when configured for IRQ
    974ca069d531 orangefs: get rid of knob code...
    1752ab50e825 drm/imx: imx-ldb: Disable both channels for split mode in enc->disable()
    988fcef346a3 remoteproc: qcom_q6v5_mss: Validate modem blob firmware size before load
    babd6a4c3336 remoteproc: qcom_q6v5_mss: Validate MBA firmware size before load
    73ba6991e981 remoteproc: qcom: q6v5: Update running state before requesting stop
    55052ac61cb8 perf intel-pt: Fix duplicate branch after CBR
    8214e74b662d perf intel-pt: Fix FUP packet state
    169015f464d0 module: Correctly truncate sysfs sections output
    54f44e3af24b pseries: Fix 64 bit logical memory block panic
    37e3a1c08e2d ceph: handle zero-length feature mask in session messages
    8953e8cb0d6a ceph: set sec_context xattr on symlink creation
    12badd382453 watchdog: f71808e_wdt: clear watchdog timeout occurred flag
    0f35915a0feb watchdog: f71808e_wdt: remove use of wrong watchdog_info option
    4699d95a715b watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options
    43e172e31bad tracing: Move pipe reference to trace array instead of current_tracer
    9aab8b2b0f8f tracing: Use trace_sched_process_free() instead of exit() for pid tracing
    bd23940da2d1 tracing/hwlat: Honor the tracing_cpumask
    1424f0aa18dc kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler
    3a1208574658 ftrace: Setup correct FTRACE_FL_REGS flags for module
    b47215b3749a mm/memory_hotplug: fix unpaired mem_hotplug_begin/done
    aeeddba9b498 mm/page_counter.c: fix protection usage propagation
    bd99ff4dc92b ocfs2: change slot number type s16 to u16
    a6b238cac6d3 khugepaged: collapse_pte_mapped_thp() protect the pmd lock
    687d366d0db1 khugepaged: collapse_pte_mapped_thp() flush the right range
    8cdf68355312 ext2: fix missing percpu_counter_inc
    6c7b42c8f01d MIPS: qi_lb60: Fix routing to audio amplifier
    59909e23020f MIPS: CPU#0 is not hotpluggable
    d3c9e815006e driver core: Avoid binding drivers to dead devices
    0cf746d8b052 mac80211: fix misplaced while instead of if
    c573e8673dc1 bcache: fix overflow in offset_to_stripe()
    42dd8cc9e499 bcache: allocate meta data pages as compound pages
    391b5d39faea md/raid5: Fix Force reconstruct-write io stuck in degraded raid5
    28163868530b net/compat: Add missing sock updates for SCM_RIGHTS
    6ea125ec644b net: stmmac: dwmac1000: provide multicast filter fallback
    e92a02e47e16 net: ethernet: stmmac: Disable hardware multicast filter
    eca5084aabdf media: vsp1: dl: Fix NULL pointer dereference on unbind
    28bbbc45054c pinctrl: ingenic: Enhance support for IRQ_TYPE_EDGE_BOTH
    9ba5f37fa353 powerpc: Fix circular dependency between percpu.h and mmu.h
    9de20a6c4dd6 powerpc: Allow 4224 bytes of stack expansion for the signal frame
    2150c25b76fb powerpc/ptdump: Fix build failure in hashpagetable.c
    7a991df9e5cb cifs: Fix leak when handling lease break for cached root fid
    545771537ec4 xtensa: fix xtensa_pmu_setup prototype
    d1e2ec2e0b7d xtensa: add missing exclusive access state management
    5efb3f91403c iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()
    1a5e5b3b7571 dt-bindings: iio: io-channel-mux: Fix compatible string in example code
    ab58cc033124 arm64: perf: Correct the event index in sysfs
    8c1431221374 btrfs: fix return value mixup in btrfs_get_extent
    d256992d5105 btrfs: make sure SB_I_VERSION doesn't get unset by remount
    5bed3387c8a1 btrfs: fix memory leaks after failure to lookup checksums during inode logging
    f1d21b2688d9 btrfs: inode: fix NULL pointer dereference if inode doesn't need compression
    7bbf647dbb5a btrfs: only search for left_info if there is no right_info in try_merge_free_space
    38c8255af7d7 btrfs: fix messages after changing compression level by remount
    242747612209 btrfs: fix race between page release and a fast fsync
    ee6373070108 btrfs: don't WARN if we abort a transaction with EROFS
    d8848f4c2555 btrfs: sysfs: use NOFS for device creation
    e0e51f4fc488 btrfs: avoid possible signal interruption of btrfs_drop_snapshot() on relocation tree
    2f29a31f394e btrfs: add missing check for nocow and compression inode flags
    38ab14b1e27c btrfs: relocation: review the call sites which can be interrupted by signal
    ae3f93cafd6f btrfs: move the chunk_mutex in btrfs_read_chunk_tree
    98f55cd49671 btrfs: open device without device_list_mutex
    3d3452920cac btrfs: don't traverse into the seed devices in show_devname
    8bc3a5d8c2ae btrfs: remove no longer needed use of log_writers for the log root tree
    938051408905 btrfs: stop incremening log_batch for the log root tree when syncing log
    0ddf373adb42 btrfs: ref-verify: fix memory leak in add_block_entry
    c16ba06f5204 btrfs: don't allocate anonymous block device for user invisible roots
    d2731ac13ca5 btrfs: free anon block device right after subvolume deletion
    207659ef151c btrfs: allow use of global block reserve for balance item deletion
    7a6fc7c21962 PCI: qcom: Add support for tx term offset for rev 2.1.0
    5956d3847502 PCI: qcom: Define some PARF params needed for ipq8064 SoC
    588d5cbf4de7 PCI: Add device even if driver attach failed
    d7caf80700f2 PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken
    ae86233204ba PCI: hotplug: ACPI: Fix context refcounting in acpiphp_grab_context()
    72ba9d544e60 genirq/PM: Always unlock IRQ descriptor in rearm_wake_irq()
    a11f42496ac8 genirq/affinity: Make affinity setting if activated opt-in
    582ee2cb6f90 smb3: warn on confusing error scenario with sec=krb5

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 05ed88405bdcb0bec513bfd5aaeb652d0fa035fb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: update to v5.4.59
Bruce Ashfield [Fri, 21 Aug 2020 19:02:15 +0000 (15:02 -0400)]
linux-yocto/5.4: update to v5.4.59

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

    f61e1c3638dd Linux 5.4.59
    5de0b5247cba io_uring: Fix NULL pointer dereference in loop_rw_iter()
    4db28111b2a3 s390/gmap: improve THP splitting
    756a70b6dcc3 s390/dasd: fix inability to use DASD with DIAG driver
    dccc66daeba5 xen/gntdev: Fix dmabuf import with non-zero sgt offset
    8e41ac0bfdfd xen/balloon: make the balloon wait interruptible
    ee4c180d93d0 xen/balloon: fix accounting in alloc_xenballooned_pages error path
    db1f4c745a91 fs/minix: reject too-large maximum file size
    8c7e720a165b fs/minix: don't allow getting deleted inodes
    a5305f119907 fs/minix: check return value of sb_getblk()
    5be9072b8121 bitfield.h: don't compile-time validate _val in FIELD_FIT
    3e95a74f4c27 crypto: cpt - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified
    28bd8f392f4a crypto: ccp - Fix use of merged scatterlists
    3c660aa47304 crypto: qat - fix double free in qat_uclo_create_batch_init_list
    d9add5d7d94b crypto: hisilicon - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified
    17f9ba7229c4 pstore: Fix linking when crypto API disabled
    1a2e558c8b30 tpm: Unify the mismatching TPM space buffer sizes
    169d55c486f8 ALSA: usb-audio: add quirk for Pioneer DDJ-RB
    a3ec61c84d85 irqdomain/treewide: Free firmware node after domain removal
    35e1338bddcd ARM: 8992/1: Fix unwind_frame for clang-built kernels
    cd17453fa96f parisc: mask out enable and reserved bits from sba imask
    0d3897a7f527 parisc: Implement __smp_store_release and __smp_load_acquire barriers
    8dfab4662001 parisc: Do not use an ordered store in pa_tlb_lock()
    638e45c39f30 Revert "parisc: Revert "Release spinlocks using ordered store""
    431d999bd098 Revert "parisc: Use ldcw instruction for SMP spinlock release barrier"
    7612ce180e30 Revert "parisc: Drop LDCW barrier in CAS code when running UP"
    15f7b186916d erofs: fix extended inode could cross boundary
    a8e9efb55323 mtd: rawnand: qcom: avoid write to unavailable register
    7ebb8fd40256 spi: spidev: Align buffers for DMA
    e02c77edd9b0 include/asm-generic/vmlinux.lds.h: align ro_after_init
    7e270e86b1b3 cpufreq: dt: fix oops on armada37xx
    613a374f3fd6 cpufreq: Fix locking issues with governors
    6d1e56826ea8 NFS: Don't return layout segments that are in use
    046922d3248d NFS: Don't move layouts to plh_return_segs list while in use
    3c512bd3dbbb io_uring: set ctx sq/cq entry count earlier
    c6d2ddf1a30d drm/ttm/nouveau: don't call tt destroy callback on alloc failure.
    86f95b631490 media: media-request: Fix crash if memory allocation fails
    06d8ba514949 9p: Fix memory leak in v9fs_mount
    10de419977bf ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109
    1d2c4954e82b ALSA: usb-audio: fix overeager device match for MacroSilicon MS2109
    d5f647e3a72a ALSA: usb-audio: Creative USB X-Fi Pro SB1095 volume knob support
    8555fd99c111 ALSA: hda - fix the micmute led status for Lenovo ThinkCentre AIO
    1f0e0ad76eae USB: serial: cp210x: enable usb generic throttle/unthrottle
    3a8d1ca7204e USB: serial: cp210x: re-enable auto-RTS on open
    378737e1eee2 net: initialize fastreuse on inet_inherit_port
    dcedddbc7b20 net: refactor bind_bucket fastreuse into helper
    8a337428a5af vmxnet3: use correct tcp hdr length when packet is encapsulated
    e07d0ccd7fde tcp: correct read of TFO keys on big endian systems
    49a5b473bc66 net/tls: Fix kmap usage
    7bedf1d86298 net: Set fput_needed iff FDPUT_FPUT is set
    47f873ac267b net: phy: fix memory leak in device-create error path
    0b305f259ca9 net/nfc/rawsock.c: add CAP_NET_RAW check.
    02618095ab45 net: Fix potential memory leak in proto_register()
    f6c5d9f3361a drivers/net/wan/lapbether: Added needed_headroom and a skb->len check
    de236de3df57 af_packet: TPACKET_V3: fix fill status rwlock imbalance
    5ef739b7a5be crypto: aesni - add compatibility with IAS
    c44efee6e432 x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task
    18d1bb497364 SUNRPC: Fix ("SUNRPC: Add "@len" parameter to gss_unwrap()")
    789be9705ed1 svcrdma: Fix page leak in svc_rdma_recv_read_chunk()
    fa6bd08869c5 pinctrl-single: fix pcs_parse_pinconf() return value
    50abf1b9ad10 ocfs2: fix unbalanced locking
    ba8a72193346 dlm: Fix kobject memleak
    41e8b5afde8e net: thunderx: initialize VF's mailbox mutex before first usage
    3084ecb02357 fsl/fman: fix eth hash table allocation
    2997cea07f9e fsl/fman: check dereferencing null pointer
    158ccb4f03b5 fsl/fman: fix unreachable code
    a405fb3ffdab fsl/fman: fix dereference null return value
    e9b3249a3df6 fsl/fman: use 32-bit unsigned integer
    8c68da19fd02 net: spider_net: Fix the size used in a 'dma_free_coherent()' call
    dc66a35ffee6 liquidio: Fix wrong return value in cn23xx_get_pf_num()
    eb4afeaf861f net: ethernet: aquantia: Fix wrong return value
    fe8571b4d5ac net/mlx5: Delete extra dump stack that gives nothing
    87a43dac39c2 net/mlx5: DR, Change push vlan action sequence
    a4301de4be41 tools, bpftool: Fix wrong return value in do_dump()
    94bc0ab6043f tools, build: Propagate build failures from tools/build/Makefile.build
    2684577dd9bc wl1251: fix always return 0 error
    3bec3e41db0d rtw88: coex: only skip coex triggered by BT info
    1b7546010b01 rtw88: fix short GI capability based on current bandwidth
    ff1ecaf751d7 rtw88: fix LDPC field for RA info
    fef9f09078b0 ice: Graceful error handling in HW table calloc failure
    2fd47ea1e063 s390/qeth: don't process empty bridge port events
    b8ae2bf5ccc6 ASoC: fsl_sai: Fix value of FSL_SAI_CR1_RFW_MASK
    115da6e650ab ASoC: meson: axg-tdm-formatters: fix sclk inversion
    0cc88bf69411 ASoC: meson: axg-tdmin: fix g12a skew
    a9d54ebf8db0 ASoC: meson: axg-tdm-interface: fix link fmt setup
    5299edbfc19a selftests/powerpc: Fix online CPU selection
    5412751327e8 cpufreq: ap806: fix cpufreq driver needs ap cpu clk
    0df3fad9c17f PCI: Release IVRS table in AMD ACS quirk
    07783db29f89 RDMA/netlink: Remove CAP_NET_RAW check when dump a raw QP
    04cf65b784d2 selftests/powerpc: Fix CPU affinity for child process
    3e95f258a143 powerpc/boot: Fix CONFIG_PPC_MPC52XX references
    69a797a04517 powerpc/32s: Fix CONFIG_BOOK3S_601 uses
    09c2050239fb selftests/powerpc: Squash spurious errors due to device removal
    5f56aa0b1fec xfs: fix inode allocation block res calculation precedence
    5c0fd1e61b5a net: dsa: rtl8366: Fix VLAN set-up
    8cd2a4878787 net: dsa: rtl8366: Fix VLAN semantics
    495b9d0dd071 Bluetooth: hci_serdev: Only unregister device if it was registered
    ba5c28f78461 Bluetooth: hci_h5: Set HCI_UART_RESET_ON_INIT to correct flags
    8d91c73c13f1 power: supply: check if calc_soc succeeded in pm860x_init_battery
    b2b8438ed831 Smack: prevent underflow in smk_set_cipso()
    674992659a97 Smack: fix another vsscanf out of bounds
    3a2cd06a3d93 RDMA/core: Fix return error value in _ib_modify_qp() to negative
    16416a158743 PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register
    845601756341 macintosh/via-macii: Access autopoll_devs when inside lock
    a88f86763cbc net: dsa: mv88e6xxx: MV88E6097 does not support jumbo configuration
    f6f75b1756f7 scsi: mesh: Fix panic after host or bus reset
    b41e8798f288 scsi: megaraid_sas: Clear affinity hint
    1d7e19cf79f4 usb: gadget: f_uac2: fix AC Interface Header Descriptor wTotalLength
    b2c2b88b0496 usb: dwc2: Fix error path in gadget registration
    b8f3c361ca2c MIPS: OCTEON: add missing put_device() call in dwc3_octeon_device_init()
    db2eabff57cc phy: armada-38x: fix NETA lockup when repeatedly switching speeds
    2bf9418b7b11 mt76: mt7615: fix potential memory leak in mcu message handler
    54c9afe415dc powerpc/perf: Fix missing is_sier_aviable() during build
    53eeba79c152 coresight: tmc: Fix TMC mode read in tmc_read_unprepare_etb()
    6482f5119946 thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()
    c30281c4b28f usb: core: fix quirks_param_set() writing to a const pointer
    92581069807b USB: serial: iuu_phoenix: fix led-activity helpers
    278b532dfeaf spi: lantiq-ssc: Fix warning by using WQ_MEM_RECLAIM
    7e206d89e1c7 gpu: ipu-v3: Restore RGB32, BGR32
    e66ffe919ed4 drm/imx: tve: fix regulator_disable error path
    1a279871012d drm/imx: fix use after free
    44ae76d01d95 powerpc/book3s64/pkeys: Use PVR check instead of cpu feature
    6112c341ba3a phy: renesas: rcar-gen3-usb2: move irq registration to init
    e82e9db82faf PCI/ASPM: Add missing newline in sysfs 'policy'
    c537bd0732ea ASoC: meson: fixes the missed kfree() for axg_card_add_tdm_loopback
    2698fab03884 staging: rtl8192u: fix a dubious looking mask before a shift
    209207562934 ima: Have the LSM free its audit rule
    7ecfbee3b9c3 RDMA/rxe: Prevent access to wr->next ptr afrer wr is posted to send queue
    4cf66d70b5ef RDMA/qedr: SRQ's bug fixes
    978bef91cad7 powerpc/vdso: Fix vdso cpu truncation
    7beea356fabb powerpc/rtas: don't online CPUs for partition suspend
    936e927ece9b kernfs: do not call fsnotify() with name without a parent
    b7fc8591cae4 mwifiex: Prevent memory corruption handling keys
    0c0d30eaf31c scsi: scsi_debug: Add check for sdebug_max_queue during module init
    6a292c4bc027 drm/bridge: sil_sii8620: initialize return of sii8620_readb
    8ffa0cf2b662 phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY
    36f9ed95ec52 drm: panel: simple: Fix bpc for LG LB070WV8 panel
    d25c81232007 leds: core: Flush scheduled work for system suspend
    adbb26e2d44e kobject: Avoid premature parent object freeing in kobject_cleanup()
    59f69f1edb56 drm/stm: repair runtime power management
    cc5f55c46a71 PCI: Fix pci_cfg_wait queue locking problem
    8fbefed6c3a0 RDMA/rxe: Skip dgid check in loopback mode
    6093eae667d6 xfs: fix reflink quota reservation accounting error
    2c5170b451b7 xfs: don't eat an EIO/ENOSPC writeback error when scrubbing data fork
    deaf69f5b028 media: cros-ec-cec: do not bail on device_init_wakeup failure
    951a21261577 media: exynos4-is: Add missed check for pinctrl_lookup_state()
    210ab36cdaa9 media: firewire: Using uninitialized values in node_probe()
    0c122fc90d02 ipvs: allow connection reuse for unconfirmed conntrack
    45a769a10126 scsi: eesox: Fix different dev_id between request_irq() and free_irq()
    76189426da56 scsi: powertec: Fix different dev_id between request_irq() and free_irq()
    691081c0558a RDMA/core: Fix bogus WARN_ON during ib_unregister_device_queued()
    67642ac2ac0b iavf: Fix updating statistics
    8d5ce7e06ff8 iavf: fix error return code in iavf_init_get_resources()
    f27a965b042f staging: vchiq_arm: Add a matching unregister call
    87a30aa61f60 drm/radeon: fix array out-of-bounds read and write issues
    db377d8caf08 cxl: Fix kobject memleak
    835c6f7c0a94 drm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanline
    6f2b14006d44 scsi: cumana_2: Fix different dev_id between request_irq() and free_irq()
    d92cc98b7423 ASoC: Intel: bxt_rt298: add missing .owner field
    a1773c8b04a4 ASoC: SOF: nocodec: add missing .owner field
    d85cebc8656f media: omap3isp: Add missed v4l2_ctrl_handler_free() for preview_init_entities()
    8fe0119f5c63 media: marvell-ccic: Add missed v4l2_async_notifier_cleanup()
    79962a7a1dd1 media: cxusb-analog: fix V4L2 dependency
    a728697b74b7 Bluetooth: btmtksdio: fix up firmware download sequence
    ecab4ef93ce6 Bluetooth: btusb: fix up firmware download sequence
    6db3579dd3a4 leds: lm355x: avoid enum conversion warning
    cc51ca361059 clk: bcm63xx-gate: fix last clock availability
    8bfd16c687cf drm/arm: fix unintentional integer overflow on left shift
    018192e85860 drm/etnaviv: Fix error path on failure to enable bus clk
    8080ccd31233 iio: improve IIO_CONCENTRATION channel type description
    b4a09e491d38 ath10k: Acquire tx_lock in tx error paths
    d9411fcc9a48 video: pxafb: Fix the function used to balance a 'dma_alloc_coherent()' call
    703a2e85a3a8 console: newport_con: fix an issue about leak related system resources
    e95d33905a4e video: fbdev: sm712fb: fix an issue about iounmap for a wrong address
    d9e13b0c26cf btmrvl: Fix firmware filename for sd8997 chipset
    671f14a14471 btmrvl: Fix firmware filename for sd8977 chipset
    89b09156ed41 mwifiex: Fix firmware filename for sd8997 chipset
    be9903c9ebe4 mwifiex: Fix firmware filename for sd8977 chipset
    e3b04e1b5b03 agp/intel: Fix a memory leak on module initialisation failure
    7669b6beb4fd drm/bridge: ti-sn65dsi86: Clear old error bits before AUX transfers
    1a981f4d6c97 drm/gem: Fix a leak in drm_gem_objects_lookup()
    167708cbebd3 drm/msm: ratelimit crtc event overflow error
    1e8d2186551b ACPICA: Do not increment operation_region reference counts for field units
    ca6654d7da59 bcache: fix super block seq numbers comparision in register_cache_set()
    db9b14ae4b6a dyndbg: fix a BUG_ON in ddebug_describe_flags
    8fb05790b55b usb: bdc: Halt controller on suspend
    296184490e2c bdc: Fix bug causing crash after multiple disconnects
    77d7ce9ccb33 usb: gadget: net2280: fix memory leak on probe error handling paths
    7404ce0f639c mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1
    d000795c9f25 ionic: update eid test for overflow
    691ae7c87ff7 gpu: host1x: debug: Fix multiple channels emitting messages simultaneously
    ff3fde9d4519 iwlegacy: Check the return value of pcie_capability_read_*()
    ef62e5411db2 platform/x86: asus-nb-wmi: add support for ASUS ROG Zephyrus G14 and G15
    ce3ae44103ca brcmfmac: set state of hanger slot to FREE when flushing PSQ
    1c53aefa2866 brcmfmac: To fix Bss Info flag definition Bug
    29dd5e5309b1 brcmfmac: keep SDIO watchdog running when console_interval is non-zero
    5908a17b247d bpf: Fix fds_example SIGSEGV error
    4360d9b560bd drm/amd/powerplay: fix compile error with ARCH=arc
    fae763f1357b drm/amdgpu/display bail early in dm_pp_get_static_clocks
    87834546ea2c mm/mmap.c: Add cond_resched() for exit_mmap() CPU stalls
    ae3033d38596 irqchip/irq-mtk-sysirq: Replace spinlock with raw_spinlock
    d17931fbe9dd drm/radeon: disable AGP by default
    238e32468e0d drm/debugfs: fix plain echo to connector "force" attribute
    df91fe834bd4 drm/msm: Fix a null pointer access in msm_gem_shrinker_count()
    fae8ff2dfd8d drm: msm: a6xx: fix gpu failure after system resume
    0e76c2ffb8f0 usb: mtu3: clear dual mode of u3port when disable device
    e633add66d17 btrfs: fix lockdep splat from btrfs_dump_space_info
    7795eb18ce7d mmc: sdhci-cadence: do not use hardware tuning for SD mode
    3b69bcd45426 drm/nouveau: fix multiple instances of reference count leaks
    db0a2e4857dd drm/nouveau: fix reference count leak in nouveau_debugfs_strap_peek
    20e7c4456069 drm/etnaviv: fix ref count leak via pm_runtime_get_sync
    274f4e9c575a arm64: dts: hisilicon: hikey: fixes to comply with adi, adv7533 DT binding
    454a00e9ed83 drm/nouveau/kms/nv50-: Fix disabling dithering
    d72c0f225a2f md-cluster: fix wild pointer of unlock_all_bitmaps()
    2ac7df0910e5 bus: ti-sysc: Add missing quirk flags for usb_host_hs
    6754d2a86c43 video: fbdev: neofb: fix memory leak in neo_scan_monitor()
    9ca426693563 video: fbdev: savage: fix memory leak on error handling path in probe
    8b8d17d9ff8a crypto: aesni - Fix build with LLVM_IAS=1
    cab45cfa00b8 drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync
    2f04f5bcf6d9 drm/amdgpu: avoid dereferencing a NULL pointer
    6402b231824f fs/btrfs: Add cond_resched() for try_release_extent_mapping() stalls
    a6619810135b loop: be paranoid on exit and prevent new additions / removals
    0e656b7e85c3 Bluetooth: add a mutex lock to avoid UAF in do_enale_set
    f8b0407f6a5f soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag
    94fd6f72a826 drm/tilcdc: fix leak & null ref in panel_connector_get_modes
    86f305a9aca0 nvme-multipath: do not fall back to __nvme_find_path() for non-optimized paths
    f0a8c0254fde nvme-multipath: fix logic for non-optimized paths
    4e8691ba0e78 nvme-rdma: fix controller reset hang during traffic
    b98a96662a4e nvme-tcp: fix controller reset hang during traffic
    6f01de256dd0 md: raid0/linear: fix dereference before null check on pointer mddev
    0f09c88f207c seccomp: Fix ioctl number for SECCOMP_IOCTL_NOTIF_ID_VALID
    7915a3c04139 irqchip/ti-sci-inta: Fix return value about devm_ioremap_resource()
    2f53a4b54e25 iocost: Fix check condition of iocg abs_vdebt
    3f4f3b350a8a ARM: socfpga: PM: add missing put_device() call in socfpga_setup_ocram_self_refresh()
    9600bdd6924a spi: rockchip: Fix error in SPI slave pio read
    0b1799662a61 io_uring: fix sq array offset calculation
    afa16b50e2aa regulator: fix memory leak on error path of regulator_register()
    80242590651c recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.
    3a17c7bfe705 tpm: Require that all digests are present in TCG_PCR_EVENT2 structures
    b1fe27d227c6 spi: lantiq: fix: Rx overflow error in full duplex mode
    e22730350d9e ARM: dts: sunxi: bananapi-m2-plus-v1.2: Fix CPU supply voltages
    acbe4a1dc54c ARM: dts: sunxi: bananapi-m2-plus-v1.2: Add regulator supply to all CPU cores
    cd9f5d2b3999 ARM: at91: pm: add missing put_device() call in at91_pm_sram_init()
    1b3cb69fd559 ARM: dts: gose: Fix ports node name for adv7612
    e21665164e99 ARM: dts: gose: Fix ports node name for adv7180
    4361bec62bda platform/x86: intel-vbtn: Fix return value check in check_acpi_dev()
    ed48a02d4cbd platform/x86: intel-hid: Fix return value check in check_acpi_dev()
    78448034fafb m68k: mac: Fix IOP status/control register writes
    b8ad79dde63f m68k: mac: Don't send IOP message until channel is idle
    38702b9081c9 clk: scmi: Fix min and max rate when registering clocks with discrete rates
    047187eb0a3f sched/uclamp: Fix initialization of struct uclamp_rq
    4d7115d29201 arm64: dts: exynos: Fix silent hang after boot on Espresso
    420acbfdd64b firmware: arm_scmi: Fix SCMI genpd domain probing
    0155cd348be2 ARM: exynos: MCPM: Restore big.LITTLE cpuidle support
    489ee1f21993 crypto: ccree - fix resource leak on error path
    6a291f9c21e4 blktrace: fix debugfs use after free
    34108464f808 arm64: dts: qcom: msm8916: Replace invalid bias-pull-none property
    f2b639b2aa21 crc-t10dif: Fix potential crypto notify dead-lock
    c73eec04e666 EDAC: Fix reference count leaks
    192b8516c99c arm64: dts: rockchip: fix rk3399-puma gmac reset gpio
    da9dfd06dbaa arm64: dts: rockchip: fix rk3399-puma vcc5v0-host gpio
    066f85458d9c arm64: dts: rockchip: fix rk3368-lion gmac reset gpio
    e8eb09e542c1 sched: correct SD_flags returned by tl->sd_flags()
    b8d9908c9d3d sched/fair: Fix NOHZ next idle balance
    072d1300f1ce x86/mce/inject: Fix a wrong assignment of i_mce.status
    a36ff7a40d11 clk: qcom: clk-rpmh: Wait for completion when enabling clocks
    a02df82a59c3 fs/io_uring.c: Fix uninitialized variable is referenced in io_submit_sqe
    bd1584865c12 nvme: add a Identify Namespace Identification Descriptor list quirk
    039b66468fc4 HID: input: Fix devices that return multiple bytes in battery report
    16d2fb138f98 tracepoint: Mark __tracepoint_string's __used

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1e62066f50aaac6e1064e381c8440d45d9322b5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibubootenv: inherit uboot-config
Ming Liu [Tue, 25 Aug 2020 18:08:01 +0000 (20:08 +0200)]
libubootenv: inherit uboot-config

This mainly aims to involve in the sanity check of UBOOT_CONFIG and
UBOOT_MACHINE, it will throw a error message at recipe parsing time if
neither of them is set, and libubootenv would be skipped.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 10aa1291979fb90bed1beb49be4d406ed0e1e4d5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibubootenv: uprev to v0.3
Ming Liu [Wed, 26 Aug 2020 17:48:52 +0000 (19:48 +0200)]
libubootenv: uprev to v0.3

Update libubootenv to the latest 0.3 release, which comprises the
following commits:

```
1efed83 Increase max length for device name
6f4fc1c uboot_env: Use canonicalized pathname when reading device
23b3086 Fix bug introduced by commit 52a70114
ed1a53e Dont store to device if no value changes
4a0a466 Merge pull request #7 from TomzBench/cmake-fix
6117831 Added Coverity badge
49372a1 Fix coverity #293496
69a6819 Fix coverity #293503 and #293507
258bf52 Fix coverity #293501
aa52e61 Fix coverity #293505
52a7011 Fix coverity #293504 and #293506
e822218 Fix coverity #293495 and #293497
23b305f Fix coverity #293499
25ef1f6 Add coverity setup for Travis
41b5188 fixed install for static target, fixed BUILD_DOC acknowledgement
86bd30a Restore ability to feed script file via stdin, using `-s -`.
c91dcca ubi, write: fix invalid envsize ptr to UBI_IOCVOLUP
f4b9cde Allow negative offsets
45bf92a Detect sector size if not found in config
9f59db6 uboot_env: remove unused variables
65d243e README: libubootenv is now in oe-core
ba952d0 BUG: variable lists not released in close()
690f868 Variables are not removed when loading from file
9e3586a Make sure there's no file descriptor leakage in case of error
03647c4 Check config file defines a non-zero Sector size
3b2d4f1 Check environment size from fw_env.config
879c073 Do not hardcode path for install
d9c639b libubootenv: add pkg-config support
cc628ee libuboot: wrap libuboot in extern "C" for C++
```

Also add u-boot-default-env to RRECOMMENDS since
/etc/u-boot-initial-env is being referred in libubootenv source, and
turns libubootenv's PACKAGE_ARCH to be MACHINE_ARCH since
u-boot-default-env is a machine-arch package.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 02d55cd35aac15095fc44f0cf8f9e7a71638f485)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agomultilib.conf: add u-boot to NON_MULTILIB_RECIPES
Ming Liu [Mon, 17 Aug 2020 09:32:55 +0000 (11:32 +0200)]
multilib.conf: add u-boot to NON_MULTILIB_RECIPES

u-boot should be a non multilib recipe, add it in NON_MULTILIB_RECIPES.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5e7dc0d68efb2d43bbd5b1be9e6d555fc4456fb6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoconf/machine: set UBOOT_MACHINE for qemumips and qemumips64
Ming Liu [Mon, 17 Aug 2020 09:32:54 +0000 (11:32 +0200)]
conf/machine: set UBOOT_MACHINE for qemumips and qemumips64

These machines support booting U-Boot, so set the machine appropriately.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b812fad85aed6cb9e433c689f3b14425488dfc68)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agobluez5: fix builds that require ell support
Peter A. Bigot [Tue, 25 Aug 2020 15:34:01 +0000 (10:34 -0500)]
bluez5: fix builds that require ell support

Shortly after the recipe was updated to add ell as a mesh dependency
the way ell was integrated into bluez5 was changed.  BlueZ requires
ell only for mesh and for btpclient (external test programs).  It will
be ignored unless either mesh or btpclient are selected.

ell can be supplied externally, or it can be copied into the bluez
build directory from an existing sibling source directory.  Since
bitbake builds do not provide a sibling source directory tell bluez to
look for it as an external library in the conditions where it's
required.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f22b4eba98b3707d7f6daa4277414cecb3e5ee6b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agobind: update to 9.11.22 ESV
Armin Kuster [Sat, 22 Aug 2020 18:20:32 +0000 (11:20 -0700)]
bind: update to 9.11.22 ESV

Source: isc.org
MR: 105232, 105246, 105260
Type: Security Fix
Disposition: Backport from  https://www.isc.org/bind/
ChangeID: 655cfdf1e91c4107321e63a2012302e1cc184366
Description:

Bug fix only update

Three CVE fixes
CVE-2020-8622
CVE-2020-8623
CVE-2020-8624

For more information see: https://downloads.isc.org/isc/bind9/9.11.22/RELEASE-NOTES-bind-9.11.22.pdf

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1c85f26b1bd3475699d54f18c6b5b4924bcd8eb2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoperf: backport a fix for confusing non-fatal error
Martin Jansa [Tue, 18 Aug 2020 16:04:09 +0000 (18:04 +0200)]
perf: backport a fix for confusing non-fatal error

* add V=1 to make log.do_compile a bit more useful, with this it shows:
  /bin/sh '/OE/build/oe-core/tmp-glibc/work/qemux86_64-oe-linux/perf/1.0-r9/perf-1.0/tools/perf/trace/beauty/arch_errno_names.sh' x86_64-oe-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/OE/build/oe-core/tmp-glibc/work/qemux86_64-oe-linux/perf/1.0-r9/recipe-sysroot /OE/build/oe-core/tmp-glibc/work/qemux86_64-oe-linux/perf/1.0-r9/perf-1.0/tools > /OE/build/oe-core/tmp-glibc/work/qemux86_64-oe-linux/perf/1.0-r9/perf-1.0/trace/beauty/generated/arch_errno_name_array.c
  find: unknown predicate `-m64/arch'
  x86_64-oe-linux-gcc: error: unrecognized command-line option '-m64/include/uapi/asm-generic/errno.h'
  x86_64-oe-linux-gcc: fatal error: no input files
  compilation terminated.
  x86_64-oe-linux-gcc: error: unrecognized command-line option '-m64/include/uapi/asm-generic/errno.h'
  x86_64-oe-linux-gcc: fatal error: no input files
  compilation terminated.

* apply https://github.com/torvalds/linux/commit/e4ffd066ff440a57097e9140fa9e16ceef905de8
  with sed call to fix this

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c603e6e13e44ae907cf1f04abf6e1babf3d7be26)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agogpgme: fix multilib header conflict
Changqing Li [Tue, 18 Aug 2020 09:59:02 +0000 (17:59 +0800)]
gpgme: fix multilib header conflict

fix error:
file /usr/include/gpgme.h conflicts between attempted installs of gpgme-dev-1.13.1-r0.core2_64 and lib32-gpgme-dev-1.13.1-r0.core2_32

part of diff:
-#if 64
+#if 0
 #ifndef _FILE_OFFSET_BITS
-#error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.
+#error GPGME was compiled with _FILE_OFFSET_BITS = 0, please see the section "Largefile support (LFS)" in the GPGME manual.
 #else
-#if (_FILE_OFFSET_BITS) != (64)
-#error GPGME was compiled with a different value for _FILE_OFFSET_BITS, namely 64, please see the section "Largefile support (LFS)" in the GPGME manual.
+#if (_FILE_OFFSET_BITS) != (0)
+#error GPGME was compiled with a different value for _FILE_OFFSET_BITS, namely 0, please see the section "Largefile support (LFS)" in the GPGME manual.
 #endif
 #endif
 #endif

LFS support is enabled by default, and this header is generated during
build according to current configure

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bd056f9c4c22740a4f7ede00c758a21037eae5ca)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoweston: add missing packageconfigs
Guillaume Champagne [Wed, 19 Aug 2020 16:28:25 +0000 (12:28 -0400)]
weston: add missing packageconfigs

Add missing package configs to:
- Select shell integration
- Disable screen sharing module (independent from backend)
- Disable jpeg image support

`PACKAGECONFIG` default value is updated to enable these configs, since
they were previously implicitly enabled.

Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f883413b2bc6e7d0bd44ce8324cd36a8fe918e5f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoimage_types_wic: Add ASSUME_PROVIDED to WICVARS
Vijai Kumar K [Wed, 26 Aug 2020 16:20:25 +0000 (21:50 +0530)]
image_types_wic: Add ASSUME_PROVIDED to WICVARS

Add ASSUME_PROVIDED to WICVARS so that wic can use that
when running on bitbake environment.

This fixes the below build failure in do_image_wic
when --include-path is used in wks file.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 04068ff19d2c18c3b915aab6832ad4b48affa07f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopackage.bbclass: Sort shlib2 output for hash equivalency
Mark Hatle [Wed, 19 Aug 2020 16:16:56 +0000 (11:16 -0500)]
package.bbclass: Sort shlib2 output for hash equivalency

The output was unsorted, so different versions of python, different input
ordering could have have changed the files, and thus changed the hashes
making the system think the output was different, even when unmodified.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 23cc846c92219c5cbe3fc6a0024579195d3cbd78)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agopackage_tar.bbclass: Sync to the other package_* classes
Mark Hatle [Wed, 26 Aug 2020 11:27:28 +0000 (06:27 -0500)]
package_tar.bbclass: Sync to the other package_* classes

Sync up the anonymous python definition with the other package_*.bbclass
files.  This should make future maintenance easier, even though it has
no difference in behavior from what was there.

Additional, there was a missing deltask in the nopackages.bbclass related
to the package_tar which has been corrected.  This could cause problems on
native recipes when package_tar was enabled.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f87452942f6391a239b50e3f3f9fa100e74a78fa)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agooeqa/manual/bsp-hw.json : remove X_server_can_start_up_with_runlevel_5_boot test
TeohJayShen [Wed, 19 Aug 2020 09:05:03 +0000 (17:05 +0800)]
oeqa/manual/bsp-hw.json : remove X_server_can_start_up_with_runlevel_5_boot test

remove the test as graphical mode is already being validated

Signed-off-by: TeohJayShen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ad5b5ca9ec1d9106911a610bb36fb98e3f17748d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agooeqa/manual/bsp-hw.json : remove shutdown_system test
TeohJayShen [Wed, 19 Aug 2020 09:05:02 +0000 (17:05 +0800)]
oeqa/manual/bsp-hw.json : remove shutdown_system test

remove the test as shutdown function is already being validated

Signed-off-by: TeohJayShen <jay.shen.teoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 58281082fbed57298247c019c3d8149e688de161)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agorunqemu: Show an error for conflicting graphics options
Richard Purdie [Wed, 26 Aug 2020 07:57:50 +0000 (08:57 +0100)]
runqemu: Show an error for conflicting graphics options

The autobuilder managed to pass the nographic option with "sdl gl" due
to a problem elsewhere. It would have been useful for runqemu to have
errored rather than passing conflicting options to qemu. Add an
error for this invalid usecase.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 377a6ffbcba0d3c5ede470c989756c4d1636873f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agooeqa: runtime_tests: Extra GPG debugging
Joshua Watt [Tue, 25 Aug 2020 02:08:01 +0000 (21:08 -0500)]
oeqa: runtime_tests: Extra GPG debugging

This patch enables extra debugging for gpg to try and get more debugging
information when [YOCTO #14003] occurs

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f24d7be1fb863006b5414fa8f9c9a37bb48d5a6f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agorunqemu: Check gtk or sdl option is passed together with gl or gl-es options.
Vasyl Vavrychuk [Mon, 17 Aug 2020 13:57:28 +0000 (16:57 +0300)]
runqemu: Check gtk or sdl option is passed together with gl or gl-es options.

runqemu help reports that gtk or sdl option is needed with gl or gl-es
option. But if user forgot to add gtk or sdl option, then gl or gl-es
options were silently skipped.

Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4d1e93d4bf013bb0c48032bfda43f77c5aba9ecf)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoalsa-ucm-conf: use ${datadir} in do_install()
Mikko Rapeli [Tue, 18 Aug 2020 11:31:43 +0000 (14:31 +0300)]
alsa-ucm-conf: use ${datadir} in do_install()

Fixes build with custom directory structure.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 710567168eca3d9a580f768a82db033f1cca3cec)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoalsa-topology-conf: use ${datadir} in do_install()
Mikko Rapeli [Tue, 18 Aug 2020 11:31:42 +0000 (14:31 +0300)]
alsa-topology-conf: use ${datadir} in do_install()

Fixes build with custom directory structure.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9eec98b3842bb046cbd202140b9b5ccf09d20466)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibffi: fix multilib header conflict
Changqing Li [Tue, 18 Aug 2020 09:59:01 +0000 (17:59 +0800)]
libffi: fix multilib header conflict

fix error:
file /usr/include/ffitarget.h conflicts between attempted installs of lib32-libffi-dev-3.3-r0.armv7vet2hf_vfp and libffi-dev-3.3-r0.cortexa57

part of diff

#ifndef LIBFFI_ASM
-typedef unsigned long          ffi_arg;
-typedef signed long            ffi_sarg;
-
-typedef enum ffi_abi {
-  FFI_FIRST_ABI = 0,
-  FFI_SYSV,
-  FFI_VFP,
-  FFI_LAST_ABI,
-#if defined(__ARM_PCS_VFP) || defined(_M_ARM)
-  FFI_DEFAULT_ABI = FFI_VFP,
+#ifdef __ILP32__
+#define FFI_SIZEOF_ARG 8
+#define FFI_SIZEOF_JAVA_RAW  4
+typedef unsigned long long ffi_arg;
+typedef signed long long ffi_sarg;
+#elif defined(_M_ARM64)
+#define FFI_SIZEOF_ARG 8
+typedef unsigned long long ffi_arg;
+typedef signed long long ffi_sarg;
 #else
-  FFI_DEFAULT_ABI = FFI_SYSV,
-#endif
-} ffi_abi;
+typedef unsigned long ffi_arg;
+typedef signed long ffi_sarg;
 #endif

-#define FFI_EXTRA_CIF_FIELDS \
-  int vfp_used; \
-  unsigned short vfp_reg_free, vfp_nargs; \
-  signed char vfp_args[16] \
-
-#define FFI_TARGET_SPECIFIC_VARIADIC
-#ifndef _M_ARM
-#define FFI_TARGET_HAS_COMPLEX_TYPE
+typedef enum ffi_abi
+  {
+    FFI_FIRST_ABI = 0,
+    FFI_SYSV,
+    FFI_LAST_ABI,
+    FFI_DEFAULT_ABI = FFI_SYSV
+  } ffi_abi;
 #endif

 /* ---- Definitions for closures ----------------------------------------- */

 #define FFI_CLOSURES 1
-#define FFI_GO_CLOSURES 1
 #define FFI_NATIVE_RAW_API 0

 #if defined (FFI_EXEC_TRAMPOLINE_TABLE) && FFI_EXEC_TRAMPOLINE_TABLE

 #ifdef __MACH__
-#define FFI_TRAMPOLINE_SIZE 12
-#define FFI_TRAMPOLINE_CLOSURE_OFFSET 8
+#define FFI_TRAMPOLINE_SIZE 16
+#define FFI_TRAMPOLINE_CLOSURE_OFFSET 16
 #else
 #error "No trampoline table implementation"
 #endif

 #else
-#ifdef _MSC_VER
-#define FFI_TRAMPOLINE_SIZE 16
-#define FFI_TRAMPOLINE_CLOSURE_FUNCTION 12
-#else
-#define FFI_TRAMPOLINE_SIZE 12
-#endif
+#define FFI_TRAMPOLINE_SIZE 24
 #define FFI_TRAMPOLINE_CLOSURE_OFFSET FFI_TRAMPOLINE_SIZE
 #endif

+#ifdef _M_ARM64
+#define FFI_EXTRA_CIF_FIELDS unsigned is_variadic
+#endif
+

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit efe8d76810973e7032e729beee106b8acc39b8ed)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoxserver-xorg: upgrade 1.20.7 -> 1.20.8
Wang Mingyu [Thu, 2 Apr 2020 09:16:59 +0000 (02:16 -0700)]
xserver-xorg: upgrade 1.20.7 -> 1.20.8

Bug fix point release for current stable branch

Adam Jackson (1):
      Revert "dri2: Don't make reference to noClientException"

Arthur Williams (1):
      dix: Check for NULL spriteInfo in GetPairedDevice

Daniel Llewellyn (1):
      os: Ignore dying client in ResetCurrentRequest

Dave Airlie (1):
      modesetting: remove unnecessary error message, fix zaphod leases

David Seifert (1):
      Fix building with `-fno-common`

Dor Askayo (1):
      xwayland: clear pixmaps after creation in rootless mode

Eric Anholt (1):
      glamor: Fix a compiler warning since the recent OOM fixes.

George Matsumura (1):
      Restrict 1x1 pixmap filling optimization to GXcopy

Jon Turney (2):
      Add xf86OSInputThreadInit to stub os-support as well
      Fix old-style definition warning for xf86OSInputThreadInit()

Jonas Ã…dahl (1):
      xwayland/glamor-gbm: Handle DRM_FORMAT_MOD_INVALID gracefully

Kenneth Graunke (1):
      configure: Define GLAMOR_HAS_EGL_QUERY_DRIVER when available

Maarten Lankhorst (1):
      modesetting: Disable atomic support by default

Matt Turner (1):
      xserver 1.20.8

Michel Dänzer (8):
      modesetting: Explicitly #include "mi.h"
      xfree86/modes: Bail from xf86RotateRedisplay if pScreen->root is NULL
      xwayland: Split up xwl_screen_post_damage into two phases
      xwayland: Call glamor_block_handler from xwl_screen_post_damage
      xwayland: Add xwl_window_create_frame_callback helper
      xwayland: Use single frame callback for Present flips and normal updates
      xwayland: Use frame callbacks for Present vblank events
      xwayland: Delete all frame_callback_list nodes in xwl_unrealize_window

Paul Kocialkowski (4):
      glamor: Propagate FBO allocation failure for picture to texture upload
      glamor: Error out on out-of-memory when allocating PBO for FBO access
      glamor: Propagate glamor_prepare_access failures in copy helpers
      glamor: Fallback to system memory for RW PBO buffer allocation

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4e06262ee0eafa4aff6dfcd7bd2fdd62820d5f12)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoperl: fix CVE-2020-12723
Lee Chee Yang [Tue, 18 Aug 2020 14:06:37 +0000 (22:06 +0800)]
perl: fix CVE-2020-12723

Minor changes to the test cases count in the .patch file to make it
align with current version, so the fixes can be apply.
Changes apply to line:
https://github.com/perl/perl5/commit/66bbb51b93253a3f87d11c2695cfb7bdb782184a#diff-e31ddd69cf47acf02911647c691a0283L28

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoghostscript: update to 9.52
Lee Chee Yang [Tue, 18 Aug 2020 14:06:36 +0000 (22:06 +0800)]
ghostscript: update to 9.52

This is maintenance release consolidating the changes introduced
in 9.50. see :
https://www.ghostscript.com/doc/9.52/News.htm

Drop all custom objarch.h files; ghostscript nowadays generates
that with autoconf.

Freetype can no longer be disabled.

Building out of source tree is broken.

Upgrade include several CVE fixes:
CVE-2020-16287
CVE-2020-16288
CVE-2020-16289
CVE-2020-16290
CVE-2020-16291
CVE-2020-16292
CVE-2020-16293
CVE-2020-16294
CVE-2020-16295
CVE-2020-16296
CVE-2020-16297
CVE-2020-16298
CVE-2020-16299
CVE-2020-16300
CVE-2020-16301
CVE-2020-16302
CVE-2020-16303
CVE-2020-16304
CVE-2020-16305
CVE-2020-16308
CVE-2020-16309
CVE-2020-17538

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: perf cs-etm: Move definition of 'traceid_list' global variable from...
Bruce Ashfield [Sun, 16 Aug 2020 22:51:13 +0000 (18:51 -0400)]
linux-yocto/5.4: perf cs-etm: Move definition of 'traceid_list' global variable from header file

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

    706efec4c1e2 perf cs-etm: Move definition of 'traceid_list' global variable from header file

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8e1d8c2099f29b45f1e96d4349731db036fb7548)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: update to v5.4.58
Bruce Ashfield [Sun, 16 Aug 2020 22:51:12 +0000 (18:51 -0400)]
linux-yocto/5.4: update to v5.4.58

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

    cad17feaf0d0 Linux 5.4.58
    512570b17807 nfsd: Fix NFSv4 READ on RDMA when using readv
    df6aeb5235e9 ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime
    fb264505b395 tcp: apply a floor of 1 for RTT samples from TCP timestamps
    848e15a8c8f6 selftests/net: relax cpu affinity requirement in msg_zerocopy test
    b8f2d34f6bb5 Revert "vxlan: fix tos value before xmit"
    daff7f09f341 openvswitch: Prevent kernel-infoleak in ovs_ct_put_key()
    ba729a97ae54 net: thunderx: use spin_lock_bh in nicvf_set_rx_mode_task()
    786a9368be8c net: gre: recompute gre csum for sctp over gre tunnels
    5d791d36a49b hv_netvsc: do not use VF device if link is down
    3a82f4bfd20a dpaa2-eth: Fix passing zero to 'PTR_ERR' warning
    5a963aa72107 appletalk: Fix atalk_proc_init() return path
    3787b5a3ac67 net: lan78xx: replace bogus endpoint lookup
    31489ed8c20c vxlan: Ensure FDB dump is performed under RCU
    106b415d5139 rxrpc: Fix race between recvmsg and sendmsg on immediate call failure
    6f9354702ca5 net: ethernet: mtk_eth_soc: fix MTU warnings
    bd68177f26e4 ipv6: Fix nexthop refcnt leak when creating ipv6 route info
    89c12bc36262 ipv6: fix memory leaks on IPV6_ADDRFORM path
    9b37a7bcdd8a ipv4: Silence suspicious RCU usage warning
    4913f71e64ab PCI: tegra: Revert tegra124 raw_violation_fixup
    ceff42e6c1fc Revert "powerpc/kasan: Fix shadow pages allocation failure"
    11e64146dc69 xattr: break delegations in {set,remove}xattr
    6059000e145f Drivers: hv: vmbus: Ignore CHANNELMSG_TL_CONNECT_RESULT(23)
    3429579045f1 tools lib traceevent: Fix memory leak in process_dynamic_array_len
    414f10532c14 atm: fix atm_dev refcnt leaks in atmtcp_remove_persistent
    5414f27048e5 igb: reinit_locked() should be called with rtnl_lock
    7c8a863ba3cb cfg80211: check vendor command doit pointer before use
    83ea63708a29 firmware: Fix a reference count leak.
    01fdcb848611 ALSA: hda: fix NULL pointer dereference during suspend
    eb96e4f71f59 net: ethernet: mtk_eth_soc: Always call mtk_gmac0_rgmii_adjust() for mt7623
    fd601f38f59d usb: hso: check for return value in hso_serial_common_create()
    871b5a5a3be9 i2c: slave: add sanity check when unregistering
    fa0195d83a49 i2c: slave: improve sanity check when registering
    4bba72b72c36 drm/drm_fb_helper: fix fbdev with sparc64
    8e6af828a332 nvme-pci: prevent SK hynix PC400 from using Write Zeroes command
    802df1e3f40c drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
    5955ccb5a46d drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason
    e0c47a51fc62 net/9p: validate fds in p9_fd_open
    fe6402e0e66c leds: 88pm860x: fix use-after-free on unbind
    3564cddefb5b leds: lm3533: fix use-after-free on unbind
    385c1ae9ddb9 leds: da903x: fix use-after-free on unbind
    bde8f23c030c leds: lm36274: fix use-after-free on unbind
    635f8fcc2ee3 leds: wm831x-status: fix use-after-free on unbind
    9a53e8bd59d9 mtd: properly check all write ioctls for permissions
    8c3215a0426c vgacon: Fix for missing check in scrollback handling
    1ae21e97d5d3 scripts: add dummy report mode to add_namespace.cocci
    5f5fb7cea828 Smack: fix use-after-free in smk_write_relabel_self()
    c5665cafbedd binder: Prevent context manager from incrementing ref 0
    da47eae4e165 omapfb: dss: Fix max fclk divider for omap36xx
    b78763e0a247 Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_with_rssi_evt()
    70d1e884edc4 Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_evt()
    c26eaaf547b7 Bluetooth: Fix slab-out-of-bounds read in hci_extended_inquiry_result_evt()
    a8b8b535c588 Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable authmode
    af707d9d7f44 staging: rtl8712: handle firmware load failure
    6a7626c4798d staging: android: ashmem: Fix lockdep warning for write operation
    4d81a7bdd3b2 ALSA: seq: oss: Serialize ioctls
    3ebdc7b61906 ALSA: hda/ca0132 - Fix AE-5 microphone selection commands.
    b8ce0756b312 ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.
    87775770635a ALSA: hda/ca0132 - Add new quirk ID for Recon3D.
    1d05ad79e1dd ALSA: hda/realtek: Add alc269/alc662 pin-tables for Loongson-3 laptops
    864468a7a63b Revert "ALSA: hda: call runtime_allow() for all hda controllers"
    e8053c68337e io_uring: Fix use-after-free in io_sq_wq_submit_work()
    a4d61e66ee4a io_uring: prevent re-read of sqe->opcode
    67afa25456d0 usb: xhci: Fix ASMedia ASM1142 DMA addressing
    e7ad225ba4ef usb: xhci: define IDs for various ASMedia host controllers
    7173ac5c07bb USB: iowarrior: fix up report size handling for some devices
    68a2350376b1 perf/core: Fix endless multiplex timer
    aabba1b10075 USB: serial: qcserial: add EM7305 QDL product ID

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 62acf5a876875bf734d53bd526b11b19e7bfcf45)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agoselftest/tinfoil: Increase wait event timeout
Richard Purdie [Sun, 16 Aug 2020 13:44:52 +0000 (14:44 +0100)]
selftest/tinfoil: Increase wait event timeout

We're seeing this on the autobuilder when IO load is high. Increase
the timeout to give this a better chance of working out ok since
there is no particular reason we only need to wait 5s and searching
for files is IO sensitive.

[YOCTO #14001]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c847ed207795bc03f791ee5a3348fa5860c53e70)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agofribidi: extend CVE_PRODUCT to include fribidi
Chen Qi [Fri, 14 Aug 2020 03:45:44 +0000 (11:45 +0800)]
fribidi: extend CVE_PRODUCT to include fribidi

For example, CVE-2019-18397 uses fribidi instead gnu_fribidi.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fa5d0f2c61a704436d71e5f02042fa8b2940f541)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolibrsvg: Upgrade 2.40.20 -> 2.40.21
Adrian Bunk [Thu, 13 Aug 2020 19:01:42 +0000 (22:01 +0300)]
librsvg: Upgrade 2.40.20 -> 2.40.21

This fixes CVE-2019-20446.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5c117379dec1e33216fcbaf49d2b6130adf54bc1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: update to v5.4.57
Bruce Ashfield [Wed, 12 Aug 2020 17:03:24 +0000 (13:03 -0400)]
linux-yocto/5.4: update to v5.4.57

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

    d9939285fc81 Linux 5.4.57
    ca7ace8fd26d bpf: sockmap: Require attach_bpf_fd when detaching a program
    9fe975acb53f selftests: bpf: Fix detach from sockmap tests
    c77610435355 ext4: fix direct I/O read error
    6330b0cb2ace arm64: Workaround circular dependency in pointer_auth.h
    f06d60ff794a random32: move the pseudo-random 32-bit definitions to prandom.h
    c131009987f2 random32: remove net_rand_state from the latent entropy gcc plugin
    7471f3228e7a random: fix circular include dependency on arm64 after addition of percpu.h
    50bf89625bba ARM: percpu.h: fix build error
    c15a77bdda2c random32: update the net random state on interrupt and activity

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 00ea26a7e535c70998a5b9228185403e3f440042)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
4 years agolinux-yocto/5.4: update to v5.4.56
Bruce Ashfield [Wed, 12 Aug 2020 17:03:23 +0000 (13:03 -0400)]
linux-yocto/5.4: update to v5.4.56

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

    1b940bbc5c55 Linux 5.4.56
    df35e878d0a5 perf bench: Share some global variables to fix build with gcc 10
    702d1b287fd2 perf env: Do not return pointers to local variables
    73d2d6b421df perf tests bp_account: Make global variable static
    39568546706f x86/i8259: Use printk_deferred() to prevent deadlock
    01ac46c6baf0 KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled
    fd412846a6ec KVM: arm64: Don't inherit exec permission across page-table levels
    1aff51292ee8 drivers/net/wan: lapb: Corrected the usage of skb_cow
    f88c909dc28c RISC-V: Set maximum number of mapped pages correctly
    e3043abb5baa xen-netfront: fix potential deadlock in xennet_remove()
    a7b488d65d39 cxgb4: add missing release on skb in uld_send()
    5f4e6b874b57 x86/stacktrace: Fix reliable check for empty user task stacks
    32344d2993b0 x86/unwind/orc: Fix ORC for newly forked tasks
    a14d6a9ddf33 Revert "i2c: cadence: Fix the hold bit setting"
    df366abb9c8f net: ethernet: ravb: exit if re-initialization fails in tx timeout
    ac7c3b8f34ec parisc: add support for cmpxchg on u8 pointers
    a0ba41317c89 scsi: core: Run queue in case of I/O resource contention failure
    0ac155dcf048 nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame
    50c5f89637bc selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support
    78c7532b80c6 qed: Disable "MFW indication via attention" SPAM every 5 minutes
    6e4620df9cbc selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion
    5b235c1d9022 usb: hso: Fix debug compile warning on sparc32
    cac2b7ad0915 vxlan: fix memleak of fdb
    1df0000b30cd perf tools: Fix record failure when mixed with ARM SPE event
    568995fb61e7 net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq
    e68b7b9b03fb net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_port_probe()
    1158aa743a0b net: nixge: fix potential memory leak in nixge_probe()
    9acd96f14a49 Bluetooth: fix kernel oops in store_pending_adv_report
    3bb2f52ad9e7 arm64: csum: Fix handling of bad packets
    8a90b436a0c9 arm64/alternatives: move length validation inside the subsection
    4a50753aacb5 mac80211: mesh: Free pending skb when destroying a mpath
    3f15e3e62c80 mac80211: mesh: Free ie data when leaving mesh
    fe58e3dd6e11 bpf: Fix map leak in HASH_OF_MAPS map
    43c390b751ba ibmvnic: Fix IRQ mapping disposal in error path
    ea559138b331 mlxsw: core: Free EMAD transactions using kfree_rcu()
    57f498ced731 mlxsw: core: Increase scope of RCU read-side critical section
    0f424eda4705 mlx4: disable device on shutdown
    c3883876d3f1 rhashtable: Fix unprotected RCU dereference in __rht_ptr
    b1d629d32910 net: lan78xx: fix transfer-buffer memory leak
    9db3040eb952 net: lan78xx: add missing endpoint sanity check
    32ec4441cca1 net/mlx5e: Fix kernel crash when setting vf VLANID on a VF dev
    475cbcef491a net/mlx5e: Modify uplink state on interface up/down
    43608372b84d net/mlx5: Verify Hardware supports requested ptp function on a given pin
    8901896f69d4 net/mlx5e: Fix error path of device attach
    00bedd730d1f net/mlx5: E-switch, Destroy TSAR when fail to enable the mode
    d70f9a3cc32c net: hns3: fix aRFS FD rules leftover after add a user FD rule
    475b8d619268 net: hns3: fix a TX timeout issue
    5fc02e8d1bfd sh: Fix validation of system call number
    2f2674997dfb sh/tlb: Fix PGTABLE_LEVELS > 2
    222dbeca05fb selftests/net: so_txtime: fix clang issues for target arch PowerPC
    d817b2c8d3cf selftests/net: psock_fanout: fix clang issues for target arch PowerPC
    22f84cce9527 selftests/net: rxtimestamp: fix clang issues for target arch PowerPC
    831c904a0f68 nvme-tcp: fix possible hang waiting for icresp response
    9a1d0084cbe1 ARM: dts: armada-38x: fix NETA lockup when repeatedly switching speeds
    731e013e33b3 xfrm: Fix crash when the hold queue is used.
    a4c902887f1d ARM: dts sunxi: Relax a bit the CMA pool allocation range
    0307da686660 xfrm: policy: match with both mark and mask on user interfaces
    bbb13adb07af net/x25: Fix null-ptr-deref in x25_disconnect
    69cd304cfa5c net/x25: Fix x25_neigh refcnt leak when x25 disconnect
    c2fd34d43110 libtraceevent: Fix build with binutils 2.35
    2ec69499b758 rds: Prevent kernel-infoleak in rds_notify_queue_get()
    6a9428427da1 drm: hold gem reference until object is no longer accessed
    7eef3b463d88 drm/dbi: Fix SPI Type 1 (9-bit) transfer
    8ea180f1c7ec drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()
    f1b4bdde2bdc drm/amd/display: Clear dm_state for fast updates
    22d3202e51a7 Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers"
    cea6633d5382 virtio_balloon: fix up endian-ness for free cmd id
    c2f787f904e0 ARM: dts: imx6qdl-icore: Fix OTG_ID pin and sdcard detect
    b9274613114a ARM: dts: imx6sx-sdb: Fix the phy-mode on fec2
    c4738c67a569 ARM: dts: imx6sx-sabreauto: Fix the phy-mode on fec2
    3b7e4a5ba95d ARM: 8986/1: hw_breakpoint: Don't invoke overflow handler on uaccess watchpoints
    b8fa0b037047 wireless: Use offsetof instead of custom macro.
    d3472f74d229 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work
    96f105943cff vhost/scsi: fix up req type endian-ness
    951117a2079b IB/rdmavt: Fix RQ counting issues causing use of an invalid RWQE
    dc731d262811 ALSA: hda/hdmi: Fix keep_power assignment for non-component devices
    6a67b05c6f30 ALSA: hda/realtek - Fixed HP right speaker no sound
    09832a9e0b76 ALSA: hda/realtek: Fix add a "ultra_low_power" function for intel reference board (alc256)
    e9f147c937a5 ALSA: hda/realtek: typo_fix: enable headset mic of ASUS ROG Zephyrus G14(GA401) series with ALC289
    cd76d30f51fb ALSA: hda/realtek: enable headset mic of ASUS ROG Zephyrus G15(GA502) series with ALC289
    6d84a8cf8a02 ALSA: usb-audio: Add implicit feedback quirk for SSL2
    47e20933814f mm/filemap.c: don't bother dropping mmap_sem for zero size readahead
    140210554274 PCI/ASPM: Disable ASPM on ASMedia ASM1083/1085 PCIe-to-PCI bridge
    2ff65580d477 ath10k: enable transmit data ack RSSI for QCA9884
    98cef10fbcca sunrpc: check that domain table is empty at module unload.
    84da97713b91 media: rc: prevent memory leak in cx23888_ir_probe
    ecfa7fa198fc crypto: ccp - Release all allocated memory if sha type is invalid
    169b93899c7d Linux 5.4.55
    909dbf09cd01 Revert "dpaa_eth: fix usage as DSA master, try 3"
    4918285a6c7d PM: wakeup: Show statistics for deleted wakeup sources again
    59242fa1d2ba regmap: debugfs: check count when read regmap file
    df89c1ee034c udp: Improve load balancing for SO_REUSEPORT.
    6735c126d272 udp: Copy has_conns in reuseport_grow().
    86512c6938a9 sctp: shrink stream outq when fails to do addstream reconf
    46e7c7efc30d sctp: shrink stream outq only when new outcnt < old outcnt
    bbf6af4a938a AX.25: Prevent integer overflows in connect and sendmsg
    182ffc66456b tcp: allow at most one TLP probe per flight
    e2f904fd79a0 rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA
    01c928350641 rtnetlink: Fix memory(net_device) leak when ->newlink fails
    b7d3d6df72a8 qrtr: orphan socket in qrtr_release()
    2bf797a8691a net: udp: Fix wrong clean up for IS_UDPLITE macro
    274b40b6df6c net-sysfs: add a newline when printing 'tx_timeout' by sysfs
    8d9f13dd400c ip6_gre: fix null-ptr-deref in ip6gre_init_net()
    fbcd85cd11de drivers/net/wan/x25_asy: Fix to make it work
    d109acd58052 dev: Defer free of skbs in flush_backlog
    52aeeec1a635 AX.25: Prevent out-of-bounds read in ax25_sendmsg()
    2f1624faf647 AX.25: Fix out-of-bounds read in ax25_connect()

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a9b3ecf377a1c01979311dc7082c401c957ca6ff)
Signed-off-by: Steve Sakoman <steve@sakoman.com>