]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agocurl: upgrade 7.65.2 -> 7.65.3
Zang Ruochen [Wed, 24 Jul 2019 07:55:58 +0000 (15:55 +0800)]
curl: upgrade 7.65.2 -> 7.65.3

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsdl: remove
Anuj Mittal [Wed, 24 Jul 2019 00:03:13 +0000 (08:03 +0800)]
libsdl: remove

All the users in OE-Core have moved to libsdl2. It will be moved to
meta-oe.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-libc-header: Fix ptrace.h and prctl.h conflict on aarch64
Khem Raj [Wed, 24 Jul 2019 06:56:15 +0000 (23:56 -0700)]
linux-libc-header: Fix ptrace.h and prctl.h conflict on aarch64

This is a backport from 5.2 release upstream, it fixes long standing
build failure on musl/aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomsmtp: upgrade 1.8.4 -> 1.8.5
Zang Ruochen [Wed, 24 Jul 2019 05:38:02 +0000 (13:38 +0800)]
msmtp: upgrade 1.8.4 -> 1.8.5

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostrace: Upgrade to 5.2
Khem Raj [Wed, 24 Jul 2019 02:43:45 +0000 (19:43 -0700)]
strace: Upgrade to 5.2

License-Updtate: Copyright years changed
https://github.com/strace/strace/commit/4b4a0e5a6e74e16dc2bb9b38d81415d9f57425d2#diff-7116ef0705885343c9e1b2171a06be0e

Drop backport patch for mips o32 build fix
Refresh patches to apply on 5.2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-uboot: remove useless special casing of arm64 Image
Bedel, Alban [Tue, 23 Jul 2019 14:13:36 +0000 (14:13 +0000)]
kernel-uboot: remove useless special casing of arm64 Image

Since commit a725d188b5 (kernel-uboot: compress arm64 kernels)
arm64 Image files are handled exactly like in the default case, making
this special case pointless. Remove it to make the code simpler.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorng-tools: start rngd early in the boot process again
Bedel, Alban [Tue, 23 Jul 2019 14:11:46 +0000 (14:11 +0000)]
rng-tools: start rngd early in the boot process again

It do make sense to start rngd early in the boot process because
otherwise we would need to track every service that might need entropy
and explicitly configure it to start after rngd.

When used with systemd rngd blocked the shutdown process because it
simply missed the proper unit configuration. As the systemd
documentation explains, when using DefaultDependencies=no one also
have to explicitly configure the unit to properly stop at some point.
This is normaly achieved by having Before=shutdown.target and
Conflicts=shutdown.target set for the unit.

To have rngd started early again we reverte the changes done to
rngd.service in commit edf7606822 (rng-tools: fix rngd blocks system
shutdown). To have it properly stopped on shutdown we also add
Before=shutdown.target and Conflicts=shutdown.target.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage_types: Remove remnants of hdddirect
Daniel Ammann [Tue, 23 Jul 2019 10:13:34 +0000 (12:13 +0200)]
image_types: Remove remnants of hdddirect

hdddirect was removed in commit 929ba563f1bc7195c4981b8e139c432b2cc388ea.

Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogdk-pixbuf: enable x11 PACKAGECONFIG option
Naveen Saini [Tue, 23 Jul 2019 09:28:49 +0000 (17:28 +0800)]
gdk-pixbuf: enable x11 PACKAGECONFIG option

Currently gdk-pixbuf x11 loader is enabled only
for LSB build. But it is needed by other recipes like
Ice window manger(icewm) for X window system.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agompg123: upgrade 1.25.10 -> 1.25.11
Anuj Mittal [Tue, 23 Jul 2019 04:40:27 +0000 (12:40 +0800)]
mpg123: upgrade 1.25.10 -> 1.25.11

Release notes:
https://www.mpg123.de/#2019-07-18

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa/lib/oeqa: Test for bootimg-biosplusefi Source
William Bourque [Mon, 22 Jul 2019 20:13:54 +0000 (16:13 -0400)]
meta/lib/oeqa: Test for bootimg-biosplusefi Source

Add unittests for bootimg-biosplusefi SourcePlugin in wic module.
First test check wic creation works correctly.
Second test uses qemu to boot image and checks that it has both
EFI and BIOS files in a single partition.

Signed-off-by: William Bourque <wbourque@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic/plugins: Source that support both EFI and BIOS
William Bourque [Mon, 22 Jul 2019 20:11:29 +0000 (16:11 -0400)]
wic/plugins: Source that support both EFI and BIOS

Add a source plugin that support both EFI and legacy PC-Bios.
While using this plugin, both bootloaders configurations reside
in the same /boot partitions.
This plugin has very little code : to avoid code duplication,
we simply re-import bootimg-pcbios and bootmg-efi source and
call both their SourcePlugin methods.

Signed-off-by: William Bourque <wbourque@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-mako: update to 1.0.14
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:18:11 +0000 (02:18 +0200)]
python3-mako: update to 1.0.14

