This is the second last release of py 2.x; upstream support ends on
1 January 2020, there will be one final 2.x afterwards.
Note that the only thing that still needs python 2.x in oe-core is
u-boot; when the next u-boot update arrives, we should find out
where the py3 migration is for that component before merging the
update.
Kai Kang [Fri, 22 Nov 2019 02:04:26 +0000 (10:04 +0800)]
bind: fix CVE-2019-6471 and CVE-2018-5743
Backport patches to fix CVE-2019-6471 and CVE-2018-5743 for bind.
CVE-2019-6471 is fixed by 0001-bind-fix-CVE-2019-6471.patch and the
other 6 patches are for CVE-2018-5743. And backport one more patch to
fix compile error on arm caused by these 6 commits.
Richard Purdie [Wed, 6 Nov 2019 13:20:01 +0000 (13:20 +0000)]
pseudo: Add statx support to fix fedora30 issues
Modern distros (e.g. fedora30) are starting to use the new statx() syscall through
the newly exposed glibc wrapper function in software like coreutils (e.g. the ls
command). Add support to intercept this to pseudo.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fixup for warrior context] Signed-off-by: Armin Kuster <akuster808@gmail.com>
Richard Purdie [Fri, 8 Nov 2019 14:36:36 +0000 (14:36 +0000)]
pseudo: Drop static linking to sqlite3
Back in 2010[1] we made pseudo statically link against sqlite3. Since then
the world has changed, pseudo now has separate processes for the database
in the server and the client and they have separate linking commands.
Also, whilst there were concerns about needing specific versions of sqlite3,
in the OE environment, this is always the case.
The static sqlite3-native is causing us problems, in particular:
tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+060058bb29-r0/recipe-sysroot-native/usr/lib/libsqlite3.a(sqlite3.o):(.data.rel+0xb0): undefined reference to `fcntl64'
which occurs if sqlite3-native was built on a machine with glibc 2.28 or later
and pseudo-native is being built on glibc before that. With dyanmical linking,
libc is backwards compatible and works but with static linking it does not.
There appears to be no easy way to avoid this other than adding a copy of
sqlite3 into the pseudo recipe. Given the static linking doesn't seem to
be required any longer due to the separate processes, drop that to fix
those issues.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Jason Wessel [Mon, 5 Aug 2019 16:32:37 +0000 (09:32 -0700)]
pseudo: Fix openat() with a symlink pointing to a directory
While working with ostree disk generation in conjunction with wic, I
found a problem with pseudo where it tried to resolve a symlink when
it shouldn't, based on openat() flags. A C program has been
constructed to test pseudo to show that it is working properly with
the correct behavior around openat().
int target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK |
O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
if (target_dfd == -1) {
printf("Test 1 good\n");
} else {
printf("Test 1 failed\n");
close(target_dfd);
}
target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK |
O_DIRECTORY | O_CLOEXEC);
if (target_dfd == -1) {
printf("Test 2 failed\n");
} else {
printf("Test 2 good\n");
close(target_dfd);
}
/* Test 3 make sure the owner of the link is root */
struct stat sbuf;
if (!lstat("tlink", &sbuf) && sbuf.st_uid == 0) {
printf("Test 3 good\n");
} else {
printf("Test 3 failed\n");
}
/* Test 4 tests open with the "rb" flag, owner should not change */
int ofd = openat(dfd,"./tlink", O_RDONLY|O_CLOEXEC);
if (ofd >= 0) {
if (fstat(ofd, &sbuf) != 0)
printf("ERROR in fstat test 4\n");
else if (sbuf.st_uid == 0)
printf("Test 4 good\n");
close(ofd);
} else {
printf("Test 4 failed with openat()\n");
}
/* Test pseudo db to see the fstat() above did not delete the DB entry */
if (!lstat("tlink", &sbuf) && sbuf.st_uid == 0)
printf("Test 5 good\n");
else
printf("Test 5 failed... tlink is owned by %i and not 0\n", sbuf.st_uid);
return 0;
}
Mingli Yu [Mon, 5 Aug 2019 09:38:18 +0000 (02:38 -0700)]
python3: fix the test_locale output format
Before this patch:
# python3 -m test -v test_locale
[snip]
test_getsetlocale_issue1813 (test.test_locale.TestMiscellaneous) ... testing with ('tr_TR', 'ISO8859-9') ok
[snip]
After this patch:
# python3 -m test -v test_locale
[snip]
test_getsetlocale_issue1813 (test.test_locale.TestMiscellaneous) ... testing with ('tr_TR', 'ISO8859-9')... ok
[snip]
Make the test ended with "... ok" is common in python
unittest world, we should make it keep consistent
with other test cases in case it may be ignored to
record in the report if we use the common filter
"... ok".
Joshua Watt [Fri, 21 Jun 2019 13:35:54 +0000 (08:35 -0500)]
python3: Reformat sysconfig
Reformats the sysconfig file when packaging. This file is output by
using the python pprint function. This function will wrap long lines at
80 characters by default, and will even split strings at whitespace
boundaries to do so, e.g.:
'A': 'B is really'
' long'
This causes a problem for reproducibility however because there might be
lines of differing lengths depending on the build path. These
non-reproducible paths are removed, but their effect on string wrapping
from pprint remains.
To correct this, reformat the entire sysconfig file by re-printing using
pprint with an (effectively) unlimited line length.
When building x86->x86 the system will try to execute .so and related items
from the default PYTHONPATH. This will fail if the target CPU contains
instructions that the host CPU does not have, add CROSSPYTHONPATH
into PYTHONPATH so we can prepend the list to find correct libs.
Changqing Li [Wed, 8 May 2019 10:05:27 +0000 (18:05 +0800)]
python3: fix do_install fail for parallel buiild
When using make -j with the 'install' target, it's possible for altbininstall
(which normally creates BINDIR) and libainstall (which doesn't, though it
installs python-config there) to race, resulting in a failure due to
attempting to install python-config into a nonexistent BINDIR. Ensure it also
exists in the libainstall target.
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
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> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Niclas Svensson [Tue, 5 Nov 2019 22:08:37 +0000 (23:08 +0100)]
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> Signed-off-by: Armin Kuster <akuster808@gmail.com>
tzdata: Correct the packaging of /etc/localtime and /etc/timezone
During restructuring of the packaging in 2af4d6eb (tzdata: Install
everything by default), these two files remained in the tzdata
package, which is supposed to be empty. Move them to tzdata-core where
they belong.
Also simplify the definition of CONFFILES_tzdata-core. As its value
only takes effect for files that actually exist, there is no need to
complicate its definition by checking if a file is created before
adding it to the list of configuration files.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
devtool: Avoid failure for recipes with S == WORKDIR and no local files
When extracting the sources for a recipe that has S == WORKDIR and no
local files in the SRC_URI (which, e.g., can happen for a recipe with
a URI that has the unpack=false attribute), the extraction fails with
the following backtrace:
Traceback (most recent call last):
File ".../scripts/devtool", line 344, in <module>
ret = main()
File ".../scripts/devtool", line 331, in main
ret = args.func(args, config, basepath, workspace)
File ".../poky/scripts/lib/devtool/standard.py", line 762, in
modify
initial_rev, _ = _extract_source(srctree, args.keep_temp,
args.branch, False, config, basepath, workspace,
args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
File ".../poky/scripts/lib/devtool/standard.py", line 647, in
_extract_source
bb.process.run('git %s commit -a -m "Committing local file
symlinks\n\n%s"' % (' '.join(useroptions),
oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
File ".../poky/bitbake/lib/bb/process.py", line 178, in run
raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of 'git commit -a -m
"Committing local file symlinks
%% ignore"' failed with exit code 1:
On branch devtool
nothing to commit, working tree clean
This is because no files were found in the oe-local-files directory
and consequently no symbolic links were added using `git add`, but the
`git commit` command was still executed.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
The options in ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} are already passed
via ${CC}/${CXX} and there is no reason to pass them a second time. Thus
we can remove MESON_TOOLCHAIN_ARGS. And when it is removed, the other
MESON_*_ARGS variables revert to the standard CFLAGS, CXXFLAGS and
LDFLAGS, so just use them directly instead.
Apart from the obvious improvement with not passing a lot of options
twice, this also solves a problem where -pie would be passed on the
command line in a way that it would prevent building any dynamic
libraries using meson if using a toolchain that is not built with
--enable-default-pie and if security_flags.inc is used.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Changqing Li [Tue, 29 Oct 2019 09:47:30 +0000 (10:47 +0100)]
sudo: fix CVE-2019-14287
In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer
account can bypass certain policy blacklists and session PAM modules,
and can cause incorrect logging, by invoking sudo with a crafted user
ID. For example, this allows bypass of !root configuration, and USER=
logging, for a "sudo -u \#$((0xffffffff))" command.
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4e11cd561f2bdaa6807cf02ee7c9870881826308) Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit b1e0149c41e3c344a0496e64ab3b0c9dd4685ea4) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yi Zhao [Tue, 29 Oct 2019 09:47:29 +0000 (10:47 +0100)]
libgcrypt: fix CVE-2019-12904
In Libgcrypt 1.8.4, the C implementation of AES is vulnerable to a
flush-and-reload side-channel attack because physical addresses are
available to other processes. (The C implementation is used on platforms
where an assembly-language implementation is unavailable.)
Yi Zhao [Tue, 29 Oct 2019 09:47:25 +0000 (10:47 +0100)]
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>
(cherry picked from commit f78248a2380bbbbf271b5bb02c762f5bc7a3a92e) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Tue, 29 Oct 2019 09:47:21 +0000 (10:47 +0100)]
linux-yocto/4.19: make drm-bochs feature available
The other active kernel versions have this feature available. To
consistently enable the same video output for qemu, we can cherry
pick the feature to 4.19.
Bruce Ashfield [Tue, 29 Oct 2019 09:47:19 +0000 (10:47 +0100)]
linux-yocto: arch/x86/boot: use prefix map to avoid embedded paths
>From the kernel patch:
[
It was observed that the kernel embeds the path in the x86 boot
artifacts.
From https://bugzilla.yoctoproject.org/show_bug.cgi?id=13458:
[
If you turn on the buildpaths QA test, or try a reproducible build, you
discover that the kernel image contains build paths.
$ strings bzImage-5.0.19-yocto-standard |grep tmp/
out of pgt_buf in
/data/poky-tmp/reproducible/tmp/work-shared/qemux86-64/kernel-source/arch/x86/boot/compressed/kaslr_64.c!?
So the __FILE__ shouldn't be using the full path. However
arch/x86/boot/compressed/Makefile has this:
KBUILD_CFLAGS := -m$(BITS) -O2
So that clears KBUILD_FLAGS, removing the -fmacro-prefix-map option.
]
Other architectures do not clear the flags, but instead prune before
adding boot or specific options. There's no obvious reason why x86 isn't
doing the same thing (pruning vs clearing) and no build or boot issues
have been observed.
So we make x86 can do the same thing, and we no longer have embedded paths.
]
This issue has been reported upstream, and a patch submission is
pending, but for now, we'll soak the proposed patch in linux-yocto to
see if any issues are found
Bruce Ashfield [Tue, 29 Oct 2019 09:47:18 +0000 (10:47 +0100)]
linux-yocto: bsp/beaglebone: support qemu -machine virt
While we don't normally do a dual h/w and virt BSP (since they
tend to have conflicting requirements over time). A minimal overhead
option to do this was submitted to linux-yocto. Since it has no
impact on the h/w reference, has SDK testing value and can serve
as a template on how to do this for other arm boards, it is worth
making the configuration available.
The original commit log follows:
[
If the kernel supports Qemu's virt machine, runqemu works almost for free.
The device tree for machine virt is included in Qemu, which simplifies
everything quite a bit.
This change adds ARCH_VIRT=y and some drivers to the beaglebone kernel
configuration which allows to:
This also works out of an eSDK. Whithout this feature usually two
different SDKs need to be compiled and maintained. One SDK is used for development
in Qemu, another one is used to develop for the real target hardware.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
]
Bruce Ashfield [Tue, 29 Oct 2019 09:47:17 +0000 (10:47 +0100)]
linux-yocto/5.0: make scsi-debug include scsi core configs
Updating the scsi-debug fragment to include the core scsi config
options. This allows standalone use of the fragment, since all
supporting options will be enabled simply by including the top
level config in a BSP.
This also removes a configuration warning on qemuarm, since we
will no longer have missing / unavailable options during the
config audit.
Bruce Ashfield [Tue, 29 Oct 2019 09:47:16 +0000 (10:47 +0100)]
linux-yocto/5.0: bsp: add basic xilinx zynqmp support
Zumeng Chen has added core/basic support for the zynqmp that is bootable
using the 5.0 and 5.2-rcX kernels. This makes the fragments available
for future refinement and factoring. A bootlog follows:
Filename 'Image'.
Load address: 0x10000000
Loading:
###########
11.3 MiB/s
done
Bytes transferred = 16378368 (f9ea00 hex)
Using ethernet@ff0e0000 device
TFTP from server 128.224.162.211; our IP address is 128.224.162.99
Filename 'dtb'.
Load address: 0x11800000
Loading: ##
4.7 MiB/s
done
Bytes transferred = 19746 (4d22 hex)
Booting using the fdt blob at 0x11800000
Loading Device Tree to 0000000007ff8000, end 0000000007fffd21 ... OK
clk: Not disabling unused clocks
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts:
(null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1216K
Run /sbin/init as init process
random: fast init done
systemd[1]: systemd 242-19-gdb2e367+ running in system mode. (+PAM
-AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP
-GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN
-)
systemd[1]: Detected architecture arm64.
Welcome to Wind River Linux development 19.23 Update 0!
systemd[1]: Set hostname to <xilinx-zynqmp>.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Initializing machine ID from random generator.
systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream= references
a path below legacy directory /var/run/, updating
/var/run/dbus/system_bus_socket �→ /run/dbus/system_bus_socket; please
update the unit f.
systemd[1]: /lib/systemd/system/rpcbind.socket:4: ListenStream=
references a path below legacy directory /var/run/, updating
/var/run/rpcbind.sock �→ /run/rpcbind.sock; please update the unit file
accordingly.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Reached target Swap.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Journal Socket.
Starting udev Coldplug all Devices...
Mounting POSIX Message Queue File System...
Mounting Temporary Directory (/tmp)...
Starting Journal Service...
Starting Remount Root and Kernel File Systems...
Mounting Kernel Debug File System...
EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
Starting Create list of re�…odes for the current kernel...
[ OK ] Started Forward Password R�…uests to Wall Directory Watch.
[ OK ] Reached target Remote File Systems.
[ OK ] Listening on Network Service Netlink Socket.
Starting Apply Kernel Variables...
[ OK ] Started Dispatch Password �…ts to Console Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Created slice system-getty.slice.
Mounting Huge Pages File System...
[ OK ] Started Journal Service.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Started Create list of req�… nodes for the current kernel.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Huge Pages File System.
Starting Create System Users...
Starting Rebuild Hardware Database...
Starting Flush Journal to Persistent Storage...
[ OK ] Started udev Coldplug all Devices.
systemd-journald[148]: Received request to flush runtime journal from
PID 1
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
[ OK ] Mounted /var/volatile.
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting Load/Save Random Seed...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Rebuild Journal Catalog...
Starting Update UTMP about System Boot/Shutdown...
Starting Run pending postinsts...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Set.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Run pending postinsts.
[ OK ] Started Rebuild Hardware Database.
Starting udev Kernel Device Manager...
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Reached target System Initialization.
Starting Console System Startup Logging...
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started System Logging Service.
[ OK ] Started Dynamic Host Configuration Protocol (DHCP).
[ OK ] Started Kernel Logging Service.
Starting Login Service...
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Xserver startup without a display manager.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
Starting Telephony service...
Starting Network Service...
[ OK ] Started Console System Startup Logging.
[ OK ] Found device /dev/ttyPS0.
[ OK ] Listening on Load/Save RF �…itch Status /dev/rfkill Watch.
[ OK ] Started Network Service.
Starting Network Name Resolution...
[ OK ] Started Login Service.
[ OK ] Started Network Name Resolution.
[ OK ] Started Telephony service.
[ OK ] Reached target Network.
Starting Berkeley Internet Name Domain (DNS)...
Starting /etc/rc.local Compatibility...
Starting Permit User Sessions...
Starting Avahi mDNS/DNS-SD Stack...
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Permit User Sessions.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyPS0.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Berkeley Internet Name Domain (DNS).
[ OK ] Reached target Host and Network Name Lookups.
Wind River Linux development 19.23 Update 0 xilinx-zynqmp ttyPS0
xilinx-zynqmp login: root
root@xilinx-zynqmp:~# uname 0a
uname: extra operand '0a'
Try 'uname --help' for more information.
root@xilinx-zynqmp:~# uname -a
Linux xilinx-zynqmp 5.2.0-rc3-yoctodev-standard #1 SMP PREEMPT Thu Jun 6
00:53:26 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
kernel.bbclass: fix installation of modules signing certificates
If one has provided external key/certificate for modules signing, Kbuild
will skip creating signing_key.pem and will write only signing_key.x509
certificate. Thus we have to check for .x509 file existence rather than
.pem one.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2527e731eba43bd36d0ea268aca6b03155376134) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
File "/workdir/build/tmp/work/dbfp4-poky-linux/qv4l2/1.17.0+gitAUTOINC+95f39aae48-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/mesonbuild/dependencies/base.py", line 574, in _call_pkgbin
cache[(self.pkgbin, targs, fenv)] = self._call_pkgbin_real(args, env, use_native)
File "/workdir/build/tmp/work/dbfp4-poky-linux/qv4l2/1.17.0+gitAUTOINC+95f39aae48-r0/recipe-sysroot-native/usr/lib/python3.7/site-packages/mesonbuild/dependencies/base.py", line 556, in _call_pkgbin_real
cmd = self.pkgbin.get_command() + "-native" + args
TypeError: can only concatenate list (not "str") to list
Armin Kuster [Sun, 6 Oct 2019 04:30:56 +0000 (21:30 -0700)]
qemu: fix build issue on new hosts with glibc 2.30
This fixes the following error:
TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:254:16: error: static declaration of ‘gettid’ follows non-static declaration
254 | _syscall0(int, gettid)
| ^~~~~~
TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:185:13: note: in definition of macro ‘_syscall0’
185 | static type name (void) \
| ^~~~
In file included from /usr/include/unistd.h:1170,
from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:90,
from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:20:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~
Jan Klare [Tue, 27 Aug 2019 14:52:04 +0000 (16:52 +0200)]
systemd: update SRCREV for systemd v241-stable
Currently systemd 241 does break for kernels 5.2+ with the error described here:
* https://github.com/systemd/systemd/issues/12784
The issue has been fixed in master and will be fixed in the release 243. The
necessary patches have been backported to systemd/systemd-stable in the branch
v241-stable, but currently in warrior an old version of that branch is pulled
in.
This patch updates the SRCREV to the latest commit from that branch and
therefore pulls in the needed fix to run systemd 241 on 5.2+ kernels.
Signed-off-by: Jan Klare <jan.klare@bisdn.de> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Adrian Bunk [Sun, 29 Sep 2019 20:44:53 +0000 (23:44 +0300)]
json-c: Don't --enable-rdrand
In recent years AMD CPUs have had various problems with RDRAND
giving either non-random data or no result at all, which is
problematic if either build or target machine has a CPU with
this problem.
The fallback is /dev/urandom, and I'd trust the kernel here.
--enable-rdrand was added in an upgrade to a new upstream
version without mentioning any reason.
[YOCTO #13534]
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Richard Purdie [Tue, 1 Oct 2019 00:56:00 +0000 (17:56 -0700)]
runqemu: Add support for kvm on aarch64
The main issue is to make the x86 checks apply to x86 targets only. We may
end up with better checks on other architectures but this adapts the code to
allow for that and its still controlled by whether QB_CPU_KVM is set.
The code needed minor refactoring so the qemu-system-XXX name is set
earlier so the kvm code can use it.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Tue, 1 Oct 2019 00:55:59 +0000 (17:55 -0700)]
qemuarm64: Add QB_CPU_KVM to allow kvm acceleration
This allows kvm acceleration on arm systems that support it. "host" is the
best option I can find right now to attempt to use the acceleration. It
potentially might not be correct but arm systems are sensitive to the
correct values and I don't want to encode the autobuilders CPU type here.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f13788541f64774a586971ed57699e4397b38b32) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Wed, 25 Sep 2019 11:11:02 +0000 (12:11 +0100)]
cve-check: backport rewrite from master
As detailed at [1] the XML feeds provided by NIST are being discontinued on
October 9th 2019. As cve-check-tool uses these feeds, cve-check.bbclass will be
inoperable after this date.
To ensure that cve-check continues working, backport the following commits from
master to move away from the unmaintained cve-check-tool to our own Python code
that fetches the JSON:
546d14135c5 cve-update-db: New recipe to update CVE database bc144b028f6 cve-check: Remove dependency to cve-check-tool-native 7f62a20b32a cve-check: Manage CVE_PRODUCT with more than one name 3bf63bc6084 cve-check: Consider CVE that affects versions with less than operator c0eabd30d7b cve-update-db: Use std library instead of urllib3 27eb839ee65 cve-check: be idiomatic 09be21f4d17 cve-update-db: Manage proxy if needed. 975793e3825 cve-update-db: do_populate_cve_db depends on do_fetch 0325dd72714 cve-update-db: Catch request.urlopen errors. 4078da92b49 cve-check: Depends on cve-update-db-native f7676e9a38d cve-update-db: Use NVD CPE data to populate PRODUCTS table bc0195be1b1 cve-check: Update unpatched CVE matching c807c2a6409 cve-update-db-native: Skip recipe when cve-check class is not loaded. 07bb8b25e17 cve-check: remove redundant readline CVE whitelisting 5388ed6d137 cve-check-tool: remove 270ac00cb43 cve-check.bbclass: initialize to_append e6bf9000987 cve-check: allow comparison of Vendor as well as Product 91770338f76 cve-update-db-native: use SQL placeholders instead of format strings 7069302a4cc cve-check: Replace CVE_CHECK_CVE_WHITELIST by CVE_CHECK_WHITELIST 78de2cb39d7 cve-update-db-native: Remove hash column from database. 4b301030cf9 cve-update-db-native: use os.path.join instead of + f0d822fad2a cve-update-db: actually inherit native b309840b6aa cve-update-db-native: use executemany() to optimise CPE insertion bb4e53af33d cve-update-db-native: improve metadata parsing 94227459792 cve-update-db-native: clean up JSON fetching 95438d52b73 cve-update-db-native: fix https proxy issues 1f9a963b9ff glibc: exclude child recipes from CVE scanning
Bedel, Alban [Wed, 31 Jul 2019 13:53:45 +0000 (13:53 +0000)]
kernel-uboot: compress arm64 kernels
AArch64 images are not self-decompressing, thus usually much larger.
Boot times can be reduced by compressing them in FIT and uImages.
This commit is a backport of commit a725d188b5 (kernel-uboot: compress
arm64 kernels) and commit 60bc7e180e (kernel-uboot: remove useless
special casing of arm64 Image) from master. Both commit were melted
into one to avoid some useless churn.
Signed-off-by: Alban Bedel <alban.bedel@aerq.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Will Page [Thu, 12 Sep 2019 15:02:15 +0000 (15:02 +0000)]
uboot: fixes to uboot-extlinux-config attribute values
The way this class uses overrides to support generation of multiple
sections is subject to two different issues: 1) labels that conflict
with existing override names causing the value for the conflicting label
to be set for all labels, and 2) reusing the override list through each
iteration, prepending each new label to the list of overrides makes
earlier labels' value take precedence over later labels, making later
labels virtually impossible to customize.
The first issue is resolved by removing all label names from overrides
before iterating over labels. The second issue is resolved by
generating a fresh list of overrides with only the current label added.
The current label is also appended to the list of overrides instead of
prepended, which makes it the highest priority override. This is
matches the behavior of devtool-source.bbclass, which similarly
monkey-patches overrides.
Richard Purdie [Fri, 31 May 2019 07:54:00 +0000 (08:54 +0100)]
useradd: Fix build architecture corruption of sstate artefacts
When mixing aarch64 and x86_64 host builds with common sstate, useradd failures
were found. This was due to references to:
/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/aarch64/pseudo-native/usr/bin/pseudo
or
/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo
on the wrong architecture within the useradd postinst files.
Instead of using COMPONENTS_DIR as the FIXME, use PSEUDO_SYSROOT which contains
the arch component as well to avoid this.
Add extra comments to cause the relavent sstate to be rebuilt.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0384622f72a6c0bd8225cf06f692340fdef67d4a) Signed-off-by: Armin Kuster <akuster808@gmail.com>
$ bitbake core-image-minimal
update-alternatives: libtool has multiple providers with the same priority,
please check
/path/to/rootfs/usr/lib/opkg/alternatives/libtool for details
Both libtool and lib32-libtool have the same priority (as they're the same
recipe), so update-alternatives won't deterministically pick a provider. This
means you could end up with an image using a 32-bit pkgconfig and 64-bit
libtool, for example.
Make extended recipes reduce priority by 1 (or 2, 3 ... when there are multiple
variants in MULTILIB_VARIANTS) to fix the problem.
[YOCTO #13418]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Adrian Bunk [Mon, 9 Sep 2019 10:25:19 +0000 (13:25 +0300)]
libxcrypt: Fix the build with -Os
| In file included from ../git/lib/alg-des.c:66:
| ../git/lib/alg-des.c: In function '_crypt_des_set_key':
| ../git/lib/byteorder.h:24:1: error: inlining failed in call to 'be32_to_cpu': call is unlikely and code size would grow [-Werror=inline]
| be32_to_cpu (const unsigned char *buf)
| ^~~~~~~~~~~
| ../git/lib/alg-des.c:81:13: note: called from here
| rawkey1 = be32_to_cpu (&key[4]);
| ^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Bruce Ashfield [Wed, 14 Aug 2019 15:31:29 +0000 (11:31 -0400)]
kernel-devsrc: tweak for v5.3+
The 5.3 kernel has two changes that require tweaks to the minimal
kernel-devsrc package.
- 4ce97317f [x86/purgatory: Do not use __builtin_memcpy and __builtin_memset]
This change removes the need for arch/x86/purgatory/string.c and
instead reuses a copy in arch/x86/boot/compressed/, so we can't copy
the file anymore. To support older kernels, we make the copy survive
the non-existence of the file.
- b1663d7e [docs: Kbuild/Makefile: allow check for missing docs at build time]
This change adds the sourceing of Documentation/Kbuild to the top
level Kbuild file. So we now leave the copy of Documention/'s Kbuild
in the devsrc.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
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> Signed-off-by: Armin Kuster <akuster@mvista.com>
When using sstate, or performing an incremental build any change to
the do_stash_locale() will cause a build failure because
do_stash_locale() was destroying the results obtained from the
do_install() with several mv operations. A recent change to
do_stash_locale() for a different problem illustrated a number of
build failures for users in the community.
To fix the problem, do_stash_locale() must use copy operations instead
of the mv operations. Because this is changed to a copy, the sysroot
and package stage need to remove the files that would have been
previously removed. The correct "fixup" code to deal with the removal
already existed in the previous do_poststash_install_cleanup(). All
that needed change was the path to where to remove the files
from the sysroot and package stages.
In order to force a re-compilation of glibc some unused white space
was removed from do_compile() for glibc. I could not find any other
way around this and we don't want to have all the community folks to
have another iteration where they have to remove their tmp directories
or purge some portion of the sstate. It also makes this change
bisectable. If the change to the glibc is not included, it will fail
with the following message:
=====
| DEBUG: Executing shell function do_prep_locale_tree
| tar: i18n: Cannot stat: No such file or directory
| tar: Exiting with failure status due to previous errors
| gzip: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/locale-tree//usr/share/i18n/charmaps/*gz.gz: No such file or directory
=====
After this one time change I tested changing only the
do_stash_locale() function and it now works well because it is
deterministically operating off the sstate data or a local build.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Jason Wessel [Tue, 2 Jul 2019 20:16:09 +0000 (13:16 -0700)]
glibc/glibc-locale: Fix do_stash_locale to work with usrmerge and multilibs
The do_stash_locale was not working consistently across the 4 build
configurations and the multilib, usrmerge configuration would fail
entirely with the obscure message:
| DEBUG: Executing shell function do_prep_locale_tree
| tar: i18n: Cannot stat: No such file or directory
| tar: Exiting with failure status due to previous errors
| gzip: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/locale-tree//usr/share/i18n/charmaps/*gz.gz: No such file or directory
| WARNING: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/temp/run.do_prep_locale_tree.124690:1 exit 1 from 'gunzip $i'
Here is the 4 build configurations without the patch applied:
A) x86-64 no multilibs, no usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
909
B) x86-64 no multilibs, usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
909
C) x86-64 multilibs, no usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
885
D) x86-64 multilibs, usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
864
The issue here is that all the moves should be processed first, then a
copy should be made of the lib directories, but only in the case they
are different when using the usrmerge feature. Even though the build
worked for the multilib configuration without usrmerge, the content
was not the same.
After applying the patch the same number of files are in all the
configurations. The list of files was also diffed, after normalizing
the directory names to ensure all the correct files were copied.
Ultimately there are probably additional files that should be pruned
from what is copied to the stated_locale, but the purpose of this
patch is make it 100% consistent between the build types and fix the
builds.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Jason Wessel [Tue, 2 Jul 2019 20:16:08 +0000 (13:16 -0700)]
glibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"
When the PACKAGE_NO_GCONV is set to 1 an empty directory is left behind from the do_install rule:
=====
ERROR: glibc-locale-2.29-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
/usr/lib
/usr/lib/locale
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glibc-locale: 2 installed and not shipped files. [installed-vs-shipped]
ERROR: glibc-locale-2.29-r0 do_package: Fatal QA errors found, failing task.
=====
The simple fix is to prune the empty directory.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Nathan Rossi [Wed, 28 Aug 2019 05:06:29 +0000 (05:06 +0000)]
binutils: Fix mips patch which changes default emulation
The patch incorrectly removes 'mips_elf32_ntrad_le_vec' from the
'targ_selvecs' replacing it with duplicate entries for
'mips_elf32_ntrad_be_vec'. Correct this so that the default binutils can
still handle 'mips_elf32_ntrad_le_vec' binaries.
* this might be related to:
commit d2fcaeb153fdc3f8d7143ea823139f1537055ff1
Author: Douglas Royds <douglas.royds@taitradio.com>
Date: Thu Dec 20 11:59:47 2018 +1300
icecc: Don't generate recipe-sysroot symlinks at recipe-parsing time
* it's still a bit unclear when and why this happends, but I'm seeing
random tasks sometimes failing with:
WARNING: Exception during build_dependencies for set_icecc_env
WARNING: Error during finalise of /build/meta-oe/meta-python/recipes-devtools/python/python-markupsafe_1.0.bb
ERROR: Traceback (most recent call last):
File "/build/bitbake/lib/bb/data_smart.py", line 411, in expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
File "/build/bitbake/lib/bb/data_smart.py", line 136, in python_sub
value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
File "/build/bitbake/lib/bb/utils.py", line 421, in better_eval
return eval(source, ctx, locals)
File "Var <set_icecc_env>", line 1, in <module>
File "/build/oe-core/meta/classes/icecc.bbclass", line 287, in icecc_get_and_check_tool
link_path = icecc_get_tool_link(t, d)
File "/build/oe-core/meta/classes/icecc.bbclass", line 246, in icecc_get_tool_link
return subprocess.check_output("readlink -f %s" % tool, shell=True).decode("utf-8")[:-1]
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'readlink -f /build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-g++' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/build/bitbake/bin/bitbake-worker", line 239, in child
the_data = bb_cache.loadDataFull(fn, appends)
File "/build/bitbake/lib/bb/cache.py", line 327, in loadDataFull
bb_data = self.load_bbfile(virtualfn, appends, virtonly=True)
File "/build/bitbake/lib/bb/cache.py", line 340, in load_bbfile
datastores = parse_recipe(bb_data, bbfile, appends, mc)
File "/build/bitbake/lib/bb/cache.py", line 303, in parse_recipe
bb_data = bb.parse.handle(bbfile, bb_data)
File "/build/bitbake/lib/bb/parse/__init__.py", line 107, in handle
return h['handle'](fn, data, include)
File "/build/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 142, in handle
return ast.multi_finalize(fn, d)
File "/build/bitbake/lib/bb/parse/ast.py", line 386, in multi_finalize
finalize(fn, d)
File "/build/bitbake/lib/bb/parse/ast.py", line 351, in finalize
bb.parse.siggen.finalise(fn, d, variant)
File "/build/bitbake/lib/bb/siggen.py", line 147, in finalise
taskdeps = self._build_data(fn, d)
File "/build/bitbake/lib/bb/siggen.py", line 118, in _build_data
tasklist, gendeps, lookupcache = bb.data.generate_dependencies(d)
File "/build/bitbake/lib/bb/data.py", line 388, in generate_dependencies
deps[dep], values[dep] = build_dependencies(dep, keys, shelldeps, varflagsexcl, d)
File "/build/bitbake/lib/bb/data.py", line 317, in build_dependencies
value, parsedvar = d.getVarFlag(key, "_content", False, retparser=True)
File "/build/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
parser = self.expandWithRefs(value, cachename)
File "/build/bitbake/lib/bb/data_smart.py", line 424, in expandWithRefs
raise ExpansionError(varname, s, exc).with_traceback(tb) from exc
File "/build/bitbake/lib/bb/data_smart.py", line 411, in expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
File "/build/bitbake/lib/bb/data_smart.py", line 136, in python_sub
value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
File "/build/bitbake/lib/bb/utils.py", line 421, in better_eval
return eval(source, ctx, locals)
File "Var <set_icecc_env>", line 1, in <module>
File "/build/oe-core/meta/classes/icecc.bbclass", line 287, in icecc_get_and_check_tool
link_path = icecc_get_tool_link(t, d)
File "/build/oe-core/meta/classes/icecc.bbclass", line 246, in icecc_get_tool_link
return subprocess.check_output("readlink -f %s" % tool, shell=True).decode("utf-8")[:-1]
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
bb.data_smart.ExpansionError: Failure expanding variable set_icecc_env, expression was if [ "${@use_icecc(bb, d)}" = "no" ]
then
return
fi
ICECC_VERSION="${@icecc_version(bb, d)}"
if [ "x${ICECC_VERSION}" = "x" ]
then
bbwarn "Cannot use icecc: could not get ICECC_VERSION"
return
fi
ICE_PATH="${@icecc_path(bb, d)}"
if [ "x${ICE_PATH}" = "x" ]
then
bbwarn "Cannot use icecc: could not get ICE_PATH"
return
fi
ICECC_BIN="${@get_icecc(d)}"
if [ -z "${ICECC_BIN}" ]; then
bbwarn "Cannot use icecc: icecc binary not found"
return
fi
if [ -z "$(which patchelf patchelf-uninative)" ]; then
bbwarn "Cannot use icecc: patchelf not found"
return
fi
# Create symlinks to icecc in the recipe-sysroot directory
mkdir -p ${ICE_PATH}
if [ -n "${KERNEL_CC}" ]; then
compilers="${@get_cross_kernel_cc(bb,d)}"
else
compilers="x86_64-oe-linux-gcc x86_64-oe-linux-g++"
fi
for compiler in $compilers; do
ln -sf ${ICECC_BIN} ${ICE_PATH}/$compiler
done
ICECC_CC="${@icecc_get_and_check_tool(bb, d, "gcc")}"
ICECC_CXX="${@icecc_get_and_check_tool(bb, d, "g++")}"
# cannot use icecc_get_and_check_tool here because it assumes as without target_sys prefix
ICECC_WHICH_AS="${@bb.utils.which(os.getenv('PATH'), 'as')}"
if [ ! -x "${ICECC_CC}" -o ! -x "${ICECC_CXX}" ]
then
bbwarn "Cannot use icecc: could not get ICECC_CC or ICECC_CXX"
return
fi
ICE_VERSION=`$ICECC_CC -dumpversion`
ICECC_VERSION=`echo ${ICECC_VERSION} | sed -e "s/@VERSION@/$ICE_VERSION/g"`
if [ ! -x "/build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/icecc-create-env" ]
then
bbwarn "Cannot use icecc: invalid ICECC_ENV_EXEC"
return
fi
ICECC_AS="`${ICECC_CC} -print-prog-name=as`"
# for target recipes should return something like:
# /OE/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/arm920tt-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.8.2/as
# and just "as" for native, if it returns "as" in current directory (for whatever reason) use "as" from PATH
if [ "`dirname "${ICECC_AS}"`" = "." ]
then
ICECC_AS="${ICECC_WHICH_AS}"
fi
if [ ! -f "${ICECC_VERSION}.done" ]
then
mkdir -p "`dirname "${ICECC_VERSION}"`"
# the ICECC_VERSION generation step must be locked by a mutex
# in order to prevent race conditions
if flock -n "${ICECC_VERSION}.lock" \
/build/BUILD/work/qemux86-oe-linux/python-markupsafe/1.0-r0/recipe-sysroot-native/usr/bin/icecc-create-env "${ICECC_CC}" "${ICECC_CXX}" "${ICECC_AS}" "${ICECC_VERSION}"
then
touch "${ICECC_VERSION}.done"
elif ! wait_for_file "${ICECC_VERSION}.done" 30
then
# locking failed so wait for ${ICECC_VERSION}.done to appear
bbwarn "Timeout waiting for ${ICECC_VERSION}.done"
return
fi
fi
# Don't let ccache find the icecream compiler links that have been created, otherwise
# it can end up invoking icecream recursively.
export CCACHE_PATH="$PATH"
export CCACHE_DISABLE="1"
Bedel, Alban [Thu, 15 Aug 2019 12:37:28 +0000 (12:37 +0000)]
boost: Fix build and enable context and coroutines on aarch64
Like for ARM bjam need some hints about the ABI to properly build on
aarch64. While at it also enable context and coroutine as these are
supported on aarch64.
Signed-off-by: Alban Bedel <alban.bedel@aerq.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Bruce Ashfield [Fri, 2 Aug 2019 02:33:18 +0000 (22:33 -0400)]
linux-yocto/4.19: update to v4.19.61
Integrating the korg -stable commits that comprise the following
changes:
7250956f6eaf Linux 4.19.61 025eb12bb4b0 dm bufio: fix deadlock with loop device 404f59e265ac dt-bindings: allow up to four clocks for orion-mdio 03e6a668ea1f net: mvmdio: allow up to four clocks to be specified for orion-mdio dd87cc633ba5 blkcg: update blkcg_print_stat() to handle larger outputs 73efdc5d7d3b blk-iolatency: clear use_delay when io.latency is set to zero 1ab644bd02ab blk-throttle: fix zero wait time for iops throttled group 91da712ff592 usb: Handle USB3 remote wakeup for LPM enabled devices correctly 152ddf9f0458 Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bug 98318cd31b95 intel_th: msu: Fix single mode with disabled IOMMU d6328d7c1a71 mtd: spinand: read returns badly if the last page has bitflips 94f1db42a968 mtd: rawnand: mtk: Correct low level time calculation of r/w cycle 30c6b34759f6 eCryptfs: fix a couple type promotion bugs 92e23f5fc049 mmc: sdhci-msm: fix mutex while in spinlock 01982f7bcc9d powerpc/pseries: Fix oops in hotplug memory notifier e725502b8548 powerpc/powernv/npu: Fix reference leak 1e3b61cbc30d powerpc/watchpoint: Restore NV GPRs while returning from exception 237ac0d73b55 powerpc/32s: fix suspend/resume when IBATs 4-7 are used 7961981718d6 parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1 a6a0daa775e8 parisc: Ensure userspace privilege for ptraced processes in regset functions ef5c2e165ab0 crypto: caam - limit output IV to CBC to work around CTR mode DMA issue 376b80276d84 gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM ef30c0739439 xfs: abort unaligned nowait directio early 669c867972c0 xfs: serialize unaligned dio writes against all other dio writes d61d885b17b0 xfs: fix reporting supported extra file attributes for statx() f614ef7a34b0 xfs: reserve blocks for ifree transaction during log recovery 424543a53ae0 xfs: don't ever put nlink > 0 inodes on the unlinked list 3a895cc066c0 xfs: rename m_inotbt_nores to m_finobt_nores 2ab62234e823 xfs: don't overflow xattr listent buffer 1dc8b13cc66d xfs: flush removing page cache in xfs_reflink_remap_prep 788920d12b95 xfs: fix pagecache truncation prior to reflink 41f64437f030 include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures afa3e571cde3 coda: pass the host file in vma->vm_file on mmap 2c0222b48e77 libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 656d06dab4d6 HID: wacom: correct touch resolution x/y typo 1c871b4006b2 HID: wacom: generic: Correct pad syncing 46f71a15abe7 HID: wacom: generic: only switch the mode on devices with LEDs cb4c2b94f629 IB/mlx5: Report correctly tag matching rendezvous capability 4bd953241d81 Btrfs: add missing inode version, ctime and mtime updates when punching hole fffedf5cf67e Btrfs: fix fsync not persisting dentry deletions due to inode evictions 110850fffeb0 Btrfs: fix data loss after inode eviction, renaming it, and fsync it 6b71c62ea9da PCI: qcom: Ensure that PERST is asserted for at least 100 ms 529e71cae929 PCI: Do not poll for PME if the device is in D3cold 4d8504004c86 PCI: hv: Fix a use-after-free bug in hv_eject_device_work() f0ff76a42ef5 intel_th: pci: Add Ice Lake NNPI support 66a13b5e4e9c drm/edid: parse CEA blocks embedded in DisplayID 9854e06842bc perf/x86/amd/uncore: Set the thread mask for F17h L3 PMCs 82c46f7b0918 perf/x86/amd/uncore: Do not set 'ThreadMask' and 'SliceMask' for non-L3 PMCs a847a5225432 perf/x86/intel: Fix spurious NMI on fixed counter 0d4c0bb70665 x86/boot: Fix memory leak in default_get_smp_config() b52807e607f1 9p/virtio: Add cleanup path in p9_virtio_init 1253882d64d0 9p/xen: Add cleanup path in p9_trans_xen_init 007e5aaf287c xen/events: fix binding user event channels to cpus e380170b3b3a dm zoned: fix zone state management race 1e4247d7958b padata: use smp_mb in padata_reorder to avoid orphaned padata jobs 0489d808a5f2 drm/nouveau/i2c: Enable i2c pads & busses during preinit c77cbc873586 kconfig: fix missing choice values in auto.conf 2c7b50c7b1d0 fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes. ba271659ad42 arm64: tegra: Fix AGIC register range ba27a25df6df KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed 87bae91a0fe9 media: videobuf2-dma-sg: Prevent size from overflowing cb2e2b0ae554 media: videobuf2-core: Prevent size alignment wrapping buffer size to 0 deb78bd24e0c media: coda: Remove unbalanced and unneeded mutex unlock fc0232e24541 media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom() a4c4c06f1755 ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine 8ba78e4d564e ALSA: hda/realtek - Fixed Headphone Mic can't record on Dell platform c92212a81617 ALSA: seq: Break too long mutex context in the write loop eb6c84e4b4f2 raid5-cache: Need to do start() part job after adding journal device 3f42c0000b23 ASoC: dapm: Adapt for debugfs API change 677b2aa3be5c lib/scatterlist: Fix mapping iterator when sg->offset is greater than PAGE_SIZE 0b174bac4e43 pnfs: Fix a problem where we gratuitously start doing I/O through the MDS f64ff5914f00 pNFS: Fix a typo in pnfs_update_layout 603e7497bf27 pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error 5347e61954fc NFSv4: Handle the special Linux file open access mode 6825ff011c7c iwlwifi: fix RF-Kill interrupt while FW load for gen2 devices a32e2ceca0ef iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill d9ce0788da91 iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X 04c52c105a38 iwlwifi: pcie: don't service an interrupt that was masked 7ebddd5fe217 arm64: tegra: Update Jetson TX1 GPU regulator timings 042451b921b1 regulator: s2mps11: Fix buck7 and buck8 wrong voltages 8da63aa46e26 Input: alps - fix a mismatch between a condition check and its comment 81368a9a98d9 Input: synaptics - whitelist Lenovo T580 SMBus intertouch cfb9250619c8 Input: alps - don't handle ALPS cs19 trackpoint-only device d657077eda7b Input: gtco - bounds check collection indent level f11ba9df8eed bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_thread 2ab14861d2eb bcache: fix mistaken sysfs entry for io_error counter 3c466df8fc59 bcache: ignore read-ahead request failure on backing device 4fc48cd21a31 bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free" ab966241d59a bcache: Revert "bcache: fix high CPU occupancy during journal" 58169c189bd6 Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()" c3b7d27f3746 crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe a9fd1795fee6 crypto: ccp/gcm - use const time tag comparison. 561c4424f1e3 crypto: ccp - memset structure fields to zero before reuse 13805a5df489 crypto: crypto4xx - block ciphers should only accept complete blocks 17e63172d536 crypto: crypto4xx - fix blocksize for cfb and ofb 4598094d24c7 crypto: crypto4xx - fix AES CTR blocksize value 1c9b0a766513 crypto: chacha20poly1305 - fix atomic sleep when using async algorithm eb99c084da28 crypto: arm64/sha2-ce - correct digest for empty data in finup 4230e09e61e6 crypto: arm64/sha1-ce - correct digest for empty data in finup 52f07c1ac70e crypto: ccp - Validate the the error value used to index error messages bed97f646997 crypto: ghash - fix unaligned memory access in ghash_setkey() ce7ec07abaf7 scsi: mac_scsi: Fix pseudo DMA implementation, take 2 de769c762626 scsi: mac_scsi: Increase PIO/PDMA transfer length threshold 3e9534fa5046 scsi: megaraid_sas: Fix calculation of target ID 1334a3e2d6d0 scsi: core: Fix race on creating sense cache 58f59f6072ab Revert "scsi: ncr5380: Increase register polling limit" 7cfded7a705c scsi: NCR5380: Always re-enable reselection interrupt d91baba81a6e scsi: NCR5380: Reduce goto statements in NCR5380_select() e73db096691e xen: let alloc_xenballooned_pages() fail if not enough memory free ff54c44f1038 floppy: fix out-of-bounds read in copy_buffer a9444d9d0f6f floppy: fix invalid pointer dereference in drive_name 5b565f3276f3 floppy: fix out-of-bounds read in next_valid_format 6e34fd07484a floppy: fix div-by-zero in setup_format_params 7c16c5eae41a iavf: fix dereference of null rx_buffer pointer e9896b29d010 net: mvmdio: defer probe of orion-mdio if a clock is not ready 5f6c5f5ae25e gtp: fix use-after-free in gtp_newlink() 141222216438 gtp: fix use-after-free in gtp_encap_destroy() 0a5eca2c949c gtp: fix Illegal context switch in RCU read-side critical section. e117a04133c6 gtp: fix suspicious RCU usage 202de90df2b7 Bluetooth: validate BLE connection interval updates ca33af18b5fc gtp: add missing gtp_encap_disable_sock() in gtp_encap_enable() 0fdb922d0ef0 Bluetooth: Check state in l2cap_disconnect_rsp 3b57b7a3a82a perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 c814f618b799 Bluetooth: 6lowpan: search for destination address in all peers c82c4910e9e6 Bluetooth: Add new 13d3:3501 QCA_ROME device 1cbce19bd697 Bluetooth: Add new 13d3:3491 QCA_ROME device 578658df21d5 Bluetooth: hci_bcsp: Fix memory leak in rx_skb 9d47bd217539 tools: bpftool: Fix json dump crash on powerpc 2ad04d31bb3e gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants 157d1c7a1a00 bonding: validate ip header before check IPPROTO_IGMP 88f751b066f2 selftests: bpf: fix inlines in test_lwt_seg6local ef5b204336b3 bpf, libbpf, smatch: Fix potential NULL pointer dereference 0f2f2cebe64d rxrpc: Fix oops in tracepoint ca37b9a74689 net: usb: asix: init MAC address buffers 51216937c319 bnx2x: Prevent ptp_task to be rescheduled indefinitely e358d2ab42f8 perf stat: Fix group lookup for metric group a64e018be77a perf stat: Make metric event lookup more robust 7343178ccf7d bpf: fix uapi bpf_prog_info fields alignment af3790a46a55 iwlwifi: mvm: Drop large non sta frames 036184af23e0 igb: clear out skb->tstamp after reading the txtime 0024b12b776c net: mvpp2: prs: Don't override the sign bit in SRAM parser shift 05592b9b7f25 ath10k: destroy sdio workqueue while remove sdio module 26d86b29e806 net: hns3: add some error checking in hclge_tm module ddfdbcccd71a net: hns3: fix a -Wformat-nonliteral compile warning 95d084809495 bcache: fix potential deadlock in cached_def_free() 4b7758e9c4ed bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush() 81b88c05bc45 bcache: acquire bch_register_lock later in cached_dev_free() d81080a0bcf8 bcache: check CACHE_SET_IO_DISABLE bit in bch_journal() 57cfb755c356 bcache: check CACHE_SET_IO_DISABLE in allocator code e78d1d234469 EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec e54cc89e6f0a wil6210: drop old event after wmi_call timeout 0388597d0627 crypto: asymmetric_keys - select CRYPTO_HASH where needed 1dea395c9e12 crypto: serpent - mark __serpent_setkey_sbox noinline b346070c72cd ixgbe: Check DDM existence in transceiver before access 0340c621eca8 rslib: Fix handling of of caller provided syndrome 8ba93c59441a rslib: Fix decoding of shortened codes dad0b17e4a4e xsk: Properly terminate assignment in xskq_produce_flush_desc e69fac59c493 clocksource/drivers/exynos_mct: Increase priority over ARM arch timer 12e20eca894b libata: don't request sense data on !ZAC ATA devices 6e6bc34f8570 ASoC: Intel: hdac_hdmi: Set ops to NULL on remove 1182ff224847 perf tools: Increase MAX_NR_CPUS and MAX_CACHES 7201cc227d4a ath10k: fix PCIE device wake up failed 8a808fadc9f7 ath10k: add missing error handling fe2ceeb4cffc ipvs: fix tinfo memory leak in start_sync_thread 20de38d282b3 mt7601u: fix possible memory leak when the device is disconnected 033577880135 x86/build: Add 'set -e' to mkcapflags.sh to delete broken capflags.c 3f7952b275c8 mt7601u: do not schedule rx_tasklet when the device has been disconnected 6f6e126e1995 rtlwifi: rtl8192cu: fix error handle when usb probe failed 41864adfee2e net: stmmac: sun8i: force select external PHY when no internal one bce037abc29f media: hdpvr: fix locking and a missing msleep 43b9fdc48377 media: vimc: cap: check v4l2_fill_pixfmt return value d562537dbf0d media: coda: increment sequence offset for the last returned frame 3697c12c4425 media: coda: fix last buffer handling in V4L2_ENC_CMD_STOP 6fd3e9f65db9 media: coda: fix mpeg2 sequence number handling c647c00f28af acpi/arm64: ignore 5.1 FADTs that are reported as 5.0 b9f547b7bdd9 timer_list: Guard procfs specific code d86c0b73f75b ntp: Limit TAI-UTC offset 8d8f0b9009d0 media: i2c: fix warning same module names 6439110fbeee media: s5p-mfc: Make additional clocks optional 57de3c78f0b7 ipvs: defer hook registration to avoid leaks 06a3cd416224 ipsec: select crypto ciphers for xfrm_algo 723ba7938492 arm64: Do not enable IRQs for ct_user_exit 010bfbc93424 lightnvm: pblk: fix freeing of merged pages 762bba1b7ee7 nvme-pci: set the errno on ctrl state change error c876a66553d7 nvme-pci: properly report state change failure in nvme_reset_work f0c83dd15ee1 nvme: fix possible io failures when removing multipathed ns 10cc3a65a55b EDAC/sysfs: Fix memory leak when creating a csrow object f6502ce4f050 ACPICA: Clear status of GPEs on first direct enable 3ae98dc2db1e blk-iolatency: only account submitted bios a952f7c384aa x86/cacheinfo: Fix a -Wtype-limits warning 3252b29ea41b ipoib: correcly show a VF hardware address 0e2af9b06c00 vhost_net: disable zerocopy by default 4c57957ed6c8 perf evsel: Make perf_evsel__name() accept a NULL argument 9e0bcb59b6c0 x86/atomic: Fix smp_mb__{before,after}_atomic() dd0260fd1e3a perf/x86/intel/uncore: Handle invalid event coding for free-running counter 7fc96cd2b0de sched/fair: Fix "runnable_avg_yN_inv" not used warnings d8b7db6c5004 sched/core: Add __sched tag for io_schedule() 930655b01367 xfrm: fix sa selector validation b7d66bbc8ad3 blkcg, writeback: dead memcgs shouldn't contribute to writeback ownership arbitration c8f75e753784 block: null_blk: fix race condition for null_del_dev 1a3706d8f800 net: hns3: fix for skb leak when doing selftest 6a47a42f51cf qed: iWARP - Fix tc for MPA ll2 connection 670fb965da03 x86/cpufeatures: Add FDP_EXCPTN_ONLY and ZERO_FCS_FDS 366ae49ed78c rcu: Force inlining of rcu_read_lock() 1fb3ce14f28d ASoC: meson: axg-tdm: fix sample clock inversion 32df4043aed4 x86/cpu: Add Ice Lake NNPI to Intel family 914026d58100 selinux: fix empty write to keycreate file 10e3788e6575 media: s5p-mfc: fix reading min scratch buffer size on MFC v6/v7 7c10f8941b95 bpf: silence warning messages in core b01bf44c363d regmap: fix bulk writes on paged registers 544cd592ca72 gpio: omap: ensure irq is enabled before wakeup ddeef7a00050 gpio: omap: fix lack of irqstatus_raw0 for OMAP4 79644b600850 iommu: Fix a leak in iommu_insert_resv_region f2a4624be8f3 media: fdp1: Support M3N and E3 platforms 63e53991d791 media: uvcvideo: Fix access to uninitialized fields on probe error c844f4da9b92 irqchip/meson-gpio: Add support for Meson-G12A SoC eac8b39d089a perf report: Fix OOM error in TUI mode on s390 be32a9dc3f62 perf test 6: Fix missing kvm module load for s390 3662d8bca087 perf cs-etm: Properly set the value of 'old' and 'head' in snapshot mode ac510285d40b ipset: Fix memory accounting for hash types on resize c7bf2df45044 net: sfp: add mutex to prevent concurrent state checks fa4059c5497e RAS/CEC: Fix pfn insertion 99dcd701465f s390/qdio: handle PENDING state for QEBSM devices a76f32cbd38c net: axienet: Fix race condition causing TX hang 9d643358386d net: fec: Do not use netdev messages too early 403c43921479 crypto: inside-secure - do not rely on the hardware last bit for result descriptors 50331c64f3dd net: stmmac: modify default value of tx-frames 1a0a837afc41 net: stmmac: dwmac4: fix flow control issue 713737cac327 perf jvmti: Address gcc string overflow warning for strncpy() fb83987cbe6b arm64: mm: make CONFIG_ZONE_DMA32 configurable c360eb592938 cpupower : frequency-set -r option misses the last cpu in related cpu list cac3032062e5 net: hns3: set ops to null when unregister ad_dev 35407917b0bc media: wl128x: Fix some error handling in fm_v4l2_init_video_device() 2fbde2746597 locking/lockdep: Fix merging of hlocks with non-zero references 909034b8ac64 batman-adv: Fix duplicated OGMs on NETDEV_UP aa2ad8b6fb2f tua6100: Avoid build warnings. 9072450736d0 crypto: talitos - Align SEC1 accesses to 32 bits boundaries. 9d25aedef08f crypto: talitos - properly handle split ICV. fc25cfb03ea2 net: phy: Check against net_device being NULL ef10d46d04a5 media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails. e36f25627362 media: saa7164: fix remove_proc_entry warning ea904c9f6a33 media: mc-device.c: don't memset __user pointer contents a6dd4862b98f perf annotate TUI browser: Do not use member from variable within its own initialization 71b029a5d908 fscrypt: clean up some BUG_ON()s in block encryption/decryption 2c6acf7478aa xfrm: Fix xfrm sel prefix length validation 0544b64ceb64 af_key: fix leaks in key_pol_get_resp and dump_sp. b397462a010d signal/pid_namespace: Fix reboot_pid_ns to use send_sig not force_sig 1c8e736115cd qed: Set the doorbell address correctly df6680de7a20 net: stmmac: dwmac4/5: Clear unused address entries d3969670cb5a net: stmmac: dwmac1000: Clear unused address entries 810441651a8a media: media_device_enum_links32: clean a reserved field 6fb470ace862 media: vpss: fix a potential NULL pointer dereference 70da38e80509 media: marvell-ccic: fix DMA s/g desc number calculation add712b63185 media: ov7740: avoid invalid framesize setting b0e199e13495 crypto: talitos - fix skcipher failure due to wrong output IV 6452712f95e3 media: spi: IR LED: add missing of table registration 94f2b518a788 media: dvb: usb: fix use after free in dvb_usb_device_exit 8f855c09e2af batman-adv: fix for leaked TVLV handler. 83d133c96aad regmap: debugfs: Fix memory leak in regmap_debugfs_init 2b5b12c0c1b7 ath: DFS JP domain W56 fixed pulse type 3 RADAR detection da153c0c5746 wil6210: fix spurious interrupts in 3-msi a4bf4fecff16 ath10k: add peer id check in ath10k_peer_find_by_id 83c911f4bd68 ath6kl: add some bounds checking 42dcbf20e182 ath9k: Check for errors when reading SREV register 7e19e658e535 ath10k: Do not send probe response template for mesh 009edc622bba wil6210: fix potential out-of-bounds read 09593c25b975 dmaengine: imx-sdma: fix use-after-free on probe error path 06e15cf5aead scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported 37cb02da44dc arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly 73ebefc814ef MIPS: fix build on non-linux hosts 7202df6be6ec MIPS: ath79: fix ar933x uart parity mode be9b6782a9eb Linux 4.19.60 d173ce091c1a x86/entry/32: Fix ENDPROC of common_spurious 466bdfc6c4d6 drm/udl: move to embedding drm device inside udl device. af48f7d79fae drm/udl: Replace drm_dev_unref with drm_dev_put cfd99eccede5 drm/udl: introduce a macro to convert dev to udl. 8f14cf159e9f regmap-irq: do not write mask register if mask_base is zero 820b010743ee crypto/NX: Set receive window credits to max number of CRBs in RxFIFO b24c6403633d crypto: talitos - fix hash on SEC1. ff1ce8ef1f88 crypto: talitos - move struct talitos_edesc into talitos.h b578b87bcab6 s390/qdio: don't touch the dsci in tiqdio_add_input_queues() b1d52630b12a s390/qdio: (re-)initialize tiqdio list entries 02eb533e940a s390: fix stfle zero padding 9db915738e40 ARC: hide unused function unw_hdr_alloc fc6975ee932b x86/irq: Seperate unused system vectors from spurious entry again 9494cd392885 x86/irq: Handle spurious interrupt after shutdown gracefully 7897f5a443fb x86/ioapic: Implement irq_get_irqchip_state() callback 6074f6043c49 genirq: Add optional hardware synchronization for shutdown 3f10ccc29780 genirq: Fix misleading synchronize_irq() documentation 578db1aa595b genirq: Delay deactivation in free_irq() 2656ee5a5ad5 linux/kernel.h: fix overflow for DIV_ROUND_UP_ULL 9c875e8556d4 pinctrl: mediatek: Update cur_mask in mask/mask ops f6e01328cb0e cpu/hotplug: Fix out-of-bounds read when setting fail state fa99487a43cf pinctrl: mediatek: Ignore interrupts that are wake only during resume cd2646e57ec5 HID: multitouch: Add pointstick support for ALPS Touchpad 9ea3b131441e HID: chicony: add another quirk for PixArt mouse 94968c37b6d3 x86/boot/64: Add missing fixup_pointer() for next_early_pgt access 729d25f43b64 x86/boot/64: Fix crash if kernel image crosses page table boundary 136847140cc8 dm verity: use message limit for data block corruption message 042be78692ae dm table: don't copy from a NULL pointer in realloc_argv() 0fc080bc9a72 pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order 00640eb0eafa ARM: dts: imx6ul: fix PWM[1-4] interrupts a8cc2a2c2841 sis900: fix TX completion 3232bccddeba ppp: mppe: Add softdep to arc4 5ec7753c7c9e be2net: fix link failure after ethtool offline test 2a6ee36917f0 x86/apic: Fix integer overflow on 10 bit left shift of cpu_khz fdfff855cd36 afs: Fix uninitialised spinlock afs_volume::cb_break_lock d47f06ab0c0e ARM: omap2: remove incorrect __init annotation 5d3c45538151 ARM: dts: gemini Fix up DNS-313 compatible string afda29dc5ac6 perf/core: Fix perf_sample_regs_user() mm check 627fdcc9b718 efi/bgrt: Drop BGRT status field reserved bits check cf4deb2d4de6 clk: ti: clkctrl: Fix returning uninitialized data ff232a47567f irqchip/gic-v3-its: Fix command queue pointer comparison bug 244db54441a1 firmware: improve LSM/IMA security behaviour 079d7f16a973 drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT 68048dce650e nilfs2: do not use unexported cpu_to_le32()/le32_to_cpu() in uapi header 86859ef10d25 Input: synaptics - enable SMBUS on T480 thinkpad trackpad 438a3dc6f2c3 e1000e: start network tx queue only when link is up 8020568b404b Revert "e1000e: fix cyclic resets at link up with active tx" 3bd837bfe431 Linux 4.19.59 70bae382b3dc staging: rtl8712: reduce stack usage, again b46475ecd930 staging: bcm2835-camera: Handle empty EOS buffers whilst streaming 0ee144effcc3 staging: bcm2835-camera: Remove check of the number of buffers supplied fcbc6ddcd624 staging: bcm2835-camera: Ensure all buffers are returned on disable 4502c43d7f3b staging: bcm2835-camera: Replace spinlock protecting context_map with mutex 22a20b9f6d9f staging: fsl-dpaa2/ethsw: fix memory leak of switchdev_work cc396afa1959 MIPS: Remove superfluous check for __linux__ d202b5adccfb VMCI: Fix integer overflow in VMCI handle arrays 486c32325caa carl9170: fix misuse of device driver API 524ad00e80b7 binder: fix memory leak in error path 294b893a41cd lkdtm: support llvm-objcopy 5c90a2ecd08a HID: Add another Primax PIXART OEM mouse quirk c04c751bef87 staging: comedi: amplc_pci230: fix null pointer deref on interrupt 4e49c6c91c18 staging: comedi: dt282x: fix a null pointer deref on interrupt 8419fd562a09 drivers/usb/typec/tps6598x.c: fix 4CC cmd write 63b3028cd590 drivers/usb/typec/tps6598x.c: fix portinfo width 57e16e0d8c68 usb: renesas_usbhs: add a workaround for a race condition of workqueue aa9a8038ea8b usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset() cac4a04202fb usb: gadget: ether: Fix race between gether_disconnect and rx_submit 449a8d08a4bc p54usb: Fix race between disconnect and firmware loading 135d9ba3b285 Revert "serial: 8250: Don't service RX FIFO if interrupts are disabled" 0891268f36a2 USB: serial: option: add support for GosunCn ME3630 RNDIS mode 0a1c811bf033 USB: serial: ftdi_sio: add ID for isodebug v1 bb902b6c87ff mwifiex: Don't abort on small, spec-compliant vendor IEs ffbbd626e1ce mwifiex: Abort at too short BSS descriptor element a2a24b57c27a Documentation/admin: Remove the vsyscall=native documentation 8a815007f5fe Documentation: Add section about CPU vulnerabilities for Spectre bd9604022eb3 x86/tls: Fix possible spectre-v1 in do_get_thread_area() 68ff28291a4f x86/ptrace: Fix possible spectre-v1 in ptrace_get_debugreg() d8e26651ce8d perf pmu: Fix uncore PMU alias list for ARM64 018524b75852 block, bfq: NULL out the bic when it's no longer valid ff75e5f41e88 ALSA: hda/realtek - Headphone Mic can't record after S3 87c3262b00d8 ALSA: usb-audio: Fix parse of UAC2 Extension Units ef374f5a2731 media: stv0297: fix frequency range limit 5db079eb0acd udf: Fix incorrect final NOT_ALLOCATED (hole) extent length 0fc3e9b9b603 fscrypt: don't set policy for a dead directory e9f76b954336 net :sunrpc :clnt :Fix xps refcount imbalance on the error path 810cfc3d9d2e NFS4: Only set creation opendata if O_CREAT 7075654ce7d0 net: dsa: mv88e6xxx: fix shift of FID bits in mv88e6185_g1_vtu_loadpurge() 606561e16186 quota: fix a problem about transfer quota 5ad566af08c1 scsi: qedi: Check targetname while finding boot target information 37232abb6ea3 net: lio_core: fix potential sign-extension overflow on large shift 740b2ac49518 ip6_tunnel: allow not to count pkts on tstats by passing dev as NULL a02ac12d2d48 drm: return -EFAULT if copy_to_user() fails 4c938a635fc3 bnx2x: Check if transceiver implements DDM before access 270ae00a0346 md: fix for divide error in status_resync 5533d9ed4112 mmc: core: complete HS400 before checking status 2da80536f629 qmi_wwan: extend permitted QMAP mux_id value range dc84e98393f7 qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode dbc6a83cf2bc qmi_wwan: add support for QMAP padding in the RX path 292ba5b1faf4 bpf, x64: fix stack layout of JITed bpf code 4c2ce7addda8 bpf, devmap: Add missing RCU read lock on flush ab44f8bcf2e5 bpf, devmap: Add missing bulk queue free 8d09e862103b bpf, devmap: Fix premature entry free on destroying map ba0afe520ee9 mac80211: do not start any work during reconfigure flow de8cf2c0bc64 mac80211: only warn once on chanctx_conf being NULL 9c2dd6d47131 ARM: davinci: da8xx: specify dma_coherent_mask for lcdc 3bbcc8b9ad37 ARM: davinci: da850-evm: call regulator_has_full_constraints() 443250665388 mlxsw: spectrum: Disallow prio-tagged packets when PVID is removed 512bbb114b99 KVM: arm/arm64: vgic: Fix kvm_device leak in vgic_its_destroy 41420ac584d7 Input: imx_keypad - make sure keyboard can always wake up system b71f312e9bf7 riscv: Fix udelay in RV32. 122c6a71c08d drm/vmwgfx: fix a warning due to missing dma_parms d3861d4ca94c drm/vmwgfx: Honor the sg list segment size limitation c0b12abd1828 s390/boot: disable address-of-packed-member warning e71daed5176f ARM: dts: am335x phytec boards: Fix cd-gpios active level 822c2ee81c63 ibmvnic: Fix unchecked return codes of memory allocations 0f06004d16be ibmvnic: Refresh device multicast list after reset e65dd528bb8e ibmvnic: Do not close unopened driver during reset 374180b11b29 net: phy: rename Asix Electronics PHY driver 473a75c7fab5 can: af_can: Fix error path of can_init() 486954277fc1 can: m_can: implement errata "Needless activation of MRAF irq" 270149f78b9c can: mcp251x: add support for mcp25625 33672c74b484 dt-bindings: can: mcp251x: add mcp25625 support 07c96e8e8021 soundwire: intel: set dai min and max channels correctly c7e427e28a3a mwifiex: Fix heap overflow in mwifiex_uap_parse_tail_ies() 8e115a079940 iwlwifi: Fix double-free problems in iwl_req_fw_callback() d4c0f752c1d2 mwifiex: Fix possible buffer overflows at parsing bss descriptor b8588a0981b7 mac80211: free peer keys before vif down in mesh acc42e5c2322 mac80211: mesh: fix RCU warning e3868c1a462f staging:iio:ad7150: fix threshold mode config bit 6b1ce3971e05 soundwire: stream: fix out of boundary access on port properties 6be857082611 bpf: sockmap, fix use after free from sleep in psock backlog workqueue bc84982f977d mac80211: fix rate reporting inside cfg80211_calculate_bitrate_he() 3c24a931e972 samples, bpf: suppress compiler warning e7779115bbd9 samples, bpf: fix to change the buffer size for read() fe01e93c3fd1 Input: elantech - enable middle button support on 2 ThinkPads 2883fc1ece69 soc: bcm: brcmstb: biuctrl: Register writes require a barrier 2f1c962a7416 soc: brcmstb: Fix error path for unsupported CPUs e8250f730410 crypto: talitos - rename alternative AEAD algos. 7a6bfa08b938 Linux 4.19.58 f37de75cb8eb dmaengine: imx-sdma: remove BD_INTR for channel0 018c968de710 dmaengine: qcom: bam_dma: Fix completed descriptors count 870de1499505 MIPS: have "plain" make calls build dtbs for selected platforms 8957895b35de MIPS: Add missing EHB in mtc0 -> mfc0 sequence. 2b8f8a80ca8b MIPS: Fix bounds check virt_addr_valid 80b25628ff26 svcrdma: Ignore source port when computing DRC hash 8129a10ce78f nfsd: Fix overflow causing non-working mounts on 1 TB machines f25c06955f8d KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC f6472f50fbfc KVM: x86: degrade WARN to pr_warn_ratelimited ac0024baf073 netfilter: ipv6: nf_defrag: accept duplicate fragments again 54e8cf41b20b bpf: fix bpf_jit_limit knob for PAGE_SIZE >= 64K e6c288f7307e net: hns: fix unsigned comparison to less than zero 4f24801ef50b sc16is7xx: move label 'err_spi' to correct section 318244f3641a netfilter: ipv6: nf_defrag: fix leakage of unqueued fragments a8891c5e2251 ip6: fix skb leak in ip6frag_expire_frag_queue() 382bc84da904 rds: Fix warning. 7e6af1fa80b8 ALSA: hda: Initialize power_state field properly c8c88293bf72 net: hns: Fixes the missing put_device in positive leg for roce reset 6bf9677300f3 x86/boot/compressed/64: Do not corrupt EDX on EFER.LME=1 setting b91ec6ae14da selftests: fib_rule_tests: Fix icmp proto with ipv6 e2851c3ee0be scsi: tcmu: fix use after free 04096b3beace mac80211: mesh: fix missing unlock on error in table_path_del() e2379b044d67 f2fs: don't access node/meta inode mapping after iput e9fde78c3a4f drm/fb-helper: generic: Don't take module ref for fbcon 7821bcce20aa media: s5p-mfc: fix incorrect bus assignment in virtual child device 3ddc2a100706 net/smc: move unhash before release of clcsock cd54dc4cd37d mlxsw: spectrum: Handle VLAN device unlinking a8a296abee36 tty: rocket: fix incorrect forward declaration of 'rp_init()' fb814f215013 btrfs: Ensure replaced device doesn't have pending chunk allocation 27ce6c2675f6 mm/vmscan.c: prevent useless kswapd loops c854d9b6ef8d ftrace/x86: Remove possible deadlock between register_kprobe() and ftrace_run_update_code() 2e716c3b562d drm/imx: only send event on crtc disable if kept disabled 8ec242fd431b drm/imx: notify drm core before sending event during crtc disable d2d061351d64 drm/etnaviv: add missing failure path to destroy suballoc ec5d99e18d30 drm/amdgpu/gfx9: use reset default for PA_SC_FIFO_SIZE ec6d8c9e6687 drm/amd/powerplay: use hardware fan control if no powerplay fan table b6d56f4f6a49 arm64: kaslr: keep modules inside module region when KASAN is enabled 7cab3dfa6d74 ARM: dts: armada-xp-98dx3236: Switch to armada-38x-uart serial node c8790d7f76be tracing/snapshot: Resize spare buffer if size changed 052b31810085 fs/userfaultfd.c: disable irqs for fault_pending and event locks ea38007107d6 lib/mpi: Fix karactx leak in mpi_powm 7df1e2f59bde ALSA: hda/realtek - Change front mic location for Lenovo M710q 899377c50e60 ALSA: hda/realtek: Add quirks for several Clevo notebook barebones d9b6936b134e ALSA: usb-audio: fix sign unintended sign extension on left shifts 7f52af5e9baa ALSA: line6: Fix write on zero-sized buffer 3663bf2baa97 ALSA: firewire-lib/fireworks: fix miss detection of received MIDI messages 9d2ac58c1ef9 ALSA: seq: fix incorrect order of dest_client/dest_ports arguments ae3fa28f0938 crypto: cryptd - Fix skcipher instance memory leak 015c20532ace crypto: user - prevent operating on larval algorithms 54435b7fff7b ptrace: Fix ->ptracer_cred handling for PTRACE_TRACEME 600d3712ae12 drm/i915/dmc: protect against reading random memory 2b39351e3844 ftrace: Fix NULL pointer dereference in free_ftrace_func_mapper() 938044171949 module: Fix livepatch/ftrace module text permissions race 220adcc0e0ca tracing: avoid build warning with HAVE_NOP_MCOUNT 79fccb9815db mm/mlock.c: change count_mm_mlocked_page_nr return type 4fce0a79e985 scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE b7747ecb82be cpuset: restore sanity to cpuset_cpus_allowed_fallback() e33aeb9a7c0a i2c: pca-platform: Fix GPIO lookup code 7cf431edfb71 platform/mellanox: mlxreg-hotplug: Add devm_free_irq call to remove flow c241f3fbfa1a platform/x86: mlx-platform: Fix parent device in i2c-mux-reg device registration f853112772b0 platform/x86: intel-vbtn: Report switch events when event wakes device 2ac96173bee0 platform/x86: asus-wmi: Only Tell EC the OS will handle display hotkeys from asus_nb_wmi 027e043f9c78 drm: panel-orientation-quirks: Add quirk for GPD MicroPC 2446563dd6d7 drm: panel-orientation-quirks: Add quirk for GPD pocket2 8be5629b9622 scsi: hpsa: correct ioaccel2 chaining c1bef204c70a SoC: rt274: Fix internal jack assignment in set_jack callback 1023af0c069d ALSA: hdac: fix memory release for SST and SOF drivers 26a6acde2a42 usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC 9be058f5dd70 usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i] 5284327f4e17 x86/CPU: Add more Icelake model numbers 74929087384f ASoC: sun4i-i2s: Add offset to RX channel select 32475634e8a8 ASoC: sun4i-i2s: Fix sun8i tx channel offset mask 7b7486398a32 ASoC: max98090: remove 24-bit format support if RJ is 0 3b60f98ef496 drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable() 34e5e1c4874f drm/mediatek: clear num_pipes when unbind driver a8a86e9a5533 drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver 79e095d234bb drm/mediatek: unbind components in mtk_drm_unbind() 319f4699bcaa drm/mediatek: fix unbind functions dbd94f4938c6 spi: bitbang: Fix NULL pointer dereference in spi_unregister_master 3f8d3c9506a5 ASoC: ak4458: rstn_control - return a non-zero on error only 3c3dd68c48e8 ASoC: soc-pcm: BE dai needs prepare when pause release after resume 4c31b4b4ba65 ASoC: ak4458: add return value for ak4458_probe 0c19bcdb0db9 ASoC : cs4265 : readable register too low c549680ed59b netfilter: nft_flow_offload: IPCB is only valid for ipv4 family 041c181e6ba0 netfilter: nft_flow_offload: don't offload when sequence numbers need adjustment 48f611ecea0e netfilter: nft_flow_offload: set liberal tracking mode for tcp 3b2734bc839d netfilter: nf_flow_table: ignore DF bit setting 869eec894663 md/raid0: Do not bypass blocking queue entered for raid0 bios c9d8d3e9d7a0 block: Fix a NULL pointer dereference in generic_make_request() 5dd6139a0aa2 Bluetooth: Fix faulty expression for minimum encryption key size check
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>