]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
3 years agoselftest/signing: Ensure build path relocation is safe zeus
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>
3 years agouninative: Upgrade to 2.9
Khem Raj [Fri, 21 Aug 2020 23:51:15 +0000 (16:51 -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>
3 years agognutls: CVE-2020-24659
Zhixiong Chi [Tue, 8 Sep 2020 02:56:38 +0000 (19:56 -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: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo: Security Advisory - go - CVE-2020-24553
Li Zhou [Mon, 7 Sep 2020 08:09:06 +0000 (16:09 +0800)] 
go: Security Advisory - go - CVE-2020-24553

Backport the patch from <https://github.com/golang/go/commit/
eb07103a083237414145a45f029c873d57037e06> to solve CVE-2020-24553.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu: CVE-2020-14364
Li Wang [Fri, 4 Sep 2020 02:16:08 +0000 (02:16 +0000)] 
qemu: CVE-2020-14364

Backport patch from:
https://git.qemu.org/?p=qemu.git;a=patch;h=b946434f2659a182afc17e155be6791ebfb302eb

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: Security Advisory - bind - CVE-2020-8624
Li Zhou [Wed, 2 Sep 2020 08:19:31 +0000 (16:19 +0800)] 
bind: Security Advisory - bind - CVE-2020-8624

Backport patch from <https://gitlab.isc.org/isc-projects/bind9/
commit/e4cccf9668c7adee4724a7649ec64685f82c8677> to solve CVE-2020-8624.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: Security Advisory - bind - CVE-2020-8623
Li Zhou [Wed, 2 Sep 2020 08:19:30 +0000 (16:19 +0800)] 
bind: Security Advisory - bind - CVE-2020-8623

Backport patch from <https://gitlab.isc.org/isc-projects/bind9/
commit/8d807cc21655eaa6e6a08afafeec3682c0f3f2ab> to solve CVE-2020-8623.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: Security Advisory - bind - CVE-2020-8622
Li Zhou [Wed, 2 Sep 2020 08:19:29 +0000 (16:19 +0800)] 
bind: Security Advisory - bind - CVE-2020-8622

Backport patch from <https://gitlab.isc.org/isc-projects/bind9/
commit/6ed167ad0a647dff20c8cb08c944a7967df2d415> to solve CVE-2020-8622.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu : fix CVE-2020-15863
Li Wang [Mon, 10 Aug 2020 08:15:25 +0000 (16:15 +0800)] 
qemu : fix CVE-2020-15863

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Li Wang <Li.Wang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu: CVE-2020-10756
Stefan Ghinea [Fri, 21 Aug 2020 19:47:47 +0000 (22:47 +0300)] 
qemu: CVE-2020-10756

An out-of-bounds read vulnerability was found in the SLiRP networking
implementation of the QEMU emulator. This flaw occurs in the
icmp6_send_echoreply() routine while replying to an ICMP echo request,
also known as ping. This flaw allows a malicious guest to leak the
contents of the host memory, resulting in possible information disclosure.
This flaw affects versions of libslirp before 4.3.1.

References:
https://nvd.nist.gov/vuln/detail/CVE-2020-10756
https://bugzilla.redhat.com/show_bug.cgi?id=1835986

Upstream patches:
https://gitlab.freedesktop.org/slirp/libslirp/-/commit/c7ede54cbd2e2b25385325600958ba0124e31cc0

Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo: CVE-2020-16845
Zhixiong Chi [Tue, 11 Aug 2020 07:41:18 +0000 (00:41 -0700)] 
go: CVE-2020-16845

Backport CVE patch from the upstream:
https://github.com/golang/go.git
commit 027d7241ce050d197e7fabea3d541ffbe3487258

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu: CVE-2020-16092
Li Wang [Tue, 18 Aug 2020 04:48:17 +0000 (04:48 +0000)] 
qemu: CVE-2020-16092

Backport CVE patch from the upstream:
https://git.qemu.org/?p=qemu.git;a=commit;h=035e69b063835a5fd23cacabd63690a3d84532a8

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoxserver-xorg: Security Advisory - xserver-xorg - CVE-2020-14347
Li Zhou [Tue, 11 Aug 2020 03:43:11 +0000 (11:43 +0800)] 
xserver-xorg: Security Advisory - xserver-xorg - CVE-2020-14347

Backport patch from <https://gitlab.freedesktop.org/xorg/xserver/-/
commit/aac28e162e5108510065ad4c323affd6deffd816> to solve
CVE-2020-14347.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agooeqa/runtime_test: Disable test_testimage_virgl_gtk
Richard Purdie [Tue, 8 Sep 2020 13:34:15 +0000 (14:34 +0100)] 
oeqa/runtime_test: Disable test_testimage_virgl_gtk

This test keeps failing on the autobuilder and is proving extremely
annoying. It works much better in later releases but for zeus and
earlier, lets just stop running it as it doesn't really tell us
anything useful at this point, nobody has any plans to improve
the distro exclusions or otherwise fix it in the older releases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agopython3-testtools: Avoid traceback2 module requirement
Richard Purdie [Thu, 28 Nov 2019 12:08:55 +0000 (12:08 +0000)] 
python3-testtools: Avoid traceback2 module requirement

traceback2 adds traceback for python2. Rather than depend on traceback2, we're
python3 only so just use traceback.

This caused breakage in oe-selftest -j which uses testtools on the autobuilder
using buildtools-tarball.

[YOCTO #13652]

(From OE-Core rev: ee80a06c107375e3cf0d246ea17c09dda4536dab)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoacl: Disable parallel make install
Richard Purdie [Wed, 9 Sep 2020 09:15:32 +0000 (10:15 +0100)] 
acl: Disable parallel make install

Similiarly to attr, do_install fails on newer versions of make with interesting
and hard to debug errors. Disablle parallle make install as a workaround.
Later verisons of acl in newer releases don't have the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoattr: Disable parallel make install
Richard Purdie [Mon, 7 Sep 2020 15:33:08 +0000 (16:33 +0100)] 
attr: Disable parallel make install

do_install fails on newer versions of make with interesting and hard to
debug errors. Disablle parallle make install as a workaround. Later verisons
of attr in newer releases don't have the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/selftest: Ensure buildtools in environment variables isn't replaced
Richard Purdie [Tue, 10 Mar 2020 13:02:07 +0000 (13:02 +0000)] 
oeqa/selftest: Ensure buildtools in environment variables isn't replaced

This avoids the seeing broken replacements like:
oe-selftest-centos/build/build-st-926tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
which understandably break builds.

(From OE-Core rev: 04ee0e8b95cd8ed890374e0007f976684206b630)

(Cherry-picked from f930e2cadb9ee69759720b6c49aeeb6dd43a7edd but adjusted for thud)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agooeqa/testsdk: Use original PATH
Richard Purdie [Sun, 8 Mar 2020 10:20:12 +0000 (10:20 +0000)] 
oeqa/testsdk: Use original PATH

We want to test the SDK with PATH from the original host, not with our own
tools injected via HOSTTOOLS. It even uses some tools which aren't in
HOSTTOOLS.

This is necessary after changing the SDK to not reset PATH to the system
default which is bad for other reasons and brings the testing into sync
with that change.

(From OE-Core rev: 87c9602fd0dedc7bcf75b822aaf5f6ebfc17737c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-extended-tarball: add nativesdk-libxcrypt-dev
Jeremy Puhlman [Wed, 4 Mar 2020 19:39:36 +0000 (11:39 -0800)] 
buildtools-extended-tarball: add nativesdk-libxcrypt-dev

virtual/crypt-native is assume provided in bitbake.conf, so
buildtools-extended-tarball shoud provide crypt since it doesn't
use the host's headers/libraries.

[YOCTO #13714]

(From OE-Core rev: da948b25d5ef452fb35275d108e18d2a2829f4fb)

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agoglibc: Update nativesdk locale relocation patch
Richard Purdie [Mon, 9 Mar 2020 20:59:11 +0000 (20:59 +0000)] 
glibc: Update nativesdk locale relocation patch

The locale binary reported incorrect locale lists in relocated toolchains
as some path references were not relocated by this patch. Fix this missing
relocations so the locale binary correctly reports the locales.

(From OE-Core rev: f7a6a72880009380ae81bc7fc863921a26811c8c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-tarball: add nativesdk-python
Jeremy Puhlman [Thu, 9 Jul 2020 19:08:09 +0000 (19:08 +0000)] 
buildtools-tarball: add nativesdk-python

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
3 years agobuildtools-tarball: export OPENSSL_CONF in environment setup
Steve Sakoman [Fri, 12 Jun 2020 15:55:01 +0000 (05:55 -1000)] 
buildtools-tarball: export OPENSSL_CONF in environment setup

The autobuilder has been experiencing SSL: CERTIFICATE_VERIFY_FAILED
errors during error report uploads when using buildtools due to looking
for certs in /opt/poky

(From OE-Core rev: 197f1d5d14b8e57295f5a81c03c86abba5328614)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-tarball: export OPENSSL_CONF for openssl
Liwei Song [Fri, 8 Nov 2019 09:19:05 +0000 (17:19 +0800)] 
buildtools-tarball: export OPENSSL_CONF for openssl

export OPENSSL_CONF to aviod SDK openssl can not find openssl.cnf.

(From OE-Core rev: 0aaf3dd17dcde959e9c0d62543cb91c9b33551b4)

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-extended-tarball: Add libstc++.a
Jeremy Puhlman [Wed, 15 Apr 2020 02:32:05 +0000 (19:32 -0700)] 
buildtools-extended-tarball: Add libstc++.a

Builds like native-openjdk, really wants a to link
some tools against the static version. Since when
using the extended tarball, its the only place to
get it, add the library.

(From OE-Core rev: 59c4a3fdbbfd5a6aaba7e0a1675dcd5866a7f3a4)

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agonativesdk-buildtools-perl-dummy: add dependencies for autoconf and automake
Tim Orling [Mon, 23 Dec 2019 01:18:36 +0000 (17:18 -0800)] 
nativesdk-buildtools-perl-dummy: add dependencies for autoconf and automake

* For buildtools-extended-tarball, where we are adding all of build-essentials
  to the nativesdk, we need additional perl modules for autoconf and automake.

(From OE-Core rev: f0f766160663407ea7683d31bbf5f011accc9ba2)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-extended-tarball: Add locale command
Richard Purdie [Mon, 9 Mar 2020 21:09:43 +0000 (21:09 +0000)] 
buildtools-extended-tarball: Add locale command

The eSDK installation code checks installed locales with the locale command which is
from glibc-utils. Add this so that we find the correct locales from the buildtools.

(From OE-Core rev: 7d35e4bc6ff94a2d03c48827d7d60a6855c9029d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agofiles/toolchain-shar-extract.sh: Rework PATH cleaning
Richard Purdie [Sat, 7 Mar 2020 13:43:44 +0000 (13:43 +0000)] 
files/toolchain-shar-extract.sh: Rework PATH cleaning

Trying to create a clean PATH breaks cases where we install a buildtools tarball
on hosts to provide newer versions of gcc. Rework the fix for #8698 to clean up
directories in PATH which don't exist isntead. Do it with python as the shell
version was too fraught with corner cases.

(From OE-Core rev: 7674b63819aa7ca95ca5ca5477a5cce32e9691eb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils: Install non-alternatives links for nativesdk
Richard Purdie [Fri, 17 Jan 2020 17:20:48 +0000 (17:20 +0000)] 
binutils: Install non-alternatives links for nativesdk

In the SDK we need the plain symlinks and don't use alternative providers.
When these are missing the toolchain can work incorrectly so fix this.

(From OE-Core rev: 0c06cfaa016d06cc56d80dc1c244a938f3d38a3c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobinutils: Fix relocation of ld.so.conf in nativesdk builds
Richard Purdie [Fri, 17 Jan 2020 17:21:39 +0000 (17:21 +0000)] 
binutils: Fix relocation of ld.so.conf in nativesdk builds

We need binutils to look at our ld.so.conf file within the SDK to ensure
we search the SDK's libdirs as well as those from the host system.

There add a patch which passes in the directory to the code using a define,
then add it to a section we relocate in a similar way to the way we relocate
the gcc internal paths. This ensures that ld works correctly in our buildtools
tarball.

Standard sysroot relocation doesn't work since we're not in a sysroot,
we want to use both the host system and SDK libs.

(From OE-Core rev: f6c1089642934ad93056ef19a0888965486ee030)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-tarball: Add an ld.so.conf for nativesdk-binutils
Richard Purdie [Fri, 17 Jan 2020 17:15:03 +0000 (17:15 +0000)] 
buildtools-tarball: Add an ld.so.conf for nativesdk-binutils

We need to search our own libdirs, then fall back to the system ones as our
customised dynamic loader will. Have ld.so.conf reflect that.

This ensures that binutils finds libraries here when linking too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuildtools-extended-tarball: add recipe with build-essentials
Tim Orling [Mon, 23 Dec 2019 01:18:37 +0000 (17:18 -0800)] 
buildtools-extended-tarball: add recipe with build-essentials

* For some aging distros, such as CentOS 7, the native version
  of gcc is simply too ancient and is a constant source of
  headaches for moving forward.

* Add an extended version of buildtools-tarball which adds all
  of build-essential, so that the host is now modernized and
  capable of compiling the latest versions of components.

Fixes [YOCTO #13714]

(From OE-Core rev: f0377af2325613b63716b0bb4db1ab253d79f388)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agobuild-appliance-image: Update to zeus head revision 2019-10.4-zeus
Richard Purdie [Fri, 14 Aug 2020 16:55:54 +0000 (17:55 +0100)] 
build-appliance-image: Update to zeus head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 years agolibpcre: Add fix for CVE-2020-14155
Rahul Taya [Thu, 30 Jul 2020 08:41:51 +0000 (14:11 +0530)] 
libpcre: Add fix for CVE-2020-14155

Added below patch in libpcre
CVE-2020-14155.patch

This patch fixes below error:
PCRE could allow a remote attacker to execute arbitrary
code on the system, caused by an integer overflow in
libpcre via a large number after (?C substring.
By sending a request with a large number, an attacker
can execute arbitrary code on the system or
cause the application to crash.

Tested-by: Rahul Taya <Rahul.Taya@kpit.com>
Signed-off-by: Saloni Jain <Saloni.Jain@kpit.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogo: Security Advisory - go - CVE-2020-15586
Li Zhou [Wed, 29 Jul 2020 05:49:46 +0000 (13:49 +0800)] 
go: Security Advisory - go - CVE-2020-15586

Backport patch from <https://github.com/golang/go/commit/
fa98f46741f818913a8c11b877520a548715131f> to solve CVE-2020-15586.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopypi.bbclass: use new pypi UPSTREAM_CHECK_URI
Tim Orling [Sat, 8 Aug 2020 14:51:50 +0000 (07:51 -0700)] 
pypi.bbclass: use new pypi UPSTREAM_CHECK_URI

Upstream https://pypi.python.org/pypi/${PYPI_PACKAGE}/
redirects to https://pypi.org/project/${PYPI_PACKAGE}/

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit e5f3f961242d888f3f786af8f793bf1d247fdff0)
[Yocto # 13990]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
3 years agopypi.bbclass: mind package suffix on version check
Konrad Weihmann [Sat, 8 Aug 2020 14:51:49 +0000 (07:51 -0700)] 
pypi.bbclass: mind package suffix on version check

Some pypi packages do have suffixes like dev, or a0 or b1.
When doing a version check on these, the version will get falsely
identified as major release versions.
Add a terminating slash to rule out those false positives

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit 0603f6d9f2abfa67b99b1bc39228f6aa16a0370d)
[Yocto bug #13990]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
3 years agogstreamer1.0: fix builds with make 4.3
Anuj Mittal [Fri, 10 Jul 2020 00:09:59 +0000 (08:09 +0800)] 
gstreamer1.0: fix builds with make 4.3

Depend on make-native instead of using host make to avoid errors like:

| controller-enumtypes.c:10:1: error: stray '\' in program
|    10 | \#include "gstinterpolationcontrolsource.h"
|       | ^
| controller-enumtypes.c:10:2: error: stray '#' in program
|    10 | \#include "gstinterpolationcontrolsource.h"
|       |  ^
| controller-enumtypes.c:10:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
|    10 | \#include "gstinterpolationcontrolsource.h"
|       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| controller-enumtypes.c:11:1: error: stray '\' in program
|    11 | \#include "gstlfocontrolsource.h"
|       | ^
| controller-enumtypes.c:11:2: error: stray '#' in program
|    11 | \#include "gstlfocontrolsource.h"

This helps building on autobuilder where some workers have buildtools
with make 4.3 installed.

Building using meson works fine so later branches are not affected and
upstream has rejected patches to fix this:

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/515

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocore: glib-2.0: fix requested libmount/mkostemp/selinux not being linked in
Ahmad Fatoum [Mon, 20 Jul 2020 10:30:11 +0000 (12:30 +0200)] 
core: glib-2.0: fix requested libmount/mkostemp/selinux not being linked in

Since 010202076760 ("meson.bbclass: avoid unexpected operating-system
names"), meson is no longer used with a cross file that appends the used
libc to the operating system name, e.g. linux-gnueabi.

Prior to that commit, the host_system == 'linux' checks in glib's meson
failed, which led to glib being compiled without libmount, mkostemp and
selinux even if explicitly requested.

As the aforementioned commit affects all recipes built by glib, it might
not be a candidate for backporting to current stable branches. To fix
just the glib issue, instances of host_system == 'linux' are patched
locally.

The patch is marked as Upstream-Status: Inappropriate as it is rendered
unnecessary for OE releases newer than Dunfell.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglibc: CVE-2020-6096
Zhixiong Chi [Mon, 13 Jul 2020 05:52:13 +0000 (22:52 -0700)] 
glibc: CVE-2020-6096

Backport the CVE patch from the upstream:
git://sourceware.org/git/glibc.git
commit 79a4fa341b8a89cb03f84564fd72abaa1a2db394
commit beea361050728138b82c57dda0c4810402d342b9

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agonss: Fix CVE-2020-12399
Ovidiu Panait [Tue, 14 Jul 2020 08:18:13 +0000 (11:18 +0300)] 
nss: Fix CVE-2020-12399

Master (nss version 3.54) is not affected by this issue. This is a backport
from nss version 3.54.

NSS has shown timing differences when performing DSA signatures, which was
exploitable and could eventually leak private keys. This vulnerability affects
Thunderbird < 68.9.0, Firefox < 77, and Firefox ESR < 68.9.

Upstream patch:
https://hg.mozilla.org/projects/nss/rev/daa823a4a29bcef0fec33a379ec83857429aea2e

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocve-update: handle baseMetricV2 as optional
Konrad Weihmann [Sun, 26 Jul 2020 14:10:06 +0000 (16:10 +0200)] 
cve-update: handle baseMetricV2 as optional

Currently in NVD DB an item popped up, which hasn't set baseMetricV2.
Let the parser handle it as an optional item.
In case use baseMetricV2 before baseMetricV3

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fdcbf3f28289188c5a97664d1421d4a5c4991eda)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopython3-numpy: Stop shipping manual config files
Adrian Bunk [Sun, 27 Oct 2019 17:36:48 +0000 (19:36 +0200)] 
python3-numpy: Stop shipping manual config files

Automatic generation seems to work fine,
and does not become outdated.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8993270f8bc65e152418d84fde03f8ead83c054b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoselftest/context: Avoid tracebacks from tests using multiprocessing
Richard Purdie [Wed, 19 Feb 2020 17:27:26 +0000 (17:27 +0000)] 
selftest/context: Avoid tracebacks from tests using multiprocessing

We can see tracebacks where the SIGTERM handler catches things
it shouldn't. Avoid exit(1) unless we're the process that
it was intended for.

[YOCTO #13664]

(From OE-Core rev: d9c62ffac611310efd47ed6397d31dccb72fe868)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dba8c1d5ef0b574b7772d59e5992bfad8b7cca13)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosqlite: backport CVE fix
Sakib Sajal [Fri, 10 Jul 2020 06:58:23 +0000 (09:58 +0300)] 
sqlite: backport CVE fix

Fixes CVE-2020-11655

(From OE-Core rev: 3b06a6c73f4e49c6d00f758423c2e8865ec2de00)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ without the CVE-2020-11656 fix that did not apply cleanly ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoperf: Correct the substitution of python shebangs
He Zhe [Sat, 22 Feb 2020 03:37:24 +0000 (11:37 +0800)] 
perf: Correct the substitution of python shebangs

To make the native python3 always used,

- Use sed one-liner instead
- Add substitution for ${S}/scripts/bpf_helpers_doc.py to fix the
  following warning.

File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata'

This issue is first reported by Joel Stanley <joel@jms.id.au>
The sed one-liner is credited to Anuj Mittal <anuj.mittal@intel.com>

(From OE-Core rev: 3f93173130a94310255389cfc62c67102a4fb21b)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3a1a18ba9d28adb5562eabe9ec354f6d93154f5c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoperf: fix build for v5.5+
Bruce Ashfield [Mon, 13 Jan 2020 04:41:23 +0000 (23:41 -0500)] 
perf: fix build for v5.5+

In kernel 5.5+ there are python3 scripts that explicitly use
/usr/bin/python3 as the interpreter. That will find the host
python and produce undefined results.

We add that interpreter path to our substitutions to ensure
that our sysroot variant is used.

(From OE-Core rev: 103316d50d4947b3c3500eb5cbc4845702a62d22)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e5c4f3127521607742f7cdf62481b64cf4d3e828)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoutils: fix gcc 10 version detection
Charles-Antoine Couret [Thu, 26 Mar 2020 20:09:49 +0000 (21:09 +0100)] 
utils: fix gcc 10 version detection

Utils can not detect GCC 10 correctly due to wrong regex.
It generates this error "ERROR: Can't get compiler version from gcc  --version output"

Sub-version numbers should be 1 or more digits instead of 1 only.

Signed-off-by: Charles-Antoine Couret <charles-antoine.couret@mind.be>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 186fe4a3d390a52b87282c3e694ce3251e45ee78)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoiso-codes: switch upstream branch master -> main
Hongxu Jia [Mon, 6 Jul 2020 02:26:59 +0000 (10:26 +0800)] 
iso-codes: switch upstream branch master -> main

(From OE-Core rev: 6e16ef0c2e0ec2bbb862231cd84e7650bd5789af)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 75e91b8e52ec77398e6b0fc09456e971662d9d7e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopython3: fix CVE-2020-14422
Lee Chee Yang [Fri, 3 Jul 2020 15:20:37 +0000 (23:20 +0800)] 
python3: fix CVE-2020-14422

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
[Rebased for v3.7.8]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosystemd: fix CVE-2020-13776
wenlin.kang@windriver.com [Mon, 29 Jun 2020 07:54:41 +0000 (00:54 -0700)] 
systemd: fix CVE-2020-13776

Backport from systemd.git.

(OE-Core master rev: a1b22b2263da6d11a4e0cbfa792d2bd1e56f5346)

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowpa-supplicant: Security fix CVE-2020-12695
Armin Kuster [Wed, 8 Jul 2020 21:08:01 +0000 (00:08 +0300)] 
wpa-supplicant: Security fix CVE-2020-12695

Source: http://w1.fi/security/
Disposition: Backport from http://w1.fi/security/2020-1/

Affects <= 2.9 wpa-supplicant

(From OE-Core rev: 720d29cbfce34375402c6a4c17e440ffbb2659bf)

Signed-off-by: Armin Kuster <akuster@mvista.com>
(cherry picked from commit e9c696397ae1b4344b8329a13076f265980ee74d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoperl: fix CVE-2020-10543 & CVE-2020-10878
Lee Chee Yang [Wed, 8 Jul 2020 21:08:00 +0000 (00:08 +0300)] 
perl: fix CVE-2020-10543 & CVE-2020-10878

(From OE-Core rev: d9c5d9c52eb1f03ff9c907a76dda31042fb26edb)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agodbus: fix CVE-2020-12049
Lee Chee Yang [Wed, 8 Jul 2020 21:07:59 +0000 (00:07 +0300)] 
dbus: fix CVE-2020-12049

(From OE-Core rev: 3f69946c6159fa359bc5800ee72ef6151d9ecd36)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoperl: Fix host specific modules problems
Richard Purdie [Wed, 8 Jul 2020 21:07:58 +0000 (00:07 +0300)] 
perl: Fix host specific modules problems

We were seeing a ton of empty perl modules being created such as
"perl-module-x86-64-linux-encoding" where the name would include
${TARGET_ARCH}-linux. These files were already being filtered in an
earlier do_split_packages() expression so exclude them from the latter
one to remove the pointless empty modules in PACKAGES.

This doesn't explain why some were not deterministic but will recude
the do_package execution time and clean up the build directories
at the very least.

(From OE-Core rev: 5aaf9d3a748cbad17a4a3e5d9715ac2f289b007d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9f1a959d9831f43dda656e3b0c4d059db3363877)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: update to 9.11.19
akuster [Wed, 8 Jul 2020 21:07:57 +0000 (00:07 +0300)] 
bind: update to 9.11.19

Bug fix only updates.

suitable for Stable branch updates where applicable.

Drop CVE patches included in update
LIC_FILES_CHKSUM update copyright year to 2020

Full changes found at : https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_11/CHANGES

(From OE-Core rev: c672d2b6c98607f1fda917f4a3189a53712e8fc2)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit a6ba66cf5e754cdcd41f01d233fbef7b94a10225)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: update 9.11.5-P4 -> 9.11.13
Alexander Kanavin [Wed, 8 Jul 2020 21:07:56 +0000 (00:07 +0300)] 
bind: update 9.11.5-P4 -> 9.11.13

Drop backports.

Drop 0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch and
0001-lib-dns-gen.c-fix-too-long-error.patch as problem is fixed
upstream.

(From OE-Core rev: 6965ec5c491e71d5951dfb58fc060bd0b717e33d)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomtd-utils: Fix return value of ubiformat
Otavio Salvador [Wed, 8 Jul 2020 21:07:55 +0000 (00:07 +0300)] 
mtd-utils: Fix return value of ubiformat

This changeset fixes a feature regression in ubiformat.  Older versions
of ubiformat, when invoked with a flash-image, would return 0 in the
case no error was encountered.  Upon upgrading to latest, it was
discovered that ubiformat returned 255 even without encountering an
error condition.

This changeset corrects the above issue and causes ubiformat, when given an
image file, to return 0 when no errors are detected.

Backport fix from 2.1.2

(From OE-Core rev: 3ee98b6c9ddd1dd0825245ca672236b7befb9859)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
(cherry picked from commit 7ebacd9cbaec98fbc406e8ae99c9805a24fdadc6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoencodings: clear postinst script
Kai Kang [Wed, 8 Jul 2020 21:07:54 +0000 (00:07 +0300)] 
encodings: clear postinst script

Postinst script from xorg-font-common.inc doesn't apply to this recipe.
So clear the postinst script of encodings.

(From OE-Core rev: ba94c908b99713ce115e9240df525c6442a60c7a)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
(cherry picked from commit 99ae6dbb7278dfd264453af852c108fa56a0d4e3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowpa-supplicant: remove service templates from SYSTEMD_SERVICE
Kai Kang [Wed, 8 Jul 2020 21:07:53 +0000 (00:07 +0300)] 
wpa-supplicant: remove service templates from SYSTEMD_SERVICE

Remove service templates wpa_supplicant-nl80211@.service and
wpa_supplicant-wired@.service from SYSTEMD_SERVICE that they should NOT
be started/stopped by calling 'systemctl' in postinst and prerm scripts.

(From OE-Core rev: 7910a0d6f332253608767a9576a0d521dd87efd7)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
(cherry picked from commit fe9b8e50461ab00ab3ad8b065ebd32f0eea2a255)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agovim: _FORTIFY_SOURCE=2 be gone
Joe Slater [Wed, 8 Jul 2020 21:07:52 +0000 (00:07 +0300)] 
vim: _FORTIFY_SOURCE=2 be gone

vim will abort in many places with this setting.  Replace
it with the benign _FORTIFY_SOURCE=1.

(From OE-Core rev: d9de155f6452f916edd3131addd0c2eebaf4d639)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
(cherry picked from commit 18129cbaeddb3278efe9963718556e3765f06c1e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopatchelf: Add patch to address corrupt shared library issue
Richard Purdie [Wed, 8 Jul 2020 21:07:51 +0000 (00:07 +0300)] 
patchelf: Add patch to address corrupt shared library issue

patchelf can corrupt shared libraries if the program headers don't
immediately follow the elf header. Add a patch submitted upstream
to address this.

(From OE-Core rev: faaf5f34332290708f3720a5488b3d1549d9e95a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e7811c787bbe2f5d49b3506309499acc27189988)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocve-check: include epoch in product version output
Ralph Siemsen [Wed, 8 Jul 2020 21:07:50 +0000 (00:07 +0300)] 
cve-check: include epoch in product version output

In the generated cve.log files, include the epoch in the product
version. This better matches how versions are displayed elsewhere,
in particular the bb.warn("Found unpatched CVE...") that appears
on the terminal when CVEs are found.

(From OE-Core rev: 99f6de1c74b581054c74c6b4598a5d47facc9964)

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
(cherry picked from commit e1c3c0b6e5b01304e2127f5058986697e82adf93)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibexif: fix CVE-2020-13114
Lee Chee Yang [Wed, 8 Jul 2020 21:07:49 +0000 (00:07 +0300)] 
libexif: fix CVE-2020-13114

(From OE-Core rev: 2e497029ee00babbc50f3c1d99580230bc46155c)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agocve-check: Run it after do_fetch
Khem Raj [Wed, 8 Jul 2020 21:07:48 +0000 (00:07 +0300)] 
cve-check: Run it after do_fetch

Certain recipes e.g. bash readline ( from meta-gplv2 ) download patches instead of having them in
metadata, this could fail cve_check

ERROR: readline-5.2-r9 do_cve_check: File Not found: qemuarm/build/../downloads/readline52-001

This patch ensures that download is done before running CVE scan, even
though these will be external patches and may not contain CVE tags as it
expects, but it will fix the run failures as seen above

(From OE-Core rev: dbf143d79476e54e8da93101fc16eaedeec88362)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e406fcb6c609a0d2456d7da0d2406d2d9fa52dd2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agofile: add bzip2-replacement-native to DEPENDS to fix sstate issue
Jan-Simon Moeller [Wed, 8 Jul 2020 21:07:47 +0000 (00:07 +0300)] 
file: add bzip2-replacement-native to DEPENDS to fix sstate issue

file-native when built on a Debian 10 host will embed a dependency to
'libbz2.so.1.0' (instead of 'libbz2.so.1'). This can cause issues
when sharing the sstate between hosts e.g.:

 recipe-sysroot-native/usr/lib/rpm/rpmdeps:
      error while loading shared libraries: libbz2.so.1.0: \
        cannot open shared object file: No such file or directory

To avoid this situation, let's add the bzip2-replacement-native to the
file recipe's DEPENDS_class-native .

Details in https://bugzilla.yoctoproject.org/show_bug.cgi?id=13915 .

(From OE-Core rev: 5a2bc3bfa9e1a4f37b6e26a5c40a4a9c025d03f1)

Signed-off-by: Jan-Simon Moeller <dl9pf@gmx.de>
(cherry picked from commit 4a996574464028bd5d57b90920d0887d1a81e9e9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogcr: depends on gnupg-native
Kai Kang [Wed, 8 Jul 2020 21:07:46 +0000 (00:07 +0300)] 
gcr: depends on gnupg-native

It fails to build gcr if no commmand gpg on build host:

| meson.build:44:0: ERROR: Program(s) ['gpg2', 'gpg'] not found or not executable

Add dependency gnupg-native to fix the error.

(From OE-Core rev: da7360247995d7c8e79dfcaa0c0761952a9013f1)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
(cherry picked from commit e4a6eda4c246b2bca059defed796bdab19a7ab5f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agotimezone: upgrade 2019c -> 2020a
Pierre-Jean Texier [Wed, 8 Jul 2020 21:07:44 +0000 (00:07 +0300)] 
timezone: upgrade 2019c -> 2020a

See full changelog https://github.com/eggert/tz/blob/master/NEWS#L11

(From OE-Core rev: 9d74b048e3a160d7a9a20e85817e9eb3a558af63)

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopython3: Upgrade 3.7.7 -> 3.7.8
Adrian Bunk [Wed, 8 Jul 2020 21:07:43 +0000 (00:07 +0300)] 
python3: Upgrade 3.7.7 -> 3.7.8

Backported patch removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibpam: Remove option 'obscure' from common-password
haiqing [Mon, 15 Jun 2020 03:05:57 +0000 (11:05 +0800)] 
libpam: Remove option 'obscure' from common-password

libpam does not support 'obscure' checks to password,
there are the same checks in pam_cracklib module.
And this fix can remove the below error message while
updating password with 'passwd':
pam_unix(passwd:chauthtok):unrecognized option[obscure]

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ea761dbac90be77797308666fe1586b05e3df824)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agorelocatable.bbclass: Avoid an exception if an empty pkgconfig dir exist
Peter Kjellerstedt [Fri, 20 Mar 2020 18:04:20 +0000 (19:04 +0100)] 
relocatable.bbclass: Avoid an exception if an empty pkgconfig dir exist

Rewrite relocatable_native_pcfiles() so that it can handle that any of
the checked pkgconfig directories are empty without causing an
exception.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f9c5df6dc1c13e9b05ff1b47ad84ad339f6779a4)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokernel.bbclass: Fix Module.symvers support
Lili Li [Fri, 26 Jun 2020 05:45:56 +0000 (13:45 +0800)] 
kernel.bbclass: Fix Module.symvers support

Starting from v5.8-rc1 commit 269a535ca931 (modpost: generate
vmlinux.symvers and reuse it for the second modpost"), kernel will
generate new vmlinux.symvers instead of dumping all the vmlinux symbols
into Module.symvers in the first pass.

Error log:
    'run.do_shared_workdir.16614' failed with exit code 1:
    DEBUG: cp: cannot stat 'Module.symvers': No such file or directory

This change will check the file Module.symvers existence before copying it.

Signed-off-by: Lili Li <lili.li@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cd2d62a08a1dfcd890a03ee55132b6d6c65f5ab7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agokernel-fitimage: introduce FIT_SIGN_ALG
Richard Leitner [Fri, 5 Jun 2020 07:08:38 +0000 (07:08 +0000)] 
kernel-fitimage: introduce FIT_SIGN_ALG

make fitImage configuration signature algorithm selectable with
FIT_SIGN_ALG.

(From OE-Core rev: e24b27a2b49e97cec6153f2d642d17a901b8ba12)

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agognutls: fixed CVE-2020-13777
haiqing [Mon, 15 Jun 2020 08:15:24 +0000 (16:15 +0800)] 
gnutls: fixed CVE-2020-13777

GnuTLS 3.6.x before 3.6.14 uses incorrect cryptography
for encrypting a session ticket

Backport the patch from upstream:
https://gitlab.com/gnutls/gnutls.git
commit c2646aeee94e71cb15c90a3147cf3b5b0ca158ca
commit 50ad8778a81f9421effa4c5a3b457f98e559b178
commit 3d7fae761e65e9d0f16d7247ee8a464d4fe002da

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoqemu: fix CVE-2020-10702 & CVE-2020-13765
Lee Chee Yang [Tue, 16 Jun 2020 08:21:42 +0000 (16:21 +0800)] 
qemu: fix CVE-2020-10702 & CVE-2020-13765

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agolibjpeg-turbo: Fix CVE-2020-13790
jason.lau [Thu, 18 Jun 2020 08:31:36 +0000 (16:31 +0800)] 
libjpeg-turbo: Fix CVE-2020-13790

libjpeg-turbo 2.0.4 has a heap-based buffer over-read
in get_rgb_row() in rdppm.c via a malformed PPM input file.

Upstream-Status: Backport
[https://github.com/libjpeg-turbo/libjpeg-turbo/commit/3de15e0c344d11d4b90f4a47136467053eb2d09a]

CVE:CVE-2020-13790

Signed-off-by: Liu Haitao <haitao.liu@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopython3: un-break disabling the readline PACKAGECONFIG
Alexander Kanavin [Wed, 24 Jun 2020 20:13:26 +0000 (23:13 +0300)] 
python3: un-break disabling the readline PACKAGECONFIG

Previously the readline module would have been built regardless of
readline's presence in the sysroot, and the recipe would
fail at package_qa.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agopython3: make gdbm optional
Alexander Kanavin [Wed, 24 Jun 2020 20:13:25 +0000 (23:13 +0300)] 
python3: make gdbm optional

The use case is building a gpl3-free image, without having
to rely on outdated recipes from meta-gplv2 layer.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agonfs-utils: fix CVE-2019-3689
wenlin.kang@windriver.com [Sun, 28 Jun 2020 10:14:06 +0000 (03:14 -0700)] 
nfs-utils: fix CVE-2019-3689

Fix CVE-2019-3689

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agomesa: fix meson configure fix when 'dri' is excluded from PACKAGECONFIG
Yann Dirson [Thu, 28 May 2020 15:08:52 +0000 (08:08 -0700)] 
mesa: fix meson configure fix when 'dri' is excluded from PACKAGECONFIG

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 78efff8741f869647790810a3dd41459b9d9d8a6)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
3 years agoavahi: Don't advertise example services by default
Paul Barker [Sat, 23 May 2020 19:16:06 +0000 (20:16 +0100)] 
avahi: Don't advertise example services by default

The example service files are placed into /etc/avahi/services when we
run `make install` for avahi. This results in ssh and sftp-ssh services
being announced by default even if no ssh server is installed in an
image.

These example files should be moved away to another location such as
/usr/share/doc/avahi (taking inspiration from Arch Linux).

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agostrace: fix failing ptests
Alexander Kanavin [Fri, 22 May 2020 04:58:32 +0000 (12:58 +0800)] 
strace: fix failing ptests

1. They need to be run under regular user.
2. Some tests genuinely need more time than 30 seconds
3. The Makefile patch erroneously introduced a test-breaking change.

(From OE-Core rev: 3d6bf58c7080c1cacf3ed1f270ff5acf4858c790)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a5e90281ac211e912ec6bfd6873e56152ec8bd4e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agobind: fix CVE-2020-8616/7
Lee Chee Yang [Wed, 27 May 2020 09:56:38 +0000 (17:56 +0800)] 
bind: fix CVE-2020-8616/7

fix CVE-2020-8616 and CVE-2020-8617

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoicu: update SRC_URI
Alexander Kanavin [Tue, 26 May 2020 02:52:31 +0000 (04:52 +0200)] 
icu: update SRC_URI

New releases of ICU are published on github.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogst-validate: upgrade 1.16.1 -> 1.16.2
Alexander Kanavin [Tue, 26 May 2020 02:53:00 +0000 (04:53 +0200)] 
gst-validate: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-vaapi: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:59 +0000 (04:52 +0200)] 
gstreamer1.0-vaapi: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-rtsp-server: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:58 +0000 (04:52 +0200)] 
gstreamer1.0-rtsp-server: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-python: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:57 +0000 (04:52 +0200)] 
gstreamer1.0-python: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-omx: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:56 +0000 (04:52 +0200)] 
gstreamer1.0-omx: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-libav: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:55 +0000 (04:52 +0200)] 
gstreamer1.0-libav: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-plugins-ugly: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:54 +0000 (04:52 +0200)] 
gstreamer1.0-plugins-ugly: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-plugins-bad: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:53 +0000 (04:52 +0200)] 
gstreamer1.0-plugins-bad: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-plugins-good: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:52 +0000 (04:52 +0200)] 
gstreamer1.0-plugins-good: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-plugins-base: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:51 +0000 (04:52 +0200)] 
gstreamer1.0-plugins-base: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0: upgrade 1.16.1 -> 1.16.2
Anuj Mittal [Tue, 26 May 2020 02:52:50 +0000 (04:52 +0200)] 
gstreamer1.0: upgrade 1.16.1 -> 1.16.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agogstreamer1.0-python: add a patch to fix python 3.8 builds
Alexander Kanavin [Tue, 26 May 2020 02:52:49 +0000 (04:52 +0200)] 
gstreamer1.0-python: add a patch to fix python 3.8 builds

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agowireless-regdb: Upgrade 2019.06.03 -> 2020.04.29
Adrian Bunk [Fri, 15 May 2020 14:44:41 +0000 (17:44 +0300)] 
wireless-regdb: Upgrade 2019.06.03 -> 2020.04.29

(From OE-Core rev: 5b71a3f3d1bca6b52f53b97971131a6771618420)

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoglibc: CVE-2020-1752
Zhixiong Chi [Tue, 12 May 2020 08:37:24 +0000 (01:37 -0700)] 
glibc: CVE-2020-1752

Backport the CVE patch from upstream:
git://sourceware.org/git/glibc.git
commit ddc650e9b3dc916eab417ce9f79e67337b05035c

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agosstatesig: Optimise get_taskhash for hashequiv
Richard Purdie [Wed, 13 May 2020 15:24:50 +0000 (10:24 -0500)] 
sstatesig: Optimise get_taskhash for hashequiv

With hashequiv the get_taskhash function is called much more regularly
and contains expensive operations. This these don't change based upon
hash in a given build, improve the caching within the function to
reduce overhead.

(From OE-Core rev: de98cfe3cde4b8d5f4b163b5fba3f129651ef06a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
3 years agoghostscript : fix CVE-2019-10216
Lee Chee Yang [Mon, 18 May 2020 08:20:24 +0000 (16:20 +0800)] 
ghostscript : fix CVE-2019-10216

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>