Got rid of python-git since there is no python2 version of the package.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-docutils: update to 0.15
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:18:09 +0000 (02:18 +0200)]
python3-docutils: update to 0.15

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-scons: update to 3.1.0
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:18:08 +0000 (02:18 +0200)]
python3-scons: update to 3.1.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomaintainers: Account for musl-obstack and libssp-nonshared
Khem Raj [Sat, 20 Jul 2019 18:00:58 +0000 (11:00 -0700)]
maintainers: Account for musl-obstack and libssp-nonshared

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoelfutils: Fix eu-* utils builds for musl
Khem Raj [Sat, 20 Jul 2019 18:00:57 +0000 (11:00 -0700)]
elfutils: Fix eu-* utils builds for musl

Re-organize the musl patches in three different areas namely
libs, utils and tests, this will help maintain them in future
version bumps

Add obstack dependency on musl targets which is needed for eu-*

PN and PN-binutils is not empty anymore on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl-obstack: Add recipe
Khem Raj [Sat, 20 Jul 2019 18:00:56 +0000 (11:00 -0700)]
musl-obstack: Add recipe

obstacks from GNUlib is used in some OE-Core packages e.g. elfutils
and other packages outside OE-Core, this recipe helps provide this
functionality standalone on musl systems, and helps in getting full
versions of dependent packages

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopam_systemd: Include missing.h for secure_getenv
Khem Raj [Sat, 20 Jul 2019 18:00:55 +0000 (11:00 -0700)]
pam_systemd: Include missing.h for secure_getenv

'secure_getenv' api is not uniformly implemented across all C libraries
therefore its good to include missing.h so it can use the alternative
implementation where its not awvailable

Fixes
../git/src/login/pam_systemd.c:344:13: error: implicit declaration of function 'secure_getenv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        v = secure_getenv(key);

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosysvinit: Include sys/sysmacros.h for major/minor definitions on musl too
Khem Raj [Mon, 22 Jul 2019 07:26:54 +0000 (00:26 -0700)]
sysvinit: Include sys/sysmacros.h for major/minor definitions on musl too

Fixes musl issue

implicit declaration of function 'minor' is invalid in C99 [-Wimplicit-function-declaration]
which eventually ends up with a linker error

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomdadm: Include sys/sysmacros.h for major/minor definitions
Khem Raj [Mon, 22 Jul 2019 07:26:32 +0000 (00:26 -0700)]
mdadm: Include sys/sysmacros.h for major/minor definitions

Fixes
implicit declaration of function 'minor' is invalid in C99 [-Wimplicit-function-declaration]

which eventually ends up with a linker error

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: Upgrade to 1.1.23+
Khem Raj [Mon, 22 Jul 2019 07:26:14 +0000 (00:26 -0700)]
musl: Upgrade to 1.1.23+

License-Update: Added contributor list and copyright years
https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=7a6c8a0df1b685d788fd4d3763681bb3018806d7
https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=d6dcd4185bddff34724d6d539f834e9daf7dcf3d

- include release 1.1.23
- Add riscv support
- Add syscall numbers upto 5.1 kernel

Detailed log
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=ac304227bb3ea1787d581f17d76a5f5f3abff51f..0ce49d0a301b4142741b32773492af90f66ed3ca

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxinput: update to 1.6.3
Oleksandr Kravchuk [Mon, 22 Jul 2019 00:29:18 +0000 (02:29 +0200)]
xinput: update to 1.6.3

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopiglit: fix SRC_URI
Anuj Mittal [Mon, 22 Jul 2019 00:22:57 +0000 (08:22 +0800)]
piglit: fix SRC_URI

Fixes build for older versions of git (like on CentOS 7) which don't
follow redirects properly if the .git suffix is missing and cause
errors:

| error: RPC failed; result=22, HTTP code = 404
| fatal: The remote end hung up unexpectedly

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiptables: upgrade 1.8.2 -> 1.8.3
Anuj Mittal [Mon, 22 Jul 2019 00:22:56 +0000 (08:22 +0800)]
iptables: upgrade 1.8.2 -> 1.8.3

Remove upstreamed patches and manually package symlinks which aren't
handled by do_split_package.

Changelog:
http://git.netfilter.org/iptables/log/?qt=range&q=v1.8.3...v1.8.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRevert "unzip: fix CVE-2019-13232"
Khem Raj [Sat, 20 Jul 2019 18:26:45 +0000 (11:26 -0700)]
Revert "unzip: fix CVE-2019-13232"

See [1]

This reverts commit 4df4de2ac8bc0e80446e1ad0ce67eb244e2d2a32.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2019-July/284859.html

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-pbr: update to 5.4.1
Oleksandr Kravchuk [Sat, 20 Jul 2019 16:29:37 +0000 (18:29 +0200)]
python3-pbr: update to 5.4.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoudev-extraconf: do not mount swap partitions
Oleksandr Kravchuk [Sat, 20 Jul 2019 15:57:50 +0000 (17:57 +0200)]
udev-extraconf: do not mount swap partitions

Swap is a special filesystem that cannot be mounted, so do not try to,
otherwise we will have service that tries and fails to mount it with
the following error:

