]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agoscripts/gen-lockedsig-cache: Don't list paths which don't exist
Richard Purdie [Wed, 9 Oct 2019 16:06:00 +0000 (17:06 +0100)]
scripts/gen-lockedsig-cache: Don't list paths which don't exist

This avoids failures seen on the autobuilder when generating eSDKs
and release sstate copies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 9 Oct 2019 13:13:43 +0000 (14:13 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibpcap:upgrade 1.9.0 -> 1.9.1
Zang Ruochen [Mon, 7 Oct 2019 02:52:14 +0000 (10:52 +0800)]
libpcap:upgrade 1.9.0 -> 1.9.1

-libpcap/0001-pcap-usb-linux.c-add-missing-limits.h-for-musl-syste.patch
 Removed since this is included in 1.9.1.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest/imagefeatures: improve test_hypervisor_fmts
Ross Burton [Wed, 9 Oct 2019 11:00:51 +0000 (12:00 +0100)]
oeqa/selftest/imagefeatures: improve test_hypervisor_fmts

If this test fails then the output doesn't help in any meaningful way, so
improve the test to output the unparsable JSON and display unexpected output.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobluez5: add needed character encoding for ptests
Ross Burton [Tue, 8 Oct 2019 10:46:04 +0000 (11:46 +0100)]
bluez5: add needed character encoding for ptests

The test-gobject-header test suite needs UTF-16 encoding:

test_decode_header_name_ascii:
assertion failed (err == NULL):
Unicode conversion failed:
Conversion from character set ?UTF-16BE? to ?UTF-8? is not supported (g-obex-error-quark, 256)

Add gconv-utf-16 to the bluez5-ptest RDEPENDS.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogdb: Bump from 8.3 to 8.3.1
Alistair Francis [Tue, 8 Oct 2019 15:50:15 +0000 (08:50 -0700)]
gdb: Bump from 8.3 to 8.3.1

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agollvm: remove -mlongcall from CXXFLAGS for powerpc
Changqing Li [Tue, 8 Oct 2019 05:14:21 +0000 (13:14 +0800)]
llvm: remove -mlongcall from CXXFLAGS for powerpc

after gcc upgrade to 9.1.0, with this flags will make below error:
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]

remove it as workaround, after remove it, powerpc can compile successfully

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: Handle PACKAGES_DYNAMIC for perl-native
Khem Raj [Tue, 8 Oct 2019 05:06:29 +0000 (22:06 -0700)]
perl: Handle PACKAGES_DYNAMIC for perl-native

A perl module recipe extending to provide native version causes target
perl dependencies to be pulled into native build if the module recipe
has RDEPENDS_${PN} = "perl-module-XXXX" e.g. libxml-sax-base-perl
recipe.

The reason is that native bbclass empties out PACKAGES_DYNAMIC and
perl's PACKAGES_DYNAMIC_class-target is greedy enough to usurp native
modules as well.

Eventually we end up with errors like when sstate is used across
machines

* ERROR: libxml-sax-base-perl-native different signature for task do_populate_sysroot.sigdata between qemux86copy and qemuarm

Therefore, to fix this native case needs to handled specially when
re-assigning module dependencies in split_perl_packages(), where the
modules are named correctly for native case and have a single dependency
on perl-native, secondly, PACKAGES_DYNAMIC for target case needs to be
reined in to spare, -native modules, thirdly, let perl-native take over
the case for providing native modules

This will fix several sstate signature errors like above with external
perl modules providing native variants and having runtime dependencies on
modules which are provided by perl proper

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodnf.py: check busybox for case test_dnf_installroot
Kai Kang [Tue, 8 Oct 2019 07:51:02 +0000 (15:51 +0800)]
dnf.py: check busybox for case test_dnf_installroot

Check package busybox which is required by cases test_dnf_installroot
and test_dnf_installroot_usrmerge.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd.bbclass: add RMINITDIR for nativesdk builds
Trevor Gamblin [Fri, 27 Sep 2019 15:07:40 +0000 (11:07 -0400)]
systemd.bbclass: add RMINITDIR for nativesdk builds

nativesdk builds such as nativesdk-dnf are installing systemd
service files, leading bitbake to throw installed-vs-shipped
warnings, but these are not needed in nativesdk:

 WARNING: nativesdk-dnf-4.2.2-r0 do_package: QA Issue: nativesdk-dnf: Files/directories were installed but not shipped in any package:
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic.timer
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-makecache.timer
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic.service
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-makecache.service
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-notifyonly.timer
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-download.service
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-download.timer
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-notifyonly.service
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-install.timer
      /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/systemd/system/dnf-automatic-install.service
    Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
    nativesdk-dnf: 13 installed and not shipped files. [installed-vs-shipped]

Rather than have each recipe remove the files, an RMINITDIR case
for nativesdk builds should be added to systemd.bbclass.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopango: remove obsolete libtool FILES
Ross Burton [Tue, 8 Oct 2019 13:18:22 +0000 (14:18 +0100)]
pango: remove obsolete libtool FILES

We now build Pango with Meson which doesn't use libtool, so we can remove the
FILES that packages up non-existant .la files.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: fix strace/ptrace long runtime issues
Bruce Ashfield [Tue, 8 Oct 2019 14:26:29 +0000 (10:26 -0400)]
linux-yocto/5.2: fix strace/ptrace long runtime issues

Bumping SRCREVs to pickup the following kernel commit:

[
    Author: Bruce Ashfield <bruce.ashfield@gmail.com>
    Date:   Tue Oct 8 13:15:46 2019 +0000

        signal/ptrace: fix cgroup2/freezer long runtimes

        As reported in the thread: https://lkml.org/lkml/2019/10/1/789, in
        kernels with commit 76f969e8948d82 [cgroup: cgroup v2 freezer], we
        were seeing much longer runtime in strace/ptrace tests (4 minutes
        versus 4 seconds).

        The issue only manifests if CONFIG_PREEMPT is enabled, which is in
        all of the default configurations.

        As sugggested in the thread, the movement of preempt_enable_no_resched()
        until after the cgroup is frozen returns the behaviour to pre-5.2
        runtimes.

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

With this change in place, our times are back to normal:

   root@qemux86-64:~# cd /usr/lib/strace/ptest/tests
   root@qemux86-64:/usr/lib/strace/ptest/tests# time ../strace -o log -qq -esignal=none -e/clock ./printpath-umovestr>ttt

   real    0m3.909s
   user    0m0.534s
   sys     0m3.342s

This will eventually loop around via -stable, or may need future
tweaks, but it does address the immediate issue/symptom that we are
seeing, with no obvious side effects.

[YOCTO #13556]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto-rt/5.2: update to -rt9
Bruce Ashfield [Tue, 8 Oct 2019 16:01:44 +0000 (12:01 -0400)]
linux-yocto-rt/5.2: update to -rt9

Updating to 5.2-rt9. Which comprises the following fixes:

   90a5890111ca v5.2.17-rt9
   7700ef5f6438 sched: migrate disable: Protect cpus_ptr with lock
   11d09bb2607b sched: Remove dead __migrate_disabled() check
   ceb75897bca0 sched: __set_cpus_allowed_ptr: Check cpus_mask, not cpus_ptr
   70d3cef7a488 printk: devkmsg: read: Return EPIPE when the first message user-space wants has gone
   eef2411714d4 drm/i915: Drop the IRQ-off asserts
   f063808d4629 drm/i915: Don't disable interrupts for intel_engine_breadcrumbs_irq()
   d3136b34629a rcutorture: Avoid problematic critical section nesting on RT
   ded0345350a6 rcu: Use rcuc threads on PREEMPT_RT as we did
   ea804ff7a3de sched: migrate_dis/enable: Use sleeping_lock…() to annotate sleeping points
   5221cc57007f rcu: Acquire RCU lock when disabling BHs
   b05b0d20c207 posix-timers: Unlock expiry lock in the early return
   066bbfed5243 v5.2.17-rt8
   163d8462f622 v5.2.14-rt7
   41f51767f77d hrtimer: Add a missing bracket and hide `migration_base' on !SMP
   8d0056d6bd7a v5.2.14-rt6

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/sdk: improve Meson test
Ross Burton [Tue, 8 Oct 2019 11:52:01 +0000 (12:52 +0100)]
oeqa/sdk: improve Meson test

Verify that the build inside the SDK is detected as a cross compilation.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoharfbuzz: add PACKAGECONFIGs for all the optional dependencies
Ross Burton [Tue, 8 Oct 2019 11:02:21 +0000 (12:02 +0100)]
harfbuzz: add PACKAGECONFIGs for all the optional dependencies

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotoolchain-scripts: export READELF
Ross Burton [Fri, 4 Oct 2019 13:19:48 +0000 (14:19 +0100)]
toolchain-scripts: export READELF

The readelf binary is prefixed, so export READELF in the SDKs so that the
correct readelf binary can be used.

This fixes problems with the symbol extractor in Meson with multilib SDKs where
readelf can't be found correctly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolayer.conf: Update for zeus series
Richard Purdie [Tue, 8 Oct 2019 19:39:07 +0000 (20:39 +0100)]
layer.conf: Update for zeus series

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolib/oe/terminal.py: fix gnome-terminal start behavior
Trevor Gamblin [Thu, 3 Oct 2019 22:45:43 +0000 (18:45 -0400)]
lib/oe/terminal.py: fix gnome-terminal start behavior

[Bugzilla Bug 13201] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=13201

Newer versions of gnome-terminal (3.32.0 and up) are not starting
as expected for commands e.g. "bitbake -c devshell zlib". This
manifests as the instance appearing as a new tab rather than a
new window. Fix this (and maintain new window preferred behavior)
by changing the "-x" option to "--" as per the warning message,
avoiding deprecated options:

    # Option “--command” is deprecated and might be removed in a later version of gnome-terminal.
    # Use “-- ” to terminate the options and put the command line to execute after it.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoghostscript: Disable libpaper
Khem Raj [Sat, 5 Oct 2019 06:12:20 +0000 (23:12 -0700)]
ghostscript: Disable libpaper

OE does not provide libpaper recipe, and the configure check looks for
libpaper if not disabled, this causes problems especially when shared
state is built on a machine which has libpaper installed on host but the
consumer machine although running same OS, but does not have libpaper
installed, the artifact from sstate are re-used but then native binary
./obj/aux/packps fails to execute

./obj/aux/packps: error while loading shared libraries: libpaper.so.1: cannot open shared object file: No such file or directory

So either we need to provide libpaper in OE or we disable it, disabling
is best for now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowatchdog: fix PIDFile path in existing patch
Trevor Gamblin [Mon, 7 Oct 2019 17:56:20 +0000 (13:56 -0400)]
watchdog: fix PIDFile path in existing patch

systemd throws a warning about the value of PIDFile:

  systemd[1]: /usr/lib/systemd/system/watchdog.service:11: PIDFile=
    references a path below legacy directory /var/run/, updating
    /var/run/watchdog.pid → /run/watchdog.pid; please update the
    unit file accordingly.

This is actually due to patch file 0001-watchdog-remove-interdependencies-of-watchdog-and-wd.patch
setting PIDFile=/var/run/watchdog.pid. Modify PIDFile in the patch
to be correctly set to /run/watchdog.pid.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinsane: add check for perllocal.pod
Ross Burton [Fri, 4 Oct 2019 00:22:17 +0000 (01:22 +0100)]
insane: add check for perllocal.pod

perlocal.pod is an index file of locally installed modules and so shouldn't be
installed by any distribution packages.  cpan.bbclass already sets NO_PERLOCAL
to stop this file being generated by most Perl recipes, but if a recipe is using
MakeMaker directly (such as rrdtool) then they might not be doing this
correctly.

To avoid multiple packages shipping this file and then failing to install
together, add a QA test to check if this file exists and by default emit an
error if it does.

[ YOCTO #13491 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: don't install systemd-hwdb-update.service
Ross Burton [Mon, 7 Oct 2019 19:39:07 +0000 (20:39 +0100)]
systemd: don't install systemd-hwdb-update.service

This service file is designed to do first-boot initialisation of the udev hwdb
database, but the condition logic to fire it is suboptimal: it can fire if not
needed, and can also not fire if needed.  Specifically it will always fire on
first boot, even though as part of rootfs generation we build the hwdb database.
On slow machines this can take a significant amount of time, the pathological
case being qemumips where the service can time out after 90 seconds of
processing.

Other distributions have also noticed this problem (specifically, at least
Debian and Clear) and solve it by using traditional postinst scripts to generate
the hwdb (which we already do) and deleting the service file (which we don't).

Finish the fix and improve boot times across all boards by deleting the service
file.

[ YOCTO #13504 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: don't install udev.pc manually
Ross Burton [Mon, 7 Oct 2019 19:38:05 +0000 (20:38 +0100)]
systemd: don't install udev.pc manually

This is already installed by the install target to $datadir/pkgconfig, so
there's no need to install it again to $libdir/pkgconfig.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: fix cross detection
Ross Burton [Mon, 7 Oct 2019 10:11:38 +0000 (11:11 +0100)]
meson: fix cross detection

Meson 0.51 onwards detects if a build is cross by whether the host and build
machines match.  However this doesn't work in a number of cross compilation
cases: notably where host is Windows but build is Linux, but also the common
OpenEmbedded case where the host and build machine are both x86-64.

Previously we'd patched this to instead look at whether an executable wrapper is
needed: our cross files always set this to true so all cross builds would be
identified as cross.  However, this breaks build on the target as without a
cross file the early cross build detection fails as we don't yet know if an exe
wrapper is needed.

The neater solution is to simply go back to the older logic: a cross build has
cross files defined.

[ YOCTO #13571 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: update patch status
Ross Burton [Fri, 4 Oct 2019 00:22:33 +0000 (01:22 +0100)]
meson: update patch status

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: fix RDEPENDS
Ross Burton [Fri, 4 Oct 2019 00:22:10 +0000 (01:22 +0100)]
meson: fix RDEPENDS

Meson needs python3-pkg-resources to work to add to RDEPENDS.

Remove python3-core as this is automatically pulled in by python3-modules.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe.svg: Copy artwork from openembedded-classic.
Philip Balister [Thu, 3 Oct 2019 23:07:10 +0000 (19:07 -0400)]
oe.svg: Copy artwork from openembedded-classic.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa: add missing some description in devtools
Maxime Roussin-Bélanger [Wed, 2 Oct 2019 20:52:27 +0000 (16:52 -0400)]
meta: add missing some description in devtools

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: Add ppc64 to QEMU_TARGETS
Khem Raj [Thu, 3 Oct 2019 04:22:49 +0000 (21:22 -0700)]
qemu: Add ppc64 to QEMU_TARGETS

helps with qemuppc target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: Update to latest
Khem Raj [Thu, 3 Oct 2019 04:22:48 +0000 (21:22 -0700)]
musl: Update to latest

Drop upstream'ed patch
Fix libgcc build with musl

Detailed ChangeLog [1]

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1f0e9f9cc2e3fa354f94e18b3b362de5f1ec7272..2c2477da9a553c0b9b2fa18073a5dcdbe6d395af

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic/direct: Partition numbering is broken for MBR primary partition #4
Michael Cooper [Thu, 3 Oct 2019 15:36:25 +0000 (18:36 +0300)]
wic/direct: Partition numbering is broken for MBR primary partition #4

When wks describes extra partitions that aren't in the partition
table (e.g. boot loader) and exactly four primary MBR partitions, the
last partition gets added to fstab as partition #5 instead of #4.

[YOCTO #13560]

Signed-off-by: Michael Cooper <michaelcooper81@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool/standard.py: Not filtering devtool workspace for devtool finish
Jaewon Lee [Fri, 20 Sep 2019 00:13:29 +0000 (17:13 -0700)]
devtool/standard.py: Not filtering devtool workspace for devtool finish

All devtool commands right now are filtering out the devtool workspace
bbappends in build/workspace/appends when calling parse_recipe. While
this may make sense for devtool add and modify, we need devtool finish
to include those appends.

A specific breakage that is caused because devtool finish filters devtool
appends is the cmake/cml1 flow where a file is created in the WORKDIR
that finish needs access to, to commit those files. Particularly for
git packages with SRCPV in PV, SRCPV is only changed to 999 when using
external source, hence when creating the cfg or cmake config files using
for instance bitbake -c diffconfig, these files are created in the
git999 workdir correctly (as in the devtool bbapends, we are inheriting
externalsrc class). But when devtool finish is run, the devtool appends
are not parsed, hence SRCPV is not changed to 999 and devtool is looking
for the fragment files in the wrong WORKDIR.

Changing the parse_recipe call just in devtool finish to not filter out
the devtool workspace.

Fixes [YOCTO #13533]

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-devicetree.bbclass: add missing backslash
Martin Jansa [Wed, 11 Sep 2019 15:18:00 +0000 (15:18 +0000)]
kernel-devicetree.bbclass: add missing backslash

* in oe-core commit 1860d9d3c62e2e94cd68a809385873ffd8270b6d I've accidentally
  removed the backshash here

Reported-By: "Hilsdorf, Jan (LAWO)" <Jan.Hilsdorf@lawo.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoethtool, libcap: fix upstream version check
Alexander Kanavin [Wed, 2 Oct 2019 12:00:27 +0000 (14:00 +0200)]
ethtool, libcap: fix upstream version check

The default URI returns a gzip-compressed index page
which browsers can auto-detect, but we can't.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agouninative: Update to 2.7 release
Michael Halstead [Mon, 7 Oct 2019 16:47:57 +0000 (09:47 -0700)]
uninative: Update to 2.7 release

The 2.7 release updates glibc to version 2.30. Recently added to openSUSE
Tumbleweed and needed for Fedora Core 31.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorootfs-postcommands: Avoid use of an hard-coded value uninative-2.7
Alessio Igor Bogani [Wed, 2 Oct 2019 06:30:25 +0000 (08:30 +0200)]
rootfs-postcommands: Avoid use of an hard-coded value

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosanity.conf: Bump minimum bitbake version
Richard Purdie [Wed, 2 Oct 2019 14:00:18 +0000 (15:00 +0100)]
sanity.conf: Bump minimum bitbake version

We need SignatureGeneratorUniHashMixIn from newer bitbake so bump the minimum
version.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobase: Improve module import error message
Richard Purdie [Wed, 2 Oct 2019 13:59:18 +0000 (14:59 +0100)]
base: Improve module import error message

Turn:

ERROR: Unable to parse Var <OE_IMPORTED[:=]>
Traceback (most recent call last):
  File "Var <OE_IMPORTED[:=]>", line 1, in <module>
  File "/media/build1/poky/meta/classes/base.bbclass", line 35, in oe_import(d=<bb.data_smart.DataSmart object at 0x7f1d941ad208>):
         for toimport in oe.data.typed_value("OE_IMPORTS", d):
    >        imported = __import__(toimport)
             inject(toimport.split(".", 1)[0], imported)
  File "/media/build1/poky/meta/lib/oe/sstatesig.py", line 267, in <module>:

    >class SignatureGeneratorOEEquivHash(SignatureGeneratorOEBasicHashMixIn, bb.siggen.SignatureGeneratorUniHashMixIn, bb.siggen.SignatureGeneratorBasicHash):
         name = "OEEquivHash"
bb.data_smart.ExpansionError: Failure expanding variable OE_IMPORTED[:=], expression was ${@oe_import(d)} which triggered exception AttributeError: module 'bb.siggen' has no attribute 'SignatureGeneratorUniHashMixIn'

into:
ERROR: Error importing OE modules: module 'bb.siggen' has no attribute 'SignatureGeneratorUniHashMixIn'

which can then trigger a version mismatch error message.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackagegroup: fix a comment regarding PACKAGE_ARCH
André Draszik [Tue, 1 Oct 2019 15:57:28 +0000 (16:57 +0100)]
packagegroup: fix a comment regarding PACKAGE_ARCH

packagegroups whose dependencies are affected by MACHINE_FEATURES
need to be marked as MACHINE_ARCH *before* inheriting the
packagegroup class, not after.

This has changed in commit 9c826962ec8f
("packagegroup: Make allarch inherit conditional"),
commit 4f3f34deafe4 in poky but the comment here
wasn't updated at the time.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobash-completion: add image feature
Joe Slater [Tue, 1 Oct 2019 21:36:20 +0000 (14:36 -0700)]
bash-completion: add image feature

Create bash-completion-pkgs image feature to load *-bash-completion packages
into an image.  The packages are created by the bash-completion
bbclass but are currently never loaded.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoicecc: Don't use icecc when INHIBIT_DEFAULT_DEPS is set
Douglas Royds [Wed, 2 Oct 2019 05:02:46 +0000 (18:02 +1300)]
icecc: Don't use icecc when INHIBIT_DEFAULT_DEPS is set

We don't have a compiler, so no icecc.
Silences a spew of warnings of the form:

    do_configure: Cannot use icecc: could not get ICECC_CC or ICECC_CXX

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Expose resolv-conf alternative only when resolved is built
Alexandre Bard [Wed, 2 Oct 2019 12:12:22 +0000 (12:12 +0000)]
systemd: Expose resolv-conf alternative only when resolved is built

When systemd is built without internal resolver, it does not make
sense to expose it as a resolv-conf alternative and can even break
images where this alternative would be chosen, because of an
invalid symlink.

Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils: drop UPSTREAM_VERSION_UNKNOWN
Alexander Kanavin [Wed, 2 Oct 2019 12:00:26 +0000 (14:00 +0200)]
binutils: drop UPSTREAM_VERSION_UNKNOWN

As there is now a new version of binutils,
upstream version check works again.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogen-lockedsig-cache: Replace glob lookup with hash to filename lookup
Konrad Scherer [Fri, 27 Sep 2019 18:56:42 +0000 (14:56 -0400)]
gen-lockedsig-cache: Replace glob lookup with hash to filename lookup

Using the glob function to map signatures to sstate files is very slow
when the sstate is large and accessed over nfs. The lookup now only
loads the necessary prefixes and doesn't use glob as all.

Unfortunately I don't have access to the systems where the performance
isse was noticed and on my test system the glob is fast enough that
the performance numbers aren't useful. I could verify that file list
returned by the new code is the same.

[YOCTO #13539]

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/reproducible_build: Create SDE destination
Joshua Watt [Fri, 27 Sep 2019 18:45:26 +0000 (13:45 -0500)]
classes/reproducible_build: Create SDE destination

Creates the source data epoch file destination directory when restoring
from sstate

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocore-image-sato-sdk-ptest: Remove valgrind ptests for riscv
Khem Raj [Sat, 28 Sep 2019 23:16:16 +0000 (16:16 -0700)]
core-image-sato-sdk-ptest: Remove valgrind ptests for riscv

valgrind is not yet ported to riscv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agolocal.conf.sample: Add Hash Equivalence
Joshua Watt [Tue, 1 Oct 2019 22:09:51 +0000 (15:09 -0700)]
local.conf.sample: Add Hash Equivalence

Updates the local.conf sample file to reference the variables required
to enable a local hash equivalence server.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-ust: update patch Signed-off-by
Ross Burton [Mon, 30 Sep 2019 11:10:16 +0000 (12:10 +0100)]
lttng-ust: update patch Signed-off-by

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoruby: fix non-IPv6 support
André Draszik [Tue, 1 Oct 2019 09:54:51 +0000 (10:54 +0100)]
ruby: fix non-IPv6 support

When IPv6 support is disabled, this recipe mis-configures
ruby so that it end up non-working:
--enable-wide-getaddrinfo instructs ruby to re-implement
the standard getaddinfo(), but IPv6 support is still
automatically detected via ext/socket/extconf.rb
independently of that flag.

To re-implement getaddrinfo(), ruby uses the obsolete
getipnodebyaddr() and getipnodebyname() functions - i.e.
according to the man-page, glibc provided those only in
glibc 2.1.91-95; and of course compilation fails. [1]

Switch to ruby's standard --enable-ipv6= configure
options to make the build work without warnings, and
ruby work at runtime as well.

[1] Compilation and linking actually succeed, albeit with
a warning regarding implicit declaration / unresolved
symbols. The error is only obvious at runtime due to the
unresolved symbols...

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoruby: configure mis-detects isnan/isinf on musl
André Draszik [Tue, 1 Oct 2019 09:54:50 +0000 (10:54 +0100)]
ruby: configure mis-detects isnan/isinf on musl

The configure script does not detect isnan/isinf as macros
as is the case in musl:
    checking for isinf... no
    checking for isnan... no

Backport an upstream patch from 2.7.0-preview1 to address this:
    checking whether isinf is declared... yes
    checking whether isnan is declared... yes

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoruby: drop long-merged CVE patches
André Draszik [Tue, 1 Oct 2019 09:54:49 +0000 (10:54 +0100)]
ruby: drop long-merged CVE patches

The CVE patches here address the original problem in
a different way to how upstream solved it, and are
superfluous.

Ruby updated to Onigmo v6.1.3+669ac999761 before its
v2.5.0 release, and both CVEs were fixed before Onigmo
v6.1.3:
    https://github.com/k-takata/Onigmo/releases/tag/Onigmo-6.1.3
    https://github.com/k-takata/Onigmo/commits/Onigmo-6.1.3
        https://github.com/k-takata/Onigmo/commit/40945546578004bf40e6f884834bcad4054c70f7
        https://github.com/k-takata/Onigmo/commit/783b7ef491e1422e4be7407ccc3e4305e5013507

Because the issues were fixed differently here and
in Ruby (Onigmo), patch never complained about
duplicatation during recipe updates.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoopkg: remove redundant systemd inherit
Ross Burton [Tue, 24 Sep 2019 16:05:38 +0000 (17:05 +0100)]
opkg: remove redundant systemd inherit

The service file was removed in oe-core 23dcf7ea but the inherit was not.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoopkg: remove pathfinder PACKAGECONFIG option
Trevor Gamblin [Mon, 30 Sep 2019 19:02:32 +0000 (15:02 -0400)]
opkg: remove pathfinder PACKAGECONFIG option

pathfinder has no recipe and its last update was in 2013
(see http://freshmeat.sourceforge.net/projects/pathfinder),
so it should be removed from the list of PACKAGECONFIG options
for opkg. --disable-pathfinder is added to EXTRA_OECONF for
good measure.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoltp: Fix hang of cve test cases
He Zhe [Mon, 30 Sep 2019 02:38:01 +0000 (10:38 +0800)]
ltp: Fix hang of cve test cases

Backport a patch to the fix possible hang caused by the case of CVE-2017-17052.

CVE: CVE-2017-17052

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomusl: Fix __riscv_mc* containers to match glibc
Khem Raj [Sat, 28 Sep 2019 23:16:17 +0000 (16:16 -0700)]
musl: Fix __riscv_mc* containers to match glibc

Fixes packages like gdb compile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agomesa: Add freedreno PACKAGECONFIG option
Otavio Salvador [Sat, 28 Sep 2019 22:41:50 +0000 (19:41 -0300)]
mesa: Add freedreno PACKAGECONFIG option

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agobluez5: update patch to fix do_patch error when PATCHTOOL = "patch".
Lei Maohui [Mon, 30 Sep 2019 09:57:21 +0000 (17:57 +0800)]
bluez5: update patch to fix do_patch error when PATCHTOOL = "patch".

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopango: fix the failing testiter test case
Ross Burton [Fri, 27 Sep 2019 13:39:26 +0000 (14:39 +0100)]
pango: fix the failing testiter test case

The testiter test case fails if libthai support isn't enabled because it
execises codepaths that need libthai to be correct.  Backport a patch to skip
this test if libthai isn't enabled.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython3: move runpy to core
Ross Burton [Wed, 25 Sep 2019 15:54:13 +0000 (16:54 +0100)]
python3: move runpy to core

The runpy module is used to implement 'python3 -m foo', so move it to
python3-core as it's an essential part of the CLI.

Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agotiff: fix CVE-2019-14973
Trevor Gamblin [Fri, 20 Sep 2019 18:25:11 +0000 (14:25 -0400)]
tiff: fix CVE-2019-14973

CVE reference: https://nvd.nist.gov/vuln/detail/CVE-2019-14973
Upstream merge: https://gitlab.com/libtiff/libtiff/commit/2218055c

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoinitramfs-framework: support PARTLABEL option
Diego Rondini [Thu, 19 Sep 2019 07:45:09 +0000 (09:45 +0200)]
initramfs-framework: support PARTLABEL option

Since commit (kernel >= 4.20):
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f027c34d844013d9d6c902af8fa01a82d6e5073d
specifying rootfs by PARTLABEL is supported. This commit adds support to
specify root by GPT partition label.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agopython: add tk-lib as runtime dependency for python-tkinter
Yi Zhao [Thu, 19 Sep 2019 07:44:11 +0000 (15:44 +0800)]
python: add tk-lib as runtime dependency for python-tkinter

Fixes:
ERROR: python-2.7.16-r0 do_package_qa: QA Issue:
/usr/lib/python2.7/lib-dynload/_tkinter.so contained in package
python-tkinter requires libtk8.6.so, but no providers found in
RDEPENDS_python-tkinter? [file-rdeps]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoshadow: use relaxed usernames for all
Li Zhou [Thu, 19 Sep 2019 06:15:20 +0000 (14:15 +0800)]
shadow: use relaxed usernames for all

The previous commit <shadow: use relaxed usernames> works only for
target. When test with configuration:
INHERIT += 'extrausers'
EXTRA_USERS_PARAMS += "useradd -p '' aBcD; "
and run "bitbake core-image-minimal", error occurs:
NOTE: core-image-minimal: Performing useradd with [
-R .../build/tmp-glibc/work/qemux86_64-wrs-linux/core-image-minimal/1.0-r0/rootfs -p '' aBcD]
useradd: invalid user name 'aBcD'

Here move the patch for using relaxed usernames from class_target to
the source code for all.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agoffmpeg: enable more verbose build logs
Andre McCurdy [Mon, 16 Sep 2019 19:24:26 +0000 (12:24 -0700)]
ffmpeg: enable more verbose build logs

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
5 years agosystemd: fix NFS regression
Chen Qi [Fri, 27 Sep 2019 06:42:51 +0000 (14:42 +0800)]
systemd: fix NFS regression

Currently systemd cannot boot correctly on NFS. This is because
the code uses readdir which returns DT_UNKNOWN instead of DT_LNK
on NFS. So consider DT_UNKNOWN to fix this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agounzip: Fix CVE-2019-13232
Dan Tran [Thu, 26 Sep 2019 23:11:13 +0000 (23:11 +0000)]
unzip: Fix CVE-2019-13232

Signed-off-by: Dan Tran <dantran@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolighttpd: remove fam as a PACKAGECONFIG option
Trevor Gamblin [Fri, 27 Sep 2019 01:17:53 +0000 (21:17 -0400)]
lighttpd: remove fam as a PACKAGECONFIG option

lighttpd builds fail if "fam" (and therefore gamin) is enabled.

In conf/local.conf:

    CORE_IMAGE_EXTRA_INSTALL += "lighttpd"
    PACKAGECONFIG_append_pn-lighttpd = " fam"

bitbake error:

    ERROR: Nothing PROVIDES 'gamin' (but /yow-lpggp31/tgamblin/oe-core.git/meta/recipes-extended/lighttpd/lighttpd_1.4.54.bb DEPENDS on or otherwise requires it)
    NOTE: Runtime target 'lighttpd' is unbuildable, removing...
    Missing or unbuildable dependency chain was: ['lighttpd', 'gamin']
    ERROR: Required build target 'core-image-minimal' has no buildable providers.
    Missing or unbuildable dependency chain was: ['core-image-minimal', 'lighttpd', 'gamin']

Since gamin hasn't been maintained for several years, this should
be removed from the list of lighttpd PACKAGECONFIG options.
--without-fam is hard-coded in EXTRA_OECONF for good measure.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackagegroups: All groups are not allarch
Khem Raj [Thu, 26 Sep 2019 22:51:10 +0000 (15:51 -0700)]
packagegroups: All groups are not allarch

Some of the packagegroups violate the allarch policy therefore the ones
which do so, should be marked as TUNE specific

Fixes QA errors
packagegroup-self-hosted-1.0: Package version for package packagegroup-self-hosted-graphics went backwards which would break package feeds from (0:1.0-r13.12 to 0:1.0-r13.9) [version-going-backwards]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostrace: Upgrade to 5.3
Khem Raj [Thu, 26 Sep 2019 21:56:42 +0000 (14:56 -0700)]
strace: Upgrade to 5.3

Detailed features are here [1]

[1] https://github.com/strace/strace/releases/tag/v5.3

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-ust: Fix for --enable-python-agent
Robert Yang [Fri, 27 Sep 2019 11:09:17 +0000 (19:09 +0800)]
lttng-ust: Fix for --enable-python-agent

Fixed:
PACKAGECONFIG_append_pn-lttng-ust = ' python3-agent'

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake lttng-ust
ERROR: lttng-ust-2_2.10.4-r0 do_package: QA Issue: lttng-ust: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/python3.7
  /usr/lib/python3.7/site-packages
  /usr/lib/python3.7/site-packages/lttngust-2.10.4-py3.7.egg-info

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolib/oe/lsb: Make sure the distro ID is always lowercased
Peter Kjellerstedt [Fri, 27 Sep 2019 10:33:52 +0000 (12:33 +0200)]
lib/oe/lsb: Make sure the distro ID is always lowercased

In commit 8689e561 (lib/oe/lsb: attempt to ensure consistent distro id
regardless of source), the distro ID returned by
oe.lsb.distro_identifier() was lowercased, but only if a release
version is also present.

This changes the code to always lowercase the distro ID, including the
default distro ID "unknown", which is used if no other ID can be
identified.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoapr: Check for libtoolize rather than libtool
Robert Yang [Fri, 27 Sep 2019 07:25:45 +0000 (15:25 +0800)]
apr: Check for libtoolize rather than libtool

Backport a patch from debian to make it check libtoolize rather than libtool.

https://sources.debian.org/data/main/a/apr/1.6.5-1/debian/patches/libtoolize_check.patch

This can also fix:
$ bitbake nativesdk-apr
buildconf: libtool not found.
           You need libtool version 1.4 or newer installed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/case.py: Encode binary data of log
Nathan Rossi [Fri, 27 Sep 2019 05:31:08 +0000 (05:31 +0000)]
oeqa/core/case.py: Encode binary data of log

Do not decode the log content into a string only to re-encode it as
binary data again. Some logs might un-intentionally contain bytes that
do not decode as utf-8, as such preserve the log file content as it was
on disk.

Handle the decoding on the resulttool side, but also handle the failure
to decode the data.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/utils/concurrencytest.py: Handle exceptions and details
Nathan Rossi [Fri, 27 Sep 2019 05:31:08 +0000 (05:31 +0000)]
oeqa/core/utils/concurrencytest.py: Handle exceptions and details

Handle the streaming of exception content with details data. The
testtools package allows both 'err' and 'details' kwargs but can only
pass one of them to the parent.

To handle the passing of exception traceback and details data at the
same time, encode the traceback into the details object and remove the
'err' arg from the add* result call. This encodes the traceback similar
to how 'err' is handled without any details object. Decoding is already
done by testtools when the traceback is encoded in the details object.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopopulate_sdk_ext: Fix for hash equiv
Richard Purdie [Fri, 27 Sep 2019 12:12:17 +0000 (13:12 +0100)]
populate_sdk_ext: Fix for hash equiv

Write out the hash equiv cache file into any eSDK so that it doesn't rely
on having to call the hash server for the basic data requests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolib/sstatesig: Fix class inheritance problems
Richard Purdie [Thu, 26 Sep 2019 13:11:30 +0000 (14:11 +0100)]
lib/sstatesig: Fix class inheritance problems

The locked sigs class needs to be inherited after the hashequiv mixin so
that get_unihash can correctly wrap the underlying hashequiv function.

To do this turn the locked sigs class into a second mixin, then the order
can be correctly handled. Tweak the get/set_taskdata to match.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest/signing: Fix for hash equivlance server
Richard Purdie [Tue, 24 Sep 2019 17:17:22 +0000 (18:17 +0100)]
oeqa/selftest/signing: Fix for hash equivlance server

There were two issues with the test one is that an equivalent hash
could come from the server meaning the signature didn't change when it
should. A uuid string is injected to ensure this does not happen.

If there were multiple warnings the test would also fail as only the
first is prefixed with WARNING. Tweak the string to avoid that failure
mode.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstatesig: Fix hash equivlanency locked signature issues
Richard Purdie [Thu, 19 Sep 2019 21:41:46 +0000 (22:41 +0100)]
sstatesig: Fix hash equivlanency locked signature issues

Using locked signatures with the hash equivalency server ran into
problems. We need to:

a) Ensure the lockedhashes data object is passed from the core to
   any individual tasks using the get/set_taskdata methods

b) Return a locked singature instead of a unihash

c) Write the unihash being used to locked signature lists rather than
   the calculated taskhash

d) Skip warnings of hash mismatch if the hash is a unihash

These changes fix esdk builds (which use locked sigs) when a hash equivalence
server is in use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel.fitimage.bbclass: remove ramdisk_ctype
Heiko Schocher [Fri, 20 Sep 2019 04:48:26 +0000 (06:48 +0200)]
kernel.fitimage.bbclass: remove ramdisk_ctype

set in the ramdisk node the compression property
always to "none", as U-Boot nowadays since commit:

b1307f884a91 ("fit: Support compression for non-kernel components (e.g. FDT)")

decompress non kernel components. Setting compression
to the used comression algorithm now, will end in
fail of your kernel boot with the ramdisk.

This issue is fixed since commit:

bddd98573465 ("fit: Do not automatically decompress ramdisk images")

which now prints a warning in U-Boot, instead of decompressing
the ramdisk, but we should setup compression property correct.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-pip: ensure pickle is installed
Trevor Gamblin [Fri, 20 Sep 2019 17:02:08 +0000 (13:02 -0400)]
python3-pip: ensure pickle is installed

pip3 depends on pickle, so add python3-pickle to RDEPENDS.
Without it, errors such as the following occur:

>>> import pip._internal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.7/site-packages/pip/internal/init_.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib64/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib64/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib64/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 29, in <module>
from pip._internal.utils.ui import BAR_TYPES
File "/usr/lib64/python3.7/site-packages/pip/_internal/utils/ui.py", line 16, in <module>
from pip._internal.utils.logging import get_indentation
File "/usr/lib64/python3.7/site-packages/pip/_internal/utils/logging.py", line 6, in <module>
import logging.handlers
File "/usr/lib64/python3.7/logging/handlers.py", line 26, in <module>
import logging, socket, os, pickle, struct, time, re
ModuleNotFoundError: No module named 'pickle'

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agojson-c: use GitHub for upstream release checking
Ross Burton [Fri, 20 Sep 2019 12:03:37 +0000 (13:03 +0100)]
json-c: use GitHub for upstream release checking

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokexec-tools: fix arm kexec failure for __NR_kexec_file_load
Wang Quanyang [Mon, 23 Sep 2019 02:26:52 +0000 (10:26 +0800)]
kexec-tools: fix arm kexec failure for __NR_kexec_file_load

Once use kexec in arm arch, it will throw out the error info as below:

Could not find a free area of memory of 0xc78e744 bytes...

This is because that kexec use kexec_file_load to load image by default
but arm doesn't support it. So add this patch to avoid use kexec_file_load
in arm platforms.

Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: update from 4.2 to 4.2.1
Randy MacLeod [Mon, 23 Sep 2019 14:01:29 +0000 (10:01 -0400)]
ffmpeg: update from 4.2 to 4.2.1

This update corresponds to 68 commits to the ffmpeg git repo.
52 of these commits are oss-fuzz bug fixes. The remainder include
improved codex handling and some rpi performance tweaks.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: Test multiconfig parsing
Joshua Watt [Mon, 23 Sep 2019 18:21:37 +0000 (13:21 -0500)]
oeqa: Test multiconfig parsing

Add a test to verify that when multiconfig conf files changed, recipes
are correctly reparsed.

[YOCTO #13541]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-subunit: ensure runtime dependencies are present
Trevor Gamblin [Mon, 23 Sep 2019 15:52:38 +0000 (11:52 -0400)]
python3-subunit: ensure runtime dependencies are present

Without access to unittest, subunit cannot be imported in python3:

    root@qemux86-64:~# python3
    Python 3.7.4 (default, Sep 20 2019, 13:38:31)
    [GCC 9.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import subunit
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.7/site-packages/subunit/__init__.py", line 123, in <module>
        import unittest
    ModuleNotFoundError: No module named 'unittest'
    >>>

Adding python3-testtools to python3-subunit's RDEPENDS fixes the
issue. This also implicitly provides the functionality found in
the python3-extras module.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool: finish: Add suppport for the --no-clean option
Peter Kjellerstedt [Fri, 20 Sep 2019 20:30:43 +0000 (22:30 +0200)]
devtool: finish: Add suppport for the --no-clean option

This works just like the already existing --no-clean option to the
`devtool reset` command.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool: finish: Keep patches ordered when updating bbappend
Niclas Svensson [Fri, 20 Sep 2019 20:30:42 +0000 (22:30 +0200)]
devtool: finish: Keep patches ordered when updating bbappend

The _get_patchset_revs() function returns the patches in an
OrderedDict to keep them ordered. However, this information was lost
when the patches were added to the bbappend file.

Signed-off-by: Niclas Svensson <niclas.svensson@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoexpect: Fix buffer overflow error when build in long path
Robert Yang [Tue, 24 Sep 2019 07:34:26 +0000 (15:34 +0800)]
expect: Fix buffer overflow error when build in long path

Fixed when built the project in a long path (len(TMPDIR) > 200):
$ bitbake dejagnu-native
[snip]
checking Tcl version 8.5 or greater... *** buffer overflow detected ***:
TOPDIR/tmp-glibc/work/x86_64-linux/dejagnu-native/1.6.2-r0/recipe-sysroot-native/usr/bin/expect terminated
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/reproducible_build: Move SDE deploy to another directory
Joshua Watt [Thu, 26 Sep 2019 17:57:51 +0000 (12:57 -0500)]
classes/reproducible_build: Move SDE deploy to another directory

The deployment of the source date epoch file had a race condition where
any task attempting to read from the file would race with creation of
the sstate archive for the do_deploy_source_date_epoch task. The
creation of the sstate archive requires moving the directory to a
temporary location, then moving it back. This means that the file
disappears for a short period of time, which will cause a failure if any
other task is running and trying to open the file to get the current
source date epoch.

The solution is to copy the source date epoch file to a separate
directory when deploying so the file never disappears. When the file is
restored from sstate, it is moved to the correct location after being
extracted.

[YOCTO #13501]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses/image-live.bbclass: Don't hardcode cpio.gz
Böszörményi Zoltán via Openembedded-core [Thu, 26 Sep 2019 09:05:32 +0000 (11:05 +0200)]
classes/image-live.bbclass: Don't hardcode cpio.gz

There's INITRAMFS_FSTYPES that can be set differently.

Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonet-tools: Fix installed-vs-shipped for nativesdk
Robert Yang [Thu, 26 Sep 2019 02:51:45 +0000 (10:51 +0800)]
net-tools: Fix installed-vs-shipped for nativesdk

Fixed:
$ bitbake nativesdk-net-tools
ERROR: nativesdk-net-tools-1.60-26-r0 do_package: QA Issue: nativesdk-net-tools: Files/directories were installed but not shipped in any package:
  /usr
  /usr/share
  /usr/share/man
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoexpect: Fix configure error for nativesdk
Robert Yang [Thu, 26 Sep 2019 02:51:43 +0000 (10:51 +0800)]
expect: Fix configure error for nativesdk

Fixed:
$ bitbake nativesdk-expect
checking for Tcl public headers... configure: error: tcl.h not found.  Please specify its location with --with-tclinclude

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Using the right rootfs size during prepare_rootfs
Alessio Igor Bogani [Thu, 26 Sep 2019 09:35:02 +0000 (11:35 +0200)]
wic: Using the right rootfs size during prepare_rootfs

The commit 8e48b4d6c4 makes wic ignores IMAGE_ROOTFS_SIZE for rootfs
size and makes it uses the computed one only. Re-add support for
IMAGE_ROOTFS_SIZE variable and compute roots size only if the former
is not defined. Moreover the size of a provided directory with
--rootfs-dir="" in the .wks file should always be computed on the fly,
else every partition will be constrained to be the same size as what
ever value was in ROOTFS_SIZE.

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosdk: Install nativesdk locales for all TCLIBC variants
Khem Raj [Thu, 26 Sep 2019 05:15:59 +0000 (22:15 -0700)]
sdk: Install nativesdk locales for all TCLIBC variants

install_locales() here is actually operating on nativesdk and only glibc
is the default library for nativesdk, since thats what most of
desktop/server distros use, therefore bailing out based on TCLIBC is not
needed here, since nativesdk-glibc would be required for all non-glibc
targetting SDKs as well.

Fixes SDK install time error

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Your system needs to support the en_US.UTF-8 locale.
ERROR: SDK preparation failed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agou-boot: add CVE patches for u-boot
Limeng [Thu, 26 Sep 2019 01:46:07 +0000 (09:46 +0800)]
u-boot: add CVE patches for u-boot

Add 9 patches to fix below CVE issues.
CVE-2019-13103
CVE-2019-13104
CVE-2019-13105
CVE-2019-13106
CVE-2019-14192
CVE-2019-14193
CVE-2019-14194
CVE-2019-14195
CVE-2019-14196
CVE-2019-14197
CVE-2019-14198
CVE-2019-14199
CVE-2019-14200
CVE-2019-14201
CVE-2019-14202
CVE-2019-14203
CVE-2019-14204

Signed-off-by: Meng Li <Meng.Li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemuriscv: Do not blacklist clang anymore
Khem Raj [Wed, 25 Sep 2019 22:04:46 +0000 (15:04 -0700)]
qemuriscv: Do not blacklist clang anymore

clang 9.x ( which is now default in meta-clang ) supports riscv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: Fix riscv64 CAS functions
Khem Raj [Wed, 25 Sep 2019 06:57:04 +0000 (23:57 -0700)]
musl: Fix riscv64 CAS functions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocases/bbtests.py: test_bitbake_g(): Check base-files rather than busybox
Robert Yang [Wed, 25 Sep 2019 03:18:34 +0000 (11:18 +0800)]
cases/bbtests.py: test_bitbake_g(): Check base-files rather than busybox

It checked whether busybox is in task-depends.dot after run "bitbake -g
core-image-minimal", but busybox is not a must for core-image-minimal since it
is configurable:

VIRTUAL-RUNTIME_base-utils = ""
VIRTUAL-RUNTIME_base-utils-syslog = ""
VIRTUAL-RUNTIME_base-utils-hwclock  =  ""
VIRTUAL-RUNTIME_login_manager = "shadow"
VIRTUAL-RUNTIME_syslog = ""

So the case may fail when busybox is not present, check
base-files which is more reliable.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: update to v5.2.17
Bruce Ashfield [Thu, 26 Sep 2019 16:54:52 +0000 (12:54 -0400)]
linux-yocto/5.2: update to v5.2.17

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

    5e408889e4af Linux 5.2.17
    12434939ba58 vfs: Fix refcounting of filenames in fs_parser
    d4911cc1f4b6 media: technisat-usb2: break out of loop at end of buffer
    19ad4c4fe19c floppy: fix usercopy direction
    d7aa8c546ab9 ovl: fix regression caused by overlapping layers detection
    52f2aba47d71 Revert "arm64: Remove unnecessary ISBs from set_{pte,pmd,pud}"
    785ca708a908 iommu/amd: Fix race in increase_address_space()
    ed52f6cf0e84 iommu/amd: Flush old domains in kdump kernel
    24962eb0edd0 keys: Fix missing null pointer check in request_key_auth_describe()
    16ed4b9b7bf7 dmaengine: rcar-dmac: Fix DMACHCLR handling if iommu is mapped
    d604a12cc6d5 dmaengine: sprd: Fix the DMA link-list configuration
    d5898d2f06fc iommu/vt-d: Remove global page flush support
    5df0a5fd4d1c x86/hyper-v: Fix overflow bug in fill_gva_list()
    4bdb9988ad38 x86/uaccess: Don't leak the AC flags into __get_user() argument evaluation
    4dabe50389c4 dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()
    9de496fe242a dmaengine: ti: dma-crossbar: Fix a memory leak bug
    4b898223a979 arm64: dts: renesas: r8a77995: draak: Fix backlight regulator name
    4ad64281e4d3 net: seeq: Fix the function used to release some memory in an error handling path
    0275857577e5 enetc: Add missing call to 'pci_free_irq_vectors()' in probe and remove functions
    d18638671b96 net: dsa: microchip: add KSZ8563 compatibility string
    05172612ab3a net: aquantia: fix out of memory condition on rx side
    95acd66ba70a net: aquantia: linkstate irq should be oneshot
    e4d1449ca4a5 net: aquantia: reapply vlan filters on up
    6a6e09b7a519 net: aquantia: fix removal of vlan 0
    b5789a160c2d tools/power turbostat: Fix CPU%C1 display value
    54f4f3b38133 tools/power turbostat: Add Ice Lake NNPI support
    8bae84e5203b tools/power turbostat: Fix Haswell Core systems
    0926ee9f5327 tools/power turbostat: fix buffer overrun
    94132aca9472 tools/power turbostat: fix file descriptor leaks
    0a1ba2cd9d62 tools/power turbostat: fix leak of file descriptor on error return path
    caab8b8b3aca tools/power x86_energy_perf_policy: Fix argument parsing
    edf8ba32bc2b tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2
    e9e492c92d8c netfilter: nf_flow_table: clear skb tstamp before xmit
    27264af16969 amd-xgbe: Fix error path in xgbe_mod_init()
    8b7bf7b1b2dd i2c: mediatek: disable zero-length transfers for mt8183
    316c15048f40 i2c: iproc: Stop advertising support of SMBUS quick cmd
    9027939cc8f7 perf/x86/amd/ibs: Fix sample bias for dispatched micro-ops
    e1efdaaa9b46 perf/x86/intel: Restrict period on Nehalem
    1ffda54f0546 i2c: designware: Synchronize IRQs when unregistering slave client
    0910434c455d sky2: Disable MSI on yet another ASUS boards (P6Xxxx)
    cd6901e723fc ibmvnic: Do not process reset during or after device removal
    3ee4ed9cd3a0 ARM: 8901/1: add a criteria for pfn_valid of arm
    eaaa11a4f8d0 RISC-V: Fix FIXMAP area corruption on RV32 systems
    22c521335522 usb: host: xhci-tegra: Set DMA mask correctly
    97b1d81abc61 libceph: don't call crypto_free_sync_skcipher() on a NULL tfm
    b8632186884a cifs: Use kzfree() to zero out the password
    8db988a98290 cifs: set domainName when a domain-key is used in multiuser
    a8bf51b5c6f5 drm/amd/powerplay: correct Vega20 dpm level related settings
    f5c6d0245f97 netfilter: conntrack: make sysctls per-namespace again
    6612f6edf1f1 kallsyms: Don't let kallsyms_lookup_size_offset() fail on retrieving the first symbol
    7c1a4283b606 NFS: remove set but not used variable 'mapping'
    de932b20ed88 NFSv2: Fix write regression
    646d295fdded NFSv2: Fix eof handling
    16986c7cf8b5 netfilter: nf_conntrack_ftp: Fix debug output
    0dec70d3c249 netfilter: xt_physdev: Fix spurious error message in physdev_mt_check
    e3813a30bd6f drm/amdgpu: fix dma_fence_wait without reference
    9b914306b0f7 NFS: Fix writepage(s) error handling to not report errors twice
    78f0f9007523 NFS: Fix spurious EIO read errors
    fa38f165c78a pNFS/flexfiles: Don't time out requests on hard mounts
    7999b21e2224 x86/apic: Fix arch_dynirq_lower_bound() bug for DT enabled machines
    c19a0d7ef095 r8152: Set memory to all 0xFFs on failed reg reads
    f1b6d7c8de4c bpf: allow narrow loads of some sk_reuseport_md fields with offset > 0
    5e0251d82954 flow_dissector: Fix potential use-after-free on BPF_PROG_DETACH
    31320b857d13 batman-adv: Only read OGM2 tvlv_len after buffer len check
    9ae47d48cd2d ARM: 8874/1: mm: only adjust sections of valid mm structures
    b77b8c17df13 drm/virtio: use virtio_max_dma_size
    5a2ffd1ffa54 drm/omap: Fix port lookup for SDI output
    fc45ccc7b85b qed: Add cleanup in qed_slowpath_start()
    304a65866fbe selftests/bpf: add config fragment BPF_JIT
    c963cd4ec138 selftests/bpf: fix test_cgroup_storage on s390
    f4a9b28782c6 xdp: unpin xdp umem pages in error path
    b484e28554d0 Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105
    b8438c08476c NFS: On fatal writeback errors, we need to call nfs_inode_remove_request()
    518c9d0158e0 NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup
    d29a04e98cdb NFSv4: Fix return value in nfs_finish_open()
    b8cb57c86f93 NFSv4: Fix return values for nfs4_file_open()
    7844dde203db netfilter: xt_nfacct: Fix alignment mismatch in xt_nfacct_match_info
    f30dade2d5d5 netfilter: nft_flow_offload: missing netlink attribute policy
    399676d85515 netfilter: ebtables: Fix argument order to ADD_COUNTER
    5b0d408d8ad6 fpga: altera-ps-spi: Fix getting of optional confd gpio
    52ba08b93fee tools: bpftool: close prog FD before exit on showing a single program
    840aec7a8b48 selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390
    99eb87b50faa s390/bpf: use 32-bit index for tail calls
    62c3bfff7d9e ARM: dts: Fix incomplete dts data for am3 and am4 mmc
    0a3d2a039339 bus: ti-sysc: Simplify cleanup upon failures in sysc_probe()
    e92814b0aae1 ARM: OMAP1: ams-delta-fiq: Fix missing irq_ack
    3d8729676adb ARM: dts: dra74x: Fix iodelay configuration for mmc3
    70af7f6d9e6a ARM: dts: am335x: Fix UARTs length
    b6858c94d535 ARM: OMAP2+: Fix omap4 errata warning on other SoCs
    71d668a95351 s390/bpf: fix lcgr instruction encoding
    f262a47d4bc9 arm64: dts: meson-g12a: add missing dwc2 phy-names
    3d3879d57e3b ARM: dts: Fix incorrect dcan register mapping for am3, am4 and dra7
    6d326307187b ARM: dts: Fix flags for gpio7
    de457d8d0f18 bus: ti-sysc: Fix using configured sysc mask value
    84b9540898a9 bus: ti-sysc: Fix handling of forced idle
    9f500d6b3df2 ARM: OMAP2+: Fix missing SYSC_HAS_RESET_STATUS for dra7 epwmss
    cff4410f5d31 ARM: dts: am57xx: Disable voltage switching for SD card
    05b57db138f3 ieee802154: hwsim: unregister hw while hwsim_subscribe_all_others fails
    b090ed1779d8 ieee802154: hwsim: Fix error handle path in hwsim_init_module
    6fc6065f5f2c nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds
    fb91d697f851 mwifiex: Fix three heap overflow at parsing element in cfg80211_ap_settings
    314a961abd99 tty/serial: atmel: reschedule TX after RX was started
    3bf0e241c813 serial: sprd: correct the wrong sequence of arguments
    3049e5125169 firmware: google: check if size is valid when decoding VPD data
    ad0ef1b06e7b KVM: coalesced_mmio: add bounds checking
    0d84424bdfcd net: dsa: Fix load order between DSA drivers and taggers
    7f4aa339581b xen-netfront: do not assume sk_buff_head list is empty in error handling
    82369aa61ec7 udp: correct reuseport selection with connected sockets
    a4cb1c43dc6c net_sched: let qdisc_put() accept NULL pointer
    81608038502a net/sched: fix race between deactivation and dequeue for NOLOCK qdisc
    8a00845c5d64 ip6_gre: fix a dst leak in ip6erspan_tunnel_xmit
    8d3dc8dfe890 net: aquantia: fix limit of vlan filters
    bd950d777e3a net: hns: fix LED configuration for marvell phy
    854c67e19e73 scripts/decode_stacktrace: match basepath using shell prefix operator, not regex
    88f16147459f powerpc/mm/radix: Use the right page size for vmemmap mapping
    badbf863ed91 nfs: disable client side deduplication
    543792290cce media: stm32-dcmi: fix irq = 0 case
    1fb6db57b831 SUNRPC: Handle connection breakages correctly in call_status()
    5d96613b372d Input: elan_i2c - remove Lenovo Legion Y7000 PnpID
    41a22481ec5d HID: wacom: generic: read HID_DG_CONTACTMAX from any feature report
    7902ff2b8c97 netfilter: nf_flow_table: set default timeout after successful insertion
    e9bc4f96c596 net: hns3: adjust hns3_uninit_phy()'s location in the hns3_client_uninit()
    32e50e282ea7 phy: renesas: rcar-gen3-usb2: Disable clearing VBUS in over-current
    262c7b193cbb media: tm6000: double free if usb disconnect while streaming
    1fc15d29540a USB: usbcore: Fix slab-out-of-bounds bug during device reset

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto/5.2: update to v5.2.16
Bruce Ashfield [Tue, 24 Sep 2019 22:00:57 +0000 (18:00 -0400)]
linux-yocto/5.2: update to v5.2.16

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

    1e2ba4a74fa7 Linux 5.2.16
    2508f833875c x86/build: Add -Wnoaddress-of-packed-member to REALMODE_CFLAGS, to silence GCC9 build warning
    8803770b85d3 rsi: fix a double free bug in rsi_91x_deinit()
    d8bcd38cb933 platform/x86: pcengines-apuv2: use KEY_RESTART for front button
    f7a15c7068f0 platform/x86: pmc_atom: Add CB4063 Beckhoff Automation board to critclk_systems DMI table
    657d4ca80d64 KVM: SVM: Fix detection of AMD Errata 1096
    54d782e7c865 kvm: nVMX: Remove unnecessary sync_roots from handle_invept
    00ab9eeb0314 modules: always page-align module section allocations
    ec93d0db91ce modules: fix compile error if don't have strict module rwx
    0a199213f586 modules: fix BUG when load module with rodata=n
    63e3de7299ba iio: adc: stm32-dfsdm: fix data type
    bb9dee6edb5a iio: adc: stm32-dfsdm: fix output resolution
    83ad11d6d7fa Revert "Bluetooth: btusb: driver to enable the usb-wakeup feature"
    7c218ebc7899 mm/z3fold.c: fix lock/unlock imbalance in z3fold_page_isolate
    1894d857ce86 mm/z3fold.c: remove z3fold_migration trylock
    ead8b4f3b2f9 drm/mediatek: mtk_drm_drv.c: Add of_node_put() before goto
    009b31923398 drm: panel-orientation-quirks: Add extra quirk table entry for GPD MicroPC
    6dbe4b80180c firmware: ti_sci: Always request response from firmware
    71f0dafe61ce crypto: talitos - HMAC SNOOP NO AFEU mode requires SW icv checking.
    456945703690 crypto: talitos - Do not modify req->cryptlen on decryption.
    dcefbf43b003 crypto: talitos - fix ECB algs ivsize
    291d9ef44614 crypto: talitos - check data blocksize in ablkcipher.
    86545794d2e5 crypto: talitos - fix CTR alg blocksize
    808a33cd37dd crypto: talitos - check AES key size
    0a7737c960e3 driver core: Fix use-after-free and double free on glue directory
    6502d1acbe63 ubifs: Correctly use tnc_next() in search_dh_cookie()
    85e398e6aa01 PCI: Always allow probing with driver_override
    f5a7b0f01b23 mtd: rawnand: mtk: Fix wrongly assigned OOB buffer pointer issue
    7b20eb930bd0 clk: rockchip: Don't yell about bad mmc phases when getting
    4111a1f2142e mt76: mt7615: Use after free in mt7615_mcu_set_bcn()
    195d154b8a71 mt76: Fix a signedness bug in mt7615_add_interface()
    76d64d6d9ed8 clk: Simplify debugfs printing and add a newline
    268311c39a7f clk: Fix debugfs clk_possible_parents for clks without parent string names
    a9258bc6e0b3 drm/meson: Add support for XBGR8888 & ABGR8888 formats
    5924bb61ac94 x86/ima: check EFI SetupMode too
    c5699cc857a0 x86/boot: Use efi_setup_data for searching RSDP on kexec-ed kernels
    2fd4aaaf615d kernel/module: Fix mem leak in module_add_modinfo_attrs
    a9ce57d57155 powerpc: Add barrier_nospec to raw_copy_in_user()
    6876bd0c34c8 x86/purgatory: Change compiler flags from -mcmodel=kernel to -mcmodel=large to fix kexec relocation errors
    cc0feeebbb3f KVM: nVMX: handle page fault in vmread
    9e8659bdca66 KVM: x86/mmu: Reintroduce fast invalidate/zap for flushing memslot
    db68c0c83a76 KVM: x86: work around leak of uninitialized stack contents
    17cd7cf4b355 KVM: s390: Do not leak kernel stack data in the KVM_S390_INTERRUPT ioctl
    0c3ffd500445 KVM: s390: kvm_s390_vm_start_migration: check dirty_bitmap before using it as target for memset()
    71661b871973 regulator: twl: voltage lists for vdd1/2 on twl4030
    803c7bbc0d5d genirq: Prevent NULL pointer dereference in resend_irqs()
    041f865f676b mt76: mt76x0e: disable 5GHz band for MT7630E
    fbf07d827d82 Revert "rt2800: enable TX_PIN_CFG_LNA_PE_ bits per band"
    868921b1f3d5 ixgbe: Prevent u8 wrapping of ITR value to something less than 10us
    c42a7b87b8d7 ixgbe: fix double clean of Tx descriptors with xdp
    076566aafd94 ipc: fix sparc64 ipc() wrapper
    b2c92cb1d141 ipc: fix semtimedop for generic 32-bit architectures
    b68833b65bf0 drm/i915: Restore relaxed padding (OCL_OOB_SUPPRES_ENABLE) for skl+
    e0e11df7f249 drm/i915: Limit MST to <= 8bpc once again
    8eb5a78c20e8 drm/lima: fix lima_gem_wait() return value
    46d1c96a1a5e mmc: tmio: Fixup runtime PM management during remove
    f5e9862fedd0 mmc: tmio: Fixup runtime PM management during probe
    e5b9762c20a3 Revert "mmc: sdhci: Remove unneeded quirk2 flag of O2 SD host controller"
    0699a10fe9ed Revert "mmc: bcm2835: Terminate timeout work synchronously"
    c554749c3f7e cgroup: freezer: fix frozen state inheritance
    4fa875f06c43 Btrfs: fix assertion failure during fsync and use of stale transaction
    09234426db8f gpio: fix line flag validation in lineevent_create
    94cd945b2d24 gpio: fix line flag validation in linehandle_create
    c54f5198f527 gpio: mockup: add missing single_release()
    06477d8e4425 gpiolib: acpi: Add gpiolib_acpi_run_edge_events_on_boot option and blacklist
    3c0bf14d186b net: sock_map, fix missing ulp check in sock hash case
    f3724b27ca29 sctp: fix the missing put_user when dumping transport thresholds
    488eefe22491 net: fixed_phy: Add forward declaration for struct gpio_desc;
    e33190acd588 ipv6: addrconf_f6i_alloc - fix non-null pointer check to !IS_ERR()
    e854b3329bd9 net-ipv6: fix excessive RTF_ADDRCONF flag on ::1/128 local route (and others)
    eddd5617db91 tun: fix use-after-free when register netdev failed
    48da78093aa1 tipc: add NULL pointer check before calling kfree_rcu
    055102e1467f tcp: fix tcp_ecn_withdraw_cwr() to clear TCP_ECN_QUEUE_CWR
    434e93757f3f sctp: use transport pf_retrans in sctp_do_8_2_transport_strike
    91c1460ecbf5 sctp: Fix the link time qualifier of 'sctp_ctrlsock_exit()'
    af241597df3e sch_hhf: ensure quantum and hhf_non_hh_weight are non-zero
    c36f33d49df7 net: sched: fix reordering issues
    69b37604889b net: phylink: Fix flow control resolution
    92984818ff8c net: gso: Fix skb_segment splat when splitting gso_size mangled skb having linear-headed frag_list
    f8f235f9a5dc net: Fix null de-reference of device refcount
    c012f28d7a73 ixgbevf: Fix secpath usage for IPsec Tx offload
    dc0921f74221 ixgbe: Fix secpath usage for IPsec TX offload.
    3d970bbd8f0d isdn/capi: check message length in capi_write()
    2e898bf96a7d ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()'
    4702849bf8af cdc_ether: fix rndis support for Mediatek based smartphones
    7b2687fe1142 bridge/mdb: remove wrong use of NLM_F_MULTI
    6e282ba6ff6b Linux 5.2.15
    e86a7794620a vhost: make sure log_num < in_num
    f6b72d0920f4 Btrfs: fix unwritten extent buffers and hangs on future writeback attempts
    051d85e1b2d3 drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT
    0b50b2beafe7 drm/i915: Add whitelist workarounds for ICL
    a22fc7cea6af drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT
    abb4c8b10fc7 drm/i915: Support whitelist workarounds on all engines
    d05cba91e1de drm/i915: Support flags in whitlist WAs
    4b1bac380cdc virtio/s390: fix race on airq_areas[]
    8db034bb05b1 usb: chipidea: imx: fix EPROBE_DEFER support during driver probe
    e7bc0c0aeb77 usb: chipidea: imx: add imx7ulp support
    cb77c43fa0bb mmc: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming
    c0e2dbd7d707 drm/i915: Make sure cdclk is high enough for DP audio on VLV/CHV
    07c37f641842 drm/i915: Disable SAMPLER_STATE prefetching on all Gen11 steppings.
    c31f3dc4e075 IB/hfi1: Unreserve a flushed OPFN request
    bef755d188f5 IB/{rdmavt, qib, hfi1}: Convert to new completion API
    9d3d11319bd2 IB/rdmavt: Add new completion inline
    16d2d609ff0f bcache: fix race in btree_flush_write()
    913855877794 bcache: add comments for mutex_lock(&b->write_lock)
    b622ba2bcd4e bcache: only clear BTREE_NODE_dirty bit when it is set
    bb70b2729b7a batman-adv: Only read OGM tvlv_len after buffer len check
    e2b3974bc4ab batman-adv: fix uninit-value in batadv_netlink_get_ifindex()
    398f2c8277f2 powerpc/tm: Fix restoring FP/VMX facility incorrectly on interrupts
    7f20c56c0b7a powerpc/tm: Fix FP/VMX unavailable exceptions inside a transaction
    12c6a7776680 powerpc/64e: Drop stale call to smp_processor_id() which hangs SMP startup
    6890ea590cb7 vhost/test: fix build for vhost test - again
    478e21d516d2 vhost/test: fix build for vhost test
    9844e52dd977 drm/nouveau/sec2/gp102: add missing MODULE_FIRMWAREs
    ee116fa63272 drm/vmwgfx: Fix double free in vmw_recv_msg()
    1f570399e490 sched/fair: Don't assign runtime for throttled cfs_rq
    f43cf5ff54a2 ALSA: hda/realtek - Fix the problem of two front mics on a ThinkCentre
    b305db85076a ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL
    6157216e86f3 ALSA: hda/realtek - Add quirk for HP Pavilion 15
    dfdf3c29f72a ALSA: hda/realtek - Fix overridden device-specific initialization
    1a413713ee16 ALSA: hda - Fix potential endless loop at applying quirks
    d89e8b4684f1 gpio: pca953x: use pca953x_read_regs instead of regmap_bulk_read
    b3a1644a19a7 gpio: pca953x: correct type of reg_direction
    997fee5473ce Linux 5.2.14
    0ccc5c227f88 Revert "mmc: core: do not retry CMD6 in __mmc_switch()"
    317a66e24b46 x86/boot: Preserve boot_params.secure_boot from sanitizing
    1a7fd193e9d8 Revert "x86/apic: Include the LDR when clearing out APIC registers"
    ae96cf9e1e31 libceph: allow ceph_buffer_put() to receive a NULL ceph_buffer
    8d50b82ea79b x86/boot/compressed/64: Fix missing initialization in find_trampoline_placement()
    852a051ef22b KVM: arm/arm64: VGIC: Properly initialise private IRQ affinity
    44dfa46aaf7c gpio: Fix irqchip initialization order
    157ec0a3f834 RDMA/bnxt_re: Fix stack-out-of-bounds in bnxt_qplib_rcfw_send_message
    cf9ec2e9056c afs: use correct afs_call_type in yfs_fs_store_opaque_acl2
    3f6685835889 afs: Fix possible oops in afs_lookup trace event
    c231241d83b9 afs: Fix leak in afs_lookup_cell_rcu()
    7f134d569e1a KVM: arm/arm64: Only skip MMIO insn once
    39c62cdaa2d4 ceph: fix buffer free while holding i_ceph_lock in fill_inode()
    c4e28be29a45 ceph: fix buffer free while holding i_ceph_lock in __ceph_build_xattrs_blob()
    f41cd559f1f3 ceph: fix buffer free while holding i_ceph_lock in __ceph_setxattr()
    3ebab463e9f4 drm/amdgpu: prevent memory leaks in AMDGPU_CS ioctl
    23da8e9ef69b selftests/kvm: make platform_info_test pass on AMD
    666a41848d72 selftests: kvm: fix state save/load on processors without XSAVE
    dd53d830bb30 infiniband: hfi1: fix memory leaks
    bcb3211656fa infiniband: hfi1: fix a memory leak bug
    1e93149659cc IB/mlx4: Fix memory leaks
    fc38afc04343 RDMA/cma: fix null-ptr-deref Read in cma_cleanup
    d61a256fece2 nvme: Fix cntlid validation when not using NVMEoF
    e1031b6c8100 nvme-multipath: fix possible I/O hang when paths are updated
    6950d5b64a15 Tools: hv: kvp: eliminate 'may be used uninitialized' warning
    195b5aa923ec Input: hyperv-keyboard: Use in-place iterator API in the channel callback
    31b60e5c604c scsi: lpfc: Mitigate high memory pre-allocation by SCSI-MQ
    aa4bc3a35253 x86/boot/compressed/64: Fix boot on machines with broken E820 table
    3091859b0b5e HID: cp2112: prevent sleeping function called from invalid context
    e8fd4f47b224 HID: intel-ish-hid: ipc: add EHL device id
    d58500c6fcb4 kprobes: Fix potential deadlock in kprobe_optimizer()
    9ad89d579c01 sched/core: Schedule new worker even if PI-blocked
    086ddc5e7172 ravb: Fix use-after-free ravb_tstamp_skb
    37f12b895446 wimax/i2400m: fix a memory leak bug
    461f5b613b4d net: cavium: fix driver name
    1915dd1826be ibmvnic: Unmap DMA address of TX descriptor buffers after use
    895a07a5a03a net: kalmia: fix memory leaks
    241a735f5f68 cx82310_eth: fix a memory leak bug
    e8f8411a8def vfs: fix page locking deadlocks when deduping files
    a4234e27ed05 lan78xx: Fix memory leaks
    96ece5798677 clk: Fix potential NULL dereference in clk_fetch_parent_index()
    a6cb8dd3664e clk: Fix falling back to legacy parent string matching
    7da16490e5a5 net: myri10ge: fix memory leaks
    0f1c537cf09c liquidio: add cleanup in octeon_setup_iq()
    101743ca0284 selftests: kvm: fix vmx_set_nested_state_test
    5aac82ac9c7c selftests: kvm: provide common function to enable eVMCS
    926a6e9efce9 selftests: kvm: do not try running the VM in vmx_set_nested_state_test
    bf31a46ead59 cxgb4: fix a memory leak bug
    46bf670f4455 scsi: target: tcmu: avoid use-after-free after command timeout
    8e639df33729 scsi: qla2xxx: Fix gnl.l memory leak on adapter init failure
    6fe444e60cda drm/mediatek: set DMA max segment size
    1e12afb4c60a drm/mediatek: use correct device to import PRIME buffers
    2b4a29f04533 netfilter: nft_flow_offload: skip tcp rst and fin packets
    1dcb0d4eaf85 gpio: Fix build error of function redefinition
    f6bd80bc6223 ibmveth: Convert multicast list size for little-endian system
    d45c33d890bc s390/qeth: serialize cmd reply with concurrent timeout
    b12691c24ea9 Bluetooth: hci_qca: Send VS pre shutdown command.
    113d5ca74866 Bluetooth: btqca: Add a short delay before downloading the NVM
    ab0f749707ea net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx
    37a0be861375 hv_netvsc: Fix a warning of suspicious RCU usage
    936315c0c94e ixgbe: fix possible deadlock in ixgbe_service_task()
    1dc961de7733 tools: bpftool: fix error message (prog -> object)
    ea3c243ce799 netfilter: nf_flow_table: teardown flow timeout race
    96a517d0ba5f netfilter: nf_flow_table: conntrack picks up expired flows
    586f00143091 netfilter: nf_tables: use-after-free in failing rule with bound set
    830b5c3760ff net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context
    60a4f2b2b6b8 clk: samsung: exynos542x: Move MSCL subsystem clocks to its sub-CMU
    c65a2b20a934 clk: samsung: exynos5800: Move MAU subsystem clocks to MAU sub-CMU
    f7bd5e9fe13f clk: samsung: Change signature of exynos5_subcmus_init() function
    8f37477964e9 net/mlx5e: Fix error flow of CQE recovery on tx reporter
    701b89908ba1 netfilter: nf_flow_table: fix offload for flows that are subject to xfrm
    b8a132a4c4b6 libbpf: set BTF FD for prog only when there is supported .BTF.ext data
    a65fb2895af4 libbpf: fix erroneous multi-closing of BTF FD
    fa689968da49 batman-adv: Fix netlink dumping of all mcast_flags buckets
    a4c88340b3ea net/rds: Fix info leak in rds6_inc_info_copy()
    fdd2bc365fc6 net/sched: pfifo_fast: fix wrong dereference when qdisc is reset
    e9cc0513248f net/sched: pfifo_fast: fix wrong dereference in pfifo_fast_enqueue
    0b003edac850 net: dsa: tag_8021q: Future-proof the reserved fields in the custom VID
    c7f05c1d9bf4 Add genphy_c45_config_aneg() function to phy-c45.c
    98ded313ffda net/sched: cbs: Set default link speed to 10 Mbps in cbs_set_port_rate
    622f16b30519 taprio: Set default link speed to 10 Mbps in taprio_set_picos_per_byte
    4f15d0e51268 taprio: Fix kernel panic in taprio_destroy
    61f10b1bb84d r8152: remove calling netif_napi_del
    5a9ceccb6385 Revert "r8152: napi hangup fix after disconnect"
    7e21536433d0 nfp: flower: handle neighbour events on internal ports
    f7ec32a4ae5c nfp: flower: prevent ingress block binds on internal ports
    64a2a93ba385 tcp: remove empty skb from write queue in error cases
    5cef2bfc9e3f tcp: inherit timestamp on mtu probe
    939cc35d5f81 net: stmmac: dwmac-rk: Don't fail if phy regulator is absent
    505aac7f4e48 net_sched: fix a NULL pointer deref in ipt action
    3c6dfd2adb7a net: sched: act_sample: fix psample group handling on overwrite
    5038bd027ac3 net: fix skb use after free in netpoll
    baa513580b25 mld: fix memory leak in mld_del_delrec()

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>