systemd[1]: Mounting /run/media/nvme0n1p3...
mount[1229]: mount: /run/media/nvme0n1p3: unknown filesystem type 'swap'.

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopsplash: create psplash tmpfs mount directory in psplash-init
Stefan Agner [Sat, 20 Jul 2019 00:12:37 +0000 (02:12 +0200)]
psplash: create psplash tmpfs mount directory in psplash-init

The psplash binary uses TMPDIR as directory to store the FIFO to
communicate with the psplash tools. This directory can be in any
location an init system determines to be suitable, psplash-init
uses /mnt/ for it. Rather than creating the mount directory in
the recipe, just create it in the init script itself. This allows
other init scripts to use a different location without having
an unnecessary .psplash directory in /mnt.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agompeg2dec: Fix PIE build and avoid relocation in text section on ARM
Khem Raj [Sat, 20 Jul 2019 06:16:28 +0000 (23:16 -0700)]
mpeg2dec: Fix PIE build and avoid relocation in text section on ARM

This a backport from upstream

Fixes package_qa on arm

ERROR: QA Issue: ELF binary 'TOPDIR/build/tmpfs/work/armv7vet2hf-neon-yoe-linux-gnueabi/mpeg2dec/0.5.1-r0/packages-split/libmpeg2/usr/lib/libmpeg2.so.0.1.0' has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: upgrade to 4.1.4
Ross Burton [Fri, 19 Jul 2019 20:19:58 +0000 (21:19 +0100)]
ffmpeg: upgrade to 4.1.4

Add a PACKAGECONFIG for the use of XCB and enable by default if X11 is in
DISTRO_FEATURES.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoffmpeg: don't use hardcoded lookup tables
Ross Burton [Fri, 19 Jul 2019 20:19:57 +0000 (21:19 +0100)]
ffmpeg: don't use hardcoded lookup tables

ffmpeg can generate lookup tables at build time instead of runtime, but this is
no longer a recommended option.  The size impact is significant (12% of the
total libavcodec size, nearly 2MB), the runtime impact of dynamic tables isn't
too costly, and only a few codecs actually use the pre-generated tables (MP3,
notably).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson.bbclass: export STRIP=${BUILD_STRIP}
Ross Burton [Fri, 19 Jul 2019 22:58:41 +0000 (23:58 +0100)]
meson.bbclass: export STRIP=${BUILD_STRIP}

In Meson the environment variables are always the native tools, so export
STRIP=${BUILD_STRIP} along with CC et al to silence this Meson warning:

WARNING: Env var STRIP seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibtool: remove host information from libtool
Joe Slater [Fri, 19 Jul 2019 22:05:31 +0000 (15:05 -0700)]
libtool: remove host information from libtool

Import patch from Debian.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agounfs3: set upstream tag regex to avoid false-positives
Ross Burton [Fri, 19 Jul 2019 21:25:55 +0000 (22:25 +0100)]
unfs3: set upstream tag regex to avoid false-positives

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofreetype: upgrade to 2.10.1
Ross Burton [Fri, 19 Jul 2019 21:16:19 +0000 (22:16 +0100)]
freetype: upgrade to 2.10.1

Also switch SRC_URI to the nongnu mirrors as they're more reliable than
Sourceforge.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: clean up JSON fetching
Ross Burton [Fri, 19 Jul 2019 20:33:19 +0000 (21:33 +0100)]
cve-update-db-native: clean up JSON fetching

Currently the code fetches the compressed JSON, writes it to a temporary file,
uncompresses that with gzip and passes the fake file object to update_db().

Instead, uncompress the gzip'd data in memory and pass the JSON directly to
update_db().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: improve metadata parsing
Ross Burton [Fri, 19 Jul 2019 20:33:18 +0000 (21:33 +0100)]
cve-update-db-native: improve metadata parsing

The metadata parser is fragile: first it coerces a bytes() to a str() (so the
string is b'LastModifiedDate:2019...'), assumes the first line is the date, and
then uses a regex to parse (which then includes the trailing quote as part of
the date).

Clean this up by parsing the bytes as UTF-8 (ASCII is probably fine, but this is
safer), iterate through the lines and split on colons to find the right
key/value pair.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: use executemany() to optimise CPE insertion
Ross Burton [Fri, 19 Jul 2019 20:33:17 +0000 (21:33 +0100)]
cve-update-db-native: use executemany() to optimise CPE insertion

Instead of calling execute() repeatedly, rewrite the function to be a generator
and use executemany() for performance.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: fix valgrind errors on v1.1.1c
Bonnans, Laurent [Fri, 19 Jul 2019 14:27:48 +0000 (14:27 +0000)]
openssl: fix valgrind errors on v1.1.1c

Running valgrind against code using Openssl v1.1.1c reports a large number of
uninitialized memory errors. This fix from upstream solves this problem.

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodevtool: remove temp dir in upgrade
Chen Qi [Fri, 19 Jul 2019 10:00:09 +0000 (18:00 +0800)]
devtool: remove temp dir in upgrade

For now, the temp dir is left in system, although the temporary
source directory has been cleaned up. So we clean it up too.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoruntime_test.py: use track_for_cleanup for temp dir
Chen Qi [Fri, 19 Jul 2019 10:00:08 +0000 (18:00 +0800)]
runtime_test.py: use track_for_cleanup for temp dir

Use track_for_cleanup for temp dir to avoid such temp
dir being not cleaned up when something goes wrong, e.g.,
building image failure.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db: actually inherit native
Ross Burton [Thu, 18 Jul 2019 20:03:59 +0000 (21:03 +0100)]
cve-update-db: actually inherit native

The recipe was called -native but didn't inherit native.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: use os.path.join instead of +
Ross Burton [Thu, 18 Jul 2019 20:03:58 +0000 (21:03 +0100)]
cve-update-db-native: use os.path.join instead of +

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogdb: fix CVE-2017-9778
Anuj Mittal [Fri, 19 Jul 2019 05:55:28 +0000 (13:55 +0800)]
gdb: fix CVE-2017-9778

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: include CVE patches for python-native as well
Anuj Mittal [Fri, 19 Jul 2019 05:55:27 +0000 (13:55 +0800)]
python: include CVE patches for python-native as well

Also avoids maintaining a different set of patches for both.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agounzip: fix CVE-2019-13232
Anuj Mittal [Fri, 19 Jul 2019 01:31:08 +0000 (09:31 +0800)]
unzip: fix CVE-2019-13232

Include the fix by Mark Adler which has also been adopted by Debian.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: CVE-2018-20796 is same as CVE-2019-9169
Anuj Mittal [Fri, 19 Jul 2019 01:31:07 +0000 (09:31 +0800)]
glibc: CVE-2018-20796 is same as CVE-2019-9169

See:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34141
https://www.securityfocus.com/bid/107160

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorsync: fix CVEs for included zlib
Anuj Mittal [Fri, 19 Jul 2019 01:31:06 +0000 (09:31 +0800)]
rsync: fix CVEs for included zlib

rsync includes its own copy of zlib and doesn't recommend linking with
the system version [1].

Import CVE fixes that impact zlib version 1.2.8 [2] that is currently used
by rsync.

[1] https://git.samba.org/rsync.git/?p=rsync.git;a=blob;f=zlib/README.rsync
[2] https://nvd.nist.gov/vuln/search/results?form_type=Advanced&cves=on&cpe_version=cpe%3a%2fa%3agnu%3azlib%3a1.2.8

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiptables: Security Advisory - iptables - CVE-2019-11360
Li Zhou [Fri, 19 Jul 2019 07:35:46 +0000 (15:35 +0800)]
iptables: Security Advisory - iptables - CVE-2019-11360

Porting patch from <https://git.netfilter.org/iptables/commit/iptables/
xshared.c?id=2ae1099a42e6a0f06de305ca13a842ac83d4683e> to solve
CVE-2019-11360.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: upgrade 20190115 -> 20190517
Yi Zhao [Fri, 19 Jul 2019 05:13:18 +0000 (13:13 +0800)]
ltp: upgrade 20190115 -> 20190517

Drop the following patches since the issues have been fixed upstream:
  0001-file01.sh-Fix-in-was-not-recognized.patch
  0001-lapi-Define-TST_ABI-32-64-to-detect-target-type.patch
  0001-syscalls-setrlimit03.c-read-proc-sys-fs-nr_open-for-.patch
  0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch
  0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch
  0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch
  0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch
  0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch
  0026-crash01-Define-_GNU_SOURCE.patch
  0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
  0034-periodic_output.patch
  0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch
  define-sigrtmin-and-sigrtmax-for-musl.patch
  setregid01-security-string-formatting.patch

Refresh the following patches:
  0004-build-Add-option-to-select-libc-implementation.patch
  0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch
  0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch
  0018-guard-mallocopt-with-__GLIBC__.patch
  0020-getdents-define-getdents-getdents64-only-for-glibc.patch
  0035-fix-test_proc_kill-hang.patch
  0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
  0001-open_posix_testsuite-mmap24-2-Relax-condition-a-bit.patch
  0001-shmctl01-don-t-use-hardcoded-index-0-for-SHM_STAT-te.patch
  0001-diotest4-Let-kernel-pick-an-address-when-calling-mma.patch
  0001-getrlimit03-adjust-a-bit-of-code-to-compatiable-with.patch

Add patch:
  0006-rt_tgsigqueueinfo-disable-test-on-musl.patch

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-bootconf: Mark as machine specific
Ricardo Ribalda Delgado [Tue, 25 Jun 2019 07:14:42 +0000 (09:14 +0200)]
systemd-bootconf: Mark as machine specific

APPEND is usually attached to a machine. This patch avoids multiconfig
errors such as:

| NOTE: Direct dependencies are ['multiconfig:qt5022:/workdir/repo/poky/meta/recipes-core/glibc/glibc_2.29.bb:do_populate_sysroot', 'multiconfig:qt5022:virtual:native:/workdir/repo/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'multiconfig:qt5022:/workdir/repo/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'multiconfig:qt5022:/workdir/repo/poky/meta/recipes-devtools/gcc/gcc-cross_8.3.bb:do_populate_sysroot', 'multiconfig:qt5022:/workdir/repo/poky/meta/recipes-devtools/gcc/gcc-runtime_8.3.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['glibc', 'pseudo-native', 'quilt-native', 'gcc-cross-x86_64', 'gcc-runtime', 'libgcc', 'linux-libc-headers', 'libtool-native', 'texinfo-dummy-native', 'libmpc-native', 'flex-native', 'automake-native', 'zlib-native', 'mpfr-native', 'gmp-native', 'binutils-cross-x86_64', 'xz-native', 'autoconf-native', 'gnu-config-native', 'gettext-minimal-native', 'm4-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| install: cannot stat 'loader.conf': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /workdir/build/tmp/work/bobcat-poky-linux/systemd-bootconf/1.00-r0/temp/log.do_install.737)
NOTE: recipe systemd-bootconf-1.00-r0: task do_install: Failed
ERROR: Task (multiconfig:qt5022:/workdir/repo/poky/meta/recipes-core/systemd/systemd-bootconf_1.00.bb:do_install) failed with exit code '1'

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Fix (again) partition files UIDs on multi rootfs images
Ricardo Ribalda Delgado [Thu, 18 Jul 2019 13:13:56 +0000 (15:13 +0200)]
wic: Fix (again) partition files UIDs on multi rootfs images

Commit 450335ba5e73a375eb9932b4c4cf37979640dbfc copies the pseudo
database to the working directory in order to have ownership information
when the filesystem is generated.

Unfortunately this does not work anymore. The filenames on the database
are absolute and there is no information about the new directory.

Instead of fixing the database, we could redo a bit the way we patch the
fstab file. Now I am saving the old contents of fstab, modifying the
file and then reverting the changes on exit.

This is faster than the previous approach, although it can cause
indeterminism if the application is killed before finishing.

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: Remove hash column from database.
Pierre Le Magourou [Thu, 18 Jul 2019 12:41:19 +0000 (14:41 +0200)]
cve-update-db-native: Remove hash column from database.

djb2 hash algorithm was found to do collisions, so the database was
sometime missing data. Remove this hash mechanism, clear and populate
elements from scratch in PRODUCTS table if the current year needs an
update.

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check: Replace CVE_CHECK_CVE_WHITELIST by CVE_CHECK_WHITELIST
Pierre Le Magourou [Thu, 18 Jul 2019 12:41:18 +0000 (14:41 +0200)]
cve-check: Replace CVE_CHECK_CVE_WHITELIST by CVE_CHECK_WHITELIST

CVE_CHECK_WHITELIST does not contain version anymore, as it was not
used. This variable should be set per recipe.

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosquashfs-tools: upgrade to commit f95864afe883
Ulrich Ölmann [Thu, 18 Jul 2019 11:50:39 +0000 (13:50 +0200)]
squashfs-tools: upgrade to commit f95864afe883

The master branch's current tip commit as of this writing is [1], see the
squashfs-tool's repo at [0].

Because of commits [2]-[4] which are included in the master branch three
corresponding patches are dropped as they are not needed anymore. The single
remaining patch was rebased on top of [1] to apply cleanly.

Commits [5] & [6] introduced interesting features, namely zstd support and
reproducibility of created SquashFS images. They are reflected in two new
PACKAGECONFIG options now, but only the latter ("reproducible") is appended to
the default options as OE-core does not contain a recipe to build zstd at the
moment (a working zstd recipe can be found e.g. in meta-rauc, see [7]).

[0] https://github.com/plougher/squashfs-tools.git
[1] f95864afe883 ("unsquashfs-4: Add more sanity checks + fix CVE-2015-4645/6")
[2] 46bdc1726e5a ("mksquashfs: Make a load of functions static")
[3] b0ca8a5c98ff ("pseudo.c: add explicit <sys/stat.h> include")
[4] f95864afe883 ("unsquashfs-4: Add more sanity checks + fix CVE-2015-4645/6")
[5] 6113361316d5 ("squashfs-tools: Add zstd support")
[6] e0d74d07bb35 ("Add configuration and Mksquashfs build options for
                   reproducible builds")
[7] https://layers.openembedded.org/layerindex/recipe/79049/

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: upgrade 7.65.1 -> 7.65.2
Anuj Mittal [Thu, 18 Jul 2019 02:21:01 +0000 (10:21 +0800)]
curl: upgrade 7.65.1 -> 7.65.2

Changelog:
https://curl.haxx.se/changes.html#7_65_2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodebianutils: upgrade 4.8.6.1 -> 4.8.6.3
Yi Zhao [Thu, 18 Jul 2019 08:03:24 +0000 (16:03 +0800)]
debianutils: upgrade 4.8.6.1 -> 4.8.6.3

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: set CVE vendor to openssl
Anuj Mittal [Thu, 18 Jul 2019 04:42:00 +0000 (12:42 +0800)]
openssl: set CVE vendor to openssl

Differentiate it from openssl gem for Ruby.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibpciaccess:upgrade 0.14 -> 0.16
Zang Ruochen [Thu, 18 Jul 2019 04:01:43 +0000 (12:01 +0800)]
libpciaccess:upgrade 0.14 -> 0.16

-Upgrade from libpciaccess_0.14.bb to libpciaccess_0.16.bb.

-libpciaccess/0004-Don-t-include-sys-io.h-on-arm.patch
 Removed since this is included in 0.16.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxwininfo:upgrade 1.1.4 -> 1.1.5
Zang Ruochen [Thu, 18 Jul 2019 03:23:58 +0000 (11:23 +0800)]
xwininfo:upgrade 1.1.4 -> 1.1.5

-Upgrade from xwininfo_1.1.4.bb to xwininfo_1.1.5.bb.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibice:upgrade 1.0.9 -> 1.0.10
Zang Ruochen [Thu, 18 Jul 2019 03:12:23 +0000 (11:12 +0800)]
libice:upgrade 1.0.9 -> 1.0.10

-Upgrade from libice_1.0.9.bb to libice_1.0.10.bb.

-libice/CVE-2017-2626.patch
 Removed since this is included in 1.0.10.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovte: upgrade 0.56.1 -> 0.56.3
Anuj Mittal [Thu, 18 Jul 2019 02:16:06 +0000 (10:16 +0800)]
vte: upgrade 0.56.1 -> 0.56.3

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: upgrade 2.60.4 -> 2.60.5
Anuj Mittal [Thu, 18 Jul 2019 02:16:05 +0000 (10:16 +0800)]
glib-2.0: upgrade 2.60.4 -> 2.60.5

Changes:
https://github.com/GNOME/glib/blob/glib-2-60/NEWS

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobzip2: upgrade 1.0.7 -> 1.0.8
Anuj Mittal [Thu, 18 Jul 2019 02:16:04 +0000 (10:16 +0800)]
bzip2: upgrade 1.0.7 -> 1.0.8

License-Update: Change in version and copyright year/date.

Changelog:
https://sourceware.org/git/?p=bzip2.git;a=blob;f=CHANGES

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemu: fix CVE-2019-12155
Anuj Mittal [Thu, 18 Jul 2019 02:16:03 +0000 (10:16 +0800)]
qemu: fix CVE-2019-12155

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobinutils: CVE-2019-9070 is same as CVE-2019-9071
Anuj Mittal [Thu, 18 Jul 2019 02:16:02 +0000 (10:16 +0800)]
binutils: CVE-2019-9070 is same as CVE-2019-9071

See:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89395

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodefaultsetup.conf: enable select init manager
Kai Kang [Thu, 4 Jul 2019 13:45:19 +0000 (21:45 +0800)]
defaultsetup.conf: enable select init manager

Introduce a new variable INIT_MANAGER and create 4 init-manager-*.inc
files to configure init manager settings. Available values of
INIT_MANAGER are sysvinit, systemd, mdev-busybox and a default of none.
'none' provides backwards compatibility.

The settings of various VIRTUAL-RUNTIME variables are moved into these
files from the packagegroups.

[YOCTO #13031]

[Modifications by RP for backwards compatibility]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostaging: Drop clean_recipe_sysroot
Richard Purdie [Thu, 18 Jul 2019 11:46:12 +0000 (12:46 +0100)]
staging: Drop clean_recipe_sysroot

With recent changes to runqueue, this fuction is unsafe as setscene tasks can run
at the same time as normal ones and doing things before do_fetch no longer
offers any guarantees.

There is other code which cleans out things from the sysroots as tasks rerun so
we should rely upon that instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopkgconf: upgrade 1.6.1 -> 1.6.3
Ross Burton [Wed, 17 Jul 2019 20:54:32 +0000 (21:54 +0100)]
pkgconf: upgrade 1.6.1 -> 1.6.3

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopiglit: upgrade to latest revision
Ross Burton [Wed, 17 Jul 2019 20:54:31 +0000 (21:54 +0100)]
piglit: upgrade to latest revision

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackage_manager: Ensure the base-feed directory exists
Alistair Francis [Wed, 17 Jul 2019 20:53:40 +0000 (13:53 -0700)]
package_manager: Ensure the base-feed directory exists

Ensure that the /etc/opkg directory exists before we try to create a
file there.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemurunner.py: Be more verbose about problems
Alistair Francis [Wed, 17 Jul 2019 20:52:10 +0000 (13:52 -0700)]
qemurunner.py: Be more verbose about problems

Instead of hiding problems in the debug log let's print them as warnings
instead.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopensbi: Fix installed-vs-shipped warning
Alistair Francis [Wed, 17 Jul 2019 20:51:49 +0000 (13:51 -0700)]
opensbi: Fix installed-vs-shipped warning

Fix the following warning by just deleting the files:
WARNING: opensbi-0.4-r0 do_package: QA Issue: opensbi: Files/directories were installed but not shipped in any package:
  /lib
  /lib/libsbiutils.a
  /lib/libsbi.a

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxkeyboard-config: remove redundant intltool dependency
Ross Burton [Wed, 17 Jul 2019 20:09:49 +0000 (21:09 +0100)]
xkeyboard-config: remove redundant intltool dependency

Upstream now uses plain gettext.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: getrlimit03: adjust-a-bit-of-code-to-compatiable-with mips32
Hongzhi.Song [Wed, 17 Jul 2019 09:50:39 +0000 (02:50 -0700)]
ltp: getrlimit03: adjust-a-bit-of-code-to-compatiable-with mips32

Error info:
getrlimit03.c:104: FAIL: __NR_prlimit64(0) had rlim_cur =
ffffffffffffffff but __NR_getrlimit(0) had rlim_cur = 7fffffff

According to kernel code: [arch/mips/include/uapi/asm/resource.h]
RLIM_INFINITY is set to 0x7fffffffUL instead of ULONG_MAX on mips32.

 /*
 * SuS says limits have to be unsigned.
 * Which makes a ton more sense anyway,
 * but we keep the old value on MIPS32,
 * for compatibility:
 */
 #ifndef __mips64
 # define RLIM_INFINITY      0x7fffffffUL
 #endif

Adding conditional statement about mips to fix this.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-update-db-native: use SQL placeholders instead of format strings
Ross Burton [Wed, 17 Jul 2019 10:45:38 +0000 (11:45 +0100)]
cve-update-db-native: use SQL placeholders instead of format strings

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoflex: set CVE_PRODUCT to include vendor
Ross Burton [Wed, 17 Jul 2019 10:45:37 +0000 (11:45 +0100)]
flex: set CVE_PRODUCT to include vendor

There are many projects called Flex and they have CVEs, so also set the vendor
to remove these false positives.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check: allow comparison of Vendor as well as Product
Ross Burton [Wed, 17 Jul 2019 10:45:36 +0000 (11:45 +0100)]
cve-check: allow comparison of Vendor as well as Product

Some product names are too vague to be searched without also matching the
vendor, for example Flex could be the parser compiler we ship, or Adobe Flex, or
Apache Flex, or IBM Flex.

If entries in CVE_PRODUCT contain a colon then split it as vendor:product to improve the search.

Also don't use .format() to construct SQL as that can lead to security
issues. Instead, use ? placeholders and lets sqlite3 handle the escaping.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofreetype: add --tag CC to libtool arguments
Mikko Rapeli [Wed, 17 Jul 2019 14:46:43 +0000 (17:46 +0300)]
freetype: add --tag CC to libtool arguments

Fixes build failures on aarch64:

aarch64-poky-linux-libtool: compile: unable to infer tagged configuration

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe/copy_buildsystem: move layer into layers directory
Andrej Valek [Wed, 17 Jul 2019 13:25:44 +0000 (15:25 +0200)]
oe/copy_buildsystem: move layer into layers directory

Layers could be located outside from poky but inside the build directory.
This case should be covered in eSDK.
meta-abc
meta-def/meta-ghi
meta-def/poky
meta-def/meta-oe/meta-oe
...

It should take all enabled layers and put them into 'layers' dir during
build-time with respecting new relative path to poky.
layers/meta-abc
layers/meta-ghi
layers/poky
layers/meta-oe/meta-oe
...

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check.bbclass: initialize to_append
Mikko Rapeli [Wed, 17 Jul 2019 09:08:37 +0000 (12:08 +0300)]
cve-check.bbclass: initialize to_append

Fixes build failure with core-image-minimal:

Exception: UnboundLocalError: local variable 'to_append' referenced before assignment

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobusybox: enable unicode support
Mikko Rapeli [Wed, 17 Jul 2019 09:08:36 +0000 (12:08 +0300)]
busybox: enable unicode support

While creating and deleting files with unicode or other
encodings works, it's annoying when ls and other core utils
show questionmarks instead of the unicode characters.
In 2019, it's quite common that users of embedded devices
based on yocto need unicode support. Debugging a box with
unicode encoded file names is a bit annoying when core utils
from busybox don't support them.

The unicode config fragment has the same config as Debian in their
deb and udeb builds of version 1:1.30.1-4.

If developers do not want this or other default yocto features in busybox,
or optimize the configuration for size, then they likely run a completely
custom configuration. Thus I think it's safe to enable unicode support
by default.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoed: set CVE vendor to avoid false positives
Ross Burton [Wed, 17 Jul 2019 11:03:24 +0000 (12:03 +0100)]
ed: set CVE vendor to avoid false positives

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogit: set CVE vendor to git-scm
Ross Burton [Wed, 17 Jul 2019 11:03:23 +0000 (12:03 +0100)]
git: set CVE vendor to git-scm

There's a Jenkins plugin for Git.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoboost: set CVE vendor to Boost
Ross Burton [Wed, 17 Jul 2019 11:03:22 +0000 (12:03 +0100)]
boost: set CVE vendor to Boost

There's a Boost module for Drupal.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosubversion: set CVE vendor to Apache
Ross Burton [Wed, 17 Jul 2019 11:03:21 +0000 (12:03 +0100)]
subversion: set CVE vendor to Apache

There's a Jenkins plugin for Subversion.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokernel-fitimage: uboot-sign: fix missing signature
Jun Nie [Wed, 10 Jul 2019 07:10:56 +0000 (15:10 +0800)]
kernel-fitimage: uboot-sign: fix missing signature

u-boot.bin with dtb & signature should be placed in ${B} so that
it can be deployed by u-boot as expected. Otherwise, the version
without signature is installed.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: upgrade 3.7.3 -> 3.7.4
Anuj Mittal [Wed, 17 Jul 2019 03:04:08 +0000 (11:04 +0800)]
python3: upgrade 3.7.3 -> 3.7.4

Also fixes CVE-2019-9740, CVE-2019-9948. For details, see:

https://docs.python.org/3.7/whatsnew/changelog.html#python-3-7-4-final

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: fix CVE-2019-9740
Anuj Mittal [Wed, 17 Jul 2019 03:04:07 +0000 (11:04 +0800)]
python: fix CVE-2019-9740

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: add support for kernel with initramfs bundled
Chee Yang Lee [Wed, 17 Jul 2019 02:02:42 +0000 (10:02 +0800)]
wic: add support for kernel with initramfs bundled

when INITRAMFS_IMAGE_BUNDLE and INITRAMFS_IMAGE are set, wic should
look for kernel with initramfs image bundled.

Include required variable MACHINE, INITRAMFS_IMAGE_BUNDLE,
INITRAMFS_IMAGE, INITRAMFS_LINK_NAME and KERNEL_IMAGETYPE in WICVARS.
No longer require default value for variable kernel as KERNEL_IMAGETYPE
is not optional variable and included in WICVARS.
image_types_wic to inherit kernel-artifact-names to obtain default
INITRAMFS_LINK_NAME when INITRAMFS_IMAGE_BUNDLE are set.

update wic.Wic2.test_image_env test case to filter optional
variable INITRAMFS_LINK_NAME, INITRAMFS_IMAGE and INITRAMFS_IMAGE_BUNDLE.

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonasm: fix CVE-2018-19755
Anuj Mittal [Wed, 17 Jul 2019 00:49:37 +0000 (08:49 +0800)]
nasm: fix CVE-2018-19755

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopkg/package/rootfs_ipk: allow overwriting OPKGLIBDIR
Adrian Ratiu [Tue, 16 Jul 2019 21:55:58 +0000 (00:55 +0300)]
opkg/package/rootfs_ipk: allow overwriting OPKGLIBDIR

Some distributions for various reasons (like for example mounting a
tmpfs over /var at runtime) can't use /var/lib to store the opkg
metadata, so a different path is required to have a functioning
package manager.

${localstatedir} can't be modified to something other than the
hardcoded value in bitbake.conf because other recipes depending on it
will fail to install.

So the only recourse, which is also the least invasive, is to allow
distros to overwrite the OPKGLIBDIR variable just like they are also
allowed to overwrite OPKGBUILDCMD.

Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibid3tag: handle unknown encodings (CVE-2017-11550)
Ross Burton [Tue, 16 Jul 2019 12:47:39 +0000 (13:47 +0100)]
libid3tag: handle unknown encodings (CVE-2017-11550)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibid3tag: CVE-2017-11551 is the same as CVE-2004-2779
Ross Burton [Tue, 16 Jul 2019 12:47:27 +0000 (13:47 +0100)]
libid3tag: CVE-2017-11551 is the same as CVE-2004-2779

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: exclude child recipes from CVE scanning
Ross Burton [Tue, 16 Jul 2019 12:47:21 +0000 (13:47 +0100)]
glibc: exclude child recipes from CVE scanning

As glibc will be scanned for CVEs, we don't need to scan glibc-locale,
glibc-mtrace, and glibc-scripts which are all separate recipes for technical
reasons.

Exclude the recipes by setting CVE_PRODUCT in the recipe, instead of using the
global whitelist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check-tool: remove
Ross Burton [Tue, 16 Jul 2019 12:46:50 +0000 (13:46 +0100)]
cve-check-tool: remove

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocve-check: remove redundant readline CVE whitelisting
Ross Burton [Tue, 16 Jul 2019 12:46:43 +0000 (13:46 +0100)]
cve-check: remove redundant readline CVE whitelisting

CVE-2014-2524 is a readline CVE that was fixed in 6.3patch3 onwards, but the
tooling wasn't able to detect this version.  As we now ship readline 8 we don't
need to manually whitelist it, and if we did then the whitelisting should be in
the readline recipe.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Fix interface bring-up on kernels >= 5.2
Ricardo Ribalda Delgado [Mon, 15 Jul 2019 14:32:52 +0000 (16:32 +0200)]
systemd: Fix interface bring-up on kernels >= 5.2

With kernels >=5.2  systemd-networkd is unable to bring up the link.

eth0: Could not bring up interface: Invalid argument

This is already reported upstream and fixed on master:

https://github.com/systemd/systemd/issues/12784

They recommend Debian to backport two patches.

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomdadm: make ptest output format align with common style
Changqing Li [Tue, 16 Jul 2019 03:48:42 +0000 (11:48 +0800)]
mdadm: make ptest output format align with common style

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>