Compare commits

...

249 Commits

Author SHA1 Message Date
Richard Purdie
eac84e73e8 build-appliance-image: Update to zeus head revision
(From OE-Core rev: 9bab7c1a29a58ba7f97e253e4e0ac167b77d0e65)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-14 16:47:32 +01:00
Richard Purdie
0ae1964fb1 poky.conf: Bump version for 3.0.3 zeus release
(From meta-yocto rev: 2d2dc20359ca75203f2194415b53731ad8ff0066)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-14 16:47:09 +01:00
Jan Luebbe
cba9674143 openssl: upgrade 1.1.1f -> 1.1.1g
This also fixes CVE-2020-1967.

(From OE-Core rev: 26b13f59385c1ed871aee7653c3ee7241affca38)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
wenlin.kang@windriver.com
f6f5d7dc7f systemd: Fix CVE-2020-1712
Fix CVE-2020-1712

(From OE-Core rev: 0d0c87e6c6082e1ac9d60d6131f889c53c25a9cc)

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Wang Mingyu
23f4a357ca gnutls: upgrade 3.6.12 -> 3.6.13
(From OE-Core rev: 5cc0f0dcf1f41bc148b034b3f7abef756a328cd3)

(From OE-Core rev: 7e51108dc8d3fbb63b7da9728a3790c587ee36f8)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ includes the fix for CVE-2020-11501 ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Alexander Kanavin
bfba596431 gnutls: upgrade 3.6.11.1 -> 3.6.12
(From OE-Core rev: 8652c95ceb505dd7386166842486c833ea5a7ee7)

(From OE-Core rev: 7a657beeb1ff65111481501e72092b8af021c3eb)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Alex Kiernan
ebefc69522 gnutls: upgrade 3.6.8 -> 3.6.11.1
Drop patch from 81485be19b ("gnutls: don't use HOSTTOOLS_DIR/bash as a
shell on target") as upstream now honours POSIX_SHELL when set as the
primary target shell.

(From OE-Core rev: bc487ced3be40569157fb40c99bfa68871f74744)

(From OE-Core rev: f4f933297a77f99783f9a5fb571503e1f45ad259)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Chee Yang Lee
887f299ce9 qemu/slirp: fix CVE-2020-7211
fix CVE-2020-7211 for qemu slirp submodule
see :
https://www.openwall.com/lists/oss-security/2020/01/17/2
14ec36e107

(From OE-Core rev: 31362d739834377ac4ab880029c3e3dda0cd7698)

(From OE-Core rev: c68323151b9bafb5f52dda6a4bd11712feff2e83)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Changqing Li
76f72ee8a9 qemu: fix CVE-2020-7039
(From OE-Core rev: 5ea3d9d83ed695827634e3216664c13fcff6d48a)

(From OE-Core rev: b7b96bd938cf4167b4abeebb68d35ba74ce0d3c6)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Adrian Bunk
e2065837fc python: Upgrade 2.7.17 -> 2.17.18
LICENSE checksum changed due to 2019 -> 2020 update.

(From OE-Core rev: b15db3ce3af3460b7f9ae1e186e453a79a056511)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Wang Mingyu
e6f5cc0af8 gnupg: upgrade 2.2.17 -> 2.2.19
(From OE-Core rev: 287de363f80a2f9919b942a1349f58575e8b91d8)

(From OE-Core rev: e0ca79be7d7a5574daea9866d20fdbc668defedc)

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ includes the fix for CVE-2019-14855 ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
haiqing
5f245d29cb qemu: Add PACKAGECONFIG for glusterfs
(From OE-Core rev: b249fddf46b1e1ebeedf3c599acdadd93e6d046a)

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Lee Chee Yang
419d592685 cve-update-db-native: clean DB if temporary file exist
when do_populate_cve_db forced stop at certain point, the
DB execution are stoped however the temporary database
file (DB-JOURNAL) are not removed. This db-journal file
indicates that DB is incomplete and set DB in readonly
mode. So when db-journal exist, remove both DB and the
db-journal and build the DB again from scratch.

[YOCTO #13682]

(From OE-Core rev: 70713df25b8ae27a21e53b0b9234567d7053800a)

(From OE-Core rev: 3f3bdb014cb6d87ee2e22db3c76b99ca6085787a)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Li Zhou
3412c7b713 git: Security Advisory - git - CVE-2020-11008
Backport the 1st -- 9th patches listed by
<https://github.com/git/git/compare/v2.17.4...v2.17.5>
to solve CVE-2020-11008.

Also backport the 2nd -- 4th patches listed by
<https://github.com/git/git/compare/v2.17.3...v2.17.4>
for CVE-2020-5260 (not necessary, and only the 1st patch is necessary
for this CVE), because some of the above 9 patches are based on them.

(From OE-Core rev: 63c7f76912f097cdfb95296778c42887b7336925)

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Li Zhou
cfcd63e044 git: Security Advisory - git - CVE-2020-5260
Backport patch from <https://github.com/git/git/commit/
9a6bbee8006c24b46a85d29e7b38cfa79e9ab21b> to solve CVE-2020-5260.

(From OE-Core rev: e4c3adbaae41147f921dde638b25911d1f5422e1)

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Zhixiong Chi
9f70721b9a glibc: CVE-2020-1751
Backport the CVE patch from upstream:
git://sourceware.org/git/glibc.git
commit d93769405996dfc11d216ddbe415946617b5a494

(From OE-Core rev: 807d416cb8b01de4dbb96236653bb47447018ad0)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Jan Luebbe
d0ebed64d9 apt-native: don't let dpkg overwrite files by default
With --force-overwrite (implied by --force-all), dpkg will not abort
when a package overwrites files from different packages. As this can
also lead to "The following package disappeared from your system as
all files have been overwritten by other packages: <package>" and
subsequently broken dependencies, this makes the simple case of
conflicting files hard to debug.

Instead of finding all possibly required force options, only disable
overwrite for now.

(From OE-Core rev: b57b311cfaabbcd08ce51760abcd64cf23e1435b)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Martin Jansa
0e0be80a89 prservice.py: fix do_package with newer Python in Ubuntu 20.04
* with Ubuntu 20.04 which is using python 3.8 I'm seeing a lot of errors like:
  ERROR: libxml2-2.9.10-r0 do_package: Can NOT get PRAUTO, exception No module named '_sysconfigdata'
  not sure what caused this from python 3.8, but this seems to work
* PRserv is enabled with:
  PRSERV_HOST = "localhost:0"

(From OE-Core rev: 4b26eaf7152fb712aba47a0c746333578f58ee8d)

(From OE-Core rev: c314c6695acca9ea68e38359fb03a94afa37bb2b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c23d6f7799)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:09 +01:00
Khem Raj
67b329daf9 qemu: Replace stime() API with clock_settime
(From OE-Core rev: e69b89575e5ccec243658e09936908dd9e5d45ef)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:08 +01:00
Jeremy Puhlman
f9396d52d0 python3-native: Should not search the system for headers/libraries.
The specific issue here is rpc/rpc.h, but its likely more general.
/usr/include is searched for rpc/rpc.h and if it exists on the
system, it changes behavior. If you are using the extended buildtools
tarball on a machine that has /usr/include/rpc/rpc.h, it will decide
that is good enough and not continue to search. nis fails to build
because /usr/include and /usr/lib are not part of the include/link
paths for the buildtools tarball compiler(nor should they be).

This makes it so python3-native will not build if you are using the
extended buildtools tarball, but from a larger issue perspective it
is building in likely different ways depending on what machine it
is building on.

libtirpc is already a depend so we shouldn't need the hosts rpc/rcp.h.

(From OE-Core rev: f37dfc7907ae7bac08d40468ddde2e5b8bba030c)

(From OE-Core rev: db8bef336849570dd99900b173c44cc47b208058)

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 400743867d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07 17:32:08 +01:00
Alexander Kanavin
40daaa0c05 openssl: update to 1.1.1f
This also un-breaks python3 ptest which got broken
with 1.1.1e update.

(From OE-Core rev: bd3e0d724004a346921a25defa6d812d48d6108a)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b4ddf5b9d8cd769b7026663f93c8bc69b55d8cbf)
[AK: bugfix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Adrian Bunk
f9ffd2a06a openssl: Upgrade 1.1.1d -> 1.1.1e
Backported patch removed.

(From OE-Core rev: 683818289ced6cd3c70860b5c97de2e89169096b)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 710bc0f8544f54750c8fb7b8affa243932927a24)
[AK: bug fix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Denys Dmytriyenko
70c242521f openssl: recommend cryptodev-module for corresponding PACKAGECONFIG
(From OE-Core rev: 285957cba45a15c90ceb062a55c957e81486a031)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 57fcf9b517fe95e871122946cb99fe7fa9fd2e26)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Ovidiu Panait
3d0865c905 inetutils: Use alternatives to avoid manpage conflict
Fix the following manpage conflicts:
 * check_data_file_clashes: Package inetutils-doc wants to install file /usr/share/man/man1/tftp.1
	But that file is already provided by package  * tftp-hpa-doc
 * check_data_file_clashes: Package inetutils-doc wants to install file /usr/share/man/man8/tftpd.8
	But that file is already provided by package  * tftp-hpa-doc
 * check_data_file_clashes: Package netkit-telnet-doc wants to install file /usr/share/man/man8/telnetd.8
	But that file is already provided by package  * inetutils-doc

(From OE-Core rev: 1c2a1f29aa720d376bc7f88edfcb1ccecc35f6c2)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fc14bfd60ad86094f65ebefbd10dbddc112d2698)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Lee Chee Yang
51586b5612 wic: align layer plugin path
wic look for external layer source plugin under scripts/lib/
while other tools look for lib/.

allow wic to check for source plugin at both scripts/lib/ and
lib/ to align with other tools while avoid breaking any existing
source plugin in external layer.

[YOCTO #13056]

(From OE-Core rev: 8351cb19e8a83157143b1df61cd9bbb71282e9fc)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 986baff26bd96a6265f5fe2d631818fff9f66374)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Richard Purdie
4d888ebbda pseudo: Ensure we use our own libsqlite
pseudo-native is special in that bitbake ends up executing it from the
sysroot-components directory before we have any workdirs for the bitbake
fakeroot worker. Since we switched to dynamically linking sqlite, it
means sqlite from the host system may be found, we really want the version
in sysroot-components. Trying to run tasks to create some special environment
for pseudo is hard and error prone. The simplest fix is to add an RPATH to
the binary so that it can correctly find the sqlite we want.

Unfortunately passing $ORIGIN into make doesn't work so well with shell
quoting so we have to fix that during do_install.

[YOCTO #13814]

(From OE-Core rev: 2cbb3a663a3d3b2dcf8c12c26843d6087789ded0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3937ca9e2dfabb1ce9bce1d536b60b1e2a43739b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Lee Chee Yang
73738879a2 cve-check: CPE version '-' as all version
CPE version could be '-' to mean no version info.
Current cve_check treat it as not valid and does not report these
CVE but some of these could be a valid vulnerabilities.

Since non-valid CVE can be whitelisted, so treat '-' as all version
and report all these CVE to capture possible vulnerabilities.

Non-valid CVE to be whitelisted separately.

[YOCTO #13617]

(From OE-Core rev: 1e8e188514584f9f972c0eb733c10a61853ec3d0)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c69ee3594079589d27c10db32bc288566ebde9ef)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-29 16:11:56 +01:00
Paul Barker
74f229160c kernelsrc.bbclass: Fix externalsrc support
When the externalsrc class is used the tasks listed in
SRCTREECOVEREDTASKS are deleted to prevent them being executed. If
externalsrc is used for the kernel then this will include
virtual/kernel:do_patch.

We can depend on do_shared_workdir instead as this will survive when
externalsrc is used.

(From OE-Core rev: 5ac98c776f9b77804a0ee812f47f3ecf593e432f)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2c17d35cc7b9c5e01fd5829858d2f0234e7ac8d6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Paul Barker
7b053a4ab7 perf: Fix externalsrc support
When the externalsrc class is used the tasks listed in
SRCTREECOVEREDTASKS are deleted to prevent them being executed. If
externalsrc is used for the kernel then this will include
virtual/kernel:do_patch.

We can depend on do_shared_workdir instead as this will survive when
externalsrc is used.

(From OE-Core rev: c30d6b98b739f1ee9c2ebb937e739453899b513d)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eab605bab94552046ec4adae5debe026cc03bb4c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Paul Barker
5b38b8af6a kernel-yocto.bbclass: Support config fragments with externalsrc
The merging of config fragments is performend in the do_kernel_configme
task and so config fragments will not be supported when this task is
removed from the dependency tree.

kernel-yocto adds additional tasks which may modify the source directory
to SRCTREECOVEREDTASKS so that they are removed when using externalsrc.
However, do_kernel_configme should be safe to use, the only modification
to the source tree is the potential creation of the '.kernel-meta'
directory and the '.metadir' file.

(From OE-Core rev: b7ae0fa668be008e46982190553d0738a5465efe)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44f04c039a4d61dd18666e42b9b9865cbc3ada9e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Jan Luebbe
1ee8c1b72c lib/oe/package_manager: don't try to rm /var/lib/opkg
As opkglibdir starts with a /, os.path.join will ignore
self.target_rootfs, leading to an attempt to remove /var/lib/opkg.

This only fails if it exists on the host, explaining why this remained
undiscovered for long.

(From OE-Core rev: 71711f5f20fc3744be4c9188a75606f60d524ff9)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fc974977cea389f54e7fc7de7b1c8fd3d8bafe58)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Jan Luebbe
7f1063ed94 lib/oe/package_manager: avoid installing provided packages via apt
If there already is a package providing (and conflicting against)
packages what should be installed, apt will try remove the conflicting
package (target-sdk-provides-dummy) and any that depend on it (like apt
and dpkg). This usually fails because of the protection of essential
packages. In that case, no -dev/-dbg packages are installed to the SDK.

Avoid this problem by checking which packages are already provided and
removing them from the list to be installed. Also sort the list to make
it easier to read when debugging.

(From OE-Core rev: 978eeeb7c975441e5b05253a63b9d954af2b903b)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3ffb339dd55f8ca7c952fd3390608510f772e19f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Jan Luebbe
1eb584a335 lib/oe/package_manager: collect provided package names when using debs
This is needed for a later change to avoid installing packages which are
already provided by an installed package.

(From OE-Core rev: 1bedfdf58d3ebd06126aa45c7bdc84e66c750725)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ad72dfaaa2caf2c39d033dc1682f0bbbbe45dbbd)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Jan Luebbe
54eec13b6e lib/oe/package_manager: fix handling of last package
In commit 7d214b34e11dc57316ed5c1c7747c4601286f6d2, only the code in the
for loop was modified to store the pkgarch value. The code used if there
was no empty line at the end was not modified.

Instead of fixing the duplicated code, remove it and just make sure that
a final empty line is processed.

(From OE-Core rev: 7dba11373af742d4e4924e14e8fd386d53ffddbd)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a7b93c695b23d015607b179d98526b9b14c03d45)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Jan Luebbe
5ab3ff5dcc lib/oe/package_manager: make sure to not remove packages in apt install
apt install can decide to remove already installed packages if there are
conflicts. Avoid this by explicitly specifying --no-remove. This will
then cause a "E: Packages need to be removed but remove is disabled."
message.

(From OE-Core rev: 15790fa224f405652e8ccc93c01dee04a7259246)

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9605a488b55042add012e9aeef13ab3f4e70e6e5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Jeremy Puhlman
3e311128b2 busybox: on upgrade save busybox if it is the last shell
During a busybox upgrade on a ipk based system, it is possible
that busybox is the only shell in the system. During the uninstall
the alternative for /bin/sh is removed and everything after that
goes down hill.

* Add a check to verify if busybox is the shell, and save it to
the busyboxrm directory created in tmp. Then add an alternative
for /bin/sh that points to that busybox at the lowest priority.

* Add PATH to the busyboxrm directory using shell(as during an upgrade
busybox and its links are missing).

* When install over remove extra busybox if present.

deb and rpm are uneffected by the bug because they both drag in bash,
however neither upgrade seemed to have issue with the changes.

[YOCTO 13850]

(From OE-Core rev: 443d1c8c7fb5a69c03c813f3e90758e0add7df4b)

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a9d2af8f5b3da8239cf00a52883ca596a19ea23a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
haiqing
a41085d1a6 glib-2.0: fix CVE-2020-6750
GSocketClient in GNOME GLib through 2.62.4 may occasionally connect directly
to a target address instead of connecting via a proxy server when configured
to do so, because the proxy_addr field is mishandled. This bug is timing-dependent
and may occur only sporadically depending on network delays. The greatest security
relevance is in use cases where a proxy is used to help with privacy/anonymity,
even though there is no technical barrier to a direct connection.

(From OE-Core rev: 29ed9fc7341cc3db716115aef1a6910fdb893145)

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Marek Vasut
eb029c9ac0 lttng-modules: update to 2.10.14
Upgrade to version 2.10.14 in order to fix some build errors
with latest 5.4 kernel.

- conflicting types for 'trace_rcu_dyntick'
  Reproductible on kernel greater than v5.4.22, starting with commit
  6cf539a87a ("rcu: Fix data-race due to atomic_t copy-by-value")

Also drop patches which are no longer required.

(From OE-Core rev: 88cce1d9d06ed4c5a7b58a31d75cfd1503605df9)

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Armin Kuster <akuster808@gmail.com>
Cc: Daniel Dragomir <Daniel.Dragomir@windriver.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Marek Vasut
782cde184e waffle: no need to depend on target python3
(From OE-Core rev: 7b4f6a4c7c5bcb4479c7e2e7eca733065cb40464)

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Joshua Watt
5a3dd29f60 u-boot-tools: Split out inc file
Spilts out the inc file for u-boot-tools so that BSPs can include it for
their forked version of the tools, just like u-boot.inc.

As an example, this recipe [1] builds mkimage u-boot as part of the
u-boot recipe itself. This is incorrect because u-boot is a target
recipe, which means that the uninative loader transformations do not get
applied when the recipe is restored from sstate, breaking the mkimage
command breaks. The correct solution is to have a u-boot-tools-imx
recipe that pulls in their custom u-boot source; this inc file makes
that much easier to maintain.

[1]: aa27fc6209/recipes-bsp/u-boot/u-boot-imx_2019.04.bb

(From OE-Core rev: 2e15642ada8b5403ac933072a581b9af9a359122)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2f3bd198d9b1e85f17f7a587b1690ab196ab0300)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-17 08:29:02 +01:00
Chee Yang Lee
5531ffc566 wic/direct: reserve 2 sector for extended partition
extended partition should reserve at least 2 unallocated sectors
between the start of the extended partition and the start of a
logical partition.

[YOCTO #13658]

(From OE-Core rev: 884c8a0e50a49bdca5e048197a9dc0ff37cc8d1a)

(From OE-Core rev: 0743dcd0cd70dee87a49d3bcd017168352e60982)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 590555e3b8)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Bruce Ashfield
aea3843717 linux-yocto/4.19: update to v4.19.107
Updating linux-yocto/4.19 to the latest korg -stable release that comprises
the following commits:

    16ae5406361a crypto: CVE-2019-18808
    a083db76118d Linux 4.19.107
    cfc30449bbc5 Revert "char/random: silence a lockdep splat with printk()"
    8541452acba5 s390/mm: Explicitly compare PAGE_DEFAULT_KEY against zero in storage_key_init_range
    fee87e931cc5 xen: Enable interrupts when calling _cond_resched()
    28a73a946a46 ata: ahci: Add shutdown to freeze hardware resources of ahci
    43cac315bec1 rxrpc: Fix call RCU cleanup using non-bh-safe locks
    acbc5071f073 netfilter: xt_hashlimit: limit the max size of hashtable
    5a2972600a2f ALSA: seq: Fix concurrent access to queue current tick/time
    b105447809b1 ALSA: seq: Avoid concurrent access to queue flags
    63495d1e1c7c ALSA: rawmidi: Avoid bit fields for state flags
    bf3043d27755 bpf, offload: Replace bitwise AND by logical AND in bpf_prog_offload_info_fill
    3132696dd748 genirq/proc: Reject invalid affinity masks (again)
    ba2c07dfa0d8 iommu/vt-d: Fix compile warning from intel-svm.h
    c0965be4b28b ecryptfs: replace BUG_ON with error handling code
    1bae8f424c84 staging: greybus: use after free in gb_audio_manager_remove_all()
    568991c91849 staging: rtl8723bs: fix copy of overlapping memory
    f8e6a3412dc6 usb: dwc2: Fix in ISOC request length checking
    de8dbb7b02fa usb: gadget: composite: Fix bMaxPower for SuperSpeedPlus
    1cad1a6497ec scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session"
    c66b2b571211 scsi: Revert "RDMA/isert: Fix a recently introduced regression related to logout"
    b046c6fec04e Revert "dmaengine: imx-sdma: Fix memory leak"
    cd26d53a27d6 Btrfs: fix btrfs_wait_ordered_range() so that it waits for all ordered extents
    4d886f91ca13 btrfs: do not check delayed items are empty for single transaction cleanup
    68b7db197bf8 btrfs: reset fs_root to NULL on error in open_ctree
    0ba8e5f347b2 btrfs: fix bytes_may_use underflow in prealloc error condtition
    e541982a6e5f KVM: apic: avoid calculating pending eoi from an uninitialized val
    267eec2d216d KVM: nVMX: handle nested posted interrupts when apicv is disabled for L1
    85dd0eb771e8 KVM: nVMX: Check IO instruction VM-exit conditions
    e5c0857bd5cc KVM: nVMX: Refactor IO bitmap checks into helper function
    8cf20fb73e73 ext4: fix race between writepages and enabling EXT4_EXTENTS_FL
    48fdbe2a818d ext4: rename s_journal_flag_rwsem to s_writepages_rwsem
    b7dc081c24db ext4: fix mount failure with quota configured as module
    50017cec3dbb ext4: fix potential race between s_flex_groups online resizing and access
    7720966a68c8 ext4: fix potential race between s_group_info online resizing and access
    cc9948abe47b ext4: fix potential race between online resizing and write operations
    38884609b8b5 ext4: add cond_resched() to __ext4_find_entry()
    9b6e90918bc0 ext4: fix a data race in EXT4_I(inode)->i_disksize
    0e3a6e86d43b drm/nouveau/kms/gv100-: Re-set LUT after clearing for modesets
    da3418ad747f lib/stackdepot.c: fix global out-of-bounds in stack_slabs
    56ad5b4b7405 tty: serial: qcom_geni_serial: Fix RX cancel command failure
    e6ebad85883d tty: serial: qcom_geni_serial: Remove xfer_mode variable
    4e438733f727 tty: serial: qcom_geni_serial: Remove set_rfr_wm() and related variables
    1cc8834773b2 tty: serial: qcom_geni_serial: Remove use of *_relaxed() and mb()
    4d1a94fa6d14 tty: serial: qcom_geni_serial: Remove interrupt storm
    0a38fd9326fd tty: serial: qcom_geni_serial: Fix UART hang
    fe1cfc645845 KVM: x86: don't notify userspace IOAPIC on edge-triggered interrupt EOI
    ed9e97c35b45 KVM: nVMX: Don't emulate instructions in guest mode
    6ca274be314b xhci: apply XHCI_PME_STUCK_QUIRK to Intel Comet Lake platforms
    8300ed5a2175 drm/amdgpu/soc15: fix xclk for raven
    837ba4829b9f mm/vmscan.c: don't round up scan size for online memory cgroup
    ea2a11561d01 genirq/irqdomain: Make sure all irq domain flags are distinct
    576c04cbbef2 nvme-multipath: Fix memory leak with ana_log_buf
    e75d2de90b86 mm/memcontrol.c: lost css_put in memcg_expand_shrinker_maps()
    cf85f00f87db Revert "ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()"
    af4693daff1b MAINTAINERS: Update drm/i915 bug filing URL
    c9ca2010202b serdev: ttyport: restore client ops on deregistration
    463a3db812d9 tty: serial: imx: setup the correct sg entry for tx dma
    6807593e8edc tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode
    f4e6d51f3f40 serial: 8250: Check UPF_IRQ_SHARED in advance
    f28ec250579c x86/cpu/amd: Enable the fixed Instructions Retired counter IRPERF
    5e5b443ae6cc x86/mce/amd: Fix kobject lifetime
    0a3aca3a0f41 x86/mce/amd: Publish the bank pointer only after setup has succeeded
    4512119ac90a jbd2: fix ocfs2 corrupt when clearing block group bits
    72e2df70fb52 powerpc/tm: Fix clearing MSR[TS] in current when reclaiming on signal delivery
    e34182fb8a2f staging: rtl8723bs: Fix potential overuse of kernel memory
    e4770de3ae41 staging: rtl8723bs: Fix potential security hole
    b4eab56d96f1 staging: rtl8188eu: Fix potential overuse of kernel memory
    2a50bd9e2a69 staging: rtl8188eu: Fix potential security hole
    d59f6a6e35b7 usb: dwc3: gadget: Check for IOC/LST bit in TRB->ctrl fields
    c787444891a4 usb: dwc2: Fix SET/CLEAR_FEATURE and GET_STATUS flows
    8cfda0c9c966 USB: hub: Fix the broken detection of USB3 device in SMSC hub
    37d2eb43b64c USB: hub: Don't record a connect-change event during reset-resume
    babaa26b7c1c USB: Fix novation SourceControl XL after suspend
    2debc1717cf2 usb: uas: fix a plug & unplug racing
    4db4761cfe15 USB: quirks: blacklist duplicate ep on Sound Devices USBPre2
    63d176ed148a USB: core: add endpoint-blacklist quirk
    d74d5d042d42 usb: host: xhci: update event ring dequeue pointer on purpose
    2a2582dc62e9 xhci: Fix memory leak when caching protocol extended capability PSI tables - take 2
    7c8cde41a0c3 xhci: fix runtime pm enabling for quirky Intel hosts
    dce60e7efa97 xhci: Force Maximum Packet size for Full-speed bulk devices to valid range.

    <snip>

    c7f81d70d7ae ubifs: Fix default compression selection in ubifs
    3331e61b23b1 nvme: fix kernel paging oops
    2f99d478ddbd xfs: require both realtime inodes to mount
    b2d84967f076 bcache: do not mark writeback_running too early
    6f48e23888b9 bcache: do not check if debug dentry is ERR or NULL explicitly on remove
    c318f88411a8 rtl818x: fix potential use after free
    7cf86c89d7e4 brcmfmac: set SDIO F1 MesBusyCtrl for CYW4373
    38b73129c113 brcmfmac: set F2 watermark to 256 for 4373
    6138e4b132cd mwifiex: debugfs: correct histogram spacing, formatting
    1450ff720076 mwifiex: fix potential NULL dereference and use after free
    4912b454e029 arm64: dts: renesas: draak: Fix CVBS input
    48d37cc42390 crypto: user - support incremental algorithm dumps
    43cd68d7002b s390/zcrypt: make sysfs reset attribute trigger queue reset
    5ac0da68eae1 nvme: provide fallback for discard alloc failure
    d702d7bc7eb4 scsi: qla2xxx: Fix for FC-NVMe discovery for NPIV port
    78777dd6174e scsi: qla2xxx: Fix NPIV handling for FC-NVMe
    58ab95b03497 scsi: lpfc: Enable Management features for IF_TYPE=6
    e772949a3fd6 ACPI / LPSS: Ignore acpi_device_fix_up_power() return value
    d411bd858447 ARM: ks8695: fix section mismatch warning
    22227437ca68 xfs: zero length symlinks are not valid
    4d54a7969524 PM / AVS: SmartReflex: NULL check before some freeing functions is not needed
    d2e3e3c3c14b RDMA/vmw_pvrdma: Use atomic memory allocation in create AH
    64694b276d74 arm64: preempt: Fix big-endian when checking preempt count in assembly
    2ec103458855 RDMA/hns: Fix the bug while use multi-hop of pbl
    60da6da4b511 ARM: OMAP1: fix USB configuration for device-only setups
    0086d127f90d platform/x86: mlx-platform: Fix LED configuration
    08d8ab9615c5 bus: ti-sysc: Check for no-reset and no-idle flags at the child level
    4b40393b5240 arm64: smp: Handle errors reported by the firmware
    e3d27b94111b arm64: mm: Prevent mismatched 52-bit VA support
    57f3359cdabe ARM: dts: Fix hsi gdd range for omap4
    9b1f6bde17d6 parisc: Fix HP SDC hpa address output
    d18f228f504e parisc: Fix serio address output
    72a50a1e1c65 ARM: dts: imx53-voipac-dmm-668: Fix memory node duplication
    bf39f5b323eb ARM: dts: imx25: Fix memory node duplication
    d2eb50e57a5c ARM: dts: imx27: Fix memory node duplication
    54750b6f6671 ARM: dts: imx1: Fix memory node duplication
    6aeb6bd0eda6 ARM: dts: imx23: Fix memory node duplication
    1694780bd4ca ARM: dts: imx50: Fix memory node duplication
    2442b4c0f30a ARM: dts: imx6sl: Fix memory node duplication
    bae011f4c9a4 ARM: dts: imx6sx: Fix memory node duplication
    0990926c9395 ARM: dts: imx6ul: Fix memory node duplication
    e021f0ccc4fa ARM: dts: imx7: Fix memory node duplication
    a90469345b26 ARM: dts: imx35: Fix memory node duplication
    6bc1e695b4be ARM: dts: imx31: Fix memory node duplication
    ca02e14bdd7f ARM: dts: imx53: Fix memory node duplication
    5a1e6f95733c ARM: dts: imx51: Fix memory node duplication
    8c0c8c2a80b2 ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
    dee3f7703207 tracing: Lock event_mutex before synth_event_mutex
    67547b9b4660 ARM: dts: Fix up SQ201 flash access
    ee6d2bedb400 scsi: lpfc: Fix dif and first burst use in write commands
    20feb7333049 scsi: lpfc: Fix kernel Oops due to null pring pointers
    a8c0f6334e56 scsi: target/tcmu: Fix queue_cmd_ring() declaration
    480233f89d42 pwm: bcm-iproc: Prevent unloading the driver module while in use
    27d22db4ccf1 block: drbd: remove a stray unlock in __drbd_send_protocol()
    51a564498cfb mac80211: fix station inactive_time shortly after boot
    b707e0da2791 net/fq_impl: Switch to kvmalloc() for memory allocation
    a8a61f82cc9f ceph: return -EINVAL if given fsc mount option on kernel w/o support
    0f716cda304b net: mscc: ocelot: fix __ocelot_rmw_ix prototype
    a30c6e424fdd net: bcmgenet: reapply manual settings to the PHY
    acd6a29134f0 net: bcmgenet: use RGMII loopback for MAC reset
    ff3f7465ee98 scripts/gdb: fix debugging modules compiled with hot/cold partitioning
    22f4892950b2 ASoC: stm32: sai: add restriction on mmap support
    3f034e6889e7 watchdog: meson: Fix the wrong value of left time
    7302e7b10855 can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition
    24e10fc2e0db can: flexcan: increase error counters if skb enqueueing via can_rx_offload_queue_sorted() fails
    ee7981538293 can: rx-offload: can_rx_offload_irq_offload_fifo(): continue on error
    5c8f5485614c can: rx-offload: can_rx_offload_irq_offload_timestamp(): continue on error
    eca4b786f3bb can: rx-offload: can_rx_offload_offload_one(): use ERR_PTR() to propagate error value in case of errors
    a85ce0107d6b can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM
    b83d4e4899d6 can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
    77f94f0d7f52 can: rx-offload: can_rx_offload_queue_tail(): fix error handling, avoid skb mem leak
    66e21b7b9251 can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open
    7559e68ca91f can: peak_usb: report bus recovery as well
    c5b0bbef4367 bridge: ebtables: don't crash when using dnat target in output chains
    2070b33ee987 net: fec: add missed clk_disable_unprepare in remove
    28f34294442b clk: ti: clkctrl: Fix failed to enable error with double udelay timeout
    cb5a4049608c clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call
    1677a0e54937 x86/resctrl: Prevent NULL pointer dereference when reading mondata
    8ef58b82d1e4 idr: Fix idr_alloc_u32 on 32-bit systems
    88358c7610cc idr: Fix integer overflow in idr_for_each_entry
    a6359d5e2d98 powerpc/bpf: Fix tail call implementation
    4665759af735 samples/bpf: fix build by setting HAVE_ATTR_TEST to zero
    40c3b8fc47b3 ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend
    40017db20bfa clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18
    49ade064ea4b clk: sunxi: Fix operator precedence in sunxi_divs_clk_setup
    15fc2f3c64e7 clk: at91: avoid sleeping early
    8885552a061b reset: fix reset_control_ops kerneldoc comment
    a94913c0c8cf ARM: dts: imx6qdl-sabreauto: Fix storm of accelerometer interrupts
    5b15b1bf5428 pinctrl: cherryview: Allocate IRQ chip dynamic
    a0554203bc12 clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume
    80e28fa256c9 ASoC: kirkwood: fix device remove ordering
    6a7472add344 ASoC: kirkwood: fix external clock probe defer
    a2c2cf16b059 clk: samsung: exynos5433: Fix error paths
    9a5933aa1242 reset: Fix memory leak in reset_control_array_put()
    e8eb6233be9a ASoC: compress: fix unsigned integer overflow check
    7971b7fd5623 ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX
    daa2c4030510 clocksource/drivers/mediatek: Fix error handling
    9c65bb9518ea clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate

(From OE-Core rev: 5a2500a81914bab7fd107d4c4b439c01d8fbd736)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Tom Hochstein
cbe7c6568e security_flags.inc: fix flags missing from SDK toolchain
The security flags were missing from the SDK toolchain
because they were added specifically to class-target.
Add them to class-cross-canadian as well (since the SDK environment
file is created from cross-canadian target flags).

(From OE-Core rev: d6df153991c91a1a14b561b3af52dcf96b73e6d7)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Antoine Manache <a.manache@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Anuj Mittal
f504feabb8 e2fsprogs: backport upstream patch
Fixes a bug wherein a use after free could potentially be used to run
malicious code if a user can be tricked into running e2fsck on a
maliciously crafted file system.

Also see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948517

(From OE-Core rev: 23c1b157362609bd8d85c7d35e6c7f0f60c32c88)

(From OE-Core rev: bc3c82e82e6d2dce025e84b8f398379f4fc6f249)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Anuj Mittal
ad00b082d8 e2fsprogs: fix CVE-2019-5188
Also see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948508

(From OE-Core rev: 09bdcef183d885025da6aa87a7c2bf7e8268774e)

(From OE-Core rev: b3fcf13e332d8830e759ef4161161f0e54591700)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Julius Hemanth Pitti
2491bc87a4 nfs-utils: Disable statx if using glibc emulation
nfs-utils 2.4.1, moves from "stat" to "statx
with AT_STATX_DONT_SYNC" in parts of the code.

statx is supported in Linux kernel v4.11 and above.
For all older kernels glibc emulates statx, and it
doesn't support AT_STATX_DONT_SYNC and will return
EINVAL.

When server uses nfs-utils 2.4.1 on kernel v4.10
and older, mount.nfs4 would fail with error
"reason given by server: No such file or directory".

Since Linux v4.4 and v4.9 are LTS, its more likely
that people would use above combination.

This issue has been fixed in nfs-utils 2.4.3 and
above. Backporting fix to 2.4.1.

(From OE-Core rev: 8cbd6f6f7f10c57b27a1388883a6dc5715610600)

Signed-off-by: Julius Hemanth Pitti <jpitti@cisco.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Ross Burton
4ccd0345c8 sanity: check for more bits of Python
MJ: icu in master doesn't need distutils anymore, because icu 65.1 currently in
dunfell/master doesn't depend on python3-distutils anymore since:
b4d41b0561

but the icu-64.2 in zeus and openembedded-core/meta/recipes-core/ovmf/ovmf_git.bb
still need python3-distutils as described in:
http://lists.openembedded.org/pipermail/openembedded-core/2020-March/293984.html

(From OE-Core rev: da2df0251098c46a1476983db379cf33010e3035)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Anuj Mittal
bf506f4eba screen: fix CVE-2020-9366
(From OE-Core rev: 6d79a4d7545bc78ac759e575f6d15d7b23fad638)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:56 +01:00
Anuj Mittal
02299147d9 icu: fix CVE-2020-10531
(From OE-Core rev: 76f53b383b17f0cc568201843e8dac8690791495)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30 17:41:55 +01:00
Anuj Mittal
f9ef210967 bluez: fix CVE-2020-0556
It was discovered that BlueZ's HID and HOGP profiles implementations
don't specifically require bonding between the device and the host.

This creates an opportunity for an malicious device to connect to a
target host to either impersonate an existing HID device without
security or to cause an SDP or GATT service discovery to take place
which would allow HID reports to be injected to the input subsystem from
a non-bonded source.

(From OE-Core rev: d598f8eee0741148416e8660e10c716654205cb5)

(From OE-Core rev: c940e4b858d6be28b198770768117ecc098fa0d3)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bed169a07b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:51 +00:00
Wenlin Kang
9542f3282e libarchive: Fix CVE-2020-9308
Fix CVE-2020-9308

(From OE-Core rev: 878817358eb7c25ffa48d10dde9475299674a96c)

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:51 +00:00
Adrian Bunk
acb0b159be python3: Upgrade 3.7.6 -> 3.7.7
THE LICENSE checksum changed in this update due to copyright notice
added for 2020.

(From OE-Core rev: 3c40cfe7433999272e1698e2c914d6d190f76b63)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:51 +00:00
Stefan Ghinea
d08c1b7e9c aspell: CVE-2019-20433
libaspell.a in GNU Aspell before 0.60.8 has a buffer over-read for a string
ending with a single '\0' byte, if the encoding is set to ucs-2 or ucs-4
outside of the application, as demonstrated by the ASPELL_CONF environment
variable.

References:
https://nvd.nist.gov/vuln/detail/CVE-2019-20433

Upstream patches:
de29341638
cefd447e55

(From OE-Core rev: 07dc85604baf696cccf784c909dbad67275ad7b3)

Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:51 +00:00
Ross Burton
61210237a7 sqlite: fix numerous CVEs
Fix the following CVEs:

- CVE-2019-19244
- CVE-2019-19923
- CVE-2019-19924
- CVE-2019-19925
- CVE-2019-19926
- CVE-2019-19959
- CVE-2019-20218

(From OE-Core rev: feb8982ac6670af3bcb1243b51054bba9b027c83)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[ removed the CVE-2019-19880 fix that did not apply cleanly ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:50 +00:00
Lee Chee Yang
983a51fd1d libpcre2: fix CVE-2019-20454
(From OE-Core rev: 8ec7a51da26f07fd43b5e6787b15c8636009b183)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:50 +00:00
Lee Chee Yang
70686ed9aa qemu: fix CVE-2019-20382
(From OE-Core rev: dac4545cdf0ab848086da96eac123d0c640cd8b2)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19 09:57:50 +00:00
Chee Yang Lee
c6f99b055e cve-check: fix ValueError
fix below error for whitelisted recipe and recipe skip cve check.

Error:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_cve_check(d)
     0003:
File: '/poky-master/meta/classes/cve-check.bbclass', lineno: 59, function: do_cve_check
     0055:        try:
     0056:            patched_cves = get_patches_cves(d)
     0057:        except FileNotFoundError:
     0058:            bb.fatal("Failure in searching patches")
 *** 0059:        whitelisted, patched, unpatched = check_cves(d, patched_cves)
     0060:        if patched or unpatched:
     0061:            cve_data = get_cve_info(d, patched + unpatched)
     0062:            cve_write_data(d, patched, unpatched, whitelisted, cve_data)
     0063:    else:
Exception: ValueError: not enough values to unpack (expected 3, got 2)

(From OE-Core rev: d8cfc309f9dd0dc8904ab18e5898770502ee2540)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 64a362bd2dd0b4f3165d5162adbc600826af66f8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:54 +00:00
Chee Yang Lee
8b1eccc311 cve-check: show whitelisted status
change whitelisted CVE status from "Patched" to "Whitelisted".

[Yocto #13687]

(From OE-Core rev: 707b3a41b3cacfb7f1d1ed75f9a298ff4721735e)

Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 181bdd670492525f9488d52c3ebb9a1b142e35ea)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:54 +00:00
Zhixiong Chi
c5c4666f6a glibc: CVE-2020-10029
Backport the CVE patch from upstream:
[https://sourceware.org/git/gitweb.cgi?p=glibc.git;
a=patch;h=9333498794cde1d5cca518badf79533a24114b6f]

(From OE-Core rev: 229bc59863265433121656b57320d90808f6569e)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:54 +00:00
Richard Purdie
3237bb394c maintainers: Add entry for buildtools-extended-tarball
(From OE-Core rev: 4281342a04078990bb0a110760ff2dc053eccc93)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 61d4d3d5a9f27e0fbf1d7ed6db818a779643b8f3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:54 +00:00
Lee Chee Yang
95a319c7b4 virglrenderer: fix multiple CVEs
fix these CVE:
CVE-2019-18390
CVE-2019-18391
CVE-2020-8002

(From OE-Core rev: 74a1ec4a39fe3b05045c1d60a89393cd25eccb1f)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Ovidiu Panait
ae1001ab3a dhcp: Fix REQUIRE(ctx->running) assertion triggered on SIGTERM/SIGINT
Closed a small window of time between the installation of graceful
shutdown signal handlers and application context startup, during which
the receipt of shutdown signal would cause a REQUIRE() assertion to
occur.  Note this issue is only visible when compiling with
ENABLE_GENTLE_SHUTDOWN defined.

Reference:
https://gitlab.isc.org/isc-projects/dhcp/issues/53

Upstream patches:
ce117de7a1
dbd36dfa82
95944cab60

(From OE-Core rev: 7235c62727e48415c4e81f852607311ec31b6e41)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Rahul Chauhan
f4f272f72c ruby: fix CVE-2019-16254
(From OE-Core rev: b8e6eb473f3697ab76f30ca8a0abe584d3d10fa6)

Signed-off-by: Rahul Chauhan <rahulchauhankitps@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Nathan Rossi
917d2fc42b gcc-target.inc: Prevent sysroot from leaking into configargs.h
Prevent the full recipe-sysroot path from leaking into configargs.h. The
configargs.h header is intended to be static and unchanged as the
content is used as a means of determining that a gcc plugin is built for
the same gcc. This also effects the output of 'gcc -v'. Due to per
recipe sysroots and staging, the sysroot path would be replaced with the
sysroot local to the recipe thus changing the content of configargs.h.
This change also improves gcc binary reproducibility. The sysroot path
is replaced with the base target root "/".

(From OE-Core rev: 0f418fccab3f67a2afaa28195263d6f24831dd56)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b8d6e2ab68ee5e341fe970b191bfd334e6d2c40b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Nathan Rossi
4dabdf2ff5 gcc-cross.inc: Prevent native sysroot from leaking into configargs.h
Prevent the native(sdk) sysroot path from leaking into configargs.h. The
configargs.h header is intended to be static and unchanged as the
content is used as a means of determining that a gcc plugin is built for
the same gcc. This also effects the output of 'gcc --version'. Due to
per recipe sysroots and staging, the sysroot path would be replaced with
the sysroot local to the recipe thus changing the content of
configargs.h.

The sysroot path is replaced with a generic "/host" prefix which
represents the host sysroot (e.g. native or nativesdk).

(From OE-Core rev: 9bb270b3f12ff94b1541649078741e683020ffe9)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 84a78f46d59447eeec3d69532a7506148f64c979)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Mark Hatle
7064f9c626 gcc-cross-canadian: A missing space in an append caused an invalid option
When configuring the cross-candian toolchain for a non-linux target system,
the resulting gcc configuration included:

  --enable-initfini-array--without-headers

these should have been two separate options.

(From OE-Core rev: fdd3d65b690c9d460a5758cf1b83e7b2edfc9559)

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7b52893632dae7bc9ac75dddc7ad625e19f41050)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Armin Kuster
f42a79c02d wic/engine: lets display an error not a traceback
If the requested partition does not exist in this request "wic ls {path}:pnum"
display a nice message not a trackback

Also fix displaying the pnum and not "%s"

(From OE-Core rev: 29a1d9bed5bf7ed024870a0323f9afdf88346e4d)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 15d1722950a22649905cf8a5789d3cfe48a2a892)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Richard Purdie
a3187545df dummy-sdk-package: Add DUMMYPROVIDES_PACKAGES
We're about to need to use this variable in the main include file so
restructure the users of it to all set it appropriately.

(From OE-Core rev: a01bf79a35c908d6b072b984608114860b5c1e8f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4a247e7c961286cbed73b6dc0f4074ecf856402a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Armin Kuster
7d8d93cfb9 cve-check: fail gracefully when file not found
With out these changes, a traceback displayed when a file
is listed in the SRC_URI but the file does not exist.

raise FileNotFoundError and print the patch then mark the task as failed.

(From OE-Core rev: d313a5912d2ecbf7796e75ee7e7cd1d442b4fa40)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit d4926c11a4ab9148bdb640a9367c9e1891491a5b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Bruce Ashfield
266e22f25f linux-yocto/5.2: backport perf build fix for latest binutils
[
   Author: Changbin Du <changbin.du@gmail.com>
   Date:   Tue Jan 28 23:29:38 2020 +0800

       perf: Make perf able to build with latest libbfd

       libbfd has changed the bfd_section_* macros to inline functions
       bfd_section_<field> since 2019-09-18. See below two commits:
	 o http://www.sourceware.org/ml/gdb-cvs/2019-09/msg00064.html
	 o https://www.sourceware.org/ml/gdb-cvs/2019-09/msg00072.html

       This fix make perf able to build with both old and new libbfd.

       Signed-off-by: Changbin Du <changbin.du@gmail.com>
       Acked-by: Jiri Olsa <jolsa@redhat.com>
       Cc: Peter Zijlstra <peterz@infradead.org>
       Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com
       Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
       Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: fb3a4c0ef61ca9b6313d4fdc6e2b28d415780dc7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 14a338dbbe2da5a022a916081b3aab9c7472c3ce)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Michael Halstead
ef51ce1aef yocto-uninative.inc: version 2.8 updates glibc to 2.31
Allow sstate use in Tumbleweed and other distros as they update glibc.

(From OE-Core rev: 2da4ee30335d0b127b79a6eedad68c8559606c57)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ccb374c279b260b1fd3460f6bfd1567240816055)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-16 16:44:53 +00:00
Bruce Ashfield
04d71b42e7 linux-yocto/5.2: update to v5.2.32
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    ef3886a722c8 Linux 5.2.32
    ce5a5accc87e dm thin: fix use-after-free in metadata_pre_commit_callback
    9aafc6574336 cifs: Fix memory allocation in __smb2_handle_cancelled_cmd()
    e177f6d8471e drm/amd/display: add default clocks if not able to fetch them
    dba8b53f1ef4 drm/dp_mst: Correct the bug in drm_dp_update_payload_part1()
    bd427585578d drm/radeon: fix r1xx/r2xx register checker for POT textures
    b56603ead990 drm/i915/fbc: Disable fbc by default on all glk+
    5ce9d8bdf796 drm/nouveau/kms/nv50-: Limit MST BPC to 8
    86bdcc48feb0 drm/nouveau/kms/nv50-: Store the bpc we're using in nv50_head_atom
    b039a9b6d8f4 drm/nouveau/kms/nv50-: Call outp_atomic_check_view() before handling PBN
    03e122dbc136 scsi: qla2xxx: Fix incorrect SFUB length used for Secure Flash Update MB Cmd
    8bf5409573de scsi: qla2xxx: Correctly retrieve and interpret active flash region
    7af719a2ca84 scsi: qla2xxx: Change discovery state before PLOGI
    1fea09aa4b42 scsi: qla2xxx: Added support for MPI and PEP regions for ISP28XX
    30205f999d12 scsi: qla2xxx: Initialize free_work before flushing it
    39ec6bc75116 scsi: qla2xxx: Ignore NULL pointer in tcm_qla2xxx_free_mcmd
    1f08dd5fa5c5 scsi: iscsi: Fix a potential deadlock in the timeout handler
    42a2fbbc708f dm thin: Flush data device before committing metadata
    56d35c21552b dm thin metadata: Add support for a pre-commit callback
    d658f6349a2f dm btree: increase rebalance threshold in __rebalance2()
    3aca6fce0d4e dm mpath: remove harmful bio-based optimization
    2363f92cde9c drm: meson: venc: cvbs: fix CVBS mode matching
    2878bba5052a dma-buf: Fix memory leak in sync_file_merge()
    b10d7f86b5ca vfio/pci: call irq_bypass_unregister_producer() before freeing irq
    099085c85deb ARM: tegra: Fix FLOW_CTLR_HALT register clobbering by tegra_resume()
    674f30df2798 ARM: dts: s3c64xx: Fix init order of clock providers
    7fe7993bd757 cifs: Fix retrieval of DFS referrals in cifs_mount()
    6fef05311f57 CIFS: Fix NULL pointer dereference in mid callback
    42d37a87a332 CIFS: Do not miss cancelled OPEN responses
    ca8deb792b01 CIFS: Close open handle after interrupted close
    df192003fb6b CIFS: Respect O_SYNC and O_DIRECT flags during reconnect
    40ae22555ce3 cifs: Don't display RDMA transport on reconnect
    969925ff652b cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state
    82fe0b779a89 cifs: smbd: Return -EINVAL when the number of iovs exceeds SMBDIRECT_MAX_SGE
    d88fc76297a7 cifs: smbd: Add messages on RDMA session destroy and reconnection
    f1bede222a44 cifs: smbd: Only queue work for error recovery on memory registration
    118c2599caf3 cifs: smbd: Return -EAGAIN when transport is reconnecting
    2c3c6e2691ff rpmsg: glink: Free pending deferred work on remove
    7286d52aa88c rpmsg: glink: Don't send pending rx_done during remove
    eed61c8c6667 rpmsg: glink: Fix rpmsg_register_device err handling
    00b748a63488 rpmsg: glink: Put an extra reference during cleanup
    ebb78ad8b431 rpmsg: glink: Fix use after free in open_ack TIMEOUT case
    b3f09043fc81 rpmsg: glink: Fix reuse intents memory leak issue
    5bfb2ef7a181 rpmsg: glink: Set tail pointer to 0 at end of FIFO
    63045fa07fba xtensa: fix syscall_set_return_value
    9247f95643ef xtensa: fix TLB sanity checker
    c848ea0969ce gfs2: fix glock reference problem in gfs2_trans_remove_revoke
    eb30a9e18f47 xtensa: use MEMBLOCK_ALLOC_ANYWHERE for KASAN shadow map
    adff286a3be5 PCI: Apply Cavium ACS quirk to ThunderX2 and ThunderX3
    f28f30c5255c PCI: rcar: Fix missing MACCTLR register setting in initialization sequence
    cb5cb799bf0b PCI: Do not use bus number zero from EA capability
    d291c94f8e57 PCI/MSI: Fix incorrect MSI-X masking on resume
    eb24be2871ad PCI: Fix Intel ACS quirk UPDCR register address
    06ad330304d2 PCI: pciehp: Avoid returning prematurely from sysfs requests
    5d558c8b1439 PCI/PM: Always return devices to D0 when thawing
    84dfe86a3851 PCI/switchtec: Read all 64 bits of part_event_bitmap
    0db244d3995f mmc: block: Add CMD13 polling for MMC IOCTLS with R1B response
    845b2cbece34 mmc: block: Make card_busy_detect() a bit more generic
    5db0e71cbee1 libertas: make lbs_ibss_join_existing() return error code on rates overflow
    36e460a8c861 libertas: don't exit from lbs_ibss_join_existing() with RCU read lock held
    2aabb3fcd7fe libertas: Fix two buffer overflows at parsing bss descriptor
    8866a53c5e7a Linux 5.2.31
    33a9ecf23bdb hsr: fix a NULL pointer dereference in hsr_dev_xmit()
    c5eba532e308 gre: refetch erspan header from skb->data after pskb_may_pull()
    8477c46262fa tcp: Protect accesses to .ts_recent_stamp with {READ,WRITE}_ONCE()
    d46e87f84fd4 tcp: tighten acceptance of ACKs not matching a child socket
    06b27e9e4496 tcp: fix rejected syncookies due to stale timestamps
    d3ce127be5c7 net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
    31ecfe259fba net: ipv6: add net argument to ip6_dst_lookup_flow
    1a45655b78c5 net/mlx5e: Query global pause state before setting prio2buffer
    10ac0045c8a7 tipc: fix ordering of tipc module init and exit routine
    f8089e38f286 tcp: md5: fix potential overestimation of TCP option space
    c9b8428b8b42 openvswitch: support asymmetric conntrack
    ab45bc5d7c6f net/tls: Fix return values to avoid ENOTSUPP
    aaa20d4352a1 net: thunderx: start phy before starting autonegotiation
    aebf8e234674 net: sched: fix dump qlen for sch_mq/sch_mqprio with NOLOCK subqueues
    876e02c6b8de net: ethernet: ti: cpsw: fix extra rx interrupt
    75b099157e3b net: dsa: fix flow dissection on Tx path
    b8c2a07d7fc9 net: bridge: deny dev_set_mac_address() when unregistering
    ef141fca118c mqprio: Fix out-of-bounds access in mqprio_dump
    a0484dba9932 inet: protect against too small mtu values.
    7d923144ef6e net_sched: validate TCA_KIND attribute in tc_chain_tmplt_add()
    c0f777b6c28d SUNRPC: Fix another issue with MIC buffer space
    cce35a47eb7c raid5: need to set STRIPE_HANDLE for batch head
    2b15565d1a62 workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
    2fb67c1da0c0 blk-mq: make sure that line break can be printed
    588d5a85b106 ext4: fix a bug in ext4_wait_for_tail_page_commit
    87b234005394 splice: only read in as much information as there is pipe buffer space
    de86c841c81b rtc: disable uie before setting time and enable after
    d4e7102cc326 mm/shmem.c: cast the type of unmap_start to u64
    922a48c3e94d s390/kaslr: store KASLR offset for early dumps
    3b7d69248f06 s390/smp,vdso: fix ASCE handling
    546e9a689d3e firmware: qcom: scm: Ensure 'a0' status code is treated as signed
    a9b6310e93a4 ext4: work around deleting a file with i_nlink == 0 safely
    609a4e56145d mm: memcg/slab: wait for !root kmem_cache refcnt killing on root kmem_cache destruction
    3d5c91034234 mfd: rk808: Fix RK818 ID template
    fbac2f7aa1c3 mm, memfd: fix COW issue on MAP_PRIVATE and F_SEAL_FUTURE_WRITE mappings
    118197756683 powerpc: Fix vDSO clock_getres()
    9ba5c6dcb3b7 powerpc: Avoid clang warnings around setjmp and longjmp
    7c36247732a2 omap: pdata-quirks: remove openpandora quirks for mmc3 and wl1251
    1eff30510478 omap: pdata-quirks: revert pandora specific gpiod additions
    5dbe853560e4 iio: ad7949: fix channels mixups
    7df6007288fd iio: ad7949: kill pointless "readback"-handling code
    109dbc91c5a8 iio: imu: st_lsm6dsx: fix ODR check in st_lsm6dsx_write_raw
    6305866e630c iio: imu: st_lsm6dsx: move odr_table in st_lsm6dsx_sensor_settings
    9073b0be6589 scsi: lpfc: Fix bad ndlp ptr in xri aborted handling
    13f83b3a2688 reiserfs: fix extended attributes on the root directory
    e026fc523a75 ext4: Fix credit estimate for final inode freeing
    b09b4d152aa2 quota: fix livelock in dquot_writeback_dquots
    513bcf5ee8e0 seccomp: avoid overflow in implicit constant conversion
    ae57738ec38a ext2: check err when partial != NULL
    b7c24d8c06b8 quota: Check that quota is not dirty before release
    42e495b46f80 video/hdmi: Fix AVI bar unpack
    6739872abdfd powerpc/xive: Skip ioremap() of ESB pages for LSI interrupts
    7d55c5e73263 powerpc: Allow flush_icache_range to work across ranges >4GB
    be0cd7e9b258 powerpc/xive: Prevent page fault issues in the machine crash handler
    99d2164e4865 powerpc: Allow 64bit VDSO __kernel_sync_dicache to work across ranges >4GB
    f0f08beb3fa0 stm class: Lose the protocol driver when dropping its reference
    c0919315b735 ppdev: fix PPGETTIME/PPSETTIME ioctls
    86de25118e9c RDMA/core: Fix ib_dma_max_seg_size()
    f5aae41d4eac ARM: dts: omap3-tao3530: Fix incorrect MMC card detection GPIO polarity
    5cc72ba36683 mmc: host: omap_hsmmc: add code for special init of wl1251 to get rid of pandora_wl1251_init_card
    f15fa36b9c6b pinctrl: samsung: Fix device node refcount leaks in S3C24xx wakeup controller init
    da352a4b5493 pinctrl: samsung: Fix device node refcount leaks in init code
    738e8de6b8d2 pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init
    53149343fc98 pinctrl: samsung: Fix device node refcount leaks in Exynos wakeup controller init
    43cb61f4878b pinctrl: samsung: Add of_node_put() before return in error path
    72f6c3180468 pinctrl: armada-37xx: Fix irq mask access in armada_37xx_irq_set_type()
    e264e3ae1165 pinctrl: rza2: Fix gpio name typos
    61a4f44dc075 ACPI: PM: Avoid attaching ACPI PM domain to certain devices
    0a041ba2564a ACPI: bus: Fix NULL pointer check in acpi_bus_get_private_data()
    b56eca6bf2e4 ACPI: OSL: only free map once in osl.c
    2ba38c34447d ACPI / hotplug / PCI: Allocate resources directly under the non-hotplug bridge
    0a4cab60dde2 ACPI: LPSS: Add dmi quirk for skipping _DEP check for some device-links
    487afadea2fd ACPI: LPSS: Add LNXVIDEO -> BYT I2C1 to lpss_device_links
    9af85668040a ACPI: LPSS: Add LNXVIDEO -> BYT I2C7 to lpss_device_links
    e055c1890429 ACPI / utils: Move acpi_dev_get_first_match_dev() under CONFIG_ACPI
    5eac1d4c2450 ALSA: oxfw: fix return value in error path of isochronous resources reservation
    33e6efad9334 cpufreq: powernv: fix stack bloat and hard limit on number of CPUs
    7240e6e25891 PM / devfreq: Lock devfreq in trans_stat_show
    92741be9a736 intel_th: pci: Add Tiger Lake CPU support
    69d1163cd0f4 intel_th: pci: Add Ice Lake CPU support
    5ac267cabcd9 intel_th: Fix a double put_device() in error path
    a3784ad079c6 powerpc/perf: Disable trace_imc pmu
    08ded9339d52 cpuidle: teo: Fix "early hits" handling for disabled idle states
    30b23caa5deb cpuidle: teo: Consider hits and misses metrics of disabled states
    0df48241b6ab cpuidle: teo: Rename local variable in teo_select()
    db302e3bb162 cpuidle: teo: Ignore disabled idle states that are too deep
    ade564919a0c cpuidle: Do not unset the driver if it is there already
    f2a7f16026f9 media: cec.h: CEC_OP_REC_FLAG_ values were swapped
    342c964a9895 media: radio: wl1273: fix interrupt masking on release
    780fe9f19c38 media: bdisp: fix memleak on release
    348cecf72f8e s390/mm: properly clear _PAGE_NOEXEC bit when it is not supported
    9ec8636ef00a ar5523: check NULL before memcpy() in ar5523_cmd()
    6fc971f1d831 wil6210: check len before memcpy() calls
    ba29035eb4bc cgroup: pids: use atomic64_t for pids->limit
    873f0623fcbe blk-mq: avoid sysfs buffer overflow with too many CPU cores
    758af427f60f md: improve handling of bio with REQ_PREFLUSH in md_flush_request()
    3882ad8fadb0 ASoC: fsl_audmix: Add spin lock to protect tdms
    141bba39e422 ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report
    a99f0045c434 ASoC: rt5645: Fixed typo for buddy jack support.
    1ecdb55a6de6 ASoC: rt5645: Fixed buddy jack support.
    d78e1588f356 workqueue: Fix pwq ref leak in rescuer_thread()
    86226c42d8f7 workqueue: Fix spurious sanity check failures in destroy_workqueue()
    7b79872cb160 dm zoned: reduce overhead of backing device checks
    b7c4feffa872 dm writecache: handle REQ_FUA
    fa700de0abd2 hwrng: omap - Fix RNG wait loop timeout
    903867fe506a ovl: relax WARN_ON() on rename to self
    8b2e7fec9f26 ovl: fix corner case of non-unique st_dev;st_ino
    c73fe5396edf ovl: fix lookup failure on multi lower squashfs
    15fe8b7f7962 lib: raid6: fix awk build warnings
    b8f32a0e26fb rtlwifi: rtl8192de: Fix missing enable interrupt flag
    0917a96e2d3a rtlwifi: rtl8192de: Fix missing callback that tests for hw release of buffer
    32c6c1de1c05 rtlwifi: rtl8192de: Fix missing code to retrieve RX buffer address
    f1da748f078d btrfs: record all roots for rename exchange on a subvol
    017f00a09704 Btrfs: send, skip backreference walking for extents with many references
    f08e9d661548 btrfs: Remove btrfs_bio::flags member
    f01ca4344ffe btrfs: Avoid getting stuck during cyclic writebacks
    07383f0fced7 Btrfs: fix negative subv_writers counter and data space leak after buffered write
    69608bab8b1b Btrfs: fix metadata space leak on fixup worker failure to set range as delalloc
    6bab2f18b421 btrfs: use refcount_inc_not_zero in kill_all_nodes
    b703482bc2ec btrfs: check page->mapping when loading free space cache
    11b102bc593e iwlwifi: pcie: fix support for transmitting SKBs with fraglist
    7a569d85c92b usb: typec: fix use after free in typec_register_port()
    254d37011ab2 phy: renesas: rcar-gen3-usb2: Fix sysfs interface of "role"
    26593100f6a1 usb: dwc3: ep0: Clear started flag on completion
    d2e949f9d6c5 usb: dwc3: gadget: Clear started flag for non-IOC
    077399428186 usb: dwc3: gadget: Fix logical condition
    545da1614800 usb: dwc3: pci: add ID for the Intel Comet Lake -H variant
    393edc8f15ca virtio-balloon: fix managed page counts when migrating pages between zones
    15c579c3d104 virt_wifi: fix use-after-free in virt_wifi_newlink()
    3891c22e7b74 mtd: rawnand: Change calculating of position page containing BBM
    175a15f4c288 mtd: spear_smi: Fix Write Burst mode
    5738119a60ed brcmfmac: disable PCIe interrupts before bus reset
    ab35b8b9a235 EDAC/altera: Use fast register IO for S10 IRQs
    deda3f6b06dc tpm: add check after commands attribs tab allocation
    ebb7dae402e3 usb: mon: Fix a deadlock in usbmon between mmap and read
    650d955bc548 usb: core: urb: fix URB structure initialization function
    d54daa869ed5 USB: adutux: fix interface sanity check
    3e4a4cb54c04 usb: roles: fix a potential use after free
    14fa9bcb6a07 USB: serial: io_edgeport: fix epic endpoint lookup
    174f3783b4f0 USB: idmouse: fix interface sanity checks
    6facde75d1c8 USB: atm: ueagle-atm: add missing endpoint check
    b4972eba6831 iio: adc: ad7124: Enable internal reference
    b609ee0b3024 iio: adc: ad7606: fix reading unnecessary data from device
    bc27d17532dd iio: imu: inv_mpu6050: fix temperature reporting using bad unit
    edfeae1a5a70 iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
    76a78a37799d iio: adis16480: Fix scales factors
    a8f0c5837cca iio: adis16480: Add debugfs_reg_access entry
    a02348d262b3 ARM: dts: pandora-common: define wl1251 as child node of mmc3
    43a05d85e421 interconnect: qcom: sdm845: Walk the list safely on node removal
    3ea35e60e8c8 xhci: make sure interrupts are restored to correct state
    0df691c29da9 xhci: handle some XHCI_TRUST_TX_LENGTH quirks cases as default behaviour.
    d10974513d17 xhci: Increase STS_HALT timeout in xhci_suspend()
    40ccc7fb3125 xhci: fix USB3 device initiated resume race with roothub autosuspend
    8f015d20b7d5 xhci: Fix memory leak in xhci_add_in_port()
    de53955ea0d3 usb: xhci: only set D3hot for pci device
    13d723a6c22c staging: gigaset: add endpoint-type sanity check
    ed9145e7d4a4 staging: gigaset: fix illegal free on probe errors
    a193faef6209 staging: gigaset: fix general protection fault on probe
    a48994561cab staging: vchiq: call unregister_chrdev_region() when driver registration fails
    38beaaec130c staging: rtl8712: fix interface sanity check
    238af85b081b staging: rtl8188eu: fix interface sanity check
    9517a9f133fd binder: fix incorrect calculation for num_valid
    a65c5b1d8762 usb: host: xhci-tegra: Correct phy enable sequence
    0da1ca92c578 usb: Allow USB device to be warm reset in suspended state
    fa74b02fa20f USB: documentation: flags on usb-storage versus UAS
    46f840a92233 USB: uas: heed CAPACITY_HEURISTICS
    9cc58d6fb42e USB: uas: honor flag to avoid CAPACITY16
    19ccc7083566 media: venus: remove invalid compat_ioctl32 handler
    6f4b7b312148 scsi: zfcp: trace channel log even for FCP command responses
    6975c6beb5f0 usb: gadget: pch_udc: fix use after free
    6f10fa4a113c rpmsg: char: release allocated memory
    f01eedaf4e09 mac80211: Do not send Layer 2 Update frame before authorization
    38b2d9bb7b57 libertas: fix a potential NULL pointer dereference
    2789290efc0b mwifiex: Fix heap overflow in mmwifiex_process_tdls_action_frame()
    fd820abb0696 Linux 5.2.30
    10f017c26642 spi: dw: Correct handling of native chipselect
    9e79f5ae512f spi: cadence: Correct handling of native chipselect
    db91ee312ada drm/sun4i: tcon: Set RGB DCLK min. divider based on hardware model
    9eeb986b4809 clk: samsung: exynos5420: Keep top G3D clocks enabled
    99232a68c619 block: fix "check bi_size overflow before merge"
    f54449c00a10 EDAC/ghes: Do not warn when incrementing refcount on 0
    4f18ed319605 ALSA: hda: Fix regression by strip mask fix
    a550c8d05657 io_uring: ensure req->submit is copied when req is deferred
    7b57a96cf3b7 Input: Fix memory leak in psxpad_spi_probe
    a006a5ae6b91 ALSA: hda: hdmi - fix pin setup on Tigerlake
    85435506e9e0 EDAC/ghes: Fix locking and memory barrier issues
    81a005d25b01 watchdog: aspeed: Fix clock behaviour for ast2600
    c3f6c163ac89 md/raid0: Fix an error message in raid0_make_request()
    e90488c1856c ALSA: hda - Fix pending unsol events at shutdown
    ac5a40962daf KVM: x86: fix out-of-bounds write in KVM_GET_EMULATED_CPUID (CVE-2019-19332)
    949540e93943 binder: Handle start==NULL in binder_update_page_range()
    75a11437a803 binder: Prevent repeated use of ->mmap() via NULL mapping
    e0a0299acecb binder: Fix race between mmap() and binder_alloc_print_pages()
    ba5d71130445 thermal: Fix deadlock in thermal thermal_zone_device_check
    cf162b1f1d6f iomap: Fix pipe page leakage during splicing
    1ede48d1d47e RDMA/qib: Validate ->show()/store() callbacks before calling them
    6df074625c15 can: ucan: fix non-atomic allocation in completion handler
    1233eadb99a9 spi: Fix NULL pointer when setting SPI_CS_HIGH for GPIO CS
    cad0ca361138 spi: Fix SPI_CS_HIGH setting when using native and GPIO CS
    25ac2d29646a spi: atmel: Fix CS high support
    efd56e6b1fbd spi: stm32-qspi: Fix kernel oops when unbinding driver
    dfbd2a22d8b1 spi: spi-fsl-qspi: Clear TDH bits in FLSHCR register
    d7e9115f21e0 spi: spi-fsl-qspi: change i.MX7D RX FIFO size
    76cde0d7ff39 crypto: ecdh - fix big endian bug in ECC library
    36759ce37925 crypto: ccp - fix uninitialized list head
    8ba8fa9fc2db crypto: geode-aes - switch to skcipher for cbc(aes) fallback
    86a44e8938be crypto: af_alg - cast ki_complete ternary op to int
    9ff009403999 crypto: atmel-aes - Fix IV handling when req->nbytes < ivsize
    2cbf74169383 crypto: crypto4xx - fix double-free in crypto4xx_destroy_sdr
    f6981b364dae KVM: x86: Grab KVM's srcu lock when setting nested state
    c08ddad72e7b KVM: x86: Remove a spurious export of a static function
    317fd0a0c93d KVM: x86: fix presentation of TSX feature in ARCH_CAPABILITIES
    7f70f6380882 KVM: x86: do not modify masked bits of shared MSRs
    6384ad0ab29b KVM: arm/arm64: vgic: Don't rely on the wrong pending table
    bdcecb6dd8e8 KVM: nVMX: Always write vmcs02.GUEST_CR3 during nested VM-Enter
    3600a4189d12 KVM: PPC: Book3S HV: XIVE: Set kvm->arch.xive when VPs are allocated
    34e8d4a0ef05 KVM: PPC: Book3S HV: XIVE: Fix potential page leak on error path
    4ebdbf4ff503 KVM: PPC: Book3S HV: XIVE: Free previous EQ page when setting up a new one
    cc73381579f9 arm64: dts: exynos: Revert "Remove unneeded address space mapping for soc node"
    1d19cc75f715 drm/i810: Prevent underflow in ioctl
    16f54bf33fce drm: damage_helper: Fix race checking plane->state->fb
    20a0047cdca4 drm/msm: fix memleak on release
    6c34f27046e3 jbd2: Fix possible overflow in jbd2_log_space_left()
    5b1ab9f1a2c0 kernfs: fix ino wrap-around detection
    910116ce4349 nfsd: restore NFSv3 ACL support
    6589961e5ec7 nfsd: Ensure CLONE persists data and metadata changes to the target file
    574498a02845 tty: vt: keyboard: reject invalid keycodes
    c75342d33dd5 CIFS: Fix SMB2 oplock break processing
    c8c867906145 CIFS: Fix NULL-pointer dereference in smb2_push_mandatory_locks
    2199093ff906 x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect
    4d34c238f6ee x86/mm/32: Sync only to VMALLOC_END in vmalloc_sync_all()
    64a582385b92 media: rc: mark input device as pointing stick
    70fd4e1972e8 coresight: etm4x: Fix input validation for sysfs.
    55c0be64071e Input: goodix - add upside-down quirk for Teclast X89 tablet
    2405495a00f8 Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers
    868c29a7efd0 Input: synaptics-rmi4 - re-enable IRQs in f34v7_do_reflash
    0e606e3626e6 Input: synaptics - switch another X1 Carbon 6 to RMI/SMbus
    94adc53b2c47 ALSA: hda: Modify stream stripe mask only when needed
    a527c3df9f54 ALSA: hda - Add mute led support for HP ProBook 645 G4
    accc2add3da3 ALSA: pcm: oss: Avoid potential buffer overflows
    55f6418b7ae3 ALSA: hda/realtek - Dell headphone has noise on unmute for ALC236
    bbad17075fe3 ALSA: hda/realtek - Enable the headset-mic on a Xiaomi's laptop
    fcfb4bce22aa ALSA: hda/realtek - Enable internal speaker of ASUS UX431FLC
    83753976cfae fuse: verify attributes
    a6f6439eb10f fuse: verify nlink
    31aa652b9a69 i2c: core: fix use after free in of_i2c_notify
    92084c0b356d net: ep93xx_eth: fix mismatch of request_mem_region in remove
    f75cb980f0ab afs: Fix race in commit bulk status fetch
    26167b5cf5df net: hns3: fix ETS bandwidth validation bug
    037e0cbe8863 net: hns3: reallocate SSU' buffer size when pfc_en changes
    423f97775629 ravb: implement MTU change while device is up
    ba49aa6bccbb rsxx: add missed destroy_workqueue calls in remove
    6dbf3b9cc169 selftests: kvm: fix build with glibc >= 2.30
    334204bdbd89 drm/sun4i: tcon: Set min division of TCON0_DCLK to 1.
    d2001cf2e8d3 x86/resctrl: Fix potential lockdep warning
    7bf14c3c120b ALSA: pcm: Fix stream lock usage in snd_pcm_period_elapsed()
    57dbe72b9638 perf/core: Consistently fail fork on allocation failures
    24a8ce6100ab sched/pelt: Fix update of blocked PELT ordering
    cadf46055b6f sched/core: Avoid spurious lock dependencies
    b8a654dde72b Input: cyttsp4_core - fix use after free bug
    9bcb8316e536 block: check bi_size overflow before merge
    f05d37196a77 xfrm: release device reference for invalid state
    e630f0eab8b3 NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error
    14f8f24bfcbc ALSA: hda: Add Cometlake-S PCI ID
    85deda956139 ecryptfs: fix unlink and rmdir in face of underlying fs modifications
    7a7b13483234 audit_get_nd(): don't unlock parent too early
    6f26d186c431 exportfs_decode_fh(): negative pinned may become positive without the parent locked
    d5a9bd7dc9c2 cgroup: don't put ERR_PTR() into fc->root
    5490ae827b29 iwlwifi: pcie: don't consider IV len in A-MSDU
    5bc1282dfb21 RDMA/hns: Correct the value of srq_desc_size
    9b0df7c7e42c RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN
    bf7d03571100 MIPS: SGI-IP27: fix exception handler replication
    b578c711e5e7 autofs: fix a leak in autofs_expire_indirect()
    81559b396efa aio: Fix io_pgetevents() struct __compat_aio_sigset layout
    03bd68a92f82 signal: simplify set_user_sigmask/restore_user_sigmask
    88300b370dbc serial: ifx6x60: add missed pm_runtime_disable
    06eb5d963912 serial: serial_core: Perform NULL checks for break_ctl ops
    c811b133b3e7 serial: pl011: Fix DMA ->flush_buffer()
    d451358ffe85 tty: serial: msm_serial: Fix flow control
    5b10978724e0 tty: serial: fsl_lpuart: use the sg count from dma_map_sg
    c38c3a52315f usb: gadget: u_serial: add missing port entry locking
    b30c295d649b time: Zero the upper 32-bits in __kernel_timespec on 32-bit
    9f06fb5da07e lp: fix sparc64 LPSETTIMEOUT ioctl
    068341cb7952 sparc64: implement ioremap_uc
    932b771c65b6 arm64: tegra: Fix 'active-low' warning for Jetson TX1 regulator
    edc3ff235784 net: fec: fix clock count mis-match
    ed9b79600a5d platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size
    952328f5193b platform/x86: hp-wmi: Fix ACPI errors caused by too small buffer
    da62cf911005 HID: core: check whether Usage Page item is after Usage ID items
    fb85a234fc39 tipc: fix link name length check
    0867e153690e selftests: bpf: test_sockmap: handle file creation failures gracefully
    cd73a77a2288 net/tls: use sg_next() to walk sg entries
    55c1ea6758d8 net/tls: remove the dead inplace_crypto code
    c824b8c9957b net: skmsg: fix TLS 1.3 crash with full sk_msg
    45c795cbee84 net: sockmap: use bitmap for copy info
    c1c89460bda2 net/tls: free the record on encryption error
    1468022cc8f2 net/tls: take into account that bpf_exec_tx_verdict() may free the record
    a3157970686f openvswitch: remove another BUG_ON()
    bacb11535532 openvswitch: drop unneeded BUG_ON() in ovs_flow_cmd_build_info()
    744916544dba sctp: cache netns in sctp_ep_common
    f4312b9ba27c sctp: Fix memory leak in sctp_sf_do_5_2_4_dupcook
    8d442143ccd4 openvswitch: fix flow command message size
    b834278b4d0a net: sched: fix `tc -s class show` no bstats on class with nolock subqueues
    2f47935914f8 net: psample: fix skb_over_panic
    8fc3ccb35fba net: macb: add missed tasklet_kill
    9243823cd73a net: dsa: sja1105: fix sja1105_parse_rgmii_delays()
    1e7ff496e195 mdio_bus: don't use managed reset-controller
    f458119c914d macvlan: schedule bc_work even if error
    442b4bac7514 xfrm: Fix memleak on xfrm state destroy
    d06561a292bf thunderbolt: Power cycle the router if NVM authentication fails
    97a4d0528c98 mei: me: add comet point V device id
    aa6a4bfabb1a mei: bus: prefix device names on bus with the bus name
    fb94cd58ee14 USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P
    33c6adbab912 staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids
    34820fb849a8 staging: rtl8723bs: Drop ACPI device ids
    18ff3bb126fe staging: rtl8192e: fix potential use after free
    955068eb7918 staging: wilc1000: fix illegal memory access in wilc_parse_join_bss_param()
    afe6f4526509 usb: dwc2: use a longer core rest timeout in dwc2_core_reset()
    4b15bd43d8ed clk: at91: fix update bit maps on CFG_MOR write
    6ed6cd2d7f8a i40e: Fix for ethtool -m issue on X722 NIC
    ddcdd3cc96f1 i40e: Fix for missing "link modes" info in ethtool
    ae4d08f3a69b iavf: initialize ITRN registers with correct values
    12c0db2518f8 ice: fix potential infinite loop because loop counter being too small
    c105a4b2019d pwm: bcm-iproc: Prevent unloading the driver module while in use
    66f3f3c4da1e block: drbd: remove a stray unlock in __drbd_send_protocol()
    11748bed1eeb mac80211: fix station inactive_time shortly after boot
    2df48b15a9ca net/fq_impl: Switch to kvmalloc() for memory allocation
    1332a34432a5 ceph: return -EINVAL if given fsc mount option on kernel w/o support
    218333cf3e5b net: stmmac: xgmac: Disable Flow Control when 1 or more queues are in AV
    e8fec331b7e3 net: stmmac: xgmac: Fix TSA selection
    f7e0994188b2 net: stmmac: gmac4: bitrev32 returns u32
    d99d2e2d5c7d drm/amdgpu: add warning for GRBM 1-cycle delay issue in gfx9
    3db9d787fbbe net: mscc: ocelot: fix __ocelot_rmw_ix prototype
    23d1a942d638 net/mlx5e: Fix eswitch debug print of max fdb flow
    c26064b7eda5 drm/amdgpu: dont schedule jobs while in reset
    d61b5d11db4b net: bcmgenet: reapply manual settings to the PHY
    303f8e7b7d18 net: bcmgenet: use RGMII loopback for MAC reset
    82077751014a scripts/gdb: fix debugging modules compiled with hot/cold partitioning
    7b20840690f5 mm/gup_benchmark: fix MAP_HUGETLB case
    c7816d20058f ASoC: SOF: topology: Fix bytes control size checks
    1b3afeddab4a ARM: dts: stm32: Fix CAN RAM mapping on stm32mp157c
    4de26c8cbe50 ALSA: hda: hdmi - add Tigerlake support
    f43786eb3acb ASoC: stm32: sai: add restriction on mmap support
    36fa7d5299c2 watchdog: bd70528: Add MODULE_ALIAS to allow module auto loading
    f023dd202f6b watchdog: meson: Fix the wrong value of left time
    9054f01030f8 watchdog: pm8916_wdt: fix pretimeout registration flow
    2c25aa88640f nvme-multipath: fix crash in nvme_mpath_clear_ctrl_paths
    6fdb636145b0 nvme-rdma: fix a segmentation fault during module unload
    43bd0bf71860 can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition
    7091bcbccb6b perf scripting engines: Iterate on tep event arrays directly
    7371326920db x86/tsc: Respect tsc command line paraemeter for clocksource_tsc_early
    8efe12d76d7e can: flexcan: increase error counters if skb enqueueing via can_rx_offload_queue_sorted() fails
    4a3333ea25b1 can: rx-offload: can_rx_offload_irq_offload_fifo(): continue on error
    a26a27d53b40 can: rx-offload: can_rx_offload_irq_offload_timestamp(): continue on error
    39b89fc6625f can: rx-offload: can_rx_offload_offload_one(): use ERR_PTR() to propagate error value in case of errors
    f6b5da01db2f can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM
    acb9095493be can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
    189c1239632b can: rx-offload: can_rx_offload_queue_tail(): fix error handling, avoid skb mem leak
    7ac97e4ef4d9 can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open
    1ac0d4885a34 can: peak_usb: report bus recovery as well
    b542266496fa stacktrace: Don't skip first entry on noncurrent tasks
    afe7ff5be406 bridge: ebtables: don't crash when using dnat target in output chains
    a19d86990335 netfilter: ipset: Fix nla_policies to fully support NL_VALIDATE_STRICT
    17db97a8e7d5 netfilter: ipset: Fix the last missing check of nla_parse_deprecated()
    5f4ada6390b6 net: fec: add missed clk_disable_unprepare in remove
    0b283b59a62f clk: ti: clkctrl: Fix failed to enable error with double udelay timeout
    b70eae1c4480 clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call
    aab6b68e53eb ASoC: hdac_hda: fix race in device removal
    b23f8d6ca25f fbdev: c2p: Fix link failure on non-inlining
    51c019bf2c42 arm64: dts: zii-ultra: fix ARM regulator GPIO handle
    819ee4651182 x86/resctrl: Prevent NULL pointer dereference when reading mondata
    4d71464d5830 idr: Fix idr_alloc_u32 on 32-bit systems
    9956dbb774e4 idr: Fix integer overflow in idr_for_each_entry
    a530ec599a8a idr: Fix idr_get_next_ul race with idr_remove
    6909ddf4276c powerpc/bpf: Fix tail call implementation
    957928006316 samples/bpf: fix build by setting HAVE_ATTR_TEST to zero
    d3a556320b11 bpf: Allow narrow loads of bpf_sysctl fields with offset > 0
    4fd976da64d7 ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend
    1d6d86b21245 clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18
    440f439c1041 clk: sunxi: Fix operator precedence in sunxi_divs_clk_setup
    b4c8fc7dcab9 clk: at91: avoid sleeping early
    c42ce4122e86 ASoC: ti: sdma-pcm: Add back the flags parameter for non standard dma names
    32ea5f2ae3b6 arm64: dts: imx8mm: fix compatible string for sdma
    4071d8976ac5 reset: fix reset_control_ops kerneldoc comment
    b178a6e8f8f3 soc: imx: gpc: fix initialiser format
    0a751a005ded ARM: dts: imx6qdl-sabreauto: Fix storm of accelerometer interrupts
    946654641741 pinctrl: cherryview: Allocate IRQ chip dynamic
    66c7b484cae0 clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume
    30c758e0a731 arm64: dts: ls1028a: fix a compatible issue
    ba3e13683df7 ASoC: kirkwood: fix device remove ordering
    d7ee3bbc1085 ASoC: kirkwood: fix external clock probe defer
    7a754f5e5751 clk: samsung: exynos542x: Move G3D subsystem clocks to its sub-CMU
    2361cffc9775 clk: samsung: exynos5433: Fix error paths
    e1fc074e8178 reset: Fix memory leak in reset_control_array_put()
    b01838b0ca64 ASoC: compress: fix unsigned integer overflow check
    41360b33fec2 ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX
    e7fc8cc79377 soundwire: intel: fix intel_register_dai PDI offsets and numbers
    82b111a092b1 clocksource/drivers/mediatek: Fix error handling
    85c26d3b879d thunderbolt: Fix lockdep circular locking depedency warning
    a41faef2aef6 thunderbolt: Read DP IN adapter first two dwords in one go
    0b4d76ea32e5 clk: at91: sam9x60: fix programmable clock
    3ac5085a98ba clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate
    922eddf892e2 XArray: Fix xas_next() with a single entry at 0

(From OE-Core rev: c78140941f8a98e013932023a63501ba3b7e975a)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit c37bf8287072ddf6005d5c3f419a6a77f673164c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Lee Chee Yang
3c49e7636e libxml2: Fix CVE-2019-20388
see:
https://gitlab.gnome.org/GNOME/libxml2/merge_requests/68

(From OE-Core rev: 12a5eb0ea6f530ad7be2e58d4091b4edadbf461b)

(From OE-Core rev: 49131908e3510dc69e0f278889803a461c2d96c0)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Anuj Mittal
eb3988272b libxml2: fix CVE-2020-7595
(From OE-Core rev: f2f7aa9a495774fe5a2e3947584cb3503bd1eaf1)

(From OE-Core rev: 72a747f77f9fd051e054e679deacf537b4b7116f)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Yi Zhao
d37b23160b ppp: Security fix CVE-2020-8597
CVE-2020-8597: eap.c in pppd in ppp 2.4.2 through 2.4.8 has an rhostname
buffer overflow in the eap_request and eap_response functions.

References:
https://nvd.nist.gov/vuln/detail/CVE-2020-8597

Patch from:
8d7970b8f3

(From OE-Core rev: b01505e018ff46f1af34f98219d55f4ca700cd5a)

(From OE-Core rev: f0c7e7d03d1e9f7426031acdde3f7452118edd8c)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Anuj Mittal
a448c47761 ncurses: add CVE_VERSION
Include the version number in a format that is comparable to what we get
from NVD.

(From OE-Core rev: fdb2a95d5e0265de1172940b6dc71fc7d602e8d1)

(From OE-Core rev: 53b94d0bc839eda408d90e15937746871b7546e3)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Lee Chee Yang
89601107db qemu: Fix CVE-2020-1711
see https://git.qemu.org/?p=qemu.git;a=commit;h=693fd2acdf14dd86c0bf852610f1c2cca80a74dc

(From OE-Core rev: 3e65ad67995874c363863280e40457acc3f479e9)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Jeremy Puhlman
36890c03d4 toolchain-shar-extract: ignore timestamp on decompress
Installing on centos7, which the extended version of the
buildtools tarball is supposed to fix and with reproducable
builds turned on, all the time stamps are for epoch. This
results in the following output for every file:

tar: ./sysroots/x86_64-pokysdk-linux/usr/include/c++/9.2.0/cstdalign: implausibly old time stamp 1969-12-31 16:00:00
tar: ./sysroots/x86_64-pokysdk-linux/usr/lib/libstdc++.so.6: implausibly old time stamp 1969-12-31 16:00:00

Ignore the timestamps during the uncompession step.

(From OE-Core rev: 2d61ef93383d49db43af144aa17a88dd250ceb95)

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 319ca22ea4465c56c63730847378a7aee4f5935a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Tim Orling
4495667b53 liberror-perl: upgrade 0.17028 -> 0.17029
Upstream release notes:
"
0.17029         2020-01-28
    - Rebuild for order of 'NAME' and 'VERSION' sections in the generated
    POD documentation (see 0.001004 in
    https://metacpan.org/changes/distribution/Pod-Weaver-PluginBundle-SHLOMIF
    ).
        - VERSION used to appear before NAME.
"

(From OE-Core rev: 8856aa960ff4c9c833e958082466d19259915d5f)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f4a520cc827187d83f2997614d893bba7d74a152)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Richard Purdie
3752e41448 perl: Fix makefile race causing configuration differences
Add a missing makefile dependency which can cause differences in
configuration (submitted upstream).

[YOCTO #13800]

(From OE-Core rev: 1589115ff42e8c211bc0784bd8aca7d3a5b8f566)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fe97845a45434902c5a994e253a127a462d7d3b4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Richard Purdie
4d11365f40 perl: Fix encode module reproducibility issues
The code is encoding host compiler parameters into target builds. Avoid
this for our target builds. This should resolve builds which aren't
reproducible between hosts with different compilers.

(From OE-Core rev: 4b41afeea632f33a490d75621e2c0d6bb2bb6aca)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 71cdbf426e46e3ca1b5038f40e9f7ba958abc537)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Alexander Kanavin
049494b87c perl: fix failing ptests
(From OE-Core rev: b84f3056591c16fa3e2bba2e4fa936390a76ee9a)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f1da6355f13e707b3ffa5025067e509e0120784d)
[Fixup for zeus context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Ross Burton
74bec4855b perl: improve reproducibility
Occasionally the reproducibility selftest fails because perl-pod differs,
specifically that the perltoc.pod file was sometimes missing modules.

Debugging revealed that there are missing dependencies so there is a build race:
building perltoc.pod from an clean build tree results in no modules being listed
at all.

A bug has been filed at https://github.com/arsv/perl-cross/issues/86 to solve
this properly, but for now we can just delete perltoc.pod after make has
finished and re-generate it.

[ YOCTO #13726 ]

(From OE-Core rev: 4ee9c60797e95674ae138245b3a4de063b2e95db)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7e0f6c9ea4f824f29dc30c6631fd8039ebe83a0b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Alexander Kanavin
5b84102650 libmodule-build-perl: fix ptests
Particularly remove a broken detection of skipped tests
(which was marking tests that actually passed), and install
additional artefacts needed for testing.

(From OE-Core rev: 559fd361440898479937c887a0e4f8cfb8c46891)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dbbce0918617c21d0e43e9727d38372c22dff3dc)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Alexander Kanavin
dd95222a3a perl: install typemap and other extutils metadata as part of perl-core
Modules actually make use of these files, so they belong in perl-core
other than perl-doc (the immediate failure was ptests for
libmodule-build-perl failing).

(From OE-Core rev: c95832dbfe4f375dadbffc8ee678052dbf7b3913)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 829e8c49833e4cb8de5db869769eb492c827e8c9)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Alexander Kanavin
19e844dc2e perl: package Config.pm from arch directory into the main perl package
Otherwise, some modules such as libmodule-build-perl fail to work
properly.

(From OE-Core rev: 2d5fae94a889cd9558e3946ecec2362c94e1c1e9)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e4072d53a7fb4fbbdacce9a20968e71ef6cff307)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Alexander Kanavin
db2edbf58c perl: update to 5.30.1
Drop fix-setgroup.patch as the upstream has fixed the issue.

(From OE-Core rev: df86f5d32dc18f25c5c4788b65cceae8905a6ef3)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 45edc6d23e20f7634c50db71e419c7e3bb7f393e)
[Bug fix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Bruce Ashfield
60ec9f2634 linux-yocto/5.2: update to v5.2.29
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    928ea9c56927 Linux 5.2.29
    4e41907620bc slip: Fix use-after-free Read in slip_open
    d11814f97a05 can: slcan: Fix use-after-free Read in slcan_open
    01313dcf66e7 can: kvaser_usb: kvaser_usb_leaf: Fix some info-leaks to USB devices
    7f006e58efc2 scsi: libsas: stop discovering if oob mode is disconnected
    0e5c48d6b011 staging: comedi: usbduxfast: usbduxfast_ai_cmdtest rounding error
    d8b3d5fb8765 USB: serial: option: add support for Foxconn T77W968 LTE modules
    c4fe1d495f9c USB: serial: option: add support for DW5821e with eSIM support
    4ac031b15d86 USB: serial: mos7840: fix remote wakeup
    4d44a218aea6 USB: serial: mos7720: fix remote wakeup
    3561f4d3242f USB: serial: mos7840: add USB ID to support Moxa UPort 2210
    13a33fb9debe appledisplay: fix error handling in the scheduled work
    0cd437d7c16b USB: chaoskey: fix error case of a timeout
    2136119fde46 usb-serial: cp201x: support Mark-10 digital force gauge
    3a71173a4a45 usbip: tools: fix fd leakage in the function of read_attr_usbip_status
    726510907c68 USBIP: add config dependency for SGL_ALLOC
    7dd553573bc5 media: mceusb: fix out of bounds read in MCE receiver buffer
    1e4921f684ca media: imon: invalid dereference in imon_touch_event
    d482dfe2776a media: cxusb: detect cxusb_ctrl_msg error in query
    ab4952849dd8 media: b2c2-flexcop-usb: add sanity checking
    e2aa61cda115 media: uvcvideo: Fix error path in control parsing failure
    115fa3afd4d1 cpufreq: Add NULL checks to show() and store() methods of cpufreq
    767facdefa23 media: usbvision: Fix races among open, close, and disconnect
    ba90b62cb0bd media: usbvision: Fix invalid accesses after device disconnect
    829b703e9706 media: vivid: Set vid_cap_streaming and vid_out_streaming to true
    57f2b5c44f02 nfc: port100: handle command failure cleanly
    5fc4dc967e06 ALSA: usb-audio: Fix NULL dereference at parsing BADD
    c938307a439a futex: Prevent robust futex exit race
    8b0f13ee2b7b nbd: prevent memory leak
    1bfd67a1c47b ARM: 8904/1: skip nomap memblocks while finding the lowmem/highmem boundary
    a634776bcd5e md/raid10: prevent access of uninitialized resync_pages offset
    40c0b4538c8b Revert "dm crypt: use WQ_HIGHPRI for the IO and crypt workqueues"
    53eaf5993eea ath9k_hw: fix uninitialized variable data
    5a1b959a78ea ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe
    8b16c7096bc9 ath10k: Fix HOST capability QMI incompatibility
    ceee3b64b0b5 ath10k: restore QCA9880-AR1A (v1) detection
    08c0402ed497 Bluetooth: Fix invalid-free in bcsp_close()
    c1ed057fbe33 drm/i915/userptr: Try to acquire the page lock around set_page_dirty()
    5ec5ba44bd85 drm/i915/pmu: "Frequency" is reported as accumulated cycles
    c7ceeaf80706 drm/amd/powerplay: issue no PPSMC_MSG_GetCurrPkgPwr on unsupported ASICs
    1c3fb0c8357e drm/amdgpu: disable gfxoff on original raven
    ccd9d21f783e drm/amdgpu: disable gfxoff when using register read interface
    6e745cbc5051 mm/ksm.c: don't WARN if page is still mapped in remove_stable_node()
    79194b4a342c mm/memory_hotplug: don't access uninitialized memmaps in shrink_zone_span()
    01d151b7e74e virtio_balloon: fix shrinker count
    caae62219805 virtio_ring: fix return code on DMA mapping fails
    272ed6b7ca4a virtio_console: allocate inbufs in add_port() only if it is needed
    abce58c3af15 nbd:fix memory leak in nbd_get_socket()
    2601193dc253 tools: gpio: Correctly add make dependencies for gpio_utils
    3608aa07bac2 gpio: max77620: Fixup debounce delays
    c6bf6af12a68 vhost/vsock: split packets to send using multiple buffers
    95a617d1f70c net/mlx5: Update the list of the PCI supported devices
    febceda6db3f net/mlx5e: Do not use non-EXT link modes in EXT mode
    f8bddf0e192a net/mlx5e: Fix error flow cleanup in mlx5e_tc_tun_create_header_ipv4/6
    e049e3c43308 taprio: don't reject same mqprio settings
    8345d40b83bf ipv6/route: return if there is no fib_nh_gw_family
    1edfc6649c92 net/tls: enable sk_msg redirect to tls socket egress
    27845a1dd06b net/mlx5: Fix auto group size calculation
    ec6d299939c3 net/mlx5e: Fix set vf link state error flow
    bab144f2a957 net/mlxfw: Verify FSM error code translation doesn't exceed array size
    3eb4c2e70dce sfc: Only cancel the PPS workqueue if it exists
    a03585b724bc net: sched: ensure opts_len <= IP_TUNNEL_OPTS_MAX in act_tunnel_key
    285a19d8dde0 net/sched: act_pedit: fix WARN() in the traffic path
    8e40158af458 net: rtnetlink: prevent underflows in do_setvfinfo()
    1afad75b2dba net/mlx4_en: Fix wrong limitation for number of TX rings
    ce1291041c39 net/mlx4_en: fix mlx4 ethtool -N insertion
    2a7ad86813a4 mlxsw: spectrum_router: Fix determining underlay for a GRE tunnel
    da957117e731 fbdev: Ditch fb_edid_add_monspecs
    1f043415c4f5 arm64: uaccess: Ensure PAN is re-enabled after unhandled uaccess fault
    0063e9b69796 mm/memory_hotplug: fix updating the node span
    d27074543286 mm/memory_hotplug: don't access uninitialized memmaps in shrink_pgdat_span()
    62ca688436d3 block, bfq: deschedule empty bfq_queues not referred by any process
    045a481acd16 slcan: Fix memory leak in error path
    22bc38eae704 mmc: sdhci-of-at91: fix quirk2 overwrite
    8505966cdc7e mm/page_io.c: do not free shared swap slots
    349d5ccf8971 mm: hugetlb: switch to css_tryget() in hugetlb_cgroup_charge_cgroup()
    cb4df7d810ac mm: memcg: switch to css_tryget() in get_mem_cgroup_from_mm()
    eec30082ea78 mm: mempolicy: fix the wrong return value and potential pages leak of mbind
    c4b3eaf0585b iommu/vt-d: Fix QI_DEV_IOTLB_PFSID and QI_DEV_EIOTLB_PFSID macros
    5a705e36d350 net: ethernet: dwmac-sun8i: Use the correct function in exit path
    50d4170ffddd ntp/y2038: Remove incorrect time_t truncation
    f701a893aba0 ecryptfs_lookup_interpose(): lower_dentry->d_parent is not stable either
    97dd5923ba23 ecryptfs_lookup_interpose(): lower_dentry->d_inode is not stable
    3c130e6cddae x86/quirks: Disable HPET on Intel Coffe Lake platforms
    a0f63a47ab13 i2c: acpi: Force bus speed to 400KHz if a Silead touchscreen is present
    ca7d1676d537 IB/hfi1: Use a common pad buffer for 9B and 16B packets
    b8b6479e3cc9 IB/hfi1: Ensure full Gen3 speed in a Gen4 system
    72ff837e69c5 IB/hfi1: TID RDMA WRITE should not return IB_WC_RNR_RETRY_EXC_ERR
    3c1db8a639ac IB/hfi1: Calculate flow weight based on QP MTU for TID RDMA
    d2f5dd2fd992 IB/hfi1: Ensure r_tid_ack is valid before building TID RDMA ACK packet
    e88f0707f216 KVM: MMU: Do not treat ZONE_DEVICE pages as being reserved
    9e35e5bc4a04 Input: synaptics-rmi4 - destroy F54 poller workqueue when removing
    2eaf311ccd38 Input: synaptics-rmi4 - clear IRQ enables for F54
    f05aacf5a7b9 Input: synaptics-rmi4 - do not consume more data than we have (F11, F12)
    7e649c757a1a Input: synaptics-rmi4 - disable the relative position IRQ in the F12 driver
    4b482d7281a6 Input: synaptics-rmi4 - fix video buffer size
    74e0752ee79e cgroup: freezer: call cgroup_enter_frozen() with preemption disabled in ptrace_stop()
    a9cae67b7a20 Btrfs: fix log context list corruption after rename exchange operation
    011e452b4d84 ALSA: usb-audio: not submit urb for stopped endpoint
    c7801593d92a ALSA: usb-audio: Fix missing error check at mixer resolution test
    ff24b83d0f73 dpaa2-eth: free already allocated channels on probe defer
    21790068a579 tcp: remove redundant new line from tcp_event_sk_skb
    364436976763 slip: Fix memory leak in slip_open error path
    b75c75d36816 net: usb: qmi_wwan: add support for Foxconn T77W968 LTE modules
    c8a648ae5f96 net/smc: fix fastopen for non-blocking connect()
    b392b2d28e58 net: gemini: add missed free_netdev
    612aeedfe77d ipmr: Fix skb headroom in ipmr_get_route().
    5fa89b3526c5 ax88172a: fix information leak on short answers
    609d02229b16 scsi: core: Handle drivers which set sg_tablesize to zero
    efa2c8c477dd x86/entry/32: Fix FIXUP_ESPFIX_STACK with user CR3
    a0f6ee27e686 x86/pti/32: Calculate the various PTI cpu_entry_area sizes correctly, make the CPU_ENTRY_AREA_PAGES assert precise
    60418beeefd7 selftests/x86/sigreturn/32: Invalidate DS and ES when abusing the kernel
    777b0ee4fd79 selftests/x86/mov_ss_trap: Fix the SYSENTER test
    07b7c6191853 x86/entry/32: Fix NMI vs ESPFIX
    62433c16a282 x86/entry/32: Unwind the ESPFIX stack earlier on exception entry
    4a2364594599 x86/entry/32: Move FIXUP_FRAME after pushing %fs in SAVE_ALL
    0593a806b430 x86/entry/32: Use %ss segment where required
    26ce03ac3327 x86/entry/32: Fix IRET exception
    f74d7e9547de x86/cpu_entry_area: Add guard page for entry stack on 32bit
    41cb303e1436 x86/pti/32: Size initial_page_table correctly
    2d2e7fe408eb x86/doublefault/32: Fix stack canaries in the double fault handler
    1fd0ff871abe x86/xen/32: Simplify ring check in xen_iret_crit_fixup()
    68ef02e30623 x86/xen/32: Make xen_iret_crit_fixup() independent of frame layout
    ef15170227e2 x86/stackframe/32: Repair 32-bit Xen PV
    37880a369c68 x86/speculation: Fix redundant MDS mitigation message
    459c71f82b48 x86/speculation: Fix incorrect MDS/TAA mitigation status
    c77d64c158c6 x86/insn: Fix awk regexp warnings
    41bbdde13b43 x86: Use CONFIG_PREEMPTION
    217d051d8efd x86/entry/32: Pass cr2 to do_async_page_fault()
    1ecceee4c859 x86/entry/64: Prevent clobbering of saved CR2 value
    8ccce28352fe x86/mm, tracing: Fix CR2 corruption
    8873fea5f2d4 x86/entry/64: Update comments and sanity tests for create_gap
    7801660649a0 x86/entry/64: Simplify idtentry a little
    5d305a697f40 x86/entry/32: Simplify common_exception
    216401f82bef x86/paravirt: Make read_cr2() CALLEE_SAVE
    bf8b9dd0d0bf x86/asm: Move native_write_cr0/4() out of line
    222093f0acfd x86/pgtable/32: Fix LOWMEM_PAGES constant
    7998b2c4801a x86/alternatives: Fix int3_emulate_call() selftest stack corruption
    e4a8155be9bd x86/ldt: Initialize the context lock for init_mm
    f07a9a3a9ad4 x86/alternatives: Add int3_emulate_call() selftest
    29b042bbfab8 x86/stackframe/32: Allow int3_emulate_push()
    22334402db00 x86/stackframe/32: Provide consistent pt_regs
    ed6c118e4451 x86/stackframe, x86/ftrace: Add pt_regs frame annotations
    7159ebba55a4 x86/stackframe, x86/kprobes: Fix frame pointer annotations
    ba09efb8b35b x86/stackframe: Move ENCODE_FRAME_POINTER to asm/frame.h
    c2f632a32c05 x86/entry/32: Clean up return from interrupt preemption path
    ce394d5e28c6 x86/asm: Pin sensitive CR0 bits
    b3327106585c x86/asm: Pin sensitive CR4 bits
    e3534ce1de0c Documentation/x86: Fix path to entry_32.S
    487a6cb63d71 x86/asm: Remove unused TASK_TI_flags from asm-offsets.c
    2bd8a406516b x86/entry/64: Don't compile ignore_sysret if 32-bit emulation is enabled

(From OE-Core rev: 5c45a080ae140dfe890ac07f3c6914abfc35faa2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d320a03b697679dfe223883b23480b70f89ad649)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Anuj Mittal
57661f31d9 openssh: backport patch to fix "cert not yet valid" test
Fixes [YOCTO #13796]

(From OE-Core rev: 1cacb300369fb062ad45b0460ed93bfc800d7323)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Kevin Hao
0dffb94709 xserver-nodm-init: Fix the start failure for non-root user
In order to start the xserver, a non-root user should have the
cap_sys_admin capability to set the drm master. We try to get
the cap_sys_admin capability by setting it in both the thread
and file inheritable set. The side effect of this is that we
would have to add the "pam" to the distro features if we want
use the xserver-nodm-init for a non-root user.

[Yocto #11526]

(From OE-Core rev: fec05cd1eaaad41fd72a29d7792f1c37d2a82f3e)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cfd71a68a4931c8bda15357ebb1e9ebcf0e302dc)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Trevor Gamblin
b61d8bc577 qemurunner.py: add try/except for pid handling race
In some instances, attempts to remove the qemu pidfile within the
stop() method fail despite the os.path.exists() call immediately
before implying that the file is present. Add a try/except block
to log a warning if this occurs, rather than failing outright,
since the process simply appears to be exiting at an inconvenient
time.

[YOCTO #13675]

(From OE-Core rev: 0e94cfb4aa718b4842f608879b77d5671b5bf338)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eadb899e23b18eb9eaff145c3bf5b20fb417c3e8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:45 +00:00
Nathan Rossi
ceda1b23f2 glibc-testsuite: Exclude this recipe from world builds
This recipe is intended to be run manually or via oeqa.

[YOCTO #13737]

(From OE-Core rev: 2b3235f10bb1759d651d28b41825ad53192c841a)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eadbe01bb8232de79e0827e6c6b3411f69ea7303)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:44 +00:00
Nathan Rossi
6543299fa6 glibc-testsuite: Remove the do_install task
This task is not intended to be run as this recipe does not produce any
packages or install any sysroot content. Additionally running this task
behaves differently from a normal glibc build, and can result in issues.

[YOCTO #13737]

(From OE-Core rev: a02934484605e5f81e67798d4d8eeb24e70591e6)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2b51252cb8bd9badfa28794f9ef9431b48752e3d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07 10:56:44 +00:00
Daisuke Yamane
7f5914015b bitbake: lib/bb/utils.py: Preserve ownership of symlink
Yocto Bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13806

Uncomment lchown() to preserve ownership of symlink.

(Bitbake rev: 6836184ef5220488a1127413c7d2e523fc37e2e9)

Signed-off-by: Daisuke Yamane <daisuke.yamane@cybertrust.co.jp>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-06 17:25:27 +00:00
Anuj Mittal
5e1f52edb7 Revert "bash: Fix CVE-2019-18276"
This reverts commit 09e695246d.

This isn't a Backport as indicated in patch and not all the changes in
this change are relevant to the CVE. Revert and wait for the fix
to be available upstream.

(From OE-Core rev: f39285bb82e68945a81034b84da09ca1078d6719)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-19 18:53:19 +00:00
Richard Purdie
c204cc47d0 bitbake: cooker/siggen: Empty siggen cache during parsing
When parsing recipes its apparent the memory usage of bitbake rises linearly
with number of recipes parsed. It shouldn't.

Using tracemalloc (thanks for the tip Joshua Lock) it was clear that the
dependency information left behind in siggen was the culprit. Add a new
method to allow us to drop this information. We don't need it after the recipe
has been parsed and hashes calculated (at runtime its different but only the
currently executing task would be in memory).

This should give signficant memory usage improvements for bitbake and that
in turn should help speed on more constrained systems, as well as when used in
multiconfig environments.

(Bitbake rev: ef29309d0b512b64d024e383e7baff22c727711c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-18 13:59:06 +00:00
Richard Purdie
fe857e4179 build-appliance-image: Update to zeus head revision
(From OE-Core rev: 799b3cd1016bd765f4452a5e81ea5613c9089bce)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:06:41 +00:00
Tom Hochstein
65d341daaf u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig
For u-boot recipes without menuconfig support, running devtool results
in a do_configure error:

cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file or directory

The problem arises because u-boot.inc supports recipes with and without
menuconfig.

Fix the problem by properly setting DEVTOOL_DISABLE_MENUCONFIG so that devtool
can control logic that applies only for menuconfig support.

(From OE-Core rev: 00e0bc966cc21e8560587c73e72858b9d2e8c891)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a6c430b0077eb56b4adbe391a0a05a52133cc8f0)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:13 +00:00
Richard Purdie
6f559af29a ncurses: Fix reproducibility issue
The build was deciding whether to rename manpages based upon the presence of
/etc/debian_version. Be explicit about the configuration instead and
ensure determinism.

[YOCTO #13781]

(From OE-Core rev: 09c8a28893e7ca94a44232d802e1cb02a8f34b87)

(From OE-Core rev: 3d114c08c32578426646f5d97769d2c66fea06cb)

(From OE-Core rev: 7bc68f7b946b1aaaafb161a57aa889b200abc2eb)

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>
2020-02-11 23:05:13 +00:00
Richard Purdie
82b2340edf libevdev: Fix determinism issue
We need to sort python dict output to be deterministic and generate consistent
header files.

(From OE-Core rev: 75e4cedb986379db2e8a897df52ee1363f9a9a80)

(From OE-Core rev: fc6e8e527698a82bf8047d02e0e792c4a1a64449)

(From OE-Core rev: 7edd5e5fd392fe2bc5eb41e40ee49a2b0f118e41)

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>
2020-02-11 23:05:13 +00:00
Richard Purdie
7ba056c19b sysvinit: Fix Reproducibility issue
With a sequence like:

bitbake sysvinit
bitbake sysvinit -c clean
bitbake sysvinit -c package_write_ipk -f

then the resulting package has two files with group "root/70" rather
than "root/shutdown". The issue is that of do_package is a setscene
task, base-passwd isn't present. This patch fixes that dependency
but there may be other cases of this problem around.

[YOCTO #13776]

(From OE-Core rev: 0227e929021263c51d2e7db36224000fecb01f1c)

(From OE-Core rev: cbcba43c18d67aea0ba41f019b357fbec6570ee1)

(From OE-Core rev: bde90e407c8ae0b851534ae84d9d54980e908046)

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>
2020-02-11 23:05:13 +00:00
Ross Burton
5737722432 sudo: specify where target tools are
sudo uses AC_PATH_PROG to find target paths, which means at best
potential host-contamination (and reproducible issues) and at worst it
thinks sh is at /your/build/path/hosttools/sh.

Solve this by explicitly passing the correct paths to configure.

(From OE-Core rev: 61650dd8498a093f3bfa93202c9cd2e9a7fb7834)

(From OE-Core rev: 6e809474ab686fba6924d8b46fd0b9eab5c66c06)

(From OE-Core rev: 232430bdee74bb266ded6ccf2fb3842caad06181)

Signed-off-by: Ross Burton <ross.burton@intel.com>
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>
2020-02-11 23:05:13 +00:00
Richard Purdie
74efd4db8b libgcrypt: Fix determinism issue
The build was injection git information from the wrong git tree, stop this
to allow reproducible builds.

(From OE-Core rev: 506b36b6d86b3454fcc3cb85f6229cbe8d14f5b5)

(From OE-Core rev: 2b68ffc6d7c45541958f1b0c0b9ca9e39064e096)

(From OE-Core rev: cd2e778771d836e04f76a0ff283c250dc19372c6)

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>
2020-02-11 23:05:13 +00:00
Richard Purdie
8b96d020f5 libinput: Fix determinism issue
The build was injection git information from the wrong git tree, stop this
to allow reproducible builds.

(From OE-Core rev: c3f6a6113f562ecdb13386c3ff52adb7973980a4)

(From OE-Core rev: 22dc9a3314eef5925241a9a961bd79815d3172b6)

(From OE-Core rev: f29b56b9c140a03edeba69ffc2dc9888b2fde106)

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>
2020-02-11 23:05:13 +00:00
Richard Purdie
b7138f18b6 iputils: Fix build determinism
The suid/setcap code depends on whether setcap is on the host system or not
with suid as a fallback. Disable this functionality to be deterministic.

(From OE-Core rev: 8b00ec484fb851c301f13145e17707c0167feab1)

(From OE-Core rev: 3997c47dea49d583fd48cb03f83c007f61d2cb35)

(From OE-Core rev: 46f9c48dc11928ace672e9a3dea7c01d29cf3f04)

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>
2020-02-11 23:05:13 +00:00
Richard Purdie
d2da9d8417 openssl: Fix reproducibility issue
There was a build architecture leaking into the target ptest which
could vary depending upon host. Remove it as its cosmetic.

[YOCTO #13770]

(From OE-Core rev: 37db519eedb7eb5cd4f14d05f30f5d580aa7458d)

(From OE-Core rev: c31c676319812e6fc036741db2ab8e16eccff723)

(From OE-Core rev: 94113433887dab43d54f3a76b1e0aa1bacb0d086)

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>
2020-02-11 23:05:13 +00:00
Richard Purdie
02cbb680a9 perl: Fix various reproducibile build issues
Add a patch which handles the following issues:

a) Remove the \n from configure_attr.sh since it gets quoted differently depending on
   whether the shell is bash or dash which can cause the test result to be incorrect.
   Reported upstream: https://github.com/arsv/perl-cross/issues/87

b) Sort the order of the module lists from configure_mods.sh since otherwise
   the result isn't the same leading to makefile differences.
   Reported upstream: https://github.com/arsv/perl-cross/issues/88

c) Sort the Encode::Byte byte_t.fnm file output (and the makefile depends whilst
   there for good measure)
   This needs to go to upstream perl (not done)

d) Use bash for perl-cross configure since otherwise trnl gets set to "\n" with bash
   and "" with dash
   Reported upstream: https://github.com/arsv/perl-cross/issues/87

(From OE-Core rev: 482fd0d99f989b5a72a25bdf402fb2f219420b5d)

(From OE-Core rev: def3a9d748564883d71c506726554df622701b00)

(From OE-Core rev: 1f630fe43ec3c3e78c25f93d6badc8a35ff782ad)

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>
2020-02-11 23:05:12 +00:00
Alexander Kanavin
ed51e1231a perl: do not install files that contain build host specific data
This was breaking reproducibility, and the files aren't needed on
target.

[YOCTO #13772]

(From OE-Core rev: 2e0f30c4680221c693495e3a0327378d502a518b)

(From OE-Core rev: 208efc88fa3c57244b272bf7e7f7f8163f14630c)

(From OE-Core rev: e120848c6bba6ce2cf910e762d53193d85280a98)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
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>
2020-02-11 23:05:12 +00:00
Ross Burton
3a54dd9de8 gtk+3: sort resources for reproducible binaries
The list of resources is gathered with $(wildcard) in Make, which isn't
sorted. If this order changes then the generated libraries will differ.

(From OE-Core rev: f3675be6be29426688187a135221431a0941d007)

(From OE-Core rev: a2a6d9fa4df66a1f52c1c1fec45eedb4199e8162)

(From OE-Core rev: 5c38cdfc67fb2da167012190d24a607dc7b273ba)

Signed-off-by: Ross Burton <ross.burton@intel.com>
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>
2020-02-11 23:05:12 +00:00
Richard Purdie
d3d7b1b2d0 libidn2: Fix reproducibility issue
The previous tweak for reproducibility didn't handle the duplicate
whitepace left behind, fix this.

[YOCTO #13771]

(From OE-Core rev: 0392fcbdc85180581ce7392212808ebb822cc2e8)

(From OE-Core rev: ca213de432d8d9d715ef09e17cea2aa1e6666e91)

(From OE-Core rev: 77be3238269de636199f9e1e40133711b7440cb4)

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>
2020-02-11 23:05:12 +00:00
Richard Purdie
5602cc200b patch: Extend to native/nativesdk and depend upon
There is a bug in patch 2.7.3 and earlier where index lines
in patches can change file modes when they shouldn't:
http://git.savannah.gnu.org/cgit/patch.git/patch/?id=82b800c9552a088a241457948219d25ce0a407a4

This leaks into debug sources in particular (e.g. tcp-wrappers where
source files are read-only). Add the dependency to target recipes
to avoid this problem until we can rely on 2.7.4 or later.

We could try and remove all index lines from patch files but it will be a
losing battle. We could try and identify all the recipes which change
modes on files in patches but again, its a losing battle.

Instead, compromise and have patch-native as a dependency
for target recipes. We use patch-replacement-native since patch-native
is in ASSUME_PROVIDED.

Also add nativesdk-patch to buildtools-tarball.

[YOCTO #13777]

(From OE-Core rev: 5ed0840c93804488cd1c1aba6cb382b2434714a5)

(From OE-Core rev: fd3bd61a6fe5190c575dc968f3a0be9c1cbf21ed)

(From OE-Core rev: 148f1f8caf5d9a262c1f55e437326ce6139a743e)

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>
2020-02-11 23:05:12 +00:00
Richard Purdie
e91261050e tar: Fix build determinism, disable rsh
rsh is insecure and obsolete but tar will enable support if the binary is
on the host system. Some systems point it at ssh. Lets explictly disable it
for now unless someone actually needs/uses this at which point it could
become a packageconfig.

(From OE-Core rev: d14a4b0db92a9a7d1ff72a2e0faca7f1a23a0b68)

(From OE-Core rev: 6bdc5f787af46e9c849947cad06ad40aa401b767)

(From OE-Core rev: af4a284bb6fbfd8b58d10d4a5f0f10297c949912)

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>
2020-02-11 23:05:12 +00:00
Richard Purdie
96114090ea mc: Fix manpage date indeterminism
The man page date can vary depending upon the host perl, e.g. in Russian
some versions print 'июня', others 'Июнь' or Polish 'czerwca' or 'czerwiec'.
Rather than depend upon perl-native to fix this, just remove the date from
the manpages.

(From OE-Core rev: 5553c20f9fa4f35bf711b6b9d5717dcf4bfefafa)

(From OE-Core rev: 3653fd41fbc28f70259a00bb0098ec8731526449)

(From OE-Core rev: feaf05c39ffecd7a9fd8bd81fc1872ce26b7801e)

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>
2020-02-11 23:05:12 +00:00
Richard Purdie
7688cd8a2f mc: Set zipinfo presence determinstically
This value was floating causing differences in generated files.
Set it determinstically.

(From OE-Core rev: 11d7a9e37c1d3fc21396a98fefc9d34c0b9e784b)

(From OE-Core rev: 8f77075425e2ef9c3b5adbf8e5b29e7cfd7b9b7a)

(From OE-Core rev: 60cdd912b565207b9f236116d8832719cfa9ccfd)

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>
2020-02-11 23:05:12 +00:00
Joshua Watt
8c224dd6b0 mc: Fix build reproducibility
Fixes some issues with reproducible builds. Adds a patch to allow the
configure arguments to be omitted from the build and also explicitly
setting some autoconf paths that were picking up hosttools.

(From OE-Core rev: f54d60ee8f15229aa515e168b9c7d248663b48fe)

(From OE-Core rev: 164d72b7a6ab20940f9a124beaf485be9ddc07ba)

(From OE-Core rev: 055766f135b4373264827c5b33c8c385b1ff4748)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
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>
2020-02-11 23:05:12 +00:00
Richard Purdie
c98ce5715a libxshmfence: Set shm directory deterministically
Without setting this it will vary depending on which directories are present
on the host.

[YOCTO #13778]

(From OE-Core rev: 6217c3a7201b34888aa2fbae8b6e490bea545574)

(From OE-Core rev: 10357b0bf3f6b34b54c0329e7e392ecf2c7043cd)

(From OE-Core rev: 0e0111a9adad2faadfc825f14b0ad34c429ab95b)

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>
2020-02-11 23:05:12 +00:00
Richard Purdie
b9ed515898 sudo: Set vardir deterministically
Without setting this it will vary depending on which directories are present
on the host.

[YOCTO #13775]

(From OE-Core rev: 39fe849b56d70689846262c31ab7c182c8443923)

(From OE-Core rev: 51274c9b195ad00dd6362f352ad9bbf7e9a3e098)

(From OE-Core rev: 89f517c2775338db92874484c28b4224d670ec1f)

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>
2020-02-11 23:05:12 +00:00
Joshua Watt
632bbf4bd7 classes/reproducible_build: Read SDE file later
Defers the resolution of the SOURCE_DATE_EPOCH until the variable needs
to be actually realized with a value. The previous method of loading the
value in anonymous python had issues because it could occur before other
anonymous python functions that affect the location of the epoch file,
such as when a recipe uses AUTOINC/AUTOREV or allarch.bbclass.

Also adds more logging to help diagnose issues in the future.

[YOCTO #13763]

(From OE-Core rev: b3313a10a3eb93f0a3710a35de0404fb49cd6202)

(From OE-Core rev: 10515e5f7e38edbc4430e2599062a9ce6fdb42a8)

(From OE-Core rev: 81d3832728aeae0e02e775bab9fc13e159fb61d3)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
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>
2020-02-11 23:05:12 +00:00
Richard Purdie
e8c813141d oeqa/reproducible: Improve test output and ensure deb+ipk compared
Adding newline characters between the packages in the failure output
massively improves readability.

Also ensure to output ipk failures when there are deb failures by
calling self.fail() at the end, else sometimes only partial differences
are returned.

(From OE-Core rev: 6e2e0480852177db75a6108d77c99c92c4e9950f)

(From OE-Core rev: 4d470f48f7fb5e05fba1ca3a59fb4f85d910026e)

(From OE-Core rev: 38359c79dc6e02a21d1bc26756c8bd88da762ef8)

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>
2020-02-11 23:05:12 +00:00
Richard Purdie
00534e3e4c opkg-utils: Fix reproducibility issues in opkg-build
There is a sorting problem with opkg-build where the ipk generated is depending
upon the order of files on disk. The reason is the --sort option to tar only
influences the orders of files tar reads, not those passed by the -T option.

Add in a sort call to resolve this issue. To ensure consistent sorting we
also need to force to a specific locale (C) else the results are still not
deterministic.

(From OE-Core rev: a9b8287984c63420e10329a69f7ac5125f1687f8)

(From OE-Core rev: b577a6d923042cfc04e67d470e0987488ea61412)

(From OE-Core rev: ff31fa7ae18cffb1618c3859c5dff7eb3c587692)

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>
2020-02-11 23:05:12 +00:00
Alejandro del Castillo
f17ff5f9ce opkg-utils: upgrade to version 0.4.2
- Drop 00001-Switch-all-scripts-to-use-Python-3.x.patch
- Drop 00001-opkg-build-clamp-mtimes-to-SOURCE_DATE_EPOCH.patch
- Drop pipefail.patch

(From OE-Core rev: bf51a4a1312562cc9b5944b7dfccba0b3d11dc3c)

(From OE-Core rev: 1b71c28e1ca4fddc0f3c340ea4bcd76854ef620c)

(From OE-Core rev: 428c8a3887c86ea882b264fdad606612b9d9eb8e)

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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>
2020-02-11 23:05:12 +00:00
Taras Kondratiuk via Openembedded-core
2b0ad2bcad gcc-9.2: fix bug #91102 'aarch64 ICE on Linux kernel with -Os'
Linux kernel compilation for aarch64 triggers ICE if
CONFIG_CC_OPTIMIZE_FOR_SIZE=y.

The rootcause is GCC bug #91102 'aarch64 ICE on Linux kernel with -Os'.
Apply the fix to 9.2.

(From OE-Core rev: 14f34d32bfdaa752f5043e62750d2e7b92c4b419)

(From OE-Core rev: 8ebd3b4ed4995f27c1568cf873067ce24b1998bd)

Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:12 +00:00
Tom Hochstein
7435786516 devtool/standard.py: Allow recipe to disable menuconfig logic
u-boot.inc supports u-boot recipes with or without menuconfig [1].
However, running devtool on a u-boot recipe that does not support menuconfig
results in an error:

cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file or directory

The problem is the devtool logic assumes that any recipe with a do_menuconfig task
will generate a .config in do_configure().

Fix the problem by removing the assumption with a flag that the recipe can control,
like this:

do_configure() {
    if [ menuconfig-supported ]; then
        ...
    else
        DEVTOOL_DISABLE_MENUCONFIG=true
    fi
}

[1] 11278e3b2c

(From OE-Core rev: 803391ef7ba662a5ee58609d9c81aeffa494287c)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:12 +00:00
Anuj Mittal
8a398c5fab cpio: fix CVE-2019-14866
(From OE-Core rev: c06d69e6dccb849e60847a33593fa20e192feea2)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:12 +00:00
Anuj Mittal
d447876b4f curl: fix CVE-2019-15601
(From OE-Core rev: 30f4f40c4c92b000fa3356fae0504da233b0f601)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:12 +00:00
Lee Chee Yang
5865fb9194 rsync: whitelist CVE-2017-16548
patch for this CVE applies to v3.1.3pre1 not for v3.1.3.
patch already in v3.1.3.
see
https://git.samba.org/rsync.git/?p=rsync.git;a=commitdiff;h=47a63d90e71d3e19e0e96052bb8c6b9cb140ecc1;hp=bc112b0e7feece62ce98708092306639a8a53cce

(From OE-Core rev: 1e2739c821312527010fb0afbde5a20cd3f03d24)

(From OE-Core rev: be8838387b5dd06abd81cc478d3c2ab9c95930bc)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:12 +00:00
Anuj Mittal
495b6d9f24 Revert "bzip2: Fix CVE-2019-12900"
This reverts commit 175e6cb75c.

This change is already in bzip2 1.0.7. The change fixing a regression
caused by this change is in 1.0.8 which is the current version in zeus.

This isn't resulting in failures because the patch file isn't included
in SRC_URI.

(From OE-Core rev: ac6150563bd8e4cb2fa09a2777879afc993f1c20)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:05:12 +00:00
Richard Purdie
6eee202b9a bitbake: siggen: Avoid cache mismatch issues with locked sigs
If locked sigs are in use this function makes little sense, need to
avoid generating mismatch warnings.

(Bitbake rev: 95687be83e716220eb3893b67428f97fd59fc2c5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 27ad9c1d468fba858a4adeb56b605227b415ae0f)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:14 +00:00
Richard Purdie
57a4bcc6bf bitbake: siggen: Cache unihash values to avoid cache lookup
Add unihash cache of values to speed up cache lookup.

This avoids the overhead of the disk based check functions.

(Bitbake rev: 1f5a662176fd174c4793e3e28d1b4e95616b1715)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5c9cc45b60904a1c355db9bf9c4495f1b25aca37)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:14 +00:00
Richard Purdie
7412d9acf7 bitbake: siggen: Optimise get_unihash disk based cache handling
Currently the cache can grow huge since any previously used hash is
retained in the cache. This change moves to use one hash per task
which improves the speed of the functions considerably. Currently
performance is an issue, as are very large cache files and cache
load time.

By moving to a single hash per task, the shorted filename as a key
is no longer usable as the same recipe has multiple variants for
the same filename so this has to change.

(Bitbake rev: 8f4f6c2f9acab23bc795ffe389c4cd74711d10ff)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ed764e7fcf04b6d0ba6b4cac7415b1ee8f492865)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:14 +00:00
Frazer Clews
4f8e5ec393 bitbake: cooker/toaster: replaced deprecated method warn() with warning()
Removed the deprecated methods as it will only cause problems later on,
and since warn() just calls warning(), it shouldn't change anything

(Bitbake rev: c131015f1ac152f1fea4b83a3d451c3e4d05ebec)

Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a194f275235f22411cb2368f06a44f61ceb6a0f3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:13 +00:00
Chris Laplante
64d62e5d48 bitbake: persist_data.py: Immediately get exclusive lock in __setitem__
To avoid races, SQLTable::__setitem__ needs an exclusive lock for the
entire transaction, not just the INSERT/UPDATE part.

(Bitbake rev: 2ba2f224b50956313f5c2ba01942143b4d6098f2)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit feb43e7c30f5bfab75d718896c45df621810d06f)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:13 +00:00
Chris Laplante
ee1dd9f1e2 bitbake: fetch2/git: _revision_key: collapse adjacent slashes
>From a SRCREV caching point of view, there is no reason to treat the
following upstreams as different:

    SRC_URI = "git://github.com/file/file.git"
    SRC_URI = "git://github.com//file/file.git"

(Bitbake rev: 716cdf737bc536f84ed1254d464c9f286e0d5a9a)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 425e21c14955dd38868c6e97637df3bbe0f89fac)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:13 +00:00
Chris Laplante
2edae751cf bitbake: fetch2: do not suffix srcrev cache key with PN
Prior to this change, two different recipes pulling from the same
exact repo could get a different SRCREV during a single parse session.

This was originally observed using git. For git at least, it still
allows recipes to pull from the same repo, but with different branches
or tags, since the form of the srcrev cache key for git is:

        "git:" + ud.host + ud.path.replace('/', '.') + ud.unresolvedrev[name]

Where the 'unresolvedrev' part is the branch or tag name.

(Bitbake rev: 63556259f2e34003ad0618a8fe19e1cfe8aef5c9)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6c938e6fd29beebe09b32be839dae008fe6491d2)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-11 23:02:13 +00:00
Richard Purdie
73fe0e273b build-appliance-image: Update to zeus head revision
(From OE-Core rev: 832588c287d47604d8f717adfed6cc2ecd8c755e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-06 16:44:10 +00:00
Richard Purdie
36520aa382 poky.conf: Bump version for 3.0.2 zeus release
(From meta-yocto rev: f9fe37c5dca3e3fd384b70d2f5e7a890271d8d70)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-06 16:43:51 +00:00
akuster
af832a4da0 Documentation: Prepared for 3.0.2 release
Add release date for 3.0.2.

(From yocto-docs rev: ac75b463b23ae6258c1e6f3bbdefc398f3a03d43)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-06 16:42:53 +00:00
Armin Kuster
c604115e9e python2: add ntpath
python3 has this but python is missing this.
[Yocto #13740]

(From OE-Core rev: af41a2238beec0c34c1c1e5f25eed55f2a214643)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
Joe Slater
58513c802f webkitgtk: fix occasional link error
Partial backport from WebKit.git.  See patch for details.

Fixed in webkitgtk 2.26.1.

(From OE-Core rev: bc31d2d68135ce0a856db62519b370d6c05201f1)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
Sumit Garg
b3d2fb6ab1 core: recipes: fix some native tools dependencies
Some native tools dependency issues were seen while building with
external GCC tool-set rather than source GCC tool-set. While building
with source tool-set these dependencies were implicitly met which is not
the case with external tool-set. So explicitly state these native tools
dependencies.

(From OE-Core rev: 534b4a63299c6d74662c9d035238a0adb19cd1c7)

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
Sana Kazi
175e6cb75c bzip2: Fix CVE-2019-12900
Added patch for CVE-2019-12900 as backport from upstream.
Fixes out of bound access discovered while fuzzying karchive.

Tested by: Sana.Kazi@kpit.com

(From OE-Core rev: aec10c9993f04304466e15ea7a5bc4d85a357c5b)

Signed-off-by: Saloni Jain <Saloni.Jain@kpit.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
Hongxu Jia
e547b2c85f kbd: avoid vlock conflict with busybox
busybox as well as vlock utility from meta-oe provides vlock utility
which can conflict when with kbd if pam is a enabled distro_feature

Fixes image build errors

update-alternatives: Error: not linking <rootfs>/usr/bin/vlock to /bin/busybox.suid since <rootfs>/usr/bin/vlock exists and is not a link

ERROR: yoe-qt5-wayland-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.

(From OE-Core rev: d00349526f5727fdff9b40c6139d95bd75af213d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>

The vlock doesn't exist if PAM isn't enabled.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: De Huo <de.huo@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
De Huo
d4cd1c045e kbd: configure.ac: Fix logic of vlock configure switch
Downstream bug report: https://bugs.gentoo.org/661650

Upstream-Status: Backport [f7f357ef079b6d185f340e716d7c72a98d82bad0]

(From OE-Core rev: bb544a4d9b0b889d6acacdd73e3a790546fe13ba)

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: De Huo <De.Huo@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
De Huo
09e695246d bash: Fix CVE-2019-18276
An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11.
By default, if Bash is run with its effective UID not equal to its real UID,
it will drop privileges by setting its effective UID to its real UID.
However, it does so incorrectly. On Linux and other systems that support "saved UID" functionality,
the saved UID is not dropped. An attacker with command execution in the shell can use "enable -f" for
runtime loading of a new builtin, which can be a shared object that calls setuid() and therefore
regains privileges. However, binaries running with an effective UID of 0 are unaffected.

Backport the CVE patche from https://github.com/bminor/bash/commit/
951bdaad7a18cc0dc1036bba86b18b90874d39ff to fix CVE-2019-18276

(From OE-Core rev: b348e31c93f08332667df65cd2ecec63631d184e)

Signed-off-by: Chet Ramey <chet.ramey@case.edu>
Signed-off-by: De Huo <De.Huo@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
Lee Chee Yang
7dc72fde6e libxml2: Fix CVE-2019-19956
see:
5a02583c7e

(From OE-Core rev: 9fd363d21df59fff4488763d62548c936b4d14fb)

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-04 18:43:08 +00:00
Jefro
69cfd69410 Adding memoriam to scottrif
Added a few comment lines in Makefile to commemorate Scott's
contributions

(From yocto-docs rev: fba30da7b4e55838ce3b19a6a7cc658bc686b947)

Signed-off-by: Jefro <jefro@jefro.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-31 08:03:17 +00:00
Richard Purdie
c1d49a3741 bitbake: runqueue: Use a set for the setscene tasks list
This should give performance improvements to functions using this list of
tasks (sets are used for most of the other code for this reason, not sure
why this wasn't a set in the first place).

(Bitbake rev: 1a026d4aca47ed1b0b74a8a818635e7520e8f9c8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f5daef68703481a3c243dfecc7de404e6ebfdbb6)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
a74b608224 bitbake: knotty: Be consistent when creating/updating progress bars
When creating a new progress bar (using BBProgress), a colon was
appended to the supplied message. However, when updating the message,
no colon was appended.

Change this so that the colon is instead part of the widgets that make
up the progress bar so that it does not matter when and how the
message is updated, it always displays the same.

(Bitbake rev: 1115a14c93dc44124c3ab95053142da78032a004)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 08f35c04f6e1ce4c4ca5c2bef4cd8a192e12e682)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
3d92e6b49d bitbake: knotty: Hide the footer if a process progress bar is shown
With the introduction of the hash equivalence server, the progress bar
for "Checking sstate mirror object availability" is shown repeatedly
while the tasks are being executed. If the footer is not hidden then,
it will be moved up one line every time, creating a messy interface.

(Bitbake rev: b7ecb1d0232c12b8388ae516b1dbd025ad782d56)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 56b5ec4c2b3e658e73ca6c3a12feeb96df0977fb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
9b93154528 bitbake: cooker: Keep track of watched files using a set instead of a list
When there are many watched files, keeping track of them using lists
is suboptimal. Using sets improves the performance considerably.

(Bitbake rev: 16799ada1cda8e021cb04c43e469225790525723)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1e96df260e47d160dbd36bfc92c31ef06266f662)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Richard Purdie
5fd44938fd sstatesig: Improve debug output if getpwuid() fails
If getpwduid fails, we don't see which file it failed on which is key information
to aid debugging. Print this information when exceptions are raised.

(From OE-Core rev: 2bba0052597020ea887c84419440df11f9859283)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9d7a5219713af8117eda145052c6d9abdf577d8f)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Richard Purdie
167bd3e6b6 scripts/oe-build-perf-report: Avoid buildstats warning
When a comparision branch is set we see warnings. If two branches are used,
look for buildstats information from both to avoid this kind of warning:

INFO: Parsing buildstats from 'refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86'
WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/0
WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/1
INFO: Buildstats were missing for some test runs, please run 'git fetch origin refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86:refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86' and try again

(the warning is due to stats being looked for in both branches, choose
the other branch and different warnings would be shown)

(From OE-Core rev: 232b2f6dabaedff087df15a7e6d431dd9f314b4c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit af58c18fcd0451540dd77ee862956b2b9dee17c4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Richard Purdie
6571d4ee29 sstatesig: Test cross/native hashserv method extension
We can have one taskhash which represents multiple native/cross sstate objects
since they're stored by BUILD_ARCH or possibly host distro (or host gcc version).
We need to put these into separate namespaces on hashserv since their outhashes
will never match and we need deterministic lookups for the different namespaces.

Use this extramethod option to handle this. This fixes several problematic
failures on the autobuilder.

(From OE-Core rev: 766b57a1f9030429b546276a537fbce3a175cc25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2a76082363d189880613765ad339718e3614049d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Kalle Lampila
88448accde wic/filemap: If FIGETBSZ iotctl fail, failback to os.stat
Some file systems don't support fetching the block size (notably the
file system Docker uses for containers), so if iotctl() fail, try to use
failback via os.stat() to get block size.

(From OE-Core rev: 996013b4e5d3cd1c054e87539ac1a8d95581a87f)

Signed-off-by: Kalle lampila <kalle.lampila@lempea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e219f5175177a640dd62833082ea19adc1c13d42)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Mike Crowe
297debd5ea multilib.conf: Ensure that RECIPE_SYSROOT is unchanged for native
Ensure that RECIPE_SYSROOT is the same for -native recipes whether
multilib.conf is included or not.

Without this change task signatures for -native recipes change when
switching between MACHINEs that require multilib.conf and those that
don't.

This fix was one of the ones suggested by Khem Raj in
http://lists.openembedded.org/pipermail/openembedded-core/2019-December/290303.html

Add test_sstate_multilib_or_not_native_samesigs test case to
sstatetests.py to ensure that this stays fixed.

(From OE-Core rev: c3e957409bf68e7b310e27781ac91d24cf4452bf)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit aa05f1ded71366b86eda7fce24d8b5395e85ada2)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Alex Kiernan
8fdf082c11 linuxloader: Correct loader for glibc on armhf
Fix the naming of the loader on armhf to match what glibc expects:

  #define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT SYSTEMLIBS_DIR "ld-linux.so.3"
  #define GLIBC_DYNAMIC_LINKER_HARD_FLOAT SYSTEMLIBS_DIR "ld-linux-armhf.so.3"

(From OE-Core rev: 70efe880589df1dfe7d71451d62d9d8e4afd7981)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7ad531093d620f18c04d487d79e9dad9f5a96232)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
375065fa17 license.bbclass: Introduce AVAILABLE_LICENSES that lists all licenses
Previously, there was SRC_DISTRIBUTE_LICENSES, an undocumented
variable that contained a static list of licenses. It was used by
expand_wildcard_licenses() to expand any wildcards used in, e.g.,
INCOMPATIBLE_LICENSE. However, since this static list of licenses has
not been kept up-to-date, many licenses were missing, with the result
that if one tried to use any of those licenses with a wildcard, no
licenses would be found, effectively ignoring that they should be
marked as incompatible.

This introduces a new (documented) variable, AVAILABLE_LICENSES, that
is automatically updated to contain all licenses found in any
directories specified by ${COMMON_LICENSE_DIR} and ${LICENSE_PATH},
and uses it instead of SRC_DISTRIBUTE_LICENSES when expanding
wildcards.

(From OE-Core rev: 5ed714139f91eb03871e01b68a4370784071234d)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8c9ef587fe499c612a878a1ab42092eb79b334ef)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
14227b03a2 licenses.conf: Remove the SRC_DISTRIBUTE_LICENSES variable
The SRC_DISTRIBUTE_LICENSES variable and its static list of licenses
has been replaced by AVAILABLE_LICENSES, which automatically contains
all available licenses.

(From OE-Core rev: c41f1c7f33a8a13ed8e6fd86b494cf460328a9e4)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 64daaf29e2c12c8b587bafdebf9409433187ddf7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
afc2ffee1a sanity.bbclass: Move sanity_info from conf to cache
Since this file is written during recipe parsing, having it in the
${BUILDDIR}/conf directory, which is covered by an inotify watcher,
will trigger a re-parse the next time bitbake is run and the resident
bitbake server is enabled. This causes the sanity_info file to be
updated again, which triggers a new parse the next time bitbake is run
ad infinitum. Moving it to ${BUILDDIR}/cache should avoid this.

(From OE-Core rev: f1a609e7176a37e7e5f86f0b786f7da915085f83)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f98103b548aa7dba6b1be6c8e02ef41858a8e85c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
2071b7caf2 populate_sdk_ext.bbclass: No longer needed to clean away conf/sanity_info
Since the sanity_info file has moved from the conf directory to the
cache directory, there is no longer any need to clean it away
explicitly in clean_esdk_builddir() since the whole cache directory is
already cleaned away anyway.

(From OE-Core rev: f0ea8b49a183d9340aaf0c60ee959aa8ec3c041c)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 40c30990e1be72130819c040fe471e2bdc0c6e7d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Peter Kjellerstedt
0cce5bc165 toaster.bbclass: Correct pkgdatadir path in toaster_package_dumpdata()
In commit 692b2046 (package: Fix race between do_package and
do_packagedata), the path used for do_packagedata[sstate-inputdirs]
was changed from "${PKGDESTWORK}" to "${WORKDIR}/pkgdata-pdata-input".
This commit adapts the path used for pkgdatadir in
toaster_package_dumpdata() accordingly to avoid setscene errors like:

  ERROR: libgcc-9.2.0-r0 do_packagedata_setscene: Error executing a
  python function in exec_python_func() autogenerated:

  The stack trace of python calls that resulted in this
  exception/failure was:
  File: 'exec_python_func() autogenerated', lineno: 2, function:
  <module>
       0001:
   *** 0002:toaster_package_dumpdata(d)
       0003:
  File: 'meta/classes/toaster.bbclass', lineno: 130, function:
  toaster_package_dumpdata
       0126:    lpkgdata = {}
       0127:    datadir = os.path.join(pkgdatadir, 'runtime')
       0128:
       0129:    # scan and send data for each generated package
   *** 0130:    for datafile in os.listdir(datadir):
       0131:        if not datafile.endswith('.packaged'):
       0132:            lpkgdata = _toaster_load_pkgdatafile(datadir,
       0133:            # Fire an event containing the pkg data
       0134:            bb.event.fire(bb.event.MetadataEvent(
  Exception: FileNotFoundError: [Errno 2] No such file or directory:
  'tmp/work/mips32r2el-nf-poky-linux/libgcc/9.2.0-r0/pkgdata/runtime'

(From OE-Core rev: c1d881448fea0bc48aba0bc0e5b8748442572226)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5a0f6f631b86f7107aa72453b6d23f32ba39f713)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-28 11:51:03 +00:00
Richard Purdie
cf92a2d567 bitbake: cache: Lower debug level for wold build messages
These messages spam the logs for no good reason, they were useful for debugging
a particular problem long ago but are distracting noise now. Disable them.

(Bitbake rev: 46969195492708a705390896c9dea515f158954c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1a9247c468cf09da60e5d396ccb81e950841c99e)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:23 +00:00
Richard Purdie
5a7ede639f bitbake: siggen: Test extra cross/native hashserv method
Hack the hashserv to allow extra data to be injected into the hashserv
method. This allows OE-Core to handle cases where there are multiple
sstate objects for the same taskhash, e.g. native/cross objects based
upon BUILD_ARCH or the host distro (when uninative isn't used).

This has been tested and proven to be very effective. We will likely
rework the code to improve how this is handled but for now this
improves automated builds until we can get to that refactoring and
more invasive changes.

(Bitbake rev: e21bf572cfe18e805d3f849777189685f7391a67)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0a09b0fa03d1afc08037964dc63a18ef7cff9c78)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:23 +00:00
Richard Purdie
9f02b50c8c bitbake: runqueue: Fix task dependency corner case in sanity test
A corner case was identified where tasks with valid stamps from previous
builds need to be accounted for in the new sanity test in the migration
code. Add a variable to track such completed tasks to ensure the sanity
test works correctly.

(Bitbake rev: 39cc4930676970b2e51b99a778f5d5d9b5259991)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d517b1ef13ca7ab2fb4d761d3bd3b9fb7c591514)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:23 +00:00
Richard Purdie
d0f86a99f7 bitbake: runqueue: Ensure task dependencies are run correctly
We've seen a number of mystery failures where task B would run despite
task A, its dependency not having run. An example would be do_compile
when do_unpack didn't run.

This has been tracked down to this code block. In theory it shouldn't
trigger however it can and has due to bugs elsewhere. When it does, it
causes significant weird failures and possible build corruption.

Change the code to abort the build. This avoids any chance of corruption
and should ensure the issues get reported, putting an end to the weird
build failures.

There may be some cases where this triggers and it shouldn't, we'll work
through those as they arise and are identified.

(Bitbake rev: 182b2ae7bab4a943978154be3a65c018aaf21fdc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7a92b7f58ab187eddfe550bd6fb687240c7b11bb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:23 +00:00
Richard Purdie
fbde5ca509 bitbake: runqueue: Fix equiv hash handling build failures
Regardless of whether we remapped the hash on the server or not, we need
to have bitbake work as if we did as we need to match how the stamp files
look.

This change resolves build failures where tasks were rerunning when they
shouldn't.

(Bitbake rev: 10058fe590c56ee3b4d2136b6e247c2d29ae47e6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 40928f6991436cf687821015324483b205abfcb1)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Ola x Nilsson
9b0f2f2e79 bitbake: prserv/serv: Use with while reading pidfile
(Bitbake rev: e731f72ca86629eb935bb1c4f7323421a125aace)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6fa8a18ea4994031fdd1253fe363c5d8eeeba456)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Aníbal Limón
f619b13403 bitbake: lib/bb: Add BB_SIGNATURE_LOCAL_DIRS_EXCLUDE to speed-up taskhash on directories
The new BB_SIGNATURE_LOCAL_DIRS_EXCLUDE allows you to specify a list
of directories to exclude when making taskhash, our specific case
is using SRC_URI that points local VCS directory.

Use bb.fetch.module to set default to: "CVS .bzr .git .hg .osc .p4 .repo .svn"

(Bitbake rev: 4c7d689341f471efdf8ab7c2a7c6a19d2d370f5c)

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 923aff060d8aba8456979c35b16d300ba7c13ff9)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
b51364db48 bitbake: lib/bb: Optimise out debug messages from cooker
We have bb.debug(2, xxx) messages in cooker which are useful for debugging
but have really bad effects on performance, 640,000 calls on recent profile
graphs taking tens of seconds.

Rather than commenting out debug which can be useful for debugging, don't
create events for debug log messages from cooker which would never be seen.
We already stop the messages hitting the IPC but this avoids the overhead
of creating the log messages too, which has been shown to be signficiant
on the profiles. This allows the code to perform whilst allowing debug
messages to be availble when wanted/enabled.

(Bitbake rev: f224201b5003b89367d688b1f08a062754fce13a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f04cd931091fb0508badf3e002d70a6952700495)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
8c5bfee392 bitbake: runqueue: Only call into the migrations function if migrations active
This doesn't save much time but does make the profile counts for the
function more accurate which is in itself useful.

(Bitbake rev: 53a3cba93401c902d1d214cafe0bc036e1b101e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d446fa89d206fbc6d098215163c968ea5a8cf4a9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
fb65235aca bitbake: runqueue: Optimise task filtering
We were seeing this running thousands of times with hashequiv, do
the filtering where it makes more sense and make it persist.

(Bitbake rev: 7fa3ede953971f761d8cafafa37d1bcb65ad6a77)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2cfeb9998a8ad5b1dcda0bb4e192c5e4306dab17)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
014558f14c bitbake: runqueue: Optimise out pointless loop iteration
(Bitbake rev: 14babbf0a32637db640e0494b0331397dcb0f715)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 105d1f0748edde7753a4063e6fdc758ffc8a8a9e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
2425a927c7 bitbake: runqueue: Optimise task migration code slightly
Move the calls to difference_update out a code level which improves efficiency
significantly.

Also further combine the outer loop for efficiency too.

These two changes remove a bottleneck from the performance charts.

(Bitbake rev: 57df7f191755dd887827d51b125d246c1af3e1b6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e28ec69356f1797de3e4e3fca0fef710bc4564de)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
db413b5050 bitbake: runqueue: Fix sstate task iteration performance
Creating a new sorted list of sstate tasks each iteration through runqueue is
extremely ineffecient and was compounded by the recent change from a list to set.

Create one sorted list instead of recreating it each time.

(Bitbake rev: a80024a4397485f96693c4df108b40f6b1bdf32b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit de18824996841c3f35f54ff5ad12f94f6dc20d88)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
56631225aa bitbake: siggen: Split get_tashhash for performance
There are two operations happening in get_taskhash, the building of the
underlying data and the calculation of the hash.

Split these into two funtions since the preparation part doesn't need
to rerun when unihash changes, only the calculation does.

This split allows sigificant performance improvements for hashequiv
in builds where many hashes are equivalent and many hashes are changing.

(Bitbake rev: c4ce216b4c5a1626764752edd21005750d05a0c2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6a32af2808d748819f4af55c443578c8a63062b3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
8de879583e bitbake: runqueue: Fix task mismatch failures from incorrect logic
The "no dependencies" task case was not being correctly considered in this
code and seemed to be the cause of occasionaly task hash mismatch errors
that were being seen as the dependencies were never accounted for properly.

(Bitbake rev: 480939538f5887a70d11c2f7cf74446100e25fab)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 608b9f821539de813bfbd9e65950dbc56a274bc2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
57efd2721b bitbake: runqueue: Rework process_possible_migrations() to improve performance
The looping over multiple changed hashes causes many calls to get_taskhash
and get_unihash which are potentially slow and then overwritten.

Instead, batch up all the tasks which have changed unihashes and then
do one big loop over the changed tasks rather than each in turn.

This makes worlds of difference to the performance graphs and should speed
up build where many tasks are being rehashed.

(Bitbake rev: c9ab598f6f1ea3ae3a0713dc6692b4c4bafbfb50)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c9c68d898985cf0bec6fc95f54c151cc50255cac)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Chris Laplante via bitbake-devel
7278f3f786 bitbake: bb.utils.fileslocked: don't leak files if yield throws
Discovered with a recipe under devtool. The ${S}/singletask.lock file (added by
externalsrc.bbclass) was leaked, giving a warning like:

  WARNING: <PN>+git999-r0 do_populate_lic: /home/laplante/yocto/sources/poky/bitbake/lib/bb/build.py:582: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/laplante/yocto/build/workspace/sources/<PN>/singletask.lock' mode='a+' encoding='UTF-8'>
    exec_func(task, localdata)

(Bitbake rev: 81829ab28afae08e02f4a758ec063fc0d90579ea)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6beddf6214e22b4002626761031a9e9d34fb04db)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
c37d0c4aa5 bitbake: siggen: Fix performance issue in get_unihash
There is a significant performance issue in get_unihash(). The issue turns out
to be the lookups of setscene tasks. We can fix this by using a set() instead of
the current list.

(Bitbake rev: 5afad266f2ce55db2038c36f2e49a3c80be9bbfc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1e561672d039ebfb8cd0e0654a44dcf48513317c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Joshua Watt
f181928937 bitbake: runqueue: Batch scenequeue updates
Batch all updates to scenequeue data together in a single invocation
instead of checking each task serially. This allows the checks for
sstate object to happen in parallel, and also makes sure the log
statement only happens once (per set of rehashes).

(Bitbake rev: a7426c73a8e9fae468414a2c32a533d9c3729405)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit db033a8f8a276d864bdb2e1eef159ab5794a0658)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
7448f9a180 bitbake: siggen: Ensure new unihash propagates through the system
Its possible the new unihash may not exist in sstate. Currently the code
would create an sstate object with the old hash however this updates it to
create the object with the new unihash.

(Bitbake rev: 0aee83e4e31dff7f4354e4eb4cbd35dd592e9f06)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit abcaa1398031fa5338a43859c661e6d4a9ce863d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
376f8eaeb9 bitbake: siggen: Avoid taskhash mismatch errors for nostamp tasks when dependencies rehash
An example:

NOTE: recipe binutils-cross-testsuite-2.32.0-r0: task do_check: Started
ERROR: Taskhash mismatch b074da4334aff8aa06572e7a8725c941fa6b08de4ce714a65a90c0c0b680abea versus 17375278daed609a7129769b74a1336a37bdef14b534ae85189ccc033a9f2db4 for /home/pokybuild/yocto-worker/qemux86-64/build/meta/recipes-devtools/binutils/binutils-cross-testsuite_2.32.bb:do_check
NOTE: recipe binutils-cross-testsuite-2.32.0-r0: task do_check: Succeeded

Is caused by a rehash in a dependency happening somewhere earlier in the build
and the taint being reset.

Change the code so that nostamp taints are preserved to avoid the issue.

(Bitbake rev: c42d00ff293d0538cad1b84c108bf7f5f49d4d84)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 61624a3fc38e8546e01356d5ce7a09f21e7094ab)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
cbb4636125 bitbake: knotty/uihelper: Switch from pids to tids for Task event management
We've seen cases where a task can execute with a given pid, complete
and a new task can start using the same pid before the UI handler has
had time to adapt.

Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemux86-alt/build/bitbake/lib/bb/ui/knotty.py", line 484, in main
    helper.eventHandler(event)
  File "/home/pokybuild/yocto-worker/qemux86-alt/build/bitbake/lib/bb/ui/uihelper.py", line 30, in eventHandler
    del self.running_tasks[event.pid]
KeyError: 13490

This means using pids to match up events on the UI side is a bad
idea. Change the code to use task ids instead. There is a small
amount of fuzzy matching for the progress information since there
is no task information there and we don't want the overhead of a task
ID in every event, however since pid reuse is unlikely, we can live
with a progress bar not quite working properly in a corner case like
this.

[YOCTO #13667]

(Bitbake rev: a109d034cf4fc059fd5a1e1d03246dac65522dd6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e427eafa1bb04008d12100ccc5c862122bba53e0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
afd0025290 bitbake: runqueue: Add extra debugging when locked sigs mismatches occur
(Bitbake rev: 6f0b82627edc82601f80f0f096bf96db43afefa8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3aad9978be2a40d4c535a5ae092f374ba2a5f627)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
b8f326a778 bitbake: runqueue/siggen: Allow handling of equivalent hashes
Based on the hashserv's new ability to accept hash mappings, update runqueue
to use this through a helper function in siggen.

This addresses problems with meta-extsdk-toolchain and its dependency on
gdb-cross which caused errors when building eSDK. See the previous commit
for more details.

(Bitbake rev: 222df6d6b832868c6e87334f8acdd74b730a91d6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 39098b4ba2133f4d9229a0aa4fcf4c3e1291286a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
1d0c73bd68 bitbake: hashserv: Add support for equivalent hash reporting
The reason for this should be recorded in the commit logs. Imagine
you have a target recipe (e.g. meta-extsdk-toolchain) which depends on
gdb-cross. sstate in OE-Core allows gdb-cross to have the same hash
regardless of whether its built on x86 or arm. The outhash will be
different.

We need hashequiv to be able to adapt to the prescence of sstate artefacts
for meta-extsdk-toolchain and allow the hashes to re-intersect, rather than
trying to force a rebuild of meta-extsdk-toolchain. By this point in the build,
it would have already been installed from sstate so the build needs to adapt.

Equivalent hashes should be reported to the server as a taskhash that
needs to map to an specific unihash. This patch adds API to the hashserv
client/server to allow this.

[Thanks to Joshua Watt for help with this patch]

(Bitbake rev: 0d154434ed8e3e88ad440a8dd21a164e72ba4ac5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 674692fd46a7691a1de59ace6af0556cc5dd6a71)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Vasyl Gomonovych
9151c84245 kernel: Make symbol link to vmlinux.64 in boot directory
Some mips 64 bit platforms use vmlinux.64 image name
Make a symbol link to vmlinux.64 in arch/mips/boot/

(From OE-Core rev: f9739e0f58f5d8a5dc01fdb0efaa778af4edd671)

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 70626b52e5e61c80018e9f1f85bc169d0434b986)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Yanfei Xu
79584ffcd3 libsdl2: fix failure appeared in bitbake libsdl2-native
When you bitbake libsdl2-native and your host had installed fcitx
or ibus, it may cause you bitbake failed in do_compile.

Disable fcitx and ibus check with EXTRA_OECONF in bb file.

-------------snip---------------------
  CC     build/SDL_sysfilesystem.lo
  CC     build/SDL_syshaptic.lo
  CC     build/SDL_systimer.lo
/poky/build/tmp/work/x86_64-linux/libsdl2-native/2.0.10-r0/SDL2-2.0.10/src/core/linux/SDL_fcitx.c:52:5:
error: unknown type name ‘SDL_DBusContext’
     SDL_DBusContext *dbus;
     ^~~~~~~~~~~~~~~
/poky/build/tmp/work/x86_64-linux/libsdl2-native/2.0.10-r0/SDL2-2.0.10/src/core/linux/SDL_fcitx.c:121:8:
error: unknown type name ‘DBusHandlerResult’
 static DBusHandlerResult
        ^~~~~~~~~~~~~~~~~
/poky/build/tmp/work/x86_64-linux/libsdl2-native/2.0.10-r0/SDL2-2.0.10/src/core/linux/SDL_fcitx.c:122:20:
error: unknown type name ‘DBusConnection’;
------------snip----------------------

(From OE-Core rev: f48ab4268746a2780ee0fdc84e5c39afe593ade7)

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

(cherry picked from commit eb286172e413e9d6449dc13ccec1b78c04481eb5)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Robert Yang
0d53c40c36 pseudo: Make realpath() remove trailing slashes
Linux system's realpath() remove trailing slashes, but pseudo's doesn't, need
make them identical.

E.g., the following code (rel.c) prints '/tmp' with system's realpath, but
pseudo's realpath prints '/tmp/':

    #include <stdio.h>
    #include <limits.h>
    #include <stdlib.h>

    int main() {
        char out[PATH_MAX];
        printf("%s\n", realpath("/tmp/", out));
        return 0;
    }

$ bitbake base-passwd -cdevshell # For pseudo env
$ gcc rel.c
$ ./a.out
/tmp/ (but should be /tmp)

This patch fixes the problem.

(From OE-Core rev: c251e753486dae9b460df315a6d19d6c81098ecb)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 319bbf66e03377adf2db7efa93ef578e3460eb38)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Richard Purdie
5a9198f525 python3: Update to apply libgcc fix to libpython, glibc only
Update to account for review feedback on list.

(From OE-Core rev: 9a2748db44c4382bbba81a5a9b96c998f0fab983)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ec788594f3f6a47687c6eb321437f2d2b58b1518)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Joshua Watt
9f82054a2c python3: RDEPEND on libgcc
=help>
List-Subscribe:
 <http://lists.openembedded.org/mailman/listinfo/openembedded-core>,
 <mailto:openembedded-core-request@lists.openembedded.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Sender: openembedded-core-bounces@lists.openembedded.org
Errors-To: openembedded-core-bounces@lists.openembedded.org
X-Virus-Scanned: clamav-milter 0.101.4 at dan
X-Virus-Status: Clean
X-Evolution-Source: 1525863794.3857.16@hex
Content-Transfer-Encoding: 8bit

Python uses features of glibc that require it to dynamically load (i.e.
dlopen()) libgcc_s at runtime. However, since this isn't a link time
dependency, it doesn't get picked up automatically by bitbake so
manually add it to RDEPENDS.

There is an outstanding bug in Python to make it explicitly link against
libgcc at link time which would remove the need for this. See:
https://bugs.python.org/issue37395

(From OE-Core rev: e6c4017727008ac2f665e843d59d53b584f3f1b3)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit df107f3a149b1e88d9f869e7ff87950ccf5aaee0)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Adrian Bunk
f7ef93bbb0 python3: Upgrade 3.7.5 -> 3.7.6
(From OE-Core rev: b8926f3898fbf6828b908d741ab3b450adb85643)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit aee9beb12226abf7a195b8ee801ea488920b2fdb)
[Bug fix only update]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Adrian Bunk
61d60f4336 systemd: Upgrade 243 -> 243.2
Bugfix-only changes on the 243 stable branch.

(From OE-Core rev: fd1aa49d8a25767953e8b1beb91001d5e115f781)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Ross Burton
5a3341083f podfix: only alter normal files
(From OE-Core rev: dcbaf2a7a444f07ab516833f4ed4a2322828bddd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 23d38b2ad6f7a39e5c1ffd092322942474935c33)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Ross Burton
0d4ae87e43 reproducible_build_simple: inherit podfix
When doing reproducible builds inherit podfix to remove the possibility
of differing Perl versions causing manpages to change.

(From OE-Core rev: 3534f17752eccdd62eac8809d7842e9d25fa770a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5dc43edab4787906f2c9f51e51bf78d1dc966286)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Ross Burton
9a294101b6 podfix: class to remove Pod::Man versions from manpages
Manpages generated by Pod::Man contain the version number, which isn't
reproducible if we're using the host Perl to generate manpage.

One option is to always depend on perl-native when generating manpages
but this is a heavy dependency, so instead strip out the versions in
do_install().

(From OE-Core rev: 88255abe6bb4d10d50a660022ab3f9a1c2954ec7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 18d8e5ac689d6eb6098f68ac785f43e9d5f5938a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Tim Orling
f5dc7d9f69 liberror-perl: update 0.17027 -> 0.17028
HOMEPAGE change from bitbucket to github

Upstream release notes:
  - Moved the VCS repo to https://github.com/shlomif/perl-error.pm
  - No other significant changes.

(From OE-Core rev: f15419842bfdf463d987ba708e6d5f9b6aabecdf)

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 488680f45fbe28e32391e2a1a66ab350706abe93)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:22 +00:00
Bruce Ashfield
ac328375f9 linux-yocto/5.2: update to v5.2.28
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    7943d7e69aa7 Linux 5.2.28
    b5db992cfdd3 usbip: Fix uninitialized symbol 'nents' in stub_recv_cmd_submit()
    a0b637f7868d usb: gadget: configfs: Fix missing spin_lock_init()
    aee8c2147a36 net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size()
    a04397ac5986 bonding: fix active-backup transition after link failure
    0993efbf3f01 ALSA: usb-audio: Fix incorrect size check for processing/extension units
    66375457a696 ALSA: usb-audio: Fix incorrect NULL check in create_yamaha_midi_quirk()
    c0920628d63f ALSA: hda/ca0132 - Fix work handling in delayed HP detection
    e14b1f4b4011 mwifiex: fix possible heap overflow in mwifiex_process_country_ie()
    060505a3c9dc io_uring: use current task creds instead of allocating a new one
    8d113ae57534 io_uring: async workers should inherit the user creds
    4079323e2113 net/ibmvnic: unlock rtnl_lock in reset so linkwatch_event can run
    013e927d5204 arm64: errata: Update stale comment
    2c8f51168b64 netfilter: ipset: Copy the right MAC address in hash:ip,mac IPv6 sets
    911f63fa6335 bonding: fix using uninitialized mode_lock
    ab3e4e6f92d4 usbip: Fix free of unallocated memory in vhci tx
    516423c1395e cgroup,writeback: don't switch wbs immediately on dead wbs if the memcg is dead
    2c17159569ee mm/filemap.c: don't initiate writeback if mapping has no dirty pages
    a53a54cbee03 ocfs2: protect extent tree in ocfs2_prepare_inode_for_write()
    96e3c3553d84 e1000: fix memory leaks
    ef2c5f55f92e igb: Fix constant media auto sense switching when no cable is connected
    5853c1ae13c9 net: ethernet: arc: add the missed clk_disable_unprepare
    330a0ce1737a NFSv4: Don't allow a cached open with a revoked delegation
    ecb481d00e39 arm64: apply ARM64_ERRATUM_843419 workaround for Brahma-B53 core
    c3cc8b365b07 arm64: Brahma-B53 is SSB and spectre v2 safe
    87251ea1e89b arm64: apply ARM64_ERRATUM_845719 workaround for Brahma-B53 core
    36c2624f9432 usb: dwc3: gadget: fix race when disabling ep with cancelled xfers
    93268e187878 arm64: cpufeature: Enable Qualcomm Falkor errata 1009 for Kryo
    1498bf362a53 x86, efi: Never relocate kernel below lowest acceptable address
    3cfc26fc6f99 efi: libstub/arm: Account for firmware reserved memory at the base of RAM
    fc5ffc1e3fdd hv_netvsc: Fix error handling in netvsc_attach()
    92b10afd667e SUNRPC: The RDMA back channel mustn't disappear while requests are outstanding
    086a81dbfba3 SUNRPC: The TCP back channel mustn't disappear while requests are outstanding
    ffdad349b545 drm/amd/display: Passive DP->HDMI dongle detection fix
    35be94b64940 drm/amd/display: do not synchronize "drr" displays
    7c39460cb5ac drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
    78d726f10338 drm/sched: Set error to s_fence if HW job submission failed.
    9830f79967bf mt76: dma: fix buffer unmap with non-linear skbs
    720d823bdb4b iommu/amd: Apply the same IVRS IOAPIC workaround to Acer Aspire A315-41
    63fd1ae15909 net: mscc: ocelot: refuse to overwrite the port's native vlan
    9016218584da net: mscc: ocelot: fix vlan_filtering when enslaving to bridge before link is up
    28c0b80eaf33 net: hisilicon: Fix "Trying to free already-free IRQ"
    1ecc30627dde fjes: Handle workqueue allocation failure
    e87e60d8b437 nvme-multipath: fix possible io hang after ctrl reconnect
    4872894ab801 sched/topology: Allow sched_asym_cpucapacity to be disabled
    1da63fea0a7b sched/topology: Don't try to build empty sched domains
    70e90b283406 scsi: qla2xxx: stop timer in shutdown path
    1cc270775485 hwmon: (ina3221) Fix read timeout issue
    45239aea409d RDMA/hns: Prevent memory leaks of eq->buf_list
    53fa37993b30 RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
    7ff5b79bbbeb usbip: tools: Fix read_usb_vudc_device() error path handling
    a2938e175103 USB: ldusb: use unsigned size format specifiers
    680a523e29ac USB: Skip endpoints with 0 maxpacket length
    e0d7df991267 perf/x86/uncore: Fix event group support
    89cc224ca642 perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
    3cef7fe493bc perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity
    b2dce44309c3 usb: dwc3: remove the call trace of USBx_GFLADJ
    2a3754959b17 usb: gadget: configfs: fix concurrent issue between composite APIs
    b97e16bf764c usb: gadget: composite: Fix possible double free memory bug
    f28bdd84158d usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.
    5853c961dc7f usb: fsl: Check memory resource before releasing it
    95100a241e6d usb: dwc3: select CONFIG_REGMAP_MMIO
    108ae240a478 scsi: sd: define variable dif as unsigned int instead of bool
    6525d5046fc8 virt_wifi: fix refcnt leak in module exit routine
    d7aaa2cc70d4 macsec: fix refcnt leak in module exit routine
    9ca46b3266cd bonding: use dynamic lockdep key instead of subclass
    09dd999301fe bonding: fix unexpected IFF_BONDING bit unset
    b3ba6e2b6620 ipvs: move old_secure_tcp into struct netns_ipvs
    d532f1fd8afb ipvs: don't ignore errors in case refcounting ip_vs module fails
    70cbcdb17ff0 net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag
    0e4ba0c6840e xsk: Fix registration of Rx-only sockets
    ef1fdf7f97d0 netfilter: nf_flow_table: set timeout before insertion into hashes
    38521edda858 iwlwifi: pcie: 0x2720 is qu and 0x30DC is not
    8560aaae6c0e iwlwifi: pcie: fix all 9460 entries for qnj
    bd7630c67813 iwlwifi: pcie: fix PCI ID 0x2720 configs that should be soc
    dbd6c9966dd8 bpf: Fix use after free in bpf_get_prog_name
    86e351f38ec7 scsi: qla2xxx: Initialized mailbox to prevent driver load failure
    efb36f318994 scsi: lpfc: Honor module parameter lpfc_use_adisc
    9bff69da3b99 net: openvswitch: free vport unless register_netdevice() succeeds
    193fa1a4522a bpf: Fix use after free in subprog's jited symbol removal
    1ee4522aa93c RDMA/uverbs: Prevent potential underflow
    9c018cb9f15b scsi: ufs-bsg: Wake the device before sending raw upiu commands
    682f81e5304b scsi: qla2xxx: fixup incorrect usage of host_byte
    dca864479cde selftests/bpf: More compatible nc options in test_tc_edt
    7ad63e706f31 net/mlx5e: TX, Fix consumer index of error cqe dump
    b3c5d67904a8 net/mlx5e: Tx, Fix assumption of single WQEBB of NOP in cleanup flow
    de4ed191ea6a IB/core: Use rdma_read_gid_l2_fields to compare GID L2 fields
    b4912439edec RDMA/qedr: Fix reported firmware version
    8291185a312b iw_cxgb4: fix ECN check on the passive accept
    fc84b384eb40 RDMA/mlx5: Clear old rate limit when closing QP
    c76d7b0214ee powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries.
    13fecbf4a027 HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()
    e6d91869518a dmaengine: sprd: Fix the possible memory leak issue
    55d41c0f1470 dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config
    cb7318f2b0e4 dmaengine: xilinx_dma: Fix 64-bit simple AXIDMA transfer
    03a1b968775d bpf: lwtunnel: Fix reroute supplying invalid dst
    4903f1d1bf8b dmaengine: sprd: Fix the link-list pointer register configuration issue
    556cf9124c0a HID: google: add magnemite/masterball USB ids
    09e8a1ec600e usbip: Implement SG support to vhci-hcd and stub driver
    065245f072da ALSA: usb-audio: Fix copy&paste error in the validator
    51db18fc1b06 ALSA: usb-audio: remove some dead code
    eeb8753a5329 ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()
    5159d8aab602 ALSA: usb-audio: Clean up check_input_term()
    594d9d1e5e17 ALSA: usb-audio: Remove superfluous bLength checks
    44db0074cd7c ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects
    443cff51a6bb ALSA: usb-audio: Simplify parse_audio_unit()
    bcc4dd818640 ALSA: usb-audio: More validations of descriptor units
    af26301992ac configfs: fix a deadlock in configfs_symlink()
    58e23dc42be6 can: dev: add missing of_node_put() after calling of_get_child_by_name()
    b2b42b51675f can: rx-offload: can_rx_offload_queue_sorted(): fix error handling, avoid skb mem leak
    35b90e57a289 can: peak_usb: fix a potential out-of-sync while decoding packets
    6cc9a0bb94de can: c_can: c_can_poll(): only read status register after status IRQ
    78aa7546e343 can: flexcan: disable completely the ECC mechanism
    60eb5bed4403 can: usb_8dev: fix use-after-free on disconnect
    573872be4f06 SMB3: Fix persistent handles reconnect
    a422197a1eab x86/apic/32: Avoid bogus LDR warnings
    46279c9462f3 x86/dumpstack/64: Don't evaluate exception stacks before setup
    c6c6ac3c04b2 intel_th: pci: Add Jasper Lake PCH support
    911ece5b25e1 intel_th: pci: Add Comet Lake PCH support
    3f2a73ab3b0a intel_th: gth: Fix the window switching sequence
    ecb83032ecac netfilter: ipset: Fix an error code in ip_set_sockfn_get()
    343ebeaf5062 netfilter: nf_tables: Align nft_expr private data to 64-bit
    97d84484d0e6 cpufreq: intel_pstate: Fix invalid EPB setting
    7c985c014425 ARM: sunxi: Fix CPU powerdown on A83T
    43a2cca05874 iio: srf04: fix wrong limitation in distance measuring
    b870132ec166 iio: imu: inv_mpu6050: fix no data on MPU6050
    e48c1fca5974 iio: imu: adis16480: make sure provided frequency is positive
    9dca863d3b35 iio: adc: stm32-adc: fix stopping dma
    8fc1bf8f2be7 ceph: don't allow copy_file_range when stripe_count != 1
    8cfda9695cf9 ceph: don't try to handle hashed dentries in non-O_CREAT atomic_open
    4ad07fc427d4 ceph: add missing check in d_revalidate snapdir handling
    ef1848480086 ceph: fix RCU case handling in ceph_d_revalidate()
    d97f80fd208a ceph: fix use-after-free in __ceph_remove_cap()
    dfe4803a9068 ASoC: rsnd: dma: fix SSI9 4/5/6/7 busif dma address
    5e23235c9524 arm64: Do not mask out PTE_RDONLY in pte_same()
    48c2025b2f09 blkcg: make blkcg_print_stat() print stats only for online blkgs
    034d5809a5f4 soundwire: bus: set initial value to port_status
    649b8fd670bc soundwire: depend on ACPI || OF
    94aa8ee28648 soundwire: depend on ACPI
    ee8af21351c4 mm/khugepaged: fix might_sleep() warn with CONFIG_HIGHPTE=y
    d66df2eb6b3a HID: wacom: generic: Treat serial number and related fields as unsigned
    e1ffbf4ecc06 drm/radeon: fix si_enable_smc_cac() failed issue
    69d06ef9e08d perf map: Use zalloc for map_groups
    782163d51e60 perf tools: Fix time sorting
    3067a7cc476a pinctrl: intel: Avoid potential glitches if pin is in GPIO mode
    b69bf236dff2 tools: gpio: Use !building_out_of_srctree to determine srctree
    e231278b0d22 btrfs: save i_size to avoid double evaluation of i_size_read in compress_file_range
    5e162cf4feec btrfs: tree-checker: Fix wrong check on max devid
    3f2943947386 dump_stack: avoid the livelock of the dump_lock
    4355d417a94f mm, vmstat: hide /proc/pagetypeinfo from normal users
    953014f940f5 mm: thp: handle page cache THP correctly in PageTransCompoundMap
    61650775cd53 mm, meminit: recalculate pcpu batch and high limits after init completes
    2dcc41fdaf8a mm: memcontrol: fix network errors from failing __GFP_ATOMIC charges
    aa9bf5f11454 ALSA: hda/ca0132 - Fix possible workqueue stall
    3b82b35a59db ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series
    e2ba23d39223 ALSA: timer: Fix incorrectly assigned timer instance
    0dc0b91d07e4 vsock/virtio: fix sock refcnt holding during the shutdown
    420c2d73c309 net/smc: fix ethernet interface refcounting
    d7b3e1639bd7 net: sched: prevent duplicate flower rules from tcf_proto destroy race
    343d798fc32d net: prevent load/store tearing on sk->sk_stamp
    7dae346fabf5 net: hns: Fix the stray netpoll locks causing deadlock in NAPI path
    d8dd70306467 ipv6: fixes rt6_probe() and fib6_nh->last_probe init
    28b0701981a4 selftests/tls: add test for concurrent recv and send
    e35586c32b38 net/tls: add a TX lock
    a440797c1de5 net/tls: don't pay attention to sk_write_pending when pushing partial records
    d606d0d99205 net: mscc: ocelot: fix NULL pointer on LAG slave removal
    0be7d0f645a9 net: mscc: ocelot: don't handle netdev events for other netdevs
    7c406bd7d55b qede: fix NULL pointer deref in __qede_remove()
    a09ec9b4cc7d NFC: st21nfca: fix double free
    0c0b3ac80ac8 nfc: netlink: fix double device reference drop
    90a397f2593f NFC: fdp: fix incorrect free object
    cfe446854a9c net: usb: qmi_wwan: add support for DW5821e with eSIM support
    8d510fd1378a net/tls: fix sk_msg trim on fallback to copy mode
    55a7a495b3fe net: qualcomm: rmnet: Fix potential UAF when unregistering
    756e7124cde2 net: fix data-race in neigh_event_send()
    212322510b49 net: ethernet: octeon_mgmt: Account for second possible VLAN header
    b0855a3ad221 ipv4: Fix table id reference in fib_sync_down_addr
    9dfa56e19c37 CDC-NCM: handle incomplete transfer of MTU
    86e7bde87d43 bonding: fix state transition issue in link monitoring

(From OE-Core rev: f8489c88044e179ec39f811703a89f0681fa30ea)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b538fedff2cbd4604a7c73fdee07167f1ad3155a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
9c5e784874 linux-yocto/4.19/5.2/-dev: fix gcc10 build
Integrating Khem's gcc10 build fix:

[
    Author: Khem Raj <raj.khem@gmail.com>
    Date:   Fri Dec 20 17:42:02 2019 -0800

        x86/boot/compressed/64: Define __force_order only when CONFIG_RANDOMIZE_BASE is unset

        kaslr_64.c also defines the same variable, however when both files are
        included into final link, linker complains about multiple definition of
        `__force_order' which is coming from kaslr_64.o and pgtable_64.o, its
        possible that kaslr_64.o is disabled via CONFIG_RANDOMIZE_BASE config
        option, therefore define it conditionally only when
        CONFIG_RANDOMIZE_BASE is not set

        Signed-off-by: Khem Raj <raj.khem@gmail.com>
        Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
        Cc: Kees Cook <keescook@chromium.org>
        Cc: "H. Peter Anvin" <hpa@zytor.com>
        Cc: Ingo Molnar <mingo@redhat.com>
        Cc: Thomas Gleixner <tglx@linutronix.de>
        Cc: x86-ml <x86@kernel.org>
        Cc: Arnd Bergmann <arnd@arndb.de>
        Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

(From OE-Core rev: 201965ba510830561a8c1c38f7c111207f604d03)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d3112fcf7283b9c015e77db1b0a1a78044ed2e23)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
888526098a linux-yocto/5.2: update to v5.2.27
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    766f754fb8ce Linux 5.2.27
    2e635a05d05c ASoC: SOF: Intel: hda-stream: fix the CONFIG_ prefix missing
    1708b2a269de usb: gadget: udc: core: Fix segfault if udc_bind_to_driver() for pending driver fails
    52d4750e4da2 arm64: dts: ti: k3-am65-main: Fix gic-its node unit-address
    d7b2a7ceb695 ASoC: pcm3168a: The codec does not support S32_LE
    8c9d7d01ccf0 selftests/powerpc: Fix compile error on tlbie_test due to newer gcc
    532cc582af44 selftests/powerpc: Add test case for tlbie vs mtpidr ordering issue
    21344b6bacda CIFS: Fix retry mid list corruption on reconnects
    7249aad46eed platform/x86: pmc_atom: Add Siemens SIMATIC IPC227E to critclk_systems DMI table
    48a226ebae98 net/flow_dissector: switch to siphash
    27508702fe6d net: bcmgenet: reset 40nm EPHY on energy detect
    8bbff985b199 net: phy: bcm7xxx: define soft_reset for 40nm EPHY
    3a48c3ea0431 net: netem: correct the parent's backlog when corrupted packet was dropped
    472df452d167 r8152: add device id for Lenovo ThinkPad USB-C Dock Gen 2
    717fa6516e96 net: usb: lan78xx: Connect PHY before registering MAC
    1d2fd4d20889 net: netem: fix error path for corrupted GSO frames
    5f0d17174801 net: hns3: fix mis-counting IRQ vector numbers issue
    18a577972516 net: dsa: fix switch tree list
    b2c233dbbdcb net: dsa: b53: Do not clear existing mirrored port mask
    30f425544ea2 net: bcmgenet: don't set phydev->link from MAC
    3d4a4cfb4ef7 net/mlx5e: Fix handling of compressed CQEs in case of low NAPI budget
    ba405f985d11 net/mlx5e: Fix ethtool self test: link speed
    01284dbae3d4 r8169: fix wrong PHY ID issue with RTL8168dp
    0a02e85ee175 mlxsw: core: Unpublish devlink parameters during reload
    0031274acd73 net/mlx5: Fix rtable reference leak
    0bb43d6b565e net/smc: fix refcount non-blocking connect() -part 2
    5dca2f5212b5 net/smc: fix refcounting for non-blocking connect()
    3320bb716cb3 net/mlx5: Fix flow counter list auto bits struct
    0490b698de8f net/smc: keep vlan_id for SMC-R in smc_listen_work()
    83577bc7531c net/smc: fix closing of fallback SMC sockets
    89b1d3e8dc5e selftests: fib_tests: add more tests for metric update
    52752b65dc62 ipv4: fix route update on metric change.
    c7525fb56257 net: add READ_ONCE() annotation in __skb_wait_for_more_packets()
    c7a5d3e53e0a net: use skb_queue_empty_lockless() in busy poll contexts
    7648cc097d86 net: use skb_queue_empty_lockless() in poll() handlers
    b192ff3d10ba udp: use skb_queue_empty_lockless()
    155f9ae9e73c net: add skb_queue_empty_lockless()
    c17ac3802036 vxlan: check tun_info options_len properly
    9c154c58aa9d udp: fix data-race in udp_set_dev_scratch()
    b64595ce1ed4 selftests: net: reuseport_dualstack: fix uninitalized parameter
    fb87cd347da4 net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()
    0819acecc962 net: usb: lan78xx: Disable interrupts before calling generic_handle_irq()
    07e413b2fbb0 net: rtnetlink: fix a typo fbd -> fdb
    0e3580cc30bf netns: fix GFP flags in rtnl_net_notifyid()
    338502ee8050 net/mlx4_core: Dynamically set guaranteed amount of counters per VF
    df8fccdba3d1 net: hisilicon: Fix ping latency when deal with high throughput
    1a3cfa10a0d7 net: fix sk_page_frag() recursion from memory reclaim
    b38a3703d880 net: ethernet: ftgmac100: Fix DMA coherency issue with SW checksum
    7ad5a3f67946 net: dsa: bcm_sf2: Fix IMP setup for port different than 8
    9f949630b4e5 net: annotate lockless accesses to sk->sk_napi_id
    8f963115bff3 net: annotate accesses to sk->sk_incoming_cpu
    72e16d7c131f inet: stop leaking jiffies on the wire
    250e30ea064b erspan: fix the tun_info options_len check for erspan
    5001418c1340 dccp: do not leak jiffies on the wire
    7ed4e6ea40b4 cxgb4: request the TX CIDX updates to status page
    11ccb2b93320 cxgb4: fix panic when attaching to ULD fail
    95a7b64f82d0 nbd: handle racing with error'ed out commands
    5d6e015cded5 nbd: protect cmd->status with cmd->lock
    092a5fa02456 irqchip/sifive-plic: Skip contexts except supervisor in plic_init()
    7a3552d0d993 cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs
    81eb09eaf75b i2c: stm32f7: remove warning when compiling with W=1
    29143d76b32e i2c: stm32f7: fix a race in slave mode with arbitration loss irq
    433c1cb88a21 i2c: stm32f7: fix first byte to send in slave mode
    aef36d8fa956 i2c: mt65xx: fix NULL ptr dereference
    47392944abe2 irqchip/gic-v3-its: Use the exact ITSList for VMOVP
    93cfb4dcfa2c MIPS: bmips: mark exception vectors as char arrays
    7639d63d6cdb ALSA: hda: Add Tigerlake/Jasperlake PCI ID
    1b916a8969b6 selftests: kvm: fix sync_regs_test with newer gccs
    782536b540ef selftests: kvm: vmx_set_nested_state_test: don't check for VMX support twice
    e7d861519b9d ARM: 8926/1: v7m: remove register save to stack before svc
    6a70e11c2225 drm/komeda: Don't flush inactive pipes
    2ae6a7ecd31d i2c: aspeed: fix master pending state handling
    db0521235e05 ARM: dts: bcm2837-rpi-cm3: Avoid leds-gpio probing issue
    7d8ff5d7d0bc tracing: Fix "gfp_t" format for synthetic events
    962b999c85b7 scsi: target: core: Do not overwrite CDB byte 1
    14983cdea8af drm/amdgpu: fix error handling in amdgpu_bo_list_create
    a772698fbff7 drm/amdgpu: fix potential VM faults
    7c39141a8e19 ARM: davinci: dm365: Fix McBSP dma_slave_map entry
    f6266068923b perf kmem: Fix memory leak in compact_gfp_flags()
    39fa2e018843 8250-men-mcb: fix error checking when get_num_ports returns -ENODEV
    8695a1b81da1 perf c2c: Fix memory leak in build_cl_output()
    c6bfe2d971a2 perf tools: Fix resource leak of closedir() on the error paths
    74825b0f12f5 arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk
    606b1f7012c4 arm64: dts: imx8mq: Use correct clock for usdhc's ipg clk
    bd48cf1b8785 ARM: dts: imx7s: Correct GPT's ipg clock source
    634adb5ff10d ARM: dts: vf610-zii-scu4-aib: Specify 'i2c-mux-idle-disconnect'
    b5e444ec8046 ARM: dts: imx6q-logicpd: Re-Enable SNVS power key
    21991e6ca3a8 arm64: dts: lx2160a: Correct CPU core idle state name
    0c6787a615a9 arm64: dts: rockchip: fix RockPro64 sdmmc settings
    54a20ce80ef4 ARM: 8914/1: NOMMU: Fix exc_ret for XIP
    65afe1bbf903 ARM: 8908/1: add __always_inline to functions called from __get_user_check()
    f1d2d5999a90 scsi: fix kconfig dependency warning related to 53C700_LE_ON_BE
    f91e21d4ec3a scsi: sni_53c710: fix compilation error
    41c16b471c56 scsi: scsi_dh_alua: handle RTPG sense code correctly during state transitions
    1ca65ebd2038 scsi: qla2xxx: fix a potential NULL pointer dereference
    d6940a823dd4 ARM: mm: fix alignment handler faults under memory pressure
    2dbff99a37af ARM: dts: Use level interrupt for omap4 & 5 wlcore
    1c5dfeaa70da ASoC: simple_card_utils.h: Fix potential multiple redefinition error
    6c1607186a43 ASoC: msm8916-wcd-digital: add missing MIX2 path for RX1/2
    3f03fb38ecb5 ARM: dts: am3874-iceboard: Fix 'i2c-mux-idle-disconnect' usage
    0e688ad61baa arm64: dts: zii-ultra: fix ARM regulator states
    0af649d2eb1f pinctrl: stmfx: fix null pointer on remove
    c4829c0de7f8 pinctrl: ns2: Fix off by one bugs in ns2_pinmux_enable()
    a804692693e4 arm64: dts: rockchip: fix RockPro64 sdhci settings
    adb1f13ec2a3 arm64: dts: rockchip: fix RockPro64 vdd-log regulator settings
    3b7f40e22049 ARM: dts: logicpd-torpedo-som: Remove twl_keypad
    dbae4113b111 arm64: dts: rockchip: fix Rockpro64 RK808 interrupt line
    35121b191493 ASoc: rockchip: i2s: Fix RPM imbalance
    273687c15ca7 ASoC: wm_adsp: Don't generate kcontrols without READ flags
    2a8adb4c41eb regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized
    0b37b27e25e4 ASoC: intel: bytcr_rt5651: add null check to support_button_press
    f56de4455199 ASoC: intel: sof_rt5682: add remove function to disable jack
    f7b687159124 ASoC: rt5682: add NULL handler to set_jack function
    4b6e757b6c3b ASoC: SOF: Intel: hda: Disable DMI L1 entry during capture
    375b9b38fbb8 ASoC: SOF: Intel: initialise and verify FW crash dump data.
    70e6d9eafbe8 ASoC: SOF: Intel: hda: fix warnings during FW load
    87df87873d3f ASoC: SOF: topology: fix parse fail issue for byte/bool tuple types
    f0c8c58983c5 ASoC: SOF: loader: fix kernel oops on firmware boot failure
    d972519f0d11 pinctrl: intel: Allocate IRQ chip dynamic
    ceced419c570 regulator: ti-abb: Fix timeout in ti_abb_wait_txdone/ti_abb_clear_all_txdone
    4934e53e51a2 arm64: dts: Fix gpio to pinmux mapping
    9a61c23028d2 arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay
    39f4a4a170ce arm64: dts: allwinner: a64: Re-add PMU node
    b68dfc690d27 arm64: dts: allwinner: a64: Drop PMU node
    6974df4eb790 arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator delay
    01a832b775a0 ASoC: topology: Fix a signedness bug in soc_tplg_dapm_widget_create()
    94c31579cefb regulator: da9062: fix suspend_enable/disable preparation
    ece602dfdc03 ASoC: wm8994: Do not register inapplicable controls for WM1811
    52cc4490b025 regulator: of: fix suspend-min/max-voltage parsing
    d35e9545daaa ext4: add more paranoia checking in ext4_expand_extra_isize handling

(From OE-Core rev: 761a6ddf2555535e8edc4b52091dd5047f8a7af7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f558800a5cf1e59310eaacb091d75d06022ecea0)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
787a408259 linux-yocto/5.2: update to v5.2.26
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    d0be30663e55 Linux 5.2.26
    a5f01eb4ae19 can: mcba_usb: fix use-after-free on disconnect
    d440c83adfe2 x86/fpu: Don't cache access to fpu_fpregs_owner_ctx
    d0a6ac8ee861 can: peak_usb: fix slab info leak
    bbbf7603e285 Input: ff-memless - kill timer in destroy()
    91356b4afa6c media: rc: prevent memory leak in cx23888_ir_probe
    51637609104e Revert "ALSA: hda: Flush interrupts on disabling"
    9a4445b878a9 powerpc/powernv: Fix CPU idle to be called with IRQs disabled
    9193213c9e4e sched/fair: Fix -Wunused-but-set-variable warnings
    c43cfdeb169a ALSA: usb-audio: Add DSD support for Gustard U16/X26 USB Interface
    897a94da5ae1 ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel
    7e58efc63bf7 ALSA: usb-audio: DSD auto-detection for Playback Designs
    210ea1053fbd sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices
    55f7e1c999df iwlwifi: exclude GEO SAR support for 3168
    0d8c60339f82 net: sched: sch_sfb: don't call qdisc_put() while holding tree lock
    0adbd50f981b sch_netem: fix rcu splat in netem_enqueue()
    8efcc97c3e42 net: usb: sr9800: fix uninitialized local variable
    45e162b87d41 netfilter: conntrack: avoid possible false sharing
    3fe6d57d9149 bonding: fix potential NULL deref in bond_update_slave_arr
    a8b0fd3f931d NFC: pn533: fix use-after-free and memleaks
    7ad6fbf0576a rxrpc: Fix trace-after-put looking at the put peer record
    5e24e1198eea rxrpc: rxrpc_peer needs to hold a ref on the rxrpc_local record
    1a6bd945690b rxrpc: Fix call ref leak
    203ec8334e5b llc: fix sk_buff leak in llc_conn_service()
    c438c3900aba llc: fix sk_buff leak in llc_sap_state_process()
    c18d44740378 batman-adv: Avoid free/alloc race when handling OGM buffer
    58d94f9f31f2 NFS: Fix an RCU lock leak in nfs4_refresh_delegation_stateid()
    02da3016e993 drm/amdgpu/powerplay/vega10: allow undervolting in p7
    7722152c2d83 dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle
    ee388389576c dmaengine: imx-sdma: fix size check for sdma script_number
    55c55744a28e dmaengine: tegra210-adma: fix transfer failure
    f9343260a427 dmaengine: qcom: bam_dma: Fix resource leak
    bd8f667e3a9c KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active
    cdee2de27735 rtlwifi: rtl_pci: Fix problem of too small skb->len
    ab8c920166a5 virtio_ring: fix stalls for packed rings
    26579ee95eaa arm64: cpufeature: Enable Qualcomm Falkor/Kryo errata 1003
    54a879fbe1b3 arm64: Ensure VM_WRITE|VM_SHARED ptes are clean by default
    8efd0c50367a IB/hfi1: Avoid excessive retry for TID RDMA READ request
    335bff30e808 ARC: perf: Accommodate big-endian CPU
    ee5a9c33330f s390/idle: fix cpu idle time calculation
    60af342e8b0d s390/cmm: fix information leak in cmm_timeout_handler()
    c86c49b94246 s390/unwind: fix mixing regs and sp
    df9c6fcddce0 um-ubd: Entrust re-queue to the upper layers
    4a1a26a4bf91 HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()
    f6fa66f01aa8 HID: logitech-hidpp: rework device validation
    7fe194de644b HID: logitech-hidpp: split g920_get_config()
    2049b4bb9f81 HID: fix error message in hid_open_report()
    63e52b01254f HID: Fix assumption that devices have inputs
    a3a9f34b88cb HID: i2c-hid: add Trekstor Primebook C11B to descriptor override
    e90905647a5a scsi: target: cxgbit: Fix cxgbit_fw4_ack()
    ac372582cc42 scsi: qla2xxx: Fix partial flash write of MBI
    e57315b44301 USB: serial: whiteheat: fix line-speed endianness
    1f92660c8acf USB: serial: whiteheat: fix potential slab corruption
    00bd2baf8dc4 usb: xhci: fix __le32/__le64 accessors in debugfs code
    098f7b186cbb usb: xhci: fix Immediate Data Transfer endianness
    1b576e218d1e USB: ldusb: fix control-message timeout
    2b3c8a8ec1b4 USB: ldusb: fix ring-buffer locking
    6d678d6fa0d2 usb-storage: Revert commit 747668dbc061 ("usb-storage: Set virt_boundary_mask to avoid SG overflows")
    e32f12632c9f USB: gadget: Reject endpoints with 0 maxpacket value
    3390a1c10bc9 nl80211: fix validation of mesh path nexthop
    c890ae5aac42 UAS: Revert commit 3ae62a42090f ("UAS: fix alignment of scatter/gather segments")
    e382a68d7aed ALSA: hda/realtek - Add support for ALC623
    f7a4541160d1 ALSA: hda/realtek - Fix 2 front mics of codec 0x623
    1ef6d8090939 ALSA: timer: Fix mutex deadlock at releasing card
    0d261a4dc4d2 ALSA: bebob: Fix prototype of helper function to return negative value
    c217d9f666ec fuse: truncate pending writes on O_TRUNC
    7bb177bda49b fuse: flush dirty data/metadata before non-truncate setattr
    270aa285a332 ath6kl: fix a NULL-ptr-deref bug in ath6kl_usb_alloc_urb_from_pipe()
    0278c9083bcd thunderbolt: Use 32-bit writes when writing ring producer/consumer
    eb73fb79781c thunderbolt: Correct path indices for PCIe tunnel
    d87fc8124793 s390/pci: fix MSI message data
    913f0293d40e rtw88: Fix misuse of GENMASK macro
    f85ce6c2ac9f perf/aux: Fix tracking of auxiliary trace buffer allocation
    6bdd6dbc529f perf annotate: Fix multiple memory and file descriptor leaks
    5680844af670 tracing: Initialize iter->seq after zeroing in tracing_read_pipe()
    81fdb3a267a8 s390/uaccess: avoid (false positive) compiler warnings
    b6c9dce7fde4 NFSv4: Fix leak of clp->cl_acceptor string
    b1b57fae22d2 nbd: fix possible sysfs duplicate warning
    da80a689e9e5 MIPS: fw: sni: Fix out of bounds init of o32 stack
    3f5c4e2276b7 MIPS: include: Mark __xchg as __always_inline
    f0bde95d77c1 iio: imu: st_lsm6dsx: fix waitime for st_lsm6dsx i2c controller
    1a5843dc8c0c drm/amdgpu: fix memory leak
    868397e6c42c perf/x86/amd: Change/fix NMI latency mitigation to use a timestamp
    81fc7990a0c5 perf/core: Fix corner case in perf_rotate_context()
    721fa4a46fc9 perf/core: Rework memory accounting in perf_mmap()
    f182d51db406 sched/vtime: Fix guest/system mis-accounting on task switch
    4d182255c178 sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision
    9f951480df73 x86/cpu: Add Comet Lake to the Intel CPU models header
    cc5d1ac88699 arm64: armv8_deprecated: Checking return value for memory allocation
    becc2d395df8 btrfs: silence maybe-uninitialized warning in clone_range
    33fff851e503 fs: ocfs2: fix a possible null-pointer dereference in ocfs2_write_end_nolock()
    32503fb41c44 fs: ocfs2: fix a possible null-pointer dereference in ocfs2_info_scan_inode_alloc()
    db2a5874c6ed ocfs2: clear zero in unaligned direct IO
    ceaf6a8c4ea9 x86/xen: Return from panic notifier
    2f921acb80bf riscv: Correct the handling of unexpected ebreak in do_trap_break()
    97cb8b84f1c3 riscv: avoid sending a SIGTRAP to a user thread trapped in WARN()
    a300b6885c64 riscv: avoid kernel hangs when trapped in BUG()
    da43a3822b64 MIPS: include: Mark __cmpxchg as __always_inline
    373c1dd11b45 efi/x86: Do not clean dummy variable in kexec path
    f9041dd022cb efi/cper: Fix endianness of PCIe class code
    f722f7ecf089 serial: mctrl_gpio: Check for NULL pointer
    a6ff1233680e fs: cifs: mute -Wunused-const-variable message
    c1c06adaa024 gpio: max77620: Use correct unit for debounce times
    a5b546c50f27 RDMA/mlx5: Order num_pending_prefetch properly with synchronize_srcu
    cbbee24f43c9 RDMA/mlx5: Do not allow rereg of a ODP MR
    5c113e817535 RDMA/cm: Fix memory leak in cm_add/remove_one
    735a98c89faf RDMA/core: Fix an error handling path in 'res_get_common_doit()'
    c643e93dc992 tty: n_hdlc: fix build on SPARC
    bf1a30450492 serial/sifive: select SERIAL_EARLYCON
    9b216ebaa0ff tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()'
    af0e484e2aea tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'
    ccc0779a474d arm64: ftrace: Ensure synchronisation in PLT setup for Neoverse-N1 #1542419
    eba84370623a arm64: Fix incorrect irqflag restore for priority masking for compat
    6d4308365bdd nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request
    ba5505b64fff selftests/kselftest/runner.sh: Add 45 second timeout per test
    5611d30695ff kselftest: Fix NULL INSTALL_PATH for TARGETS runlist
    2332b66b6d48 kselftest: exclude failed TARGETS from runlist
    a007910420b3 HID: hyperv: Use in-place iterator API in the channel callback
    d9f1bbf18881 RDMA/iwcm: Fix a lock inversion issue
    97410d49b2c1 RDMA/iw_cxgb4: fix SRQ access from dump_qp()
    812b81500a5a staging: rtl8188eu: fix null dereference when kzalloc fails
    8a9ea260d651 perf script: Fix invalid LBR/binary mismatch error
    e623c8e7aa71 perf annotate: Don't return -1 for error when doing BPF disassembly
    ebf5e2ee8a97 perf annotate: Return appropriate error code for allocation failures
    219422c0e09c perf annotate: Fix arch specific ->init() failure errors
    2dd48965796f perf annotate: Propagate the symbol__annotate() error return
    d58fb414acc7 perf annotate: Fix the signedness of failure returns
    7956b781a7b7 perf annotate: Propagate perf_env__arch() error
    d6f9043d8173 perf tools: Propagate get_cpuid() error
    b2737fe8cbf0 perf jevents: Fix period for Intel fixed counters
    dda1e196d61e perf script brstackinsn: Fix recovery from LBR/binary mismatch
    8b5ae52f9852 perf map: Fix overlapped map handling
    8680453e5d99 perf tests: Avoid raising SEGV using an obvious NULL dereference
    c484a2c277d2 libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature
    13121b2d6844 iio: fix center temperature of bmc150-accel-core
    2f86da9d6403 iio: adc: meson_saradc: Fix memory allocation order
    58374086dd4d btrfs: qgroup: Always free PREALLOC META reserve in btrfs_delalloc_release_extents()
    da3cb2dc1dce Btrfs: fix inode cache block reserve leak on failure to allocate data space
    0f0914c95877 dm snapshot: rework COW throttling to fix deadlock
    8355852edf97 dm snapshot: introduce account_start_copy() and account_end_copy()
    c69d2a1ac851 dm snapshot: fix oversights in optional discard support
    80fe585a3c4f dm snapshot: add optional discard support features

(From OE-Core rev: 40a4167ddcf7fe25b7fec57b9255f348a6902ac7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit 2103b4234595399f441b58f4d96dfe1b22260b06)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
20c2695529 linux-yocto/5.2: update to v5.2.25
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    38cbae50e893 Linux 5.2.25
    efe66d67e43d wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle
    aae5e918d3f4 wimax: i2400: fix memory leak
    596fd85a2430 iio: imu: adis16400: fix memory leak
    3fe8e6c9095c spi: lpspi: fix memory leak in fsl_lpspi_probe
    7d0bf52f1adb scsi: bfa: release allocated memory in case of error
    27fbb054e805 RDMA/hfi1: Prevent memory leak in sdma_init
    a135a89e6160 ath9k: release allocated buffer if timed out
    56e06c206399 ath10k: fix memory leak
    6e5539a37beb misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach
    69a90884629a spi: gpio: prevent memory leak in spi_gpio_probe
    92c5d7695ef6 rsi: release skb if rsi_prepare_beacon fails
    e874f72c40c2 RDMA: Fix goto target to release the allocated memory
    f34a1eae03b8 tracing: Have error path in predicate_parse() free its allocated memory
    2e5f50144b3e drm/amd/display: prevent memory leak
    d3021f313fd4 mwifiex: pcie: Fix memory leak in mwifiex_pcie_alloc_cmdrsp_buf
    d5293038e8f9 vcs: prevent write access to vcsu devices
    96f4eb9dc3b7 KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel
    6ad7da3d7562 powerpc/book3s64: Fix link stack flush on context switch
    edebf91d3684 powerpc/64s: support nospectre_v2 cmdline option
    69a943951169 crypto: user - fix memory leak in crypto_reportstat
    70c19a57f953 crypto: user - fix memory leak in crypto_report
    fd0f9ef50a33 can: gs_usb: gs_can_open(): prevent memory leak
    a216a264a85d rtlwifi: prevent memory leak in rtl_usb_probe
    8eaea2a3f510 of: unittest: fix memory leak in unittest_data_add
    f97bd033e3c8 virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr
    cf5f620eb9ec iio: imu: adis16400: release allocated memory on failure
    4adc4baa97b6 mwifiex: pcie: Fix memory leak in mwifiex_pcie_init_evt_ring
    676ef8fc1346 nl80211: fix memory leak in nl80211_get_ftm_responder_stats
    a7f7800a32b7 net: qrtr: fix memort leak in qrtr_tun_write_iter
    ab4362f47880 iwlwifi: dbg_ini: fix memory leak in alloc_sgtable
    799775defe5a ath9k_htc: release allocated buffer if timed out
    b3287955d81c rtl8xxxu: prevent leaking urb
    af27e0abb87a ipmi: Fix memory leak in __ipmi_bmc_register
    d887d3cfa04a media: vivid: Fix wrong locking that causes race conditions on streaming stop
    0c1df555b18a media: rcar_drif: fix a memory disclosure
    aea6f13d6eff media: usb: fix memory leak in af9005_identify_state
    19746d855926 net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq
    8503f31fed01 crypto: ccp - Release all allocated memory if sha type is invalid

(From OE-Core rev: 56e9c166c6c636f80e30cfa1ee4371acd392a79d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit f9db269297dbd019129063135739b7f016bb2667)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
19103ab1ac linux-yocto/4.19: update to v4.19.87
Updating linux-yocto/4.19 to the latest korg -stable release that comprises
the following commits:

    174651bdf802 Linux 4.19.87
    6938a9da7ff8 PM / devfreq: Fix kernel oops on governor module load
    345712c95eec KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel
    0a60d4bddc0b powerpc/book3s64: Fix link stack flush on context switch
    19d98b4d55b0 powerpc/64s: support nospectre_v2 cmdline option
    b7e2a040d9fc staging: comedi: usbduxfast: usbduxfast_ai_cmdtest rounding error
    4101916e9f08 USB: serial: option: add support for Foxconn T77W968 LTE modules
    62aca6645c08 USB: serial: option: add support for DW5821e with eSIM support
    3349ed266ae2 USB: serial: mos7840: fix remote wakeup
    abbda35d6a6e USB: serial: mos7720: fix remote wakeup
    84743898d60b USB: serial: mos7840: add USB ID to support Moxa UPort 2210
    356440a79b6b appledisplay: fix error handling in the scheduled work
    0439d6b90187 USB: chaoskey: fix error case of a timeout
    a18675e5d5f7 usb-serial: cp201x: support Mark-10 digital force gauge
    61f6a3fac394 usbip: Fix uninitialized symbol 'nents' in stub_recv_cmd_submit()
    375b26a86481 usbip: tools: fix fd leakage in the function of read_attr_usbip_status
    e70448b92253 USBIP: add config dependency for SGL_ALLOC
    5d0b56f6725d virtio_ring: fix return code on DMA mapping fails
    78260a294c04 media: imon: invalid dereference in imon_touch_event
    94a94b605916 media: cxusb: detect cxusb_ctrl_msg error in query
    8b42c263ec1a media: b2c2-flexcop-usb: add sanity checking
    56be9f1b8733 media: uvcvideo: Fix error path in control parsing failure
    61e73cf57ed8 cpufreq: Add NULL checks to show() and store() methods of cpufreq
    f217cef919da media: usbvision: Fix races among open, close, and disconnect
    467052f6ea5a media: vivid: Fix wrong locking that causes race conditions on streaming stop
    b73b28b1b2cb media: vivid: Set vid_cap_streaming and vid_out_streaming to true
    af8071f50f46 nfc: port100: handle command failure cleanly
    3510fb7947d5 ALSA: usb-audio: Fix NULL dereference at parsing BADD
    2819f4030f43 futex: Prevent robust futex exit race
    d3f8c58d701c y2038: futex: Move compat implementation into futex.c
    344966da99c9 nbd: prevent memory leak
    ed7a3dde0aa2 x86/speculation: Fix redundant MDS mitigation message
    0af5ae268e24 x86/speculation: Fix incorrect MDS/TAA mitigation status
    ed7312096a1f x86/insn: Fix awk regexp warnings
    99b933bbc7b0 ARC: perf: Accommodate big-endian CPU
    e02f1448282b ARM: 8904/1: skip nomap memblocks while finding the lowmem/highmem boundary
    046f0fcf7397 ocfs2: remove ocfs2_is_o2cb_active()
    36bef080b55f net: phy: dp83867: increase SGMII autoneg timer duration
    87997a7800a1 net: phy: dp83867: fix speed 10 in sgmii mode
    5779cbc98369 mm/memory_hotplug: don't access uninitialized memmaps in shrink_zone_span()
    a268d985f089 md/raid10: prevent access of uninitialized resync_pages offset
    f8dc0350d32b ath9k_hw: fix uninitialized variable data
    f0cfe98332d6 ath10k: Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe
    4ae7392ab6f4 KVM: MMU: Do not treat ZONE_DEVICE pages as being reserved
    03bf4876a593 Bluetooth: Fix invalid-free in bcsp_close()
    006360ec33d9 mm/page_io.c: do not free shared swap slots
    16a300fb1dbb cfg80211: call disconnect_wk when AP stops
    2b3541ffdd05 ipv6: Fix handling of LLA with VRF and sockets bound to VRF
    091ed093c9c8 mm/memory_hotplug: Do not unlock when fails to take the device_hotplug_lock
    896f7398152b i2c: uniphier-f: fix timeout error after reading 8 bytes
    1efa17ab9cb8 spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch
    1b0f1b2dde06 nvme-pci: fix surprise removal
    597a37d01b69 PCI: keystone: Use quirk to limit MRRS for K2G
    c0418c4a61aa pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD
    0858006cda38 pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT
    5efa36e7f04a pinctrl: bcm2835: Use define directive for BCM2835_PINCONF_PARAM_PULL
    bad4da12b797 pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues
    c24fe7807320 cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces
    ee7d2473812b tools: bpftool: pass an argument to silence open_obj_pinned()
    367e64ce11fc of: unittest: initialize args before calling of_*parse_*()
    e4547e028547 of: unittest: allow base devicetree to have symbol metadata
    1303c938c953 net: bcmgenet: return correct value 'ret' from bcmgenet_power_down
    1d6a0dd6aa53 ACPICA: Use %d for signed int print formatting instead of %u
    d15b8b691725 clk: tegra20: Turn EMC clock gate into divider
    91c5f99d131e vrf: mark skb for multicast or link-local as enslaved to VRF
    5c2a3997ae5b dlm: don't leak kernel pointer to userspace
    afb4717ab81b dlm: fix invalid free
    30fc13ae88b2 usb: typec: tcpm: charge current handling for sink during hard reset
    5e989b6cad68 scsi: lpfc: Correct loss of fc4 type on remote port address change
    a391709b636e scsi: lpfc: Fix odd recovery in duplicate FLOGIs in point-to-point
    05678af01a33 scsi: lpfc: fcoe: Fix link down issue after 1000+ link bounces
    e6d0262e1628 scsi: megaraid_sas: Fix goto labels in error handling
    83e679606e78 scsi: megaraid_sas: Fix msleep granularity
    ff997bf13c1e scsi: mpt3sas: Fix driver modifying persistent data in Manufacturing page11
    80224e3b08ff scsi: mpt3sas: Don't modify EEDPTagMode field setting on SAS3.5 HBA devices
    5553e2bdcb02 scsi: mpt3sas: Fix Sync cache command failure during driver unload
    5f2dc610eb28 net: dsa: bcm_sf2: Turn on PHY to allow successful registration
    2ac94b9e902f rtlwifi: rtl8192de: Fix misleading REG_MCUFWDL information
    13d434fed1a2 wireless: airo: potential buffer overflow in sprintf()
    fad934bb2e47 brcmsmac: never log "tid x is not agg'able" by default
    bdb61fa50b70 rtl8xxxu: Fix missing break in switch
    06ed77066838 wlcore: Fix the return value in case of error in 'wlcore_vendor_cmd_smart_config_start()'
    c68a499448e1 ath10k: snoc: fix unbalanced clock error handling
    c262dc0655df wil6210: fix locking in wmi_call
    ccb2390e8933 wil6210: fix RGF_CAF_ICR address for Talyn-MB
    0e1304ae42c2 wil6210: fix L2 RX status handling
    aa2112d57152 wil6210: fix debugfs memory access alignment
    ea136e61e4df btrfs: avoid link error with CONFIG_NO_AUTO_INLINE
    4a035f2643c6 media: ov13858: Check for possible null pointer
    3ee72f30c163 nds32: Fix bug in bitfield.h
    e6c6c0439a93 net: bpfilter: fix iptables failure if bpfilter_umh is disabled
    811c8141d663 sock_diag: fix autoloading of the raw_diag module
    3c69a033b416 audit: print empty EXECVE args
    5dc441fbef91 soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL
    9cdfff0a5e61 clk: sunxi-ng: enable so-said LDOs for A64 SoC's pll-mipi clock
    a2e6fe1f647f ARM: dts: imx6sx-sdb: Fix enet phy regulator
    465073e44fda openvswitch: fix linking without CONFIG_NF_CONNTRACK_LABELS
    31bced01fe77 sched/fair: Don't increase sd->balance_interval on newidle balance
    ed023646c2cf sched/topology: Fix off by one bug
    f9fca78e6cf2 net: do not abort bulk send on BQL status
    0d3b9ac2844f ocfs2: fix clusters leak in ocfs2_defrag_extent()
    6c150df9c2e8 ocfs2: don't put and assigning null to bh allocated outside
    6fd469d06eb8 ocfs2: don't use iocb when EIOCBQUEUED returns
    abc7968b86b1 ocfs2: without quota support, avoid calling quota recovery
    6a2245d828e4 mm: handle no memcg case in memcg_kmem_charge() properly
    08f07d9f5b17 tools/power turbosat: fix AMD APIC-id output
    b167fee4e45d arm64: makefile fix build of .i file in external module case
    fa7f1bce27c0 nvme-pci: fix conflicting p2p resource adds
    0bbb8382db4c irq/matrix: Fix memory overallocation
    ad8298fccd70 ntb: intel: fix return value for ndev_vec_mask()
    3bd4422af874 ntb_netdev: fix sleep time mismatch
    8dbecf6c2f17 net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read
    12eeb72afac2 net: hns3: bugfix for is_valid_csq_clean_head()
    e3345108409c net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem
    b0465d06d4c6 net: hns3: bugfix for buffer not free problem during resetting
    3d9bc014c519 fm10k: ensure completer aborts are marked as non-fatal after a resume
    2fed73906e97 igb: shorten maximum PHC timecounter update interval
    3081ae5e378f powerpc/powernv: hold device_hotplug_lock when calling device_online()
    17523d7a1cc8 mm/memory_hotplug: fix online/offline_pages called w.o. mem_hotplug_lock
    02735d5987b9 mm/memory_hotplug: make add_memory() take the device_hotplug_lock
    023c071f101c kernel/panic.c: do not append newline to the stack protector panic string
    1914e5edd811 fs/hfs/extent.c: fix array out of bounds read of array extent
    a9f38975eb98 hfs: update timestamp on truncate()
    0013adceb521 hfsplus: update timestamps on truncate()
    38e7b916daa2 hfs: fix return value of hfs_get_block()
    550da9ee35fd hfsplus: fix return value of hfsplus_get_block()
    8687d57d247a hfs: prevent btree data loss on ENOSPC
    0b54b59d8541 hfsplus: prevent btree data loss on ENOSPC
    7beaf6105e2e hfs: fix BUG on bnode parent update
    1df96949ebfb hfsplus: fix BUG on bnode parent update
    08751e477f0e lib/bitmap.c: fix remaining space computation in bitmap_print_to_pagebuf
    1d5834945945 linux/bitmap.h: fix type of nbits in bitmap_shift_right()
    8deaaf77ce2e linux/bitmap.h: handle constant zero-size bitmaps correctly
    30598425aecc mm/gup_benchmark.c: prevent integer overflow in ioctl
    9663d294ae28 block: call rq_qos_exit() after queue is frozen
    a125df22d134 selftests/powerpc/cache_shape: Fix out-of-tree build
    024cd793bbe1 selftests/powerpc/switch_endian: Fix out-of-tree build
    a4a660f7abd9 selftests/powerpc/signal: Fix out-of-tree build
    f74f406bbd0b selftests/powerpc/ptrace: Fix out-of-tree build
    57aab8f0a33d powerpc/xmon: Relax frame size for clang
    32d7474b7a08 ipv4/igmp: fix v1/v2 switchback timeout based on rfc3376, 8.12
    691bd94c15b1 vfs: avoid problematic remapping requests into partial EOF block
    cdc45f204775 um: Make line/tty semantics use true write IRQ
    a17e3bbfb97c i2c: uniphier-f: fix race condition when IRQ is cleared
    a118403a5ecc i2c: uniphier-f: fix occasional timeout error
    1466eae37a9f i2c: uniphier-f: make driver robust against concurrency
    10807b374663 block: fix the DISCARD request merge
    b948d56951be macsec: let the administrator set UP state even if lowerdev is down
    f5bdad7106fc macsec: update operstate when lower device changes
    4291e97c69f6 mm: thp: fix MADV_DONTNEED vs migrate_misplaced_transhuge_page race condition
    ac1cad79bcad tools/testing/selftests/vm/gup_benchmark.c: fix 'write' flag usage
    2d9d6c099eaf mm/page-writeback.c: fix range_cyclic writeback vs writepages deadlock
    bcba80f38a00 fs/ocfs2/dlm/dlmdebug.c: fix a sleep-in-atomic-context bug in dlm_print_one_mle()
    99b3146b799a arm64: lib: use C string functions with KASAN enabled
    b84e965c7edb sparc64: Rework xchg() definition to avoid warnings.
    4e4cad4365e0 powerpc/process: Fix flush_all_to_thread for SPE
    54299e1cf379 bpf, btf: fix a missing check bug in btf_parse
    8044e741eee4 bpf: devmap: fix wrong interface selection in notifier_call
    7b557dbdc519 net: ethernet: cadence: fix socket buffer corruption problem
    3681b901e94a thermal: rcar_thermal: Prevent hardware access during system suspend
    436e610bf195 thermal: rcar_thermal: fix duplicate IRQ request
    51aa1a10fbac selftests: fix warning: "_GNU_SOURCE" redefined
    c62be4108883 selftests: kvm: Fix -Wformat warnings
    5802cb25de86 selftests: watchdog: Fix error message.
    74685702363c selftests: watchdog: fix message when /dev/watchdog open fails
    58ceffabad41 selftests/ftrace: Fix to test kprobe $comm arg only if available
    adcb6d9ff121 spi: uniphier: fix incorrect property items
    6c2075f792c6 fs/cifs: fix uninitialised variable warnings
    c5621fbd6560 net: socionext: Stop PHY before resetting netsec
    0a6fa6119ab1 mfd: max8997: Enale irq-wakeup unconditionally
    5a04242e8c23 mfd: intel_soc_pmic_bxtwc: Chain power button IRQs as well
    dd72391c9a53 mfd: mc13xxx-core: Fix PMIC shutdown when reading ADC values
    02c9ec11860f mfd: arizona: Correct calling of runtime_put_sync
    e79d230832d0 net: ethernet: ti: cpsw: unsync mcast entries while switch promisc mode
    7c011435110f qlcnic: fix a return in qlcnic_dcb_get_capability()
    321c40dce581 mISDN: Fix type of switch control variable in ctrl_teimanager
    074af1668038 f2fs: spread f2fs_set_inode_flags()
    e7f81efae3b5 f2fs: fix to spread clear_cold_data()
    733fddc34651 thermal: armada: fix a test in probe()
    bb925b9bece2 RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap
    829aa617bf6e rtc: s35390a: Change buf's type to u8 in s35390a_init
    8112f3d4ed03 ceph: only allow punch hole mode in fallocate
    146fb4b0d4fe ceph: fix dentry leak in ceph_readdir_prepopulate
    083757d84859 tools: bpftool: fix completion for "bpftool map update"
    570c05378d97 selftests/bpf: fix return value comparison for tests in test_libbpf.sh
    3173e226ca41 powerpc/64s/radix: Fix radix__flush_tlb_collapsed_pmd double flushing pmd
    b43c5287f6bc powerpc/mm/radix: Fix small page at boundary when splitting
    b499fa070ee4 powerpc/mm/radix: Fix overuse of small pages in splitting logic
    434551e9fd44 powerpc/mm/radix: Fix off-by-one in split mapping logic
    ee35e01b0f08 powerpc/pseries: Export raw per-CPU VPA data via debugfs
    9ed143cf730d scsi: hisi_sas: Fix NULL pointer dereference
    ff6618e06cb4 sparc: Fix parport build warnings.
    3d02e3bb3cfe x86/intel_rdt: Prevent pseudo-locking from using stale pointers
    b6e44f743951 spi: omap2-mcspi: Set FIFO DMA trigger level to word length
    ad9a4e963c92 swiotlb: do not panic on mapping failures
    9b572e8bc038 s390/perf: Return error when debug_register fails
    641f1f798c80 atm: zatm: Fix empty body Clang warnings
    f9304c6277ed sunrpc: safely reallow resvport min/max inversion
    7983dea8c368 SUNRPC: Fix a compile warning for cmpxchg64()
    a0ec7f6eabe8 selftests/bpf: fix file resource leak in load_kallsyms
    56b8b1832122 dm raid: avoid bitmap with raid4/5/6 journal device
    4de506d51177 sctp: use sk_wmem_queued to check for writable space
    1f7f2a0666a3 usbip: tools: fix atoi() on non-null terminated string
    283d9618e22b USB: misc: appledisplay: fix backlight update_status return code
    80a23f70d546 PCI: vmd: Detach resources after stopping root bus
    b0f69ccfff3a macintosh/windfarm_smu_sat: Fix debug output
    86f63146f886 ALSA: i2c/cs8427: Fix int to char conversion
    46729b27706a PM / Domains: Deal with multiple states but no governor in genpd
    cf800f2b630b ACPI / scan: Create platform device for INT33FE ACPI nodes
    cb6a3096ec2f kprobes, x86/ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack
    f0f842a1a9f9 xfs: clear ail delwri queued bufs on unmount of shutdown fs
    bb64349b6f56 xfs: fix use-after-free race in xfs_buf_rele
    e0e8d83e4878 net: ena: Fix Kconfig dependency on X86
    7ac437558e4a net: fix warning in af_unix
    5e110ec2d924 net: dsa: mv88e6xxx: Fix 88E6141/6341 2500mbps SERDES speed
    274726bcf5ba scsi: zorro_esp: Limit DMA transfers to 65535 bytes
    1f13afca914f scsi: dc395x: fix DMA API usage in sg_update_list
    e95ec662b126 scsi: dc395x: fix dma API usage in srb_done
    95655b10529d ASoC: tegra_sgtl5000: fix device_node refcounting
    f1f1002a9987 clk: at91: audio-pll: fix audio pmc type
    f15b802890bb clk: mmp2: fix the clock id for sdh2_clk and sdh3_clk
    6391dd5eb0ef PCI: mediatek: Fixup MSI enablement logic by enabling MSI before clocks
    305c262fb8ee nvme-pci: fix hot removal during error handling
    4e4b97f59050 nvmet-fcloop: suppress a compiler warning
    2f1e4e65ba41 nvmet: avoid integer overflow in the discard code
    30ca1af49481 crypto: ccree - avoid implicit enum conversion
    5bbeb4fcf39a scsi: iscsi_tcp: Explicitly cast param in iscsi_sw_tcp_host_get_param
    06815ae5e27f scsi: bfa: Avoid implicit enum conversion in bfad_im_post_vendor_event
    f4bf2dc77826 scsi: isci: Change sci_controller_start_task's return type to sci_status
    3a40068dc831 scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler
    6288f52ed258 clk: tegra: Fixes for MBIST work around
    5a487f40e717 KVM/x86: Fix invvpid and invept register operand size in 64-bit mode
    7392aa08f8a4 KVM: nVMX: move check_vmentry_postreqs() call to nested_vmx_enter_non_root_mode()
    9fe573d539a8 KVM: nVMX: reset cache/shadows when switching loaded VMCS
    cec14148c1a9 nfp: bpf: protect against mis-initializing atomic counters
    bfe01cddb81a scsi: ips: fix missing break in switch
    073f454cc28c qed: Align local and global PTT to propagate through the APIs.
    45f89cf0f329 amiflop: clean up on errors during setup
    4043bc0f634b pwm: lpss: Only set update bit if we are actually changing the settings
    ad78a958663a pinctrl: sunxi: Fix a memory leak in 'sunxi_pinctrl_build_state()'
    fae3cf8874c3 RDMA/bnxt_re: Avoid resource leak in case the NQ registration fails
    b1bf1e424dcb RDMA/bnxt_re: Fix qp async event reporting
    2f241e333f7b RDMA/bnxt_re: Avoid NULL check after accessing the pointer
    bbeeadb7bab4 scsi: hisi_sas: Free slot later in slot_complete_vx_hw()
    628cae51693a scsi: hisi_sas: Fix the race between IO completion and timeout for SMP/internal IO
    d10b7dd14a37 scsi: hisi_sas: Feed back linkrate(max/min) when re-attached
    92ac0e324974 m68k: fix command-line parsing when passed from u-boot
    4ab1594e699e w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size).
    d11d985d0a82 misc: mic: fix a DMA pool free failure
    a2204a295554 gsmi: Fix bug in append_to_eventlog sysfs handler
    cc08097f2619 btrfs: handle error of get_old_root
    1b49c453a564 btrfs: defrag: use btrfs_mod_outstanding_extents in cluster_pages_for_defrag
    9325e8f4688c PCI: mediatek: Fix class type for MT7622 to PCI_CLASS_BRIDGE_PCI
    dfffae314a02 mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail
    e2c158f58522 mmc: mediatek: fill the actual clock for mmc debugfs
    e3fa491211c4 spi: sh-msiof: fix deferred probing
    2cd0b70c55b0 cdrom: don't attempt to fiddle with cdo->capability
    0c5c34c1aaf3 skd: fixup usage of legacy IO API
    196b007ac0a6 ath10k: allocate small size dma memory in ath10k_pci_diag_write_mem
    17fbe3c91ad4 ath10k: set probe request oui during driver start
    8111f99f7c44 brcmsmac: AP mode: update beacon when TIM changes
    20e42ddf6c1d mt76x0: phy: fix restore phase in mt76x0_phy_recalibrate_after_assoc
    8cb568162524 mt76: do not store aggregation sequence number for null-data frames
    b95998fb6c50 EDAC, thunderx: Fix memory leak in thunderx_l2c_threaded_isr()
    97aab1a43a2f powerpc/eeh: Fix use of EEH_PE_KEEP on wrong field
    bd2a7e53cd6e powerpc/eeh: Fix null deref for devices removed during EEH
    16e4657a1d25 powerpc/boot: Disable vector instructions
    5346c8403733 powerpc/boot: Fix opal console in boot wrapper
    4505cff2ef4a powerpc: Fix signedness bug in update_flash_db()
    93b943c0602f synclink_gt(): fix compat_ioctl()
    8d67a4ecb473 pty: fix compat ioctls
    fa3fe5f442ab gfs2: Fix marking bitmaps non-full
    26a4c6a562ce PCI: cadence: Write MSI data with 32bits
    ca71f9c8adc2 pinctrl: madera: Fix uninitialized variable bug in madera_mux_set_mux
    4465a916eaa7 printk: fix integer overflow in setup_log_buf()
    90d73768ddb6 printk: lock/unlock console only for new logbuf entries
    8888689bd433 crypto: testmgr - fix sizeof() on COMP_BUF_SIZE
    3757657af27e ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback
    49a9643b5e8d mwifiex: Fix NL80211_TX_POWER_LIMITED
    e80e88ef6057 drm/i915/userptr: Try to acquire the page lock around set_page_dirty()
    a0ee03bb5269 drm/i915/pmu: "Frequency" is reported as accumulated cycles
    8a67fbf65971 drm/amd/powerplay: issue no PPSMC_MSG_GetCurrPkgPwr on unsupported ASICs
    e8d355befc42 mm/ksm.c: don't WARN if page is still mapped in remove_stable_node()
    b28da9da6e51 Revert "fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()"
    67380639dfdb virtio_console: allocate inbufs in add_port() only if it is needed
    65d153c8ed65 nbd:fix memory leak in nbd_get_socket()
    036588ec6888 tools: gpio: Correctly add make dependencies for gpio_utils
    7cb8ee734c18 gpio: max77620: Fixup debounce delays
    70d594d17ebb vhost/vsock: split packets to send using multiple buffers
    48bc34efbc65 net/mlx5: Fix auto group size calculation
    28a4cc2b5d6f net/mlxfw: Verify FSM error code translation doesn't exceed array size
    7c1a53817782 net/mlx5e: Fix set vf link state error flow
    1ff2a0f8692f sfc: Only cancel the PPS workqueue if it exists
    13512a5eb818 net: sched: ensure opts_len <= IP_TUNNEL_OPTS_MAX in act_tunnel_key
    2ba6a4f5402e net/sched: act_pedit: fix WARN() in the traffic path
    9f6de5cf5390 net: rtnetlink: prevent underflows in do_setvfinfo()
    ebcb0840a76b net/mlx4_en: Fix wrong limitation for number of TX rings
    5408138df1db net/mlx4_en: fix mlx4 ethtool -N insertion
    baa888ca02db mlxsw: spectrum_router: Fix determining underlay for a GRE tunnel
    14260788bbb9 Linux 4.19.86
    2e1f151cd2d9 x86/resctrl: Fix rdt_find_domain() return value and checks
    d64b58520670 mmc: tmio: fix SCC error handling to avoid false positive CRC error
    e2a37708cfca powerpc/time: Fix clockevent_decrementer initalisation for PR KVM
    ff36ace6c107 tools: PCI: Fix broken pcitest compilation
    4039b5dd0f67 PM / devfreq: Fix static checker warning in try_then_request_governor
    903cfafe0874 ACPI / LPSS: Use acpi_lpss_* instead of acpi_subsys_* functions for hibernate
    6491a2d26c08 tcp: start receiver buffer autotuning sooner
    ef0811ef95ea ARM: dts: omap5: Fix dual-role mode on Super-Speed port
    183f9ae8c4d2 mlxsw: spectrum_switchdev: Check notification relevance based on upper device
    16ad1c43196a spi: rockchip: initialize dma_slave_config properly
    f28abe5a3695 mac80211: minstrel: fix sampling/reporting of CCK rates in HT mode
    83ea4ccdb9eb mac80211: minstrel: fix CCK rate group streams value
    8bbedf4dffe9 mac80211: minstrel: fix using short preamble CCK rates on HT clients
    5d017065cec9 misc: cxl: Fix possible null pointer dereference
    9089b2f0049e netfilter: nft_compat: do not dump private area
    e6c540bf9786 net: sched: avoid writing on noop_qdisc
    b80939a47413 selftests: forwarding: Have lldpad_app_wait_set() wait for unknown, too
    a119952d4be6 hwmon: (npcm-750-pwm-fan) Change initial pwm target to 255
    4bbc8deedd89 hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros
    5bdad12ab211 hwmon: (pwm-fan) Silence error on probe deferral
    0cb6525b75e1 hwmon: (nct6775) Fix names of DIMM temperature sources
    a58d5770493c hwmon: (k10temp) Support all Family 15h Model 6xh and Model 7xh processors
    1301b861cf50 scsi: arcmsr: clean up clang warning on extraneous parentheses
    b0c75ea8d372 pinctrl: gemini: Fix up TVC clock group
    2a6c8fc0af64 orangefs: rate limit the client not running info message
    336793832f26 x86/mm: Do not warn about PCI BIOS W+X mappings
    1eeb7407d233 ARM: 8802/1: Call syscall_trace_exit even when system call skipped
    e616dd603c29 spi: spidev: Fix OF tree warning logic
    4fabd2e530ab pinctrl: gemini: Mask and set properly
    8aa36b8a7684 spi: fsl-lpspi: Prevent FIFO under/overrun by default
    07ed61a0a711 gpio: syscon: Fix possible NULL ptr usage
    312de5a09d10 net: fix generic XDP to handle if eth header was mangled
    014045888a74 bpf: btf: Fix a missing check bug
    85f996c36e15 x86/kexec: Correct KEXEC_BACKUP_SRC_END off-by-one error
    3f4f4c639f29 lightnvm: pblk: consider max hw sectors supported for max_write_pgs
    d4ab0df8d5dd lightnvm: pblk: fix error handling of pblk_lines_init()
    cdf73455471a lightnvm: do no update csecs and sos on 1.2
    1fb60da4d736 lightnvm: pblk: guarantee mw_cunits on read buffer
    1e9796622bc7 lightnvm: pblk: fix write amplificiation calculation
    d56fe8f59a23 lightnvm: pblk: guarantee emeta on line close
    c7e49f73152f lightnvm: pblk: fix incorrect min_write_pgs
    ced6b5dae1dc lightnvm: pblk: fix rqd.error return value in pblk_blk_erase_sync
    e99956093f70 ALSA: hda/ca0132 - Fix input effect controls for desktop cards
    9c30ea2dda5d media: venus: vdec: fix decoded data size
    5b388c45c3e5 media: cx231xx: fix potential sign-extension overflow on large shift
    4d7cf69b77ce GFS2: Flush the GFS2 delete workqueue before stopping the kernel threads
    1adde6589b4a media: isif: fix a NULL pointer dereference bug
    3404019d6d0f printk: Give error on attempt to set log buffer length to over 2G
    b2d6db3e572a mfd: ti_am335x_tscadc: Keep ADC interface on if child is wakeup capable
    b0c6a78a8a5a backlight: lm3639: Unconditionally call led_classdev_unregister
    94764e3ae569 proc/vmcore: Fix i386 build error of missing copy_oldmem_page_encrypted()
    e78c55ad6657 s390/kasan: avoid user access code instrumentation
    ef5ad4f11e74 s390/kasan: avoid instrumentation of early C code
    5228d07c4f92 s390/kasan: avoid vdso instrumentation
    0046af383099 mmc: mmci: expand startbiterr to irqmask and error check
    322f530fd959 x86/intel_rdt: CBM overlap should also check for overlap with CDP peer
    36cf91317ca9 x86/intel_rdt: Introduce utility to obtain CDP peer
    f9a2a8b8a5d4 mtd: devices: m25p80: Make sure WRITE_EN is issued before each write
    6664533b4fc1 mtd: spi-nor: cadence-quadspi: Use proper enum for dma_[un]map_single
    370dbbc7b5cb media: cx18: Don't check for address of video_dev
    76765353043b media: dw9807-vcm: Fix probe error handling
    96134bbea649 media: dw9714: Fix error handling in probe function
    2103ebde9ac0 platform/x86: mlx-platform: Properly use mlxplat_mlxcpld_msn201x_items
    04d38fa8436b bcache: recal cached_dev_sectors on detach
    65910055b560 bcache: account size of buckets used in uuid write to ca->meta_sectors_written
    16c2d36b1123 reset: Fix potential use-after-free in __of_reset_control_get()
    84b787e35482 fbdev: fix broken menu dependencies
    21bb43c0dd86 fbdev: sbuslib: integer overflow in sbusfb_ioctl_helper()
    e57ba9db8c5f fbdev: sbuslib: use checked version of put_user()
    964cd867ef63 atmel_lcdfb: support native-mode display-timings
    a3a76b5d22f0 mmc: renesas_sdhi_internal_dmac: set scatter/gather max segment size
    e8853ef02e2d mmc: tmio: Fix SCC error detection
    01395b5f089b mmc: renesas_sdhi_internal_dmac: Whitelist r8a774a1
    500c933055e7 x86/fsgsbase/64: Fix ptrace() to read the FS/GS base accurately
    b17ddbdc6035 xsk: proper AF_XDP socket teardown ordering
    29fda86178fe iwlwifi: mvm: don't send keys when entering D3
    d43b7b99fe77 ACPI / SBS: Fix rare oops when removing modules
    7f02606367b3 xfrm: use correct size to initialise sp->ovec
    6b9c4eddb3be crypto: mxs-dcp - Fix AES issues
    70ecd0459d03 crypto: mxs-dcp - Fix SHA null hashes and output length
    fef30612e23c dmaengine: rcar-dmac: set scatter/gather max segment size
    af23231acaf6 x86/olpc: Fix build error with CONFIG_MFD_CS5535=m
    624cd074631a kexec: Allocate decrypted control pages for kdump if SME is enabled
    59e5269c692e remoteproc: qcom: q6v5: Fix a race condition on fatal crash
    4b8c7bce49ca remoteproc: Check for NULL firmwares in sysfs interface
    e4aecc15d7c4 tc-testing: fix build of eBPF programs
    d653bd939cb1 net: hns3: Fix for rx vlan id handle to support Rev 0x21 hardware
    3bef7420e129 soc: fsl: bman_portals: defer probe after bman's probe
    090122baa262 Input: silead - try firmware reload after unsuccessful resume
    c13b00c39464 Input: st1232 - set INPUT_PROP_DIRECT property
    205ae6b06288 i2c: zx2967: use core to detect 'no zero length' quirk
    1698ed9f0e2f i2c: tegra: use core to detect 'no zero length' quirk
    d511166558a4 i2c: qup: use core to detect 'no zero length' quirk
    e0d9c58c49e6 i2c: omap: use core to detect 'no zero length' quirk
    f3afad5d1eff gfs2: slow the deluge of io error messages
    35c8125cbea4 media: cec-gpio: select correct Signal Free Time
    58d0a3dbad2b media: ov5640: fix framerate update
    47dd538e9c44 dmaengine: ioat: fix prototype of ioat_enumerate_channels
    90d73c1cadb8 NFSv4.x: fix lock recovery during delegation recall
    799c98cba071 printk: Correct wrong casting
    e7ff1141b60c i2c: brcmstb: Allow enabling the driver on DSL SoCs
    8b3e444fe8d0 clk: samsung: Use clk_hw API for calling clk framework from clk notifiers
    599d5350f123 clk: samsung: exynos5420: Define CLK_SECKEY gate clock only or Exynos5420
    06da39429640 clk: samsung: Use NOIRQ stage for Exynos5433 clocks suspend/resume
    fe46630cd2a1 qtnfmac: drop error reports for out-of-bounds key indexes
    4ecc631d975c qtnfmac: inform wireless core about supported extended capabilities
    28d5342b2ae4 qtnfmac: pass sgi rate info flag to wireless core
    5554e47a2946 qtnfmac: request userspace to do OBSS scanning if FW can not
    75a1e8dec421 brcmfmac: fix full timeout waiting for action frame on-channel tx
    c01258a2ad7d brcmfmac: reduce timeout for action frame scan
    89cf2472a295 cpu/SMT: State SMT is disabled even with nosmt and without "=force"
    8fce141f4805 mtd: physmap_of: Release resources on error
    d46cd42b4ffa usb: dwc2: disable power_down on rockchip devices
    3ad0531dbe0c USB: serial: cypress_m8: fix interrupt-out transfer length
    24ce099a5388 KVM: PPC: Book3S PR: Exiting split hack mode needs to fixup both PC and LR
    8b6021ca47a3 bnxt_en: return proper error when FW returns HWRM_ERR_CODE_RESOURCE_ACCESS_DENIED
    6e454b0ad02d ALSA: hda/sigmatel - Disable automute for Elo VuPoint
    6925a5afc148 media: i2c: adv748x: Support probing a single output
    a02bad04d110 media: rcar-vin: fix redeclaration of symbol
    14dc7aeef3f4 media: pxa_camera: Fix check for pdev->dev.of_node
    7672ca60a14a media: rc: ir-rc6-decoder: enable toggle bit for Kathrein RCU-676 remote
    01e9e39f4f61 qed: Avoid implicit enum conversion in qed_ooo_submit_tx_buffers
    d1dff747758f ata: ep93xx: Use proper enums for directions
    6a70c66a84e0 powerpc/64s/radix: Explicitly flush ERAT with local LPID invalidation
    9e4649e443e2 powerpc/time: Use clockevents_register_device(), fixing an issue with large decrementer
    d7e546d06182 ASoC: qdsp6: q6asm-dai: checking NULL vs IS_ERR()
    27ab8f1648ac cpuidle: menu: Fix wakeup statistics updates for polling state
    38ad2aa9331b ACPICA: Never run _REG on system_memory and system_IO
    216929d15b2c OPP: Return error on error from dev_pm_opp_get_opp_count()
    3d0c72f99efc msm/gpu/a6xx: Force of_dma_configure to setup DMA for GMU
    674b223d7a48 rpmsg: glink: smem: Support rx peak for size less than 4 bytes
    ec9fc981de57 IB/mlx4: Avoid implicit enumerated type conversion
    d5d78049b7a4 RDMA/hns: Limit the size of extend sge of sq
    010af7a8d0ae RDMA/hns: Bugfix for CM test
    5b7064adfb4b RDMA/hns: Submit bad wr when post send wr exception
    af76265532a8 RDMA/hns: Bugfix for reserved qp number
    350703fae672 IB/rxe: avoid srq memory leak
    e3db306d1fda IB/mthca: Fix error return code in __mthca_init_one()
    1b86b8ad6e47 ixgbe: Fix crash with VFs and flow director on interface flap
    0e1fd69cff75 i40e: Use proper enum in i40e_ndo_set_vf_link_state
    22b8d7e3bcb5 ixgbe: Fix ixgbe TX hangs with XDP_TX beyond queue limit
    b69cfc4f2665 md: allow metadata updates while suspending an array - fix
    4aa110048087 ice: Fix forward to queue group logic
    d97a02b84879 clocksource/drivers/sh_cmt: Fix clocksource width for 32-bit machines
    31fb5ea6ed1b clocksource/drivers/sh_cmt: Fixup for 64-bit machines
    0e8855ba9f9a tools: PCI: Fix compilation warnings
    9372023e10ee PM / hibernate: Check the success of generating md5 digest before hibernation
    ed896ddfae94 mtd: rawnand: sh_flctl: Use proper enum for flctl_dma_fifo0_transfer
    83cda9ea1876 ARM: dts: at91: sama5d2_ptc_ek: fix bootloader env offsets
    10551e574d79 ARM: dts: at91: at91sam9x5cm: fix addressable nand flash size
    825d176a1049 ARM: dts: at91: sama5d4_xplained: fix addressable nand flash size
    ab9928588283 powerpc/xive: Move a dereference below a NULL test
    38d7fa28157e powerpc/pseries: Fix how we iterate over the DTL entries
    a3576a228404 powerpc/pseries: Fix DTL buffer registration
    b28aa87d081c cxgb4: Use proper enum in IEEE_FAUX_SYNC
    efdacf2b7aa7 cxgb4: Use proper enum in cxgb4_dcb_handle_fw_update
    743ccf759e8e mei: samples: fix a signedness bug in amt_host_if_call()
    cc7d996a4428 x86/PCI: Apply VMD's AERSID fixup generically
    6cedfaffb4ac sunrpc: Fix connect metrics
    7e4602eac666 clk: keystone: Enable TISCI clocks if K3_ARCH
    6c487c0e877a ext4: fix build error when DX_DEBUG is defined
    f2877a3c332d ALSA: hda: Fix mismatch for register mask and value in ext controller.
    ae3765a0a33d dmaengine: timb_dma: Use proper enum in td_prep_slave_sg
    0c21aa9b5651 dmaengine: ep93xx: Return proper enum in ep93xx_dma_chan_direction
    671ce9f892b9 printk: CON_PRINTBUFFER console registration is a bit racy
    cd120df118d7 printk: Do not miss new messages when replaying the log
    5a6f7274e67b KVM: PPC: Inform the userspace about TCE update failures
    38374aa3c916 watchdog: w83627hf_wdt: Support NCT6796D, NCT6797D, NCT6798D
    96505abd2435 watchdog: sama5d4: fix timeout-sec usage
    26d6e542dc47 watchdog: renesas_wdt: stop when unregistering
    f4cfb7eeae62 watchdog: core: fix null pointer dereference when releasing cdev
    a9f36455edc1 irqchip/irq-mvebu-icu: Fix wrong private data retrieval
    be4f5457a5fd nl80211: Fix a GET_KEY reply attribute
    21ba66937e0d usb: dwc3: gadget: Check ENBLSLPM before sending ep command
    639fce0bc8b5 usb: gadget: udc: fotg210-udc: Fix a sleep-in-atomic-context bug in fotg210_get_status()
    f22a4d8cf049 selftests/tls: Fix recv(MSG_PEEK) & splice() test cases
    475398b72984 ath9k: fix reporting calculated new FFT upper max
    f6ec4fccbf9a PM / devfreq: stopping the governor before device_unregister()
    fc491a1e77be PM / devfreq: Fix handling of min/max_freq == 0
    b5add975c871 PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.
    5f5a8d36749f ata: ahci_brcm: Allow using driver or DSL SoCs
    4cfcb5379a9c rtlwifi: btcoex: Use proper enumerated types for Wi-Fi only interface
    e5895e41aeb3 ath10k: fix vdev-start timeout on error
    06cb99e6399d arm64/numa: Report correct memblock range for the dummy node
    256a29480733 kvm: arm/arm64: Fix stage2_flush_memslot for 4 level page table
    bae080e72e92 iommu/arm-smmu-v3: Fix unexpected CMD_SYNC timeout
    2bab3df8f506 iommu/io-pgtable-arm: Fix race handling in split_blk_unmap()
    741a445a88e4 mt76: fix handling ps-poll frames
    ddb4299f1d78 mt76x2: disable WLAN core before probe
    b14825a5c652 mt76x2: fix tx power configuration for VHT mcs 9
    449b9ae3504c IB/hfi1: Ensure ucast_dlid access doesnt exceed bounds
    e0dee1c839e3 IB/hfi1: Error path MAD response size is incorrect
    8d93707e7195 f2fs: keep lazytime on remount
    a5f7bf0379d3 ACPI / LPSS: Resume BYT/CHT I2C controllers from resume_noirq
    aa39d53f2b89 ACPI / LPSS: Make acpi_lpss_find_device() also find PCI devices
    9372a40b54d0 SUNRPC: Fix priority queue fairness
    43876b1ce42b tcp: up initial rmem to 128KB and SYN rwin to around 64KB
    d2cacb6ac4ff ARM: dts: sun8i: h3: bpi-m2-plus: Fix address for external RGMII Ethernet PHY
    ed220d3dcc79 ARM: dts: sun8i: h3-h5: ir register size should be the whole memory block
    ac02379889e2 f2fs: return correct errno in f2fs_gc
    7cbac9d598a7 net: hns3: Fix loss of coal configuration while doing reset
    af98283da9e9 net: hns3: Fix for netdev not up problem when setting mtu
    7a1f314e3c80 ARM: dts: omap5: enable OTG role for DWC3 controller
    789d29044793 ARM: dts: dra7: Enable workaround for errata i870 in PCIe host mode
    6d286faeee74 net: xen-netback: fix return type of ndo_start_xmit function
    c234566f1ea0 net: ovs: fix return type of ndo_start_xmit function
    d51d9605888d bpf, x32: Fix bug for BPF_JMP | {BPF_JSGT, BPF_JSLE, BPF_JSLT, BPF_JSGE}
    f3c40792cf4b bpf, x32: Fix bug with ALU64 {LSH, RSH, ARSH} BPF_K shift by 0
    a085f797449e bpf, x32: Fix bug with ALU64 {LSH, RSH, ARSH} BPF_X shift by 0
    860a7d18b9e6 bpf, x32: Fix bug for BPF_ALU64 | BPF_NEG
    03543b9c5573 fbdev: Ditch fb_edid_add_monspecs
    703662598b9c arm64: uaccess: Ensure PAN is re-enabled after unhandled uaccess fault
    f8b09a043685 mm/memory_hotplug: fix updating the node span
    6631def3ee38 mm/memory_hotplug: don't access uninitialized memmaps in shrink_pgdat_span()
    a16a3669273b idr: Fix idr_get_next race with idr_remove
    4c62337d8f17 net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size()
    17a82bc67728 Revert "OPP: Protect dev_list with opp_table lock"
    4f4ab0b49cf2 tee: optee: add missing of_node_put after of_device_is_available
    2008d0e3d364 i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()
    976e944e005f spi: mediatek: use correct mata->xfer_len when in fifo transfer
    c63ee2939dc1 Linux 4.19.85
    e99d64837815 slcan: Fix memory leak in error path
    e4cc9c81e230 memfd: Use radix_tree_deref_slot_protected to avoid the warning.
    914834a73b16 net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused
    2ed924f2782f s390/vdso: correct vdso mapping for compat tasks
    1b904b2eb9c1 media: ov2680: fix null dereference at power on
    0c3e32230bcc IB/iser: Fix possible NULL deref at iser_inv_desc()
    d7b412e1448e fuse: use READ_ONCE on congestion_threshold and max_background
    2e72489c822e usb: usbtmc: uninitialized symbol 'actual' in usbtmc_ioctl_clear
    eb9b6c203870 usb: xhci-mtk: fix ISOC error when interval is zero
    8ddec6aaad86 netfilter: masquerade: don't flush all conntracks if only one address deleted on device
    ba8c4cc746a5 rtc: armada38x: fix possible race condition
    44bb1b1256b5 rtc: tx4939: fixup nvmem name and register size
    e7ab2bab7e60 rtc: isl1208: avoid possible sysfs race
    70f0ead5c6af ARM: dts: lpc32xx: Fix SPI controller node names
    8e359bce724c arm64: dts: lg: Fix SPI controller node names
    f52a34b5b111 arm64: dts: amd: Fix SPI bus warnings
    b26edaa53496 scsi: NCR5380: Check for bus reset
    080b37aacd2b scsi: NCR5380: Handle BUS FREE during reselection
    aa45f4ab86a2 scsi: NCR5380: Don't call dsprintk() following reselection interrupt
    23635cf271a3 scsi: NCR5380: Don't clear busy flag when abort fails
    aeb0ed2e5bb9 scsi: NCR5380: Check for invalid reselection target
    98c6d8f8a401 scsi: NCR5380: Use DRIVER_SENSE to indicate valid sense data
    1a46e4d3da31 scsi: NCR5380: Withhold disconnect privilege for REQUEST SENSE
    624f60251f1a scsi: NCR5380: Have NCR5380_select() return a bool
    873506e566ef scsi: NCR5380: Clear all unissued commands on host reset
    fe5ef5fe3e19 iwlwifi: mvm: Allow TKIP for AP mode
    c4a3dcb0a273 iwlwifi: mvm: use correct FIFO length
    d395b6f51cf7 iwlwifi: pcie: fit reclaim msg to MAX_MSG_LEN
    08d2000d2162 iwlwifi: pcie: gen2: build A-MSDU only for GSO
    f4f0909f3d3f iwlwifi: api: annotate compressed BA notif array sizes
    e455ecaf52da iwlwifi: pcie: read correct prph address for newer devices
    c5eafde04ad3 iwlwifi: fix non_shared_ant for 22000 devices
    f73c75560ffd iwlwifi: dbg: don't crash if the firmware crashes in the middle of a debug dump
    98ca4f397feb crypto: fix a memory leak in rsa-kcs1pad's encryption mode
    975b3c8dd182 crypto: s5p-sss: Fix Fix argument list alignment
    ef089d9b58a7 crypto: s5p-sss: Fix race in error handling
    d34465e722e7 x86/hyperv: Suppress "PCI: Fatal: No config space access function found"
    23a4059cd6b8 Bluetooth: btrsi: fix bt tx timeout issue
    245b2765e87c Bluetooth: L2CAP: Detect if remote is not able to use the whole MPS
    2c8946462f07 Bluetooth: hci_serdev: clear HCI_UART_PROTO_READY to avoid closing proto races
    f416fe070ec1 firmware: dell_rbu: Make payload memory uncachable
    5d3675e3e6d1 ARM: dts: realview: Fix SPI controller node names
    57b78e41a397 EDAC: Raise the maximum number of memory controllers
    352668d32cd5 RDMA: Fix dependencies for rdma_user_mmap_io
    36ffc9a76df9 f2fs: mark inode dirty explicitly in recover_inode()
    a4bd303d6774 f2fs: fix to recover inode's project id during POR
    7bae8b6b73e4 f2fs: update i_size after DIO completion
    9de276a804c7 PCI/ERR: Run error recovery callbacks for all affected devices
    8738fd312e63 net: faraday: fix return type of ndo_start_xmit function
    8ff333f3f819 net: smsc: fix return type of ndo_start_xmit function
    4481669a3a95 ARM: dts: paz00: fix wakeup gpio keycode
    4e9cf62e8ffb ARM: tegra: colibri_t30: fix mcp2515 can controller interrupt polarity
    63c28c08e485 ARM: tegra: apalis_t30: fix mcp2515 can controller interrupt polarity
    2241b82d7b3f ARM: tegra: apalis_t30: fix mmc1 cmd pull-up
    1717eca134f2 ARM: dts: tegra20: restore address order
    619f46726e66 ARM: dts: tegra30: fix xcvr-setup-use-fuses
    70c4b0fb4fd5 arm64: tegra: I2C on Tegra194 is not compatible with Tegra114
    e821b710b58d ARM: dts: imx51-zii-rdu1: Fix the rtc compatible string
    a09b6731c4dd arm64: dts: fsl: Fix I2C and SPI bus warnings
    2d6b885ba741 phy: lantiq: Fix compile warning
    6fce50c100c8 f2fs: fix remount problem of option io_bits
    c4a33c4ecc1f scsi: libsas: always unregister the old device if going to discover new
    2f9d0f703b9c iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs
    1ae5bfee6cff vfio/pci: Mask buggy SR-IOV VF INTx support
    dde3433de9a0 vfio/pci: Fix potential memory leak in vfio_msi_cap_len
    86f886e91dcf vmbus: keep pointer to ring buffer page
    728a7552dc49 misc: genwqe: should return proper error value.
    6707b1ba53be misc: kgdbts: Fix restrict error
    890bee675729 silmbus: ngd: register controller after power up.
    932980ed5b77 slimbus: ngd: return proper error code instead of zero
    9874abd5c878 slimbus: ngd: register ngd driver only once.
    614744f4e80e coresight: dynamic-replicator: Handle multiple connections
    36aa9cd28c59 coresight: tmc: Fix byte-address alignment for RRP
    0bb87d413aef coresight: etm4x: Configure EL2 exception level when kernel is running in HYP
    a0e0ec0a5544 coresight: tmc-etr: Handle driver mode specific ETR buffers
    1099665125ed coresight: perf: Disable trace path upon source error
    87e382c3f706 coresight: perf: Fix per cpu path management
    25deeb3c1b9f coresight: Fix handling of sinks
    59a488998caf coresight: Use ERR_CAST instead of ERR_PTR
    240293e02123 usb: gadget: uvc: Only halt video streaming endpoint in bulk mode
    bb7c36e91d45 usb: gadget: uvc: Factor out video USB request queueing
    c4635c27d3ac ARM: dts: imx6ull: update vdd_soc voltage for 900MHz operating point
    a9c11660389c phy: phy-twl4030-usb: fix denied runtime access
    6e176dd0e4c2 phy: renesas: rcar-gen3-usb2: fix vbus_ctrl for role sysfs
    f0525581df5f phy: brcm-sata: allow PHY_BRCM_SATA driver to be built for DSL SoCs
    ff0eabfaf4a4 ARM: at91: pm: call put_device instead of of_node_put in at91_pm_config_ws
    1b23c28d87e7 gpiolib: Fix gpio_direction_* for single direction GPIOs
    ec0b30347e4a i2c: aspeed: fix invalid clock parameters for very large divisors
    de2875336ee8 ARM: dts: exynos: Correct audio subsystem parent clock on Peach Chromebooks
    4e6c65624090 usb: gadget: uvc: configfs: Sort frame intervals upon writing
    d036103870c6 usb: gadget: uvc: configfs: Prevent format changes after linking header
    e6e1ad1e2537 usb: gadget: uvc: configfs: Drop leaked references to config items
    b7ffda42d720 ARM: dts: rockchip: explicitly set vcc_sd0 pin to gpio on rk3188-radxarock
    0b08daf034cc media: davinci: Fix implicit enum conversion warning
    0994d0cb86ec media: au0828: Fix incorrect error messages
    0e63f5db54d8 media: pci: ivtv: Fix a sleep-in-atomic-context bug in ivtv_yuv_init()
    2dacea472335 media: imx: work around false-positive warning, again
    1b73ea8377da mlxsw: Make MLXSW_SP1_FWREV_MINOR a hard requirement
    9d2ce0611ad5 arm64: dts: rockchip: Fix microSD in rk3399 sapphire board
    46a9bbe9d579 MIPS: kexec: Relax memory restriction
    3b9528b302a6 EDAC: Correct DIMM capacity unit symbol
    e897dd4cfdde x86/CPU: Change query logic so CPUID is enabled before testing
    d26ad73be70f x86/CPU: Use correct macros for Cyrix calls
    fd3f592b2af6 net: freescale: fix return type of ndo_start_xmit function
    cab175f881c5 net: micrel: fix return type of ndo_start_xmit function
    590ee2e0aec7 net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider
    73cb54858021 samples/bpf: fix compilation failure
    3536c05af6f4 PCI/ERR: Use slot reset if available
    0729c5944eee PCI/AER: Don't read upstream ports below fatal errors
    f3f55d83ea0d PCI/AER: Take reference on error devices
    40ebd8b31fea bnx2x: Ignore bandwidth attention in single function mode
    0769f445afa4 ARM: dts: stm32: Fix SPI controller node names
    c6305dfb214b ARM: dts: clearfog: fix sdhci supply property name
    b939d8b914d8 ARM: dts: stm32: enable display on stm32mp157c-ev1 board
    098e12f385f9 x86/mce-inject: Reset injection struct after injection
    aa190837bec5 ARM: dts: marvell: Fix SPI and I2C bus warnings
    ccc8bf41dac8 crypto: arm/crc32 - avoid warning when compiling with Clang
    9e70da12d01f cpufeature: avoid warning when compiling with clang
    ad28c2ba4318 crypto: chacha20 - Fix chacha20_block() keystream alignment (again)
    af4749d23d46 spi: pic32: Use proper enum in dmaengine_prep_slave_rg
    c2f76a19fbc8 ARM: dts: ste: Fix SPI controller node names
    4d22878d5894 ARM: dts: ux500: Fix LCDA clock line muxing
    8be4d596d3f2 ARM: dts: ux500: Correct SCU unit address
    dfc81686a642 f2fs: fix to recover inode's uid/gid during POR
    c783946ea9b1 f2fs: avoid infinite loop in f2fs_alloc_nid
    caab324d1b01 ARM: dts: ti: Fix SPI and I2C bus warnings
    2cf6352a6d4c ARM: dts: am335x-evm: fix number of cpsw
    1eeee2fd2e0c PCI: portdrv: Initialize service drivers directly
    38bee3f3f280 mlxsw: spectrum: Init shaper for TCs 8..15
    636cbdec5cf4 brcmsmac: Use kvmalloc() for ucode allocations
    2980b6a81378 brcmfmac: increase buffer for obtaining firmware capabilities
    59d6e59f32cc s390/vdso: correct CFI annotations of vDSO functions
    84bfa03445bc s390/vdso: avoid 64-bit vdso mapping for compat tasks
    3d510bdf35c2 s390/zcrypt: enable AP bus scan without a valid default domain
    5e9923e85e1c usb: usbtmc: Fix ioctl USBTMC_IOCTL_ABORT_BULK_OUT
    92aeb3756c43 usb: chipidea: Fix otg event handler
    979f541851d9 usb: chipidea: imx: enable OTG overcurrent in case USB subsystem is already started
    b39e733da3f8 nfp: provide a better warning when ring allocation fails
    883843b5a912 net: hns3: Fix parameter type for q_id in hclge_tm_q_to_qs_map_cfg()
    a1b2c39f3ec7 net: hns3: Fix client initialize state issue when roce client initialize failed
    20f2b72faff0 net: hns3: Clear client pointer when initialize client failed or unintialize finished
    ae95237256de net: hns3: Fix cmdq registers initialization issue for vf
    110de23fc502 net: hns3: Fix for setting speed for phy failed problem
    bd23121daecf net: sun: fix return type of ndo_start_xmit function
    5d52c10c345d net: amd: fix return type of ndo_start_xmit function
    0cd3edaf82e6 net: broadcom: fix return type of ndo_start_xmit function
    63a0e0512dba net: xilinx: fix return type of ndo_start_xmit function
    df9f5c799d85 net: toshiba: fix return type of ndo_start_xmit function
    e50d7274104c net: marvell: fix return type of ndo_start_xmit function
    28fae2d588be net: mvpp2: fix the number of queues per cpu for PPv2.2
    0ede78b3576c power: supply: twl4030_charger: disable eoc interrupt on linear charge
    773fb69e4307 power: supply: twl4030_charger: fix charging current out-of-bounds
    0729f87b840a libfdt: Ensure INT_MAX is defined in libfdt_env.h
    e000de3f01c5 of/unittest: Fix I2C bus unit-address error
    4c64ce947cfa OPP: Protect dev_list with opp_table lock
    51e509caf5fa ARM: dts: atmel: Fix I2C and SPI bus warnings
    7cfb3b04d096 RDMA/i40iw: Fix incorrect iterator type
    eb355ccfdf1d powerpc: Fix duplicate const clang warning in user access code
    e7b37640916f powerpc/pseries: Disable CPU hotplug across migrations
    9271304c26fc powerpc/pseries/memory-hotplug: Only update DT once per memory DLPAR request
    0ab2545aa404 powerpc/64s/hash: Fix stab_rr off by one initialization
    a3581509e890 selftests/powerpc: Do not fail with reschedule
    089b169ceb80 powerpc/iommu: Avoid derefence before pointer check
    13d5bc50f405 net: ibm: fix return type of ndo_start_xmit function
    efe22c12087d net: cavium: fix return type of ndo_start_xmit function
    279a4f77546a net: hns3: fix return type of ndo_start_xmit function
    dd4b87a945c1 ipmi: fix return value of ipmi_set_my_LUN
    ea944c71360f ipmi:dmi: Ignore IPMI SMBIOS entries with a zero base address
    438bf726def0 ipmi_si: fix potential integer overflow on large shift
    78538bae1dab ipmi_si_pci: fix NULL device in ipmi_si error message
    5ab64c1633f6 ASoC: rt5682: Fix the boost volume at the begining of playback
    6237e9d0715a spi: mediatek: Don't modify spi_transfer when transfer.
    779c96ef3fac spi/bcm63xx-hsspi: keep pll clk enabled
    eaa4d5ac4403 samples/bpf: fix a compilation failure
    feb52253d738 arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2
    1ea4603cc812 tty: serial: qcom_geni_serial: Fix serial when not used as console
    87153f7a04c9 serial: mxs-auart: Fix potential infinite loop
    400caa3d02ea serial: samsung: Enable baud clock for UART reset procedure in resume
    30cfa3ebc0ed serial: uartps: Fix suspend functionality
    bad4e6d3d40d ARM: dts: xilinx: Fix I2C and SPI bus warnings
    d15e5038213e PCI: mediatek: Fix unchecked return value
    80ec7fcb04a0 net: socionext: Fix two sleep-in-atomic-context bugs in ave_rxfifo_reset()
    176f6203a4f4 PCI/ACPI: Correct error message for ASPM disabling
    525552a0e849 media: ov2680: don't register the v4l2 subdevice before checking chip ID
    f4683c89808f media: vsp1: Fix YCbCr planar formats pitch calculation
    ee5a1460f271 media: vsp1: Fix vsp1_regs.h license header
    2d7578285958 s390/qeth: invoke softirqs after napi_schedule()
    66fb291b264d s390/qeth: uninstall IRQ handler on device removal
    ccc1e600844d ath9k: Fix a locking bug in ath9k_add_interface()
    e97d09277b77 netfilter: nf_tables: avoid BUG_ON usage
    d1440f1a38eb ACPI / LPSS: Exclude I2C busses shared with PUNIT from pmc_atom_d3_mask
    75fd1aec33c6 arm64: dts: rockchip: Fix I2C bus unit-address error on rk3399-puma-haikou
    5fc9af407fc5 ARM: dts: rockchip: Fix erroneous SPI bus dtc warnings on rk3036
    0592c2178e3c scsi: ufshcd: Fix NULL pointer dereference for in ufshcd_init
    6745591c8da9 ip_gre: fix parsing gre header in ipgre_err
    ada2a0f1ac54 kernfs: Fix range checks in kernfs_get_target_path
    5fba81510697 component: fix loop condition to call unbind() if bind() fails
    925c19a8c6bb power: supply: max8998-charger: Fix platform data retrieval
    82d8a34470e9 power: reset: at91-poweroff: do not procede if at91_shdwc is allocated
    1fb3d279a384 power: supply: ab8500_fg: silence uninitialized variable warnings
    c9398259cf85 arm64: dts: meson: Fix erroneous SPI bus warnings
    89f4d27c1bcd blok, bfq: do not plug I/O if all queues are weight-raised
    6c9a79651bff block, bfq: inject other-queue I/O into seeky idle queues on NCQ flash
    6d7757f04866 arm64: fix for bad_mode() handler to always result in panic
    7f49a2210e85 cxgb4: Fix endianness issue in t4_fwcache()
    b0cb2d8164d0 android: binder: no outgoing transaction when thread todo has transaction
    31e470f92d9e ARM: dts: sun9i: Fix I2C bus warnings
    0989aa65bc37 pinctrl: at91: don't use the same irqchip with multiple gpiochips
    d1b9d321df35 ARM: dts: sunxi: Fix I2C bus warnings
    8ac08053744c ARM: dts: socfpga: Fix I2C bus unit-address error
    e70ccd8a13a9 powerpc/vdso: Correct call frame information
    11d7842812f8 ARM: dts: aspeed: Fix I2C bus warnings
    5a8130ed237f ARM: dts: bcm: Fix SPI bus warnings
    08ffefc8e7ed arm64: dts: broadcom: Fix I2C and SPI bus warnings
    174e8262f08a drivers: qcom: rpmh-rsc: clear wait_for_compl after use
    09c8a33ed766 soc: qcom: apr: Avoid string overflow
    6651ecf92f3c soc: qcom: wcnss_ctrl: Avoid string overflow
    4a2c4d1a0b6b soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples
    331ed266987e soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()
    b0826d4774c2 ARM: dts: qcom: ipq4019: fix cpu0's qcom,saw2 reg value
    9a484516a410 llc: avoid blocking in llc_sap_close()
    50e40ebcaa32 pinctrl: at91-pio4: fix has_config check in atmel_pctl_dt_subnode_to_map()
    3f57f7387db2 arm64: dts: renesas: r8a77965: Fix clock/reset for usb2_phy1
    7ed1974d2b03 arm64: dts: renesas: r8a77965: Fix HS-USB compatible
    dc521bf8ffda arm64: dts: renesas: r8a77965: Attach the SYS-DMAC to the IPMMU
    1badf45f08b3 arm64: dts: renesas: salvator-common: adv748x: Override secondary addresses
    20f93eb9194c ALSA: intel8x0m: Register irq handler after register initializations
    e80e83fb0106 arm64: dts: meson-axg: use the proper compatible for ethmac
    2694107888a5 arm64: dts: meson: libretech: update board model
    3804f9dd8f76 net: bcmgenet: Fix speed selection for reverse MII
    914282c62ab2 media: dvb: fix compat ioctl translation
    03056f8c725a media: fix: media: pci: meye: validate offset to avoid arbitrary access
    fe384ab1496c ALSA: hda: Fix implicit definition of pci_iomap() on SH
    6281d021bbb3 media: dt-bindings: adv748x: Fix decimal unit addresses
    88e9f8198dd5 nvmem: core: return error code instead of NULL from nvmem_device_get
    b0d54e40f3c4 Drivers: hv: vmbus: Fix synic per-cpu context initialization
    a1d374ea1e95 net: aquantia: fix hw_atl_utils_fw_upload_dwords
    a9cab0fe6e26 kprobes: Don't call BUG_ON() if there is a kprobe in use on free list
    7aea0bd886ae scsi: pm80xx: Fixed system hang issue during kexec boot
    a66a544dca32 scsi: pm80xx: Corrected dma_unmap_sg() parameter
    ac892349e21b ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set
    86d5ceaea04c scsi: sym53c8xx: fix NULL pointer dereference panic in sym_int_sir()
    66b2e4c7afd0 scsi: lpfc: Fix errors in log messages.
    87c32dbd7eff scsi: lpfc: Correct invalid EQ doorbell write on if_type=6
    8caed6a5d385 scsi: lpfc: Fix GFT_ID and PRLI logic for RSCN
    050e019c2d69 scsi: qla2xxx: Fix duplicate switch's Nport ID entries
    c7ddd7ba1d05 scsi: qla2xxx: Fix dropped srb resource.
    8c32664a6a0d scsi: qla2xxx: Fix port speed display on chip reset
    3e3a2c5c4569 scsi: qla2xxx: Check for Register disconnect
    3a7ec92a5b2a scsi: qla2xxx: Increase abort timeout value
    5320b946687a scsi: qla2xxx: Fix deadlock between ATIO and HW lock
    6f6e01ff7413 scsi: qla2xxx: Terminate Plogi/PRLI if WWN is 0
    f91811dd9501 scsi: qla2xxx: Defer chip reset until target mode is enabled
    667bdc46aa4e scsi: qla2xxx: Fix iIDMA error
    ca35c5a1cb21 scsi: qla2xxx: Use correct qpair for ABTS/CMD
    a1f14df33c05 f2fs: fix setattr project check upon fssetxattr ioctl
    7b55102cdc61 f2fs: fix memory leak of percpu counter in fill_super()
    883037308018 f2fs: fix memory leak of write_io in fill_super()
    e5b515f56626 signal: Properly deliver SIGSEGV from x86 uprobes
    91c3a88054c1 signal: Properly deliver SIGILL from uprobes
    3b5681d39fa4 signal: Always ignore SIGKILL and SIGSTOP sent to the global init
    93ae4ded2abe IB/hfi1: Missing return value in error path for user sdma
    45d0ddf97448 RDMA/hns: Fix an error code in hns_roce_v2_init_eq_table()
    8edddc2cf3c1 dmaengine: at_xdmac: remove a stray bottom half unlock
    9234fbbd7782 ath9k: add back support for using active monitor interfaces for tx99
    82663f99cbdf rtc: pl030: fix possible race condition
    5a869e9828e8 rtc: mt6397: fix possible race condition
    0773f03aebdd EDAC, sb_edac: Return early on ADDRV bit and address type test
    fc7be6308364 dmaengine: dma-jz4780: Further residue status fix
    f6d4561cae3a dmaengine: dma-jz4780: Don't depend on MACH_JZ4780
    a34ea3ddc763 usb: mtu3: disable vbus rise/fall interrupts of ltssm
    a5d1ffee2f2f ARM: dts: exynos: Disable pull control for PMIC IRQ line on Artik5 board
    67e477d8eaa0 arm64: dts: rockchip: Fix VCC5V0_HOST_EN on rk3399-sapphire
    4c884128b414 firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings
    d786bf93f0c5 sched/debug: Use symbolic names for task state constants
    e4e522609854 sched/debug: Explicitly cast sched_feat() to bool
    0ddcbbf4cd47 failover: Fix error return code in net_failover_create
    eca5b74e0080 f2fs: submit bio after shutdown
    0f9c9a216288 ARM: dts: omap3-gta04: keep vpll2 always on
    d59817b0ca62 ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
    6b268c233df7 ARM: dts: omap3-gta04: fix touchscreen tsc2007
    96907aa1ab3c ARM: dts: omap3-gta04: tvout: enable as display1 alias
    8f03a5116e9d ARM: dts: omap3-gta04: fixes for tvout / venc
    5cacb026fe26 ARM: dts: omap3-gta04: give spi_lcd node a label so that we can overwrite in other DTS files
    69116e3bae2b of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC
    cc5f462c1b08 ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA
    3d5d2f7806a9 ASoC: Intel: hdac_hdmi: Limit sampling rates at dai creation
    0376916b7b2c ASoC: dapm: Avoid uninitialised variable warning
    0204720dde67 udf: Fix crash during mount
    52cda4c1d9cd mips: txx9: fix iounmap related issue
    f63587cbb091 RDMA/core: Follow correct unregister order between sysfs and cgroup
    6b827d38cead RDMA/core: Rate limit MAD error messages
    a618cca0438b IB/ipoib: Ensure that MTU isn't less than minimum permitted
    2543eeba256a IB/mlx5: Don't hold spin lock while checking device state
    4d8d651e1c5f i2c: mediatek: Use DMA safe buffers for i2c transactions
    d0d8f0efb6bd ath10k: wmi: disable softirq's while calling ieee80211_rx
    14c9bc4be084 ARM: dts: exynos: Disable pull control for S5M8767 PMIC
    588822fcb313 ath10k: avoid possible memory access violation
    34293775f117 ASoC: sgtl5000: avoid division by zero if lo_vag is zero
    6cbd0932ab9a rtnetlink: move type calculation out of loop
    4b702fdd6e7e net: lan78xx: Bail out if lan78xx_get_endpoints fails
    23ad83c399b0 f2fs: avoid wrong decrypted data from disk
    b6410b95c224 cfg80211: validate wmm rule when setting
    8d705195a9a3 mac80211: fix saving a few HE values
    4d146d72687e qxl: fix null-pointer crash during suspend
    f5ee703ff92c IB/mlx5: Change TX affinity assignment in RoCE LAG mode
    5128ea974c22 mtd: rawnand: qcom: don't include dma-direct.h
    d6ebf70120c6 mtd: rawnand: fsl_ifc: fixup SRAM init for newer ctrl versions
    29535bafb64b mtd: rawnand: fsl_ifc: check result of SRAM initialization
    6ae8c86ee458 mtd: rawnand: marvell: use regmap_update_bits() for syscon access
    6c7644ad22ae ARM: dts: meson8b: fix the clock controller register size
    e39779f6ea67 ARM: dts: meson8: fix the clock controller register size
    6da9a4a98215 net: phy: mscc: read 'vsc8531, edge-slowdown' as an u32
    77f9e263e296 net: phy: mscc: read 'vsc8531,vddmac' as an u32
    5dc1cbcff700 net/mlx5: Fix atomic_mode enum values
    b5f6d6de5b12 net: hns3: Change the dst mac addr of loopback packet
    f995b2efa439 net: hns3: Fix for loopback selftest failed problem
    d01caf35564c net: hns3: Fix error of checking used vlan id
    4aea8f76727e net: hns3: Fix for multicast failure
    e5f48f8eff66 ASoC: rsnd: ssi: Fix issue in dma data address assignment
    0b8e8bddc5c0 soc: imx: gpc: fix PDN delay
    7f88d806443f mt76: Fix comparisons with invalid hardware key index
    1f54ec5b3047 brcmfmac: fix wrong strnchr usage
    f05f8607622c mwifex: free rx_cmd skb in suspended state
    6c27b9267a84 mwifiex: do no submit URB in suspended state
    cd554b025c09 rtl8187: Fix warning generated when strncpy() destination length matches the sixe argument
    c495a8c78b50 ARM: dts: pxa: fix power i2c base address
    72e13203c56d ARM: dts: pxa: fix the rtc controller
    fe9048c7bb38 media: ov772x: Disable clk on error path
    b489c1e010e4 media: i2c: Fix pm_runtime_get_if_in_use() usage in sensor drivers
    5a21c7a0b592 media: vicodec: fix out-of-range values when decoding
    17743861edc7 iwlwifi: mvm: avoid sending too many BARs
    75de80e11e6b iwlwifi: don't WARN on trying to dump dead firmware
    ecedae02e89d iwlwifi: drop packets with bad status in CD
    02adbecf542e IB/rxe: fixes for rdma read retry
    cad889676bdb IB/rxe: avoid back-to-back retries
    ac0ab821c4d5 i40e: Prevent deleting MAC address from VF when set by PF
    712d35e0d2c1 i40evf: cancel workqueue sync for adminq when a VF is removed
    e5d3afbe3a5c i40e: hold the rtnl lock on clearing interrupt scheme
    f9a84bbd3ca6 i40evf: Don't enable vlan stripping when rx offload is turned on
    fe301cf64f7e i40e: Check and correct speed values for link on open
    8d7e6ab3b5d2 i40evf: set IFF_UNICAST_FLT flag for the VF
    015fc5251996 i40e: use correct length for strncpy
    a90fcbdb9b22 i40evf: Validate the number of queues a PF sends
    2da61f212f4d ARM: dts: exynos: Fix regulators configuration on Peach Pi/Pit Chromebooks
    d4e5c8aeb198 arm64: dts: stratix10: i2c clock running out of spec
    b0bac46b52a9 liquidio: fix race condition in instruction completion processing
    b2e427c268f3 ARM: dts: exynos: Fix sound in Snow-rev5 Chromebook
    0b53b56287ab ARM: dts: exynos: Fix HDMI-HPD line handling on Arndale
    0baa3fe5805e ARM: dts: exynos: Use i2c-gpio for HDMI-DDC on Arndale
    8e6acc5ee14d MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3
    7c68184fced7 pinctrl: ingenic: Probe driver at subsys_initcall
    8ddea21d4c0b ASoC: AMD: Change MCLK to 48Mhz
    bdb7368ac333 ASoC: meson: axg-fifo: report interrupt request failure
    aac9381b2ca8 ASoC: dpcm: Properly initialise hw->rate_max
    ac66c0c470a3 ASoC: dapm: Don't fail creating new DAPM control on NULL pinctrl
    d3a45d4d6f2d ice: Fix and update driver version string
    48b128cddb91 gfs2: Don't set GFS2_RDF_UPTODATE when the lvb is updated
    9ca72984d7c0 ice: Prevent control queue operations during reset
    a881088f512e ice: Update request resource command to latest specification
    f71230e6898e ath10k: limit available channels via DT ieee80211-freq-limit
    8cad5d80f8d0 wil6210: fix invalid memory access for rx_buff_mgmt debugfs
    bcaabaa75eeb wil6210: prevent usage of tx ring 0 for eDMA
    acf041edec0a wil6210: set edma variables only for Talyn-MB devices
    be039c973093 wil6210: drop Rx multicast packets that are looped-back to STA
    1b0581bf379f ath9k: fix tx99 with monitor mode interface
    a618e2069783 ath10k: skip resetting rx filter for WCN3990
    f7b2312c68a8 ALSA: seq: Do error checks at creating system ports
    c2f459d3340f cfg80211: Avoid regulatory restore when COUNTRY_IE_IGNORE is set
    d377d63a9228 extcon: cht-wc: Return from default case to avoid warnings
    7575a34ed101 remoteproc/davinci: Use %zx for formating size_t
    c2dca83e9e83 rtc: rv8803: fix the rv8803 id in the OF table
    5a408693b414 rtc: sysfs: fix NULL check in rtc_add_groups()
    a01d6a320440 ARM: dts: at91/trivial: Fix USART1 definition for at91sam9g45
    ea6a25cd2d41 ARM: dts: rcar: Correct SATA device sizes to 2 MiB
    32d3fe68d20e y2038: make do_gettimeofday() and get_seconds() inline
    5a830803b593 arm64: dts: tegra210-p2180: Correct sdmmc4 vqmmc-supply
    a124e7f2fecf soc/tegra: pmc: Fix pad voltage configuration for Tegra186
    90cfef191a30 ALSA: pcm: signedness bug in snd_pcm_plug_alloc()
    e84cb5882da6 arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage
    3bbce894d52d arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage
    d304218f959e arm64: dts: allwinner: a64: Orange Pi Win: Fix SD card node
    030f6397eb89 soundwire: intel: Fix uninitialized adev deref
    4b4153b7d6af soundwire: Initialize completion for defer messages
    38d1ecc23e3e clk: sunxi-ng: h6: fix PWM gate/reset offset
    6c0fcc727ff0 iio: dac: mcp4922: fix error handling in mcp4922_write_raw
    f125d1831402 ath10k: fix kernel panic by moving pci flush after napi_disable
    75a600d7f062 tee: optee: take DT status property into account
    cd3de5870c80 iio: adc: max9611: explicitly cast gain_selectors
    a6bb63183de2 mmc: sdhci-of-at91: fix quirk2 overwrite
    b4bc6498c39b mm: hugetlb: switch to css_tryget() in hugetlb_cgroup_charge_cgroup()
    bb1bc2d8231c mm: memcg: switch to css_tryget() in get_mem_cgroup_from_mm()
    653d9e0c55bf mm: mempolicy: fix the wrong return value and potential pages leak of mbind
    5b1c342fc3e0 iommu/vt-d: Fix QI_DEV_IOTLB_PFSID and QI_DEV_EIOTLB_PFSID macros
    29dcbbb5ab0a net: ethernet: dwmac-sun8i: Use the correct function in exit path
    bdae2f7b2031 ecryptfs_lookup_interpose(): lower_dentry->d_parent is not stable either
    beb3860c2e0e ecryptfs_lookup_interpose(): lower_dentry->d_inode is not stable
    1a48aaabf1cd i2c: acpi: Force bus speed to 400KHz if a Silead touchscreen is present
    9ace24bba657 IB/hfi1: Use a common pad buffer for 9B and 16B packets
    6ec4a5498ee5 IB/hfi1: Ensure full Gen3 speed in a Gen4 system
    1f3bbf9f0adc Input: synaptics-rmi4 - destroy F54 poller workqueue when removing
    5c9fd709c5f5 Input: synaptics-rmi4 - clear IRQ enables for F54
    fbe9849f79aa Input: synaptics-rmi4 - do not consume more data than we have (F11, F12)
    924a8f2c745a Input: synaptics-rmi4 - disable the relative position IRQ in the F12 driver
    8e347aa4e04b Input: synaptics-rmi4 - fix video buffer size
    c02230815282 Input: ff-memless - kill timer in destroy()
    47d06a15f25a Btrfs: fix log context list corruption after rename exchange operation
    f2465526866a ALSA: usb-audio: Fix incorrect size check for processing/extension units
    420433f6cf5c ALSA: usb-audio: Fix incorrect NULL check in create_yamaha_midi_quirk()
    ab2ee4299b7e ALSA: usb-audio: not submit urb for stopped endpoint
    a2c763cd9609 ALSA: usb-audio: Fix missing error check at mixer resolution test
    edc471038b48 slip: Fix memory leak in slip_open error path
    4cd50a31ac9e net: usb: qmi_wwan: add support for Foxconn T77W968 LTE modules
    0a772b2ac696 net: gemini: add missed free_netdev
    66daa05750a9 ipmr: Fix skb headroom in ipmr_get_route().
    20beeb30083e ax88172a: fix information leak on short answers
    c4a0f567e652 scsi: core: Handle drivers which set sg_tablesize to zero
    81adf034d5d6 MIPS: BCM63XX: fix switch core reset on BCM6368
    dbf1ef2dc0d5 KVM: x86: introduce is_pae_paging

(From OE-Core rev: 7e944cca62851689f9ddf8a5308ee3331f763957)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit 064811c18fe26c7d9bc84f86047325e25e2a1001)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
3fdea86b0c linux-yocto/5.2: update to v5.2.24
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    67c4ef96da8e Linux 5.2.24
    b65008090e4e blk-rq-qos: fix first node deletion of rq_qos_del()
    660039a1505a opp: of: drop incorrect lockdep_assert_held()
    915ff97f555d PCI: PM: Fix pci_power_up()
    160278e4d967 xen/netback: fix error path of xenvif_connect_data()
    cb67e6c61f1b ceph: just skip unrecognized info in ceph_reply_info_extra
    216d0d68a639 cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown
    e1f8c7185612 memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'
    2a25e88d19a9 KVM: PPC: Book3S HV: XIVE: Ensure VP isn't already in use
    83a4472477a0 btrfs: tracepoints: Fix bad entry members of qgroup events
    f861e5d90514 btrfs: tracepoints: Fix wrong parameter order for qgroup events
    e9ee3be6143d Btrfs: check for the full sync flag while holding the inode lock during fsync
    dea5fb68615d Btrfs: fix qgroup double free after failure to reserve metadata for delalloc
    e79a8938b3db btrfs: don't needlessly create extent-refs kernel thread
    ea54be3ae39e Btrfs: add missing extents release on file extent cluster relocation error
    350af44ebf89 btrfs: block-group: Fix a memory leak due to missing btrfs_put_block_group()
    2598b914d8e7 pinctrl: armada-37xx: swap polarity on LED group
    c2c5f397f100 pinctrl: armada-37xx: fix control of pins 32 and up
    e7592916ea17 pinctrl: cherryview: restore Strago DMI workaround for all versions
    d799e86fafb6 x86/hyperv: Make vapic support x2apic mode
    a1b5e414e2f0 x86/apic/x2apic: Fix a NULL pointer deref when handling a dying cpu
    753cf99522be x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area
    6112a6de4c94 irqchip/sifive-plic: Switch to fasteoi flow
    e0b798bf1f89 dm cache: fix bugs when a GFP_NOWAIT allocation fails
    01201d4129db fs/dax: Fix pmd vs pte conflict detection
    26b699f52cdd tracing: Fix race in perf_trace_buf initialization
    20c15650fac8 perf/aux: Fix AUX output stopping
    a4c470b4ce43 cifs: Fix missed free operations
    ef349a5dbe21 CIFS: avoid using MID 0xFFFF
    9153eea1aef9 EDAC/ghes: Fix Use after free in ghes_edac remove path
    2c05afe496d9 parisc: Fix vmap memory leak in ioremap()/iounmap()
    c422c3941ebd s390/kaslr: add support for R_390_GLOB_DAT relocation type
    4d81f7b538a9 s390/zcrypt: fix memleak at release
    b641f048fd85 xtensa: fix change_bit in exclusive access option
    63ef015fd0d6 xtensa: drop EXPORT_SYMBOL for outs*/ins*
    607aad67d79e zram: fix race between backing_dev_show and backing_dev_store
    fa13957c99d1 mm/memory-failure: poison read receives SIGKILL instead of SIGBUS if mmaped more than once
    ef506f2a8158 hugetlbfs: don't access uninitialized memmaps in pfn_range_valid_gigantic()
    9585141a3645 mm: memblock: do not enforce current limit for memblock_phys* family
    2da60e78efbf mm: memcg: get number of pages on the LRU list in memcgroup base on lru_zone_size
    1c72ac7b41e4 mm, compaction: fix wrong pfn handling in __reset_isolation_pfn()
    714213ef3a7a mm/page_owner: don't access uninitialized memmaps when reading /proc/pagetypeinfo
    5180116dff45 mm/slub: fix a deadlock in show_slab_objects()
    224b4490619c mm/memory-failure.c: don't access uninitialized memmaps in memory_failure()
    94d4f140cfb9 mmc: sdhci-omap: Fix Tuning procedure for temperatures < -20C
    a76022591624 mmc: cqhci: Commit descriptors before setting the doorbell
    ca380ac56424 mmc: mxs: fix flags passed to dmaengine_prep_slave_sg
    6bc5498c702e fs/proc/page.c: don't access uninitialized memmaps in fs/proc/page.c
    ff7e418c7e8e drivers/base/memory.c: don't access uninitialized memmaps in soft_offline_page_store()
    f364590d8ab4 drm/amdgpu/uvd7: fix allocation size in enc ring test (v2)
    363471d25d92 drm/amdgpu/uvd6: fix allocation size in enc ring test (v2)
    78bc8daa826d drm/amdgpu/vcn: fix allocation size in enc ring test
    edd872deff06 drm/amdgpu/vce: fix allocation size in enc ring test
    d1f35310fac2 drm/amdgpu: Bail earlier when amdgpu.cik_/si_support is not set to 1
    1f2551687ba9 drm/panfrost: Handle resetting on timeout better
    5c2e8711136e drm/ttm: Restore ttm prefaulting
    59a21feaf42c drm/edid: Add 6 bpc quirk for SDC panel in Lenovo G50
    180a1b6fef83 mac80211: Reject malformed SSID elements
    930b9ba2a46d iwlwifi: pcie: change qu with jf devices to use qu configuration
    de326ae7e864 ACPI: CPPC: Set pcc_data[pcc_ss_id] to NULL in acpi_cppc_processor_exit()
    136bd113a26a ASoC: rsnd: Reinitialize bit clock inversion flag for every format setting
    11861621576c Input: st1232 - fix reporting multitouch coordinates
    1ac8d0c02e34 Input: synaptics-rmi4 - avoid processing unknown IRQs
    0337cdfd1172 Input: da9063 - fix capability and drop KEY_SLEEP
    38d23aa7eaeb scsi: ch: Make it possible to open a ch device multiple times again
    ea6645c4fb39 scsi: core: try to get module before removing device
    77957d171255 scsi: core: save/restore command resid for error handling
    1feb8a7203f8 scsi: sd: Ignore a failure to sync cache due to lack of authorization
    9f1c82f12b62 scsi: zfcp: fix reaction on bit error threshold notification
    e8c96fb7e7f3 staging: kpc2000: fix integer overflow with left shifts
    529ca74d5730 staging: wlan-ng: fix exit return when sme->key_idx >= NUM_WEPKEYS
    5f65debeb6f6 MIPS: tlbex: Fix build_restore_pagemask KScratch restore
    0a496dac91ac binder: Don't modify VMA bounds in ->mmap handler
    b7a359f53d87 USB: ldusb: fix read info leaks
    72665117bd21 USB: ldusb: fix memleak on disconnect
    a93c0f8a448e USB: serial: ti_usb_3410_5052: fix port-close races
    e6c0a2973542 usb: udc: lpc32xx: fix bad bit shift operation
    609978137cc2 ALSA: usb-audio: Disable quirks for BOSS Katana amplifiers
    7ebfbd60d38b ALSA: hda/realtek - Enable headset mic on Asus MJ401TA
    33bac14d01de ALSA: hda/realtek - Add support for ALC711
    d46df68073e6 USB: legousbtower: fix memleak on disconnect
    7585815e0141 io_uring: fix bad inflight accounting for SETUP_IOPOLL|SETUP_SQTHREAD
    b0c129ccba46 rxrpc: use rcu protection while reading sk->sk_user_data
    5cfde84829d4 netdevsim: Fix error handling in nsim_fib_init and nsim_fib_exit
    b8ce2c4f92e3 net: phy: micrel: Update KSZ87xx PHY name
    61ece488ec6a net: phy: micrel: Discern KSZ8051 and KSZ8795 PHYs
    2e2eadc05885 net: aquantia: correctly handle macvlan and multicast coexistence
    10ebf6d7c7ab net: aquantia: do not pass lro session with invalid tcp checksum
    b48166bebe46 net: aquantia: when cleaning hw cache it should be toggled
    1d3a96408673 net: aquantia: temperature retrieval fix
    ef857690724a sctp: change sctp_prot .no_autobind with true
    8748438651fe sched: etf: Fix ordering of packets with same txtime
    502ead97c900 rxrpc: Fix possible NULL pointer access in ICMP handling
    0f0957b39c65 net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow
    c96d1c298473 net: ipv6: fix listify ip6_rcv_finish in case of forwarding
    792dffb6c25f net/ibmvnic: Fix EOI when running in XIVE mode.
    1eff1ddb41d1 net: i82596: fix dma_alloc_attr for sni_82596
    789b5b2296d0 net: bcmgenet: Set phydev->dev_flags only for internal PHYs
    26b5aad017f8 net: bcmgenet: Fix RGMII_MODE_EN value for GENET v1/2/3
    39b4db2c205f net: avoid potential infinite loop in tc_ctl_action()
    f6e58b1a1237 ipv4: Return -ENETUNREACH if we can't create route but saddr is valid
    15136dd27a2a ipv4: fix race condition between route lookup and invalidation
    04a68067f471 nvme: change nvme_passthru_cmd64 to explicitly mark rsvd
    7e42a8fc20bc nvme-pci: Set the prp2 correctly when using more than 4k page
    f6a8d244495e ocfs2: fix panic due to ocfs2_wq is null
    dd9fa2a089de Revert "drm/radeon: Fix EEH during kexec"
    8129be7b7cf1 md/raid0: fix warning message for parameter default_layout
    8cf008b91833 libata/ahci: Fix PCS quirk application
    22d516a43782 net_sched: fix backward compatibility for TCA_ACT_KIND
    ba69d901e036 net_sched: fix backward compatibility for TCA_KIND
    b826ad4c7669 filldir[64]: remove WARN_ON_ONCE() for bad directory entries
    9df0c66d5143 uaccess: implement a proper unsafe_copy_to_user() and switch filldir over to it
    30043672b8e6 Make filldir[64]() verify the directory entry filename is valid
    2fcaa9a2e8c9 elf: don't use MAP_FIXED_NOREPLACE for elf executable mappings
    a9397425edf9 Convert filldir[64]() from __put_user() to unsafe_put_user()
    0c03d3d9a998 namespace: fix namespace.pl script to support relative paths
    e5df7c23ef1c net: phy: fix write to mii-ctrl1000 register
    e6378e134543 net: phy: allow for reset line to be tied to a sleepy GPIO controller
    3951482af0d5 r8152: Set macpassthru in reset_resume callback
    85e2c81d8964 s390/mm: fix -Wunused-but-set-variable warnings
    fbd0915567ea lib: textsearch: fix escapes in example code
    2cf2b8c86277 selftests: kvm: Fix libkvm build error
    54cccd9f3fd0 net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write()
    8f634c4755d6 mips: Loongson: Fix the link time qualifier of 'serial_exit()'
    009d3d7135af drm/amd/display: memory leak
    d0d9f70beb32 drm/amdgpu: fix multiple memory leaks in acp_hw_init
    9cac23841d31 RISC-V: Clear load reservations while restoring hart contexts
    a1fffbb6cfd8 net: stmmac: Correctly take timestamp for PTPv2
    b115b9832dc2 net: dsa: rtl8366rb: add missing of_node_put after calling of_get_child_by_name
    45f3a8886a6a netfilter: nft_connlimit: disable bh on garbage collection
    420a015ed643 mac80211: fix txq null pointer dereference
    51340f3579a0 nl80211: fix null pointer dereference
    0e53662be2aa loop: change queue block size to match when using DIO
    0ce37f356397 xen/efi: Set nonblocking callbacks
    fe4b184d832e MIPS: dts: ar9331: fix interrupt-controller size
    fa7e74d07aaa net: dsa: qca8k: Use up to 7 ports for all operations
    12afa6d96de4 ARM: dts: am4372: Set memory bandwidth limit for DISPC
    c41a0bf4ba4d ieee802154: ca8210: prevent memory leak
    4cbc0b08406d nvme-rdma: fix possible use-after-free in connect timeout
    61c456e74461 nvme: allow 64-bit results in passthru commands
    e3e3c343b869 Added QUIRKs for ADATA XPG SX8200 Pro 512GB
    e3f58f778cee nvme: fix an error code in nvme_init_subsystem()
    902c726061a9 nvme-tcp: fix wrong stop condition in io_work
    9f1ce805b4fc ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage()
    64719bd78a0b ARM: OMAP2+: Add missing LCDC midlemode for am335x
    4b6e2a327e7c ARM: OMAP2+: Fix missing reset done flag for am3 and am43
    db825fd99455 ARM: dts: Fix gpio0 flags for am335x-icev2
    0e65dece86ca scsi: qla2xxx: Fix unbound sleep in fcport delete path.
    950b905e2cbe scsi: qla2xxx: Silence fwdump template message
    276ae12e3b8d scsi: megaraid: disable device when probe failed after enabled device
    e8d688a3f957 scsi: ufs: skip shutdown if hba is not powered
    a1318847f2d5 nvme-pci: Fix a race in controller removal
    f1f8bc4e1d87 ARM: dts: Fix wrong clocks for dra7 mcasp
    d1a356d53545 clk: ti: dra7: Fix mcasp8 clock bits
    6e16a5de5c09 drm: Clear the fence pointer when writeback job signaled
    5cc2a052ef35 RDMA/cxgb4: Do not dma memory off of the stack
    60f32e5e3ae6 usb: dwc3: pci: prevent memory leak in dwc3_pci_probe
    7a745fd3fdc5 ASoC: SOF: ipc: Fix memory leak in sof_set_get_large_ctrl_data
    240452393720 net: dsa: sja1105: Prevent leaking memory
    c9ed1ddd76de iwlwifi: pcie: fix memory leaks in iwl_pcie_ctxt_info_gen3_init

(From OE-Core rev: 5412b2065a46f6e70fc5f9eb5d5fb79c4efbb4cf)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit c54b02ab238fe7682a0beac2f2afeb418406dd48)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
206d42923f linux-yocto/4.19: update to v4.19.84
Updating linux-yocto/4.19 to the latest korg -stable release that comprises
the following commits:

    c555efaf1402 Linux 4.19.84
    46a4a014c48e kvm: x86: mmu: Recovery of shattered NX large pages
    6082f2e28887 kvm: Add helper function for creating VM worker threads
    5219505fcbb6 kvm: mmu: ITLB_MULTIHIT mitigation
    db77548b1652 KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active
    37dfbc8ba763 KVM: x86: add tracepoints around __direct_map and FNAME(fetch)
    9ef1fae24d58 KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON
    b182093d1c70 KVM: x86: remove now unneeded hugepage gfn adjustment
    e79234ce5765 KVM: x86: make FNAME(fetch) and __direct_map more similar
    8aaac3068623 kvm: mmu: Do not release the page inside mmu_set_spte()
    30d8d8d6cd92 kvm: Convert kvm_lock to a mutex
    a991063ce576 kvm: x86, powerpc: do not allow clearing largepages debugfs entry
    580c79e7e3e5 Documentation: Add ITLB_MULTIHIT documentation
    db5ae6596ae2 cpu/speculation: Uninline and export CPU mitigations helpers
    955607466ace x86/cpu: Add Tremont to the cpu vulnerability whitelist
    f9aa6b73a407 x86/bugs: Add ITLB_MULTIHIT bug infrastructure
    415bb221a070 x86/speculation/taa: Fix printing of TAA_MSG_SMT on IBRS_ALL CPUs
    4ad7466ddf2d x86/tsx: Add config options to set tsx=on|off|auto
    e3bf6b3ff55a x86/speculation/taa: Add documentation for TSX Async Abort
    2402432d5557 x86/tsx: Add "auto" option to the tsx= cmdline parameter
    a0808f06dfa1 kvm/x86: Export MDS_NO=0 to guests when TSX is enabled
    15dfa5d706df x86/speculation/taa: Add sysfs reporting for TSX Async Abort
    6c58ea8525bf x86/speculation/taa: Add mitigation for TSX Async Abort
    b8eb348ae408 x86/cpu: Add a "tsx=" cmdline option with TSX disabled by default
    37cf9ef900cc x86/cpu: Add a helper function x86_read_arch_cap_msr()
    4002d16a2ae1 x86/msr: Add the IA32_TSX_CTRL MSR
    dbf38b17a892 KVM: x86: use Intel speculation bugs and features as derived in generic x86 code
    fee619bb8136 drm/i915/cmdparser: Fix jump whitelist clearing
    255ed51599de drm/i915/gen8+: Add RC6 CTX corruption WA
    011b7173cbdb drm/i915: Lower RM timeout to avoid DSI hard hangs
    a7bda639a17f drm/i915/cmdparser: Ignore Length operands during command matching
    6e53c71a6913 drm/i915/cmdparser: Add support for backward jumps
    f27bc2b5950d drm/i915/cmdparser: Use explicit goto for error paths
    cdd77c6b4be4 drm/i915: Add gen9 BCS cmdparsing
    fea688c5dd81 drm/i915: Allow parsing of unsized batches
    7ce726b61c57 drm/i915: Support ro ppgtt mapped cmdparser shadow buffers
    fc3510fe6f6b drm/i915: Add support for mandatory cmdparsing
    fba4207cf15e drm/i915: Remove Master tables from cmdparser
    f1ff77080fa1 drm/i915: Disable Secure Batches for gen6+
    b4b1abdc6b18 drm/i915: Rename gen7 cmdparser tables
    e238e05ec2dc vsock/virtio: fix sock refcnt holding during the shutdown
    2e7e3f16901d iio: imu: mpu6050: Fix FIFO layout for ICM20602
    99ea48af7bd9 net: prevent load/store tearing on sk->sk_stamp
    d32629dcd1e5 netfilter: ipset: Copy the right MAC address in hash:ip,mac IPv6 sets
    5833560d54fd usbip: Fix free of unallocated memory in vhci tx
    6890b4bc3d2b cgroup,writeback: don't switch wbs immediately on dead wbs if the memcg is dead
    d3b3c0a14615 mm/filemap.c: don't initiate writeback if mapping has no dirty pages
    285eb6af4351 iio: imu: inv_mpu6050: fix no data on MPU6050
    d888a80727ab iio: imu: mpu6050: Add support for the ICM 20602 IMU
    522128128dec blkcg: make blkcg_print_stat() print stats only for online blkgs
    30b969392cf2 pinctrl: cherryview: Fix irq_valid_mask calculation
    ca79bb7e1168 ocfs2: protect extent tree in ocfs2_prepare_inode_for_write()
    2c655a111968 pinctrl: intel: Avoid potential glitches if pin is in GPIO mode
    713adf6dd327 e1000: fix memory leaks
    4a05571772cc igb: Fix constant media auto sense switching when no cable is connected
    1baab8352d80 net: ethernet: arc: add the missed clk_disable_unprepare
    24523745ed41 NFSv4: Don't allow a cached open with a revoked delegation
    440a748ed6df usb: dwc3: gadget: fix race when disabling ep with cancelled xfers
    e66f52eb3f29 hv_netvsc: Fix error handling in netvsc_attach()
    99d5f18cebbf drm/amd/display: Passive DP->HDMI dongle detection fix
    e5edbf9c45ce drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
    b651ddc15e7a iommu/amd: Apply the same IVRS IOAPIC workaround to Acer Aspire A315-41
    214e4f0ecdd1 net: mscc: ocelot: refuse to overwrite the port's native vlan
    5aedcc8aa8be net: mscc: ocelot: fix vlan_filtering when enslaving to bridge before link is up
    3b956e63e2f3 net: hisilicon: Fix "Trying to free already-free IRQ"
    f09b99c883e8 fjes: Handle workqueue allocation failure
    6376736d016f nvme-multipath: fix possible io hang after ctrl reconnect
    1372527e6876 scsi: qla2xxx: stop timer in shutdown path
    f2bab3ed456c RDMA/hns: Prevent memory leaks of eq->buf_list
    55ca08347487 RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
    e36be7959326 usbip: tools: Fix read_usb_vudc_device() error path handling
    cd9561a53d26 USB: ldusb: use unsigned size format specifiers
    c753113ae714 USB: Skip endpoints with 0 maxpacket length
    ef38f4d123d0 perf/x86/uncore: Fix event group support
    f14751658a01 perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
    5b99e97b275a perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity
    45944c4a7743 usb: dwc3: remove the call trace of USBx_GFLADJ
    dff38149cec4 usb: gadget: configfs: fix concurrent issue between composite APIs
    10eb9abd21ba usb: dwc3: pci: prevent memory leak in dwc3_pci_probe
    c73ccf65e169 usb: gadget: composite: Fix possible double free memory bug
    26d31e1c3ab2 usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.
    88912019b49c usb: fsl: Check memory resource before releasing it
    3a2675a2d97a macsec: fix refcnt leak in module exit routine
    0d0ca85ad424 bonding: fix unexpected IFF_BONDING bit unset
    50e31318b525 ipvs: move old_secure_tcp into struct netns_ipvs
    102f4078fbdd ipvs: don't ignore errors in case refcounting ip_vs module fails
    81de0b500baa netfilter: nf_flow_table: set timeout before insertion into hashes
    d45fc2ed472b scsi: qla2xxx: Initialized mailbox to prevent driver load failure
    b6612a3dbad8 scsi: lpfc: Honor module parameter lpfc_use_adisc
    4e80e5614770 net: openvswitch: free vport unless register_netdevice() succeeds
    027253315d70 RDMA/uverbs: Prevent potential underflow
    d582769add68 scsi: qla2xxx: fixup incorrect usage of host_byte
    42de3a902443 net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq
    7dfdcd9407f3 net/mlx5e: TX, Fix consumer index of error cqe dump
    48dd71289ca3 RDMA/qedr: Fix reported firmware version
    6208c2bfe224 iw_cxgb4: fix ECN check on the passive accept
    89aa9e2626f4 RDMA/mlx5: Clear old rate limit when closing QP
    d6706b2ec108 HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()
    113a154ef2f2 dmaengine: sprd: Fix the possible memory leak issue
    6040f96d5147 dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config
    78e7e0248eb8 HID: google: add magnemite/masterball USB ids
    8181146cd7de PCI: tegra: Enable Relaxed Ordering only for Tegra20 & Tegra30
    e2dd254bde5c usbip: Implement SG support to vhci-hcd and stub driver
    f865ae473c16 usbip: Fix vhci_urb_enqueue() URB null transfer buffer error path
    e9c0fc4a7ccd sched/fair: Fix -Wunused-but-set-variable warnings
    502bd151448c sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices
    4ebee4875eab ALSA: usb-audio: Fix copy&paste error in the validator
    e0051889243d ALSA: usb-audio: remove some dead code
    4f6c52002699 ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()
    3a0cdf210b94 ALSA: usb-audio: Clean up check_input_term()
    9feeaa50e5b4 ALSA: usb-audio: Remove superfluous bLength checks
    f0e164f66e75 ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects
    dae4d839e549 ALSA: usb-audio: Simplify parse_audio_unit()
    17821e2fb167 ALSA: usb-audio: More validations of descriptor units
    5e36cf8edb58 configfs: fix a deadlock in configfs_symlink()
    0dfc45be875a configfs: provide exclusion between IO and removals
    25c118d8d158 configfs: new object reprsenting tree fragments
    65524d647e9d configfs_register_group() shouldn't be (and isn't) called in rmdirable parts
    2bd63490c1dd configfs: stash the data we need into configfs_buffer at open time
    a7be2debb769 can: peak_usb: fix slab info leak
    ce9b94da0e04 can: mcba_usb: fix use-after-free on disconnect
    5a9e37f2029f can: dev: add missing of_node_put() after calling of_get_child_by_name()
    9289226f6982 can: gs_usb: gs_can_open(): prevent memory leak
    9f5c59428843 can: rx-offload: can_rx_offload_queue_sorted(): fix error handling, avoid skb mem leak
    ef502d5a84d6 can: peak_usb: fix a potential out-of-sync while decoding packets
    7ae08111ca70 can: c_can: c_can_poll(): only read status register after status IRQ
    0327c7818da2 can: flexcan: disable completely the ECC mechanism
    46265660e5ba can: usb_8dev: fix use-after-free on disconnect
    d8a76e300e37 SMB3: Fix persistent handles reconnect
    caddaf43b024 x86/apic/32: Avoid bogus LDR warnings
    dc1a91dc4917 intel_th: pci: Add Jasper Lake PCH support
    f9d3aea1dca2 intel_th: pci: Add Comet Lake PCH support
    64997ee49c8c netfilter: ipset: Fix an error code in ip_set_sockfn_get()
    1b0e60f6a48b netfilter: nf_tables: Align nft_expr private data to 64-bit
    2dae80b5b666 ARM: sunxi: Fix CPU powerdown on A83T
    20b9e094dcd3 iio: srf04: fix wrong limitation in distance measuring
    bee45b44b13e iio: imu: adis16480: make sure provided frequency is positive
    a428996147e2 iio: adc: stm32-adc: fix stopping dma
    78a1d6cdd302 ceph: add missing check in d_revalidate snapdir handling
    6f9657793a6e ceph: fix use-after-free in __ceph_remove_cap()
    3840610d60b2 arm64: Do not mask out PTE_RDONLY in pte_same()
    56f270a1d72c soundwire: bus: set initial value to port_status
    9a06efc745c3 soundwire: depend on ACPI
    a81a4637456b HID: wacom: generic: Treat serial number and related fields as unsigned
    e3fdd0c1a3d0 drm/radeon: fix si_enable_smc_cac() failed issue
    f39fbd05f921 perf tools: Fix time sorting
    66d53cd683a8 tools: gpio: Use !building_out_of_srctree to determine srctree
    8e358a027611 dump_stack: avoid the livelock of the dump_lock
    6c944fc51f0a mm, vmstat: hide /proc/pagetypeinfo from normal users
    2686f71fdcc5 mm: thp: handle page cache THP correctly in PageTransCompoundMap
    7dfa51beacac mm, meminit: recalculate pcpu batch and high limits after init completes
    8e6bf4bc3a88 mm: memcontrol: fix network errors from failing __GFP_ATOMIC charges
    6ecc16351a84 ALSA: hda/ca0132 - Fix possible workqueue stall
    6921b1609912 ALSA: bebob: fix to detect configured source of sampling clock for Focusrite Saffire Pro i/o series
    b85472244b70 ALSA: timer: Fix incorrectly assigned timer instance
    107451b87ea5 net: hns: Fix the stray netpoll locks causing deadlock in NAPI path
    26e398dcb3f1 ipv6: fixes rt6_probe() and fib6_nh->last_probe init
    05b761423d67 net: mscc: ocelot: fix NULL pointer on LAG slave removal
    1cfc967ef584 net: mscc: ocelot: don't handle netdev events for other netdevs
    a6fdbaeef1f2 qede: fix NULL pointer deref in __qede_remove()
    956b38853517 NFC: st21nfca: fix double free
    1143496c9632 nfc: netlink: fix double device reference drop
    760a1f7f22ee NFC: fdp: fix incorrect free object
    5580091ce7d9 net: usb: qmi_wwan: add support for DW5821e with eSIM support
    4fd218071f21 net: qualcomm: rmnet: Fix potential UAF when unregistering
    b9bda52f8f3e net: fix data-race in neigh_event_send()
    2fbfdb2de4a1 net: ethernet: octeon_mgmt: Account for second possible VLAN header
    88f8c39912bc ipv4: Fix table id reference in fib_sync_down_addr
    0ddabef89067 CDC-NCM: handle incomplete transfer of MTU
    27b5f4bf5ba9 bonding: fix state transition issue in link monitoring
    7d8dbefc22ff Linux 4.19.83
    818c96ac80be usb: gadget: udc: core: Fix segfault if udc_bind_to_driver() for pending driver fails
    b06f37eaa2b3 arm64: dts: ti: k3-am65-main: Fix gic-its node unit-address
    54ee5ccd0251 ASoC: pcm3168a: The codec does not support S32_LE
    3ddf2a70cf6d selftests/powerpc: Fix compile error on tlbie_test due to newer gcc
    e7aaa8dd60c5 selftests/powerpc: Add test case for tlbie vs mtpidr ordering issue
    ec199b24aa5c powerpc/mm: Fixup tlbie vs mtpidr/mtlpidr ordering issue on POWER9
    06e8438eddf8 platform/x86: pmc_atom: Add Siemens SIMATIC IPC227E to critclk_systems DMI table
    2d830cf287a5 wireless: Skip directory when generating certificates
    558d2bdad5f6 net/flow_dissector: switch to siphash
    f6ef35998fb0 r8152: add device id for Lenovo ThinkPad USB-C Dock Gen 2
    c33f7efec3b3 net: dsa: fix switch tree list
    6b5bf3f37f72 net: usb: lan78xx: Connect PHY before registering MAC
    07c62fc7bf28 net: bcmgenet: reset 40nm EPHY on energy detect
    6d3ccc2a5b19 net: phy: bcm7xxx: define soft_reset for 40nm EPHY
    97cc6827f418 net: bcmgenet: don't set phydev->link from MAC
    57e286f67554 net: dsa: b53: Do not clear existing mirrored port mask
    db91be8e27c8 net/mlx5e: Fix ethtool self test: link speed
    5eb1967bfde3 r8169: fix wrong PHY ID issue with RTL8168dp
    9e7c4fa275cf net/mlx5e: Fix handling of compressed CQEs in case of low NAPI budget
    0c3355cc8e19 selftests: fib_tests: add more tests for metric update
    b166e8838a97 ipv4: fix route update on metric change.
    cd3bcb44ee3b net: add READ_ONCE() annotation in __skb_wait_for_more_packets()
    4f3df7f1eaa7 net: use skb_queue_empty_lockless() in busy poll contexts
    eaf548feaa17 net: use skb_queue_empty_lockless() in poll() handlers
    afa1f5e98c11 udp: use skb_queue_empty_lockless()
    d5ac4232c376 net: add skb_queue_empty_lockless()
    83532eb48049 vxlan: check tun_info options_len properly
    a8a5adbbf779 udp: fix data-race in udp_set_dev_scratch()
    12fab1634ab1 selftests: net: reuseport_dualstack: fix uninitalized parameter
    321c99155f4b net: Zeroing the structure ethtool_wolinfo in ethtool_get_wol()
    9da271c1cdc1 net: usb: lan78xx: Disable interrupts before calling generic_handle_irq()
    40400fdd312a netns: fix GFP flags in rtnl_net_notifyid()
    1d72dbb4ca2f net/mlx4_core: Dynamically set guaranteed amount of counters per VF
    f05975d9f393 net: hisilicon: Fix ping latency when deal with high throughput
    1d5cb12a2539 net: fix sk_page_frag() recursion from memory reclaim
    189982d111c0 net: ethernet: ftgmac100: Fix DMA coherency issue with SW checksum
    5536fc891221 net: dsa: bcm_sf2: Fix IMP setup for port different than 8
    2c50a36d0b78 net: annotate lockless accesses to sk->sk_napi_id
    0cfaf03c5d58 net: annotate accesses to sk->sk_incoming_cpu
    07de738901d6 inet: stop leaking jiffies on the wire
    163901dc945b erspan: fix the tun_info options_len check for erspan
    96df1ec22b97 dccp: do not leak jiffies on the wire
    f291613ff140 cxgb4: fix panic when attaching to ULD fail
    1f032ca298dd nbd: handle racing with error'ed out commands
    82b7c99ee141 nbd: protect cmd->status with cmd->lock
    80b42f4381c2 cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs
    a7448991fa3e i2c: stm32f7: remove warning when compiling with W=1
    86fd9e339ab4 i2c: stm32f7: fix a race in slave mode with arbitration loss irq
    d746ce649556 i2c: stm32f7: fix first byte to send in slave mode
    18e7fae372a1 irqchip/gic-v3-its: Use the exact ITSList for VMOVP
    39637aafa173 MIPS: bmips: mark exception vectors as char arrays
    fcc3f7c810c3 of: unittest: fix memory leak in unittest_data_add
    c56b9da70d09 ARM: 8926/1: v7m: remove register save to stack before svc
    fa18f803d1f7 tracing: Fix "gfp_t" format for synthetic events
    63571a1f375e scsi: target: core: Do not overwrite CDB byte 1
    1df8da335d40 drm/amdgpu: fix potential VM faults
    3cd2b6492cde ARM: davinci: dm365: Fix McBSP dma_slave_map entry
    e18bf407ea3f perf kmem: Fix memory leak in compact_gfp_flags()
    05dd6283b8fc 8250-men-mcb: fix error checking when get_num_ports returns -ENODEV
    81809424cad7 perf c2c: Fix memory leak in build_cl_output()
    7a79420034e0 ARM: dts: imx7s: Correct GPT's ipg clock source
    e601e103cfed scsi: fix kconfig dependency warning related to 53C700_LE_ON_BE
    3dd0be3eeeb0 scsi: sni_53c710: fix compilation error
    cf372c60ed13 scsi: scsi_dh_alua: handle RTPG sense code correctly during state transitions
    3ee6a8bdae81 scsi: qla2xxx: fix a potential NULL pointer dereference
    9d27ba401eca ARM: mm: fix alignment handler faults under memory pressure
    f0eabc9e9acb pinctrl: ns2: Fix off by one bugs in ns2_pinmux_enable()
    9a5d5ffb3245 ARM: dts: logicpd-torpedo-som: Remove twl_keypad
    d7e2a8e271aa ASoc: rockchip: i2s: Fix RPM imbalance
    513474f59001 ASoC: wm_adsp: Don't generate kcontrols without READ flags
    bab5c14b5c89 regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized
    6ef17b446081 ASoC: rt5682: add NULL handler to set_jack function
    772c18df9f3d regulator: ti-abb: Fix timeout in ti_abb_wait_txdone/ti_abb_clear_all_txdone
    c4c0e64deb9a arm64: dts: Fix gpio to pinmux mapping
    0d3aef1ea7e8 arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay
    a3a208ac4608 arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator delay
    dc24ac36f304 ASoC: wm8994: Do not register inapplicable controls for WM1811
    0f037d0a62b0 regulator: of: fix suspend-min/max-voltage parsing
    b17eae5a0e16 kbuild: add -fcf-protection=none when using retpoline flags
    5ee93551c703 Linux 4.19.82
    914a7d429da5 Revert "ALSA: hda: Flush interrupts on disabling"
    8f5603029223 powerpc/powernv: Fix CPU idle to be called with IRQs disabled
    92930e922399 ALSA: usb-audio: Add DSD support for Gustard U16/X26 USB Interface
    c08182dbf057 ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel
    d8808d2e79b5 ALSA: usb-audio: DSD auto-detection for Playback Designs
    831317430693 ALSA: timer: Fix mutex deadlock at releasing card
    145fadf6d99a ALSA: timer: Simplify error path in snd_timer_open()
    a6c91087f5d5 sch_netem: fix rcu splat in netem_enqueue()
    3ecf8529d52a net: usb: sr9800: fix uninitialized local variable
    14a703ef2dc4 bonding: fix potential NULL deref in bond_update_slave_arr
    24aaf7f4528f NFC: pn533: fix use-after-free and memleaks
    8d9c4a9b8677 rxrpc: Fix trace-after-put looking at the put peer record
    e8e51ce79c15 rxrpc: rxrpc_peer needs to hold a ref on the rxrpc_local record
    570ab0dd35f9 rxrpc: Fix call ref leak
    d634bd01b3a0 llc: fix sk_buff leak in llc_conn_service()
    3f3f7409f028 llc: fix sk_buff leak in llc_sap_state_process()
    948e8eba656f batman-adv: Avoid free/alloc race when handling OGM buffer
    74001646d47c NFS: Fix an RCU lock leak in nfs4_refresh_delegation_stateid()
    fd9a708c7bde drm/amdgpu/powerplay/vega10: allow undervolting in p7
    3e285a5c1401 dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle
    a0e406be17e5 dmaengine: qcom: bam_dma: Fix resource leak
    64efcbc7a5a3 rtlwifi: Fix potential overflow on P2P code
    a81669161528 arm64: Ensure VM_WRITE|VM_SHARED ptes are clean by default
    8dd6066066a2 s390/idle: fix cpu idle time calculation
    ced8cb0230d0 s390/cmm: fix information leak in cmm_timeout_handler()
    be87ee689106 nl80211: fix validation of mesh path nexthop
    14e0dd84db60 HID: fix error message in hid_open_report()
    8a01c4b908cf HID: Fix assumption that devices have inputs
    cf143d65c556 HID: i2c-hid: add Trekstor Primebook C11B to descriptor override
    6608702bec70 scsi: target: cxgbit: Fix cxgbit_fw4_ack()
    45e7acdff38e USB: serial: whiteheat: fix line-speed endianness
    b7ad5aa67058 USB: serial: whiteheat: fix potential slab corruption
    36e02e1fba89 usb: xhci: fix __le32/__le64 accessors in debugfs code
    8e2cccd6c5d1 USB: ldusb: fix control-message timeout
    3f1a7d903b8d USB: ldusb: fix ring-buffer locking
    f1b94b60bb1c usb-storage: Revert commit 747668dbc061 ("usb-storage: Set virt_boundary_mask to avoid SG overflows")
    d1c188d330ca USB: gadget: Reject endpoints with 0 maxpacket value
    ceb6b658f0bd UAS: Revert commit 3ae62a42090f ("UAS: fix alignment of scatter/gather segments")
    a58cdc35d3a0 ALSA: hda/realtek - Add support for ALC623
    101bb262ba43 ALSA: hda/realtek - Fix 2 front mics of codec 0x623
    3ae205d7a0a2 ALSA: bebob: Fix prototype of helper function to return negative value
    62e42369de37 fuse: truncate pending writes on O_TRUNC
    72c913fdde9d fuse: flush dirty data/metadata before non-truncate setattr
    696da0225946 ath6kl: fix a NULL-ptr-deref bug in ath6kl_usb_alloc_urb_from_pipe()
    1a124f16b594 thunderbolt: Use 32-bit writes when writing ring producer/consumer
    f2cc221b6515 USB: legousbtower: fix a signedness bug in tower_probe()
    083322455c67 nbd: verify socket is supported during setup
    e0064f8de3f5 iwlwifi: exclude GEO SAR support for 3168
    5a445f805afc ALSA: hda/realtek: Reduce the Headphone static noise on XPS 9350/9360
    ce005e5d6e9f ARM: 8914/1: NOMMU: Fix exc_ret for XIP
    394c90d9ce13 tracing: Initialize iter->seq after zeroing in tracing_read_pipe()
    12e132664f92 s390/uaccess: avoid (false positive) compiler warnings
    da24be886ff6 NFSv4: Fix leak of clp->cl_acceptor string
    cad4448dfc9c nbd: fix possible sysfs duplicate warning
    c2ea451f22f1 virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr
    5865397db6c3 MIPS: fw: sni: Fix out of bounds init of o32 stack
    317b6f68abb1 MIPS: include: Mark __xchg as __always_inline
    4a4206a83fc6 iio: imu: adis16400: release allocated memory on failure
    f2824a020746 drm/amdgpu: fix memory leak
    a1112c465593 perf/x86/amd: Change/fix NMI latency mitigation to use a timestamp
    2cd003a820fe sched/vtime: Fix guest/system mis-accounting on task switch
    58d33d4a4a1d x86/cpu: Add Comet Lake to the Intel CPU models header
    6258745b311b arm64: armv8_deprecated: Checking return value for memory allocation
    c3689876f5b9 fs: ocfs2: fix a possible null-pointer dereference in ocfs2_info_scan_inode_alloc()
    4de544b42c7a fs: ocfs2: fix a possible null-pointer dereference in ocfs2_write_end_nolock()
    c18d86047622 fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()
    2141f777e6e1 ocfs2: clear zero in unaligned direct IO
    af140367ae66 x86/xen: Return from panic notifier
    0169198631e7 MIPS: include: Mark __cmpxchg as __always_inline
    9b7591cf6cf6 efi/x86: Do not clean dummy variable in kexec path
    318885aa154d efi/cper: Fix endianness of PCIe class code
    02c1fb11b6a0 serial: mctrl_gpio: Check for NULL pointer
    497fd98a50b2 fs: cifs: mute -Wunused-const-variable message
    579249a08348 gpio: max77620: Use correct unit for debounce times
    7f3306a3b2df tty: n_hdlc: fix build on SPARC
    14a4689f8847 tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'
    d21a5d4a7339 arm64: ftrace: Ensure synchronisation in PLT setup for Neoverse-N1 #1542419
    ca2cc4b47d01 nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request
    aeb242943505 HID: hyperv: Use in-place iterator API in the channel callback
    9c75c230ded2 RDMA/iwcm: Fix a lock inversion issue
    962cff4f3f89 RDMA/hfi1: Prevent memory leak in sdma_init
    dfc1daba843b staging: rtl8188eu: fix null dereference when kzalloc fails
    3545c018d0c3 perf annotate: Return appropriate error code for allocation failures
    f8304a9310c3 perf annotate: Propagate the symbol__annotate() error return
    4e2ca0c9143c perf annotate: Fix the signedness of failure returns
    ec783e28e72d perf annotate: Propagate perf_env__arch() error
    f0ba7ab26bfc perf tools: Propagate get_cpuid() error
    c022c7f6171e perf jevents: Fix period for Intel fixed counters
    5ecf35ed5d17 perf script brstackinsn: Fix recovery from LBR/binary mismatch
    262ed71096ba perf map: Fix overlapped map handling
    d975e5970965 perf tests: Avoid raising SEGV using an obvious NULL dereference
    e3dc77d662ca libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature
    915eb63dac7b iio: fix center temperature of bmc150-accel-core
    78e6415d4f9a iio: adc: meson_saradc: Fix memory allocation order
    1b6901f3c600 power: supply: max14656: fix potential use-after-free
    a0d8a590d983 drm/amd/display: fix odm combine pipe reset
    a897f54e921c PCI/PME: Fix possible use-after-free on remove
    0e23eeb0fc58 net: dsa: mv88e6xxx: Release lock while requesting IRQ
    646e5c77b418 exec: load_script: Do not exec truncated interpreter path
    f251c83d6c08 ext4: disallow files with EXT4_JOURNAL_DATA_FL from EXT4_IOC_SWAP_BOOT
    cc4d8283f6e9 media: vimc: Remove unused but set variables
    c629fed0347e ALSA: hda/realtek - Apply ALC294 hp init also for S4 resume
    b73132b74d25 cifs: add credits from unmatched responses/messages
    ee4d28a716e8 CIFS: Respect SMB2 hdr preamble size in read responses
    2a2022688a91 scsi: lpfc: Correct localport timeout duration error
    1df87fc5e468 mlxsw: spectrum: Set LAG port collector only when active
    e32271519bb9 arm64: kpti: Whitelist HiSilicon Taishan v110 CPUs
    6021dd86ca38 arm64: Add MIDR encoding for HiSilicon Taishan CPUs
    9190141529fb rtc: pcf8523: set xtal load capacitance from DT
    961ba81d08d8 usb: handle warm-reset port requests on hub resume
    3a77562e18bf ALSA: usb-audio: Cleanup DSD whitelist
    a0608eec296d usb: dwc3: gadget: clear DWC3_EP_TRANSFER_STARTED on cmd complete
    d0e8b35e915e usb: dwc3: gadget: early giveback if End Transfer already completed
    335d4f818246 samples: bpf: fix: seg fault with NULL pointer arg
    c41f30e8d233 HID: steam: fix deadlock with input devices.
    4c8ae7221bcc HID: steam: fix boot loop with bluetooth firmware
    ce05beb3b402 NFSv4: Ensure that the state manager exits the loop on SIGKILL
    952b0285826e HID: Add ASUS T100CHI keyboard dock battery quirks
    24ec7c1b9b17 staging: mt7621-pinctrl: use pinconf-generic for 'dt_node_to_map' and 'dt_free_map'
    b064e272023c scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks
    9aafa2996921 clk: boston: unregister clks on failure in clk_boston_setup()
    1ba6488775f1 ath10k: assign 'n_cipher_suites = 11' for WCN3990 to enable WPA3
    a6af54d4ad0d platform/x86: Fix config space access for intel_atomisp2_pm
    8694ceba9338 platform/x86: Add the VLV ISP PCI ID to atomisp2_pm
    8c1b1d3c7593 HID: i2c-hid: Add Odys Winbook 13 to descriptor override
    3db3961160f6 HID: i2c-hid: Ignore input report if there's no data present on Elan touchpanels
    e0bcac994ad8 HID: i2c-hid: Disable runtime PM for LG touchscreen
    d8187ff32b23 netfilter: ipset: Make invalid MAC address checks consistent
    cb38a17cc880 Btrfs: fix deadlock on tree root leaf when finding free extent
    33970cf511c8 PCI: Fix Switchtec DMA aliasing quirk dmesg noise
    437de04184bc bcache: fix input overflow to writeback_rate_minimum
    be488566ef2f drm/msm/dpu: handle failures while initializing displays
    b5b3bb03c372 x86/cpu: Add Atom Tremont (Jacobsville)
    ab0888699734 tools/power turbostat: fix goldmont C-state limit decoding
    4da8b5f8a71d usb: dwc2: fix unbalanced use of external vbus-supply
    649ee6f0c677 HID: i2c-hid: add Direkt-Tek DTLAPY133-1 to descriptor override
    ce43554395a3 f2fs: fix to recover inode->i_flags of inode block during POR
    b619de076f9c f2fs: fix to recover inode's i_gc_failures during POR
    23848022460f powerpc/powernv: hold device_hotplug_lock when calling memtrace_offline_pages()
    bff91a961a05 sc16is7xx: Fix for "Unexpected interrupt: 8"
    157c391babd7 scsi: lpfc: Fix a duplicate 0711 log message number.
    6b2fbfacd74b f2fs: flush quota blocks after turnning it off
    e5641f02dc9e wil6210: fix freeing of rx buffers in EDMA mode
    d8ab4185ea55 btrfs: tracepoints: Fix wrong parameter order for qgroup events
    6bcbe35027e2 btrfs: qgroup: Always free PREALLOC META reserve in btrfs_delalloc_release_extents()
    96b9b94647b0 Btrfs: fix memory leak due to concurrent append writes with fiemap
    692aa7d55ff8 Btrfs: fix inode cache block reserve leak on failure to allocate data space
    a8afda7774a3 dm snapshot: rework COW throttling to fix deadlock
    223f1af69da8 dm snapshot: introduce account_start_copy() and account_end_copy()
    0ca37291020e zram: fix race between backing_dev_show and backing_dev_store
    ef244c308885 Linux 4.19.81
    27414f90ff6e RDMA/cxgb4: Do not dma memory off of the stack
    054441182b51 blk-rq-qos: fix first node deletion of rq_qos_del()
    2ada40308a0d PCI: PM: Fix pci_power_up()
    ccb02adf3293 xen/netback: fix error path of xenvif_connect_data()
    89ab39da1452 cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown
    5f19cbb3ab3f memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'
    0b95aaae783f btrfs: tracepoints: Fix bad entry members of qgroup events
    1b921b5bc47f Btrfs: check for the full sync flag while holding the inode lock during fsync
    ac6bae2b524d Btrfs: add missing extents release on file extent cluster relocation error
    6cd5be9832eb btrfs: block-group: Fix a memory leak due to missing btrfs_put_block_group()
    a5a10f7800ed pinctrl: armada-37xx: swap polarity on LED group
    e0e489aa5bd0 pinctrl: armada-37xx: fix control of pins 32 and up
    5e9d71802ddc pinctrl: cherryview: restore Strago DMI workaround for all versions
    4dedaa73c4c4 x86/apic/x2apic: Fix a NULL pointer deref when handling a dying cpu
    1709917289cd x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area
    e49c84c51c3a dm cache: fix bugs when a GFP_NOWAIT allocation fails
    5ce7528c4d4a tracing: Fix race in perf_trace_buf initialization
    96202569b9fe perf/aux: Fix AUX output stopping
    01332b037066 CIFS: Fix use after free of file info structures
    71cf88165ff0 CIFS: avoid using MID 0xFFFF
    4292745536d2 arm64: Enable workaround for Cavium TX2 erratum 219 when running SMT
    d97e4a6d2b2f EDAC/ghes: Fix Use after free in ghes_edac remove path
    ca65fe21981b parisc: Fix vmap memory leak in ioremap()/iounmap()
    19e2ed7bfabe xtensa: drop EXPORT_SYMBOL for outs*/ins*
    30cff8ab6ed7 mm/memory-failure: poison read receives SIGKILL instead of SIGBUS if mmaped more than once
    91eec7692b94 hugetlbfs: don't access uninitialized memmaps in pfn_range_valid_gigantic()
    f712e3066f75 mm/page_owner: don't access uninitialized memmaps when reading /proc/pagetypeinfo
    bb6932c5a473 mm/slub: fix a deadlock in show_slab_objects()
    9792afbd630b mm/memory-failure.c: don't access uninitialized memmaps in memory_failure()
    01a44055a48a mmc: cqhci: Commit descriptors before setting the doorbell
    6ea856efef9f fs/proc/page.c: don't access uninitialized memmaps in fs/proc/page.c
    43a2a6c2f0fb drivers/base/memory.c: don't access uninitialized memmaps in soft_offline_page_store()
    4d5307c099af drm/amdgpu: Bail earlier when amdgpu.cik_/si_support is not set to 1
    11377c3e997e drm/ttm: Restore ttm prefaulting
    33af2a8ee304 drm/edid: Add 6 bpc quirk for SDC panel in Lenovo G50
    24ca62892032 mac80211: Reject malformed SSID elements
    73c066a9552a cfg80211: wext: avoid copying malformed SSIDs
    83dc16707f6d ACPI: CPPC: Set pcc_data[pcc_ss_id] to NULL in acpi_cppc_processor_exit()
    8e367b029e61 ASoC: rsnd: Reinitialize bit clock inversion flag for every format setting
    b0dd6a24255e Input: synaptics-rmi4 - avoid processing unknown IRQs
    aa9402c14df6 Input: da9063 - fix capability and drop KEY_SLEEP
    e254d4359259 scsi: ch: Make it possible to open a ch device multiple times again
    0c6905197c5b scsi: core: try to get module before removing device
    2a675e73dfec scsi: core: save/restore command resid for error handling
    0cea86f270e9 scsi: sd: Ignore a failure to sync cache due to lack of authorization
    3638ccda1009 scsi: zfcp: fix reaction on bit error threshold notification
    d07c028d2bc9 staging: wlan-ng: fix exit return when sme->key_idx >= NUM_WEPKEYS
    4034a5030589 MIPS: tlbex: Fix build_restore_pagemask KScratch restore
    9f7e157464cd USB: ldusb: fix read info leaks
    3b73a0e453bd USB: usblp: fix use-after-free on disconnect
    28ab2c5f5899 USB: ldusb: fix memleak on disconnect
    edd3e9c71cc8 USB: serial: ti_usb_3410_5052: fix port-close races
    068fcbe895cd usb: udc: lpc32xx: fix bad bit shift operation
    7ed43d2eb0ec ALSA: hda - Force runtime PM on Nvidia HDMI codecs
    7dda74810c9a ALSA: usb-audio: Disable quirks for BOSS Katana amplifiers
    6c8a9a46ec57 ALSA: hda/realtek - Enable headset mic on Asus MJ401TA
    30a83eb0a09d ALSA: hda/realtek - Add support for ALC711
    5366778bf0ed USB: legousbtower: fix memleak on disconnect
    99b45e7a1ba1 memfd: Fix locking when tagging pins
    2770f80afde7 sctp: change sctp_prot .no_autobind with true
    cd8c21ca7022 net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow
    da4f0aed87d5 net: ipv6: fix listify ip6_rcv_finish in case of forwarding
    cc2d858b3f73 net/ibmvnic: Fix EOI when running in XIVE mode.
    3f9d4e3c2954 net: i82596: fix dma_alloc_attr for sni_82596
    da0baae9a725 net: bcmgenet: Set phydev->dev_flags only for internal PHYs
    c0f5839a483f net: bcmgenet: Fix RGMII_MODE_EN value for GENET v1/2/3
    16d67acad815 net: avoid potential infinite loop in tc_ctl_action()
    2fa80e64de33 ipv4: Return -ENETUNREACH if we can't create route but saddr is valid
    2ec0df4e3fee ipv4: fix race condition between route lookup and invalidation
    0d3ad773b445 ocfs2: fix panic due to ocfs2_wq is null
    0933b0db7fb2 Revert "drm/radeon: Fix EEH during kexec"
    9457994a53d1 md/raid0: fix warning message for parameter default_layout
    51f0c10890aa libata/ahci: Fix PCS quirk application
    9bc5a4db9aa9 namespace: fix namespace.pl script to support relative paths
    6acbcd1429f1 r8152: Set macpassthru in reset_resume callback
    0cb5c7b06a0a lib: textsearch: fix escapes in example code
    50699af3609c net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write()
    db1e664e2d80 mips: Loongson: Fix the link time qualifier of 'serial_exit()'
    b43bf6b10344 net: dsa: rtl8366rb: add missing of_node_put after calling of_get_child_by_name
    a16a9c10b2b0 netfilter: nft_connlimit: disable bh on garbage collection
    13104599d07f mac80211: fix txq null pointer dereference
    09c5a5bb0f26 nl80211: fix null pointer dereference
    90a886b68faa xen/efi: Set nonblocking callbacks
    5d880444955e MIPS: dts: ar9331: fix interrupt-controller size
    6d0da953bd8e net: dsa: qca8k: Use up to 7 ports for all operations
    1cd24f5edab8 ARM: dts: am4372: Set memory bandwidth limit for DISPC
    960019214539 ieee802154: ca8210: prevent memory leak
    ec3817c62ede ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage()
    a23cd06c2cd2 ARM: OMAP2+: Fix missing reset done flag for am3 and am43
    fcff55e25593 scsi: qla2xxx: Fix unbound sleep in fcport delete path.
    c3d475c7d9b9 scsi: megaraid: disable device when probe failed after enabled device
    c6d91bd3fa35 scsi: ufs: skip shutdown if hba is not powered
    db783e05df55 nvme-pci: Fix a race in controller removal
    c3038e718a19 Linux 4.19.80
    0603d82bcae4 perf/hw_breakpoint: Fix arch_hw_breakpoint use-before-initialization
    91849adc9f90 PCI: vmd: Fix config addressing when using bus offsets
    cd4b60e57a7a x86/asm: Fix MWAITX C-state hint value
    99ada52ce213 hwmon: Fix HWMON_P_MIN_ALARM mask
    b9040fab5f36 tracing: Get trace_array reference for available_tracers files
    a6c9fb2c2ce4 ftrace: Get a reference counter for the trace_array on filter files
    b7f758631d69 tracing/hwlat: Don't ignore outer-loop duration when calculating max_latency
    6271cbff9309 tracing/hwlat: Report total time spent in all NMIs during the sample
    3766c9d9c47c arm64/sve: Fix wrong free for task->thread.sve_state
    6f64aa703c0c media: stkwebcam: fix runtime PM after driver unbind
    664ec2db3b1f Fix the locking in dcache_readdir() and friends
    a64241ba496c arm64: topology: Use PPTT to determine if PE is a thread
    b098a4cd99ff ACPI/PPTT: Add support for ACPI 6.3 thread flag
    a73306414fcd ACPICA: ACPI 6.3: PPTT add additional fields in Processor Structure Flags
    34ab38cd8098 MIPS: elf_hwcap: Export userspace ASEs
    aaa81d9e6523 MIPS: Disable Loongson MMI instructions for kernel build
    e9360f393d7b NFS: Fix O_DIRECT accounting of number of bytes read/written
    e0805d7f7f1b btrfs: fix uninitialized ret in ref-verify
    f7313de46e46 btrfs: fix incorrect updating of log root tree
    a8de7090805d cifs: use cifsInodeInfo->open_file_lock while iterating to avoid a panic
    f6c715708fb8 iio: adc: stm32-adc: fix a race when using several adcs with dma and irq
    a9968a4d6399 iio: adc: stm32-adc: move registers definitions
    410ab742a503 gpiolib: don't clear FLAG_IS_OUT when emulating open-drain/open-source
    b41013b51870 firmware: google: increment VPD key_len properly
    491a39dcee44 mm/vmpressure.c: fix a signedness bug in vmpressure_register_event()
    7bbe6eefdbb3 kernel/sysctl.c: do not override max_threads provided by userspace
    230b339a7c75 CIFS: Force reval dentry if LOOKUP_REVAL flag is set
    0bc78de461b4 CIFS: Force revalidate inode when dentry is stale
    d72c2115108f CIFS: Gracefully handle QueryInfo errors during open
    345c03a0defb blk-wbt: fix performance regression in wbt scale_up/scale_down
    d855a5f2dec7 perf inject jit: Fix JIT_CODE_MOVE filename
    47a4e4decddd perf llvm: Don't access out-of-scope array
    ee7ee6cfc3af efivar/ssdt: Don't iterate over EFI vars if no SSDT override was specified
    c9a182ddf2d4 iio: light: opt3001: fix mutex unlock race
    811616a6400d iio: adc: axp288: Override TS pin bias current for some models
    99757b1d9c17 iio: adc: ad799x: fix probe error handling
    2cb6f0417ee1 iio: adc: hx711: fix bug in sampling of data
    2f9a82e2d2e6 staging: vt6655: Fix memory leak in vt6655_probe
    df455ed36901 Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc
    d58d477c5852 gpio: eic: sprd: Fix the incorrect EIC offset when toggling
    ce20fd3e1530 mei: avoid FW version request on Ibex Peak and earlier
    d7e57796b6c0 mei: me: add comet point (lake) LP device ids
    f931791751d3 USB: legousbtower: fix use-after-free on release
    e3f445666f51 USB: legousbtower: fix open after failed reset request
    99c0c615ff98 USB: legousbtower: fix potential NULL-deref on disconnect
    fe471bf16720 USB: legousbtower: fix deadlock on disconnect
    4fde6c982393 USB: legousbtower: fix slab info leak at probe
    dff3bc5edcf6 usb: renesas_usbhs: gadget: Fix usb_ep_set_{halt,wedge}() behavior
    55efffb294d2 usb: renesas_usbhs: gadget: Do not discard queues in usb_ep_set_{halt,wedge}()
    3b089cef3cc1 USB: dummy-hcd: fix power budget for SuperSpeed mode
    ab8d87d14d82 USB: microtek: fix info-leak at probe
    0f14e44ebc0e USB: usblcd: fix I/O after disconnect
    58c2b4c5610d USB: serial: fix runtime PM after driver unbind
    8dcda04939fd USB: serial: option: add support for Cinterion CLS8 devices
    f7ab1c54c1a4 USB: serial: option: add Telit FN980 compositions
    13b0420eb2ea USB: serial: ftdi_sio: add device IDs for Sienna and Echelon PL-20
    a463d20a5772 USB: serial: keyspan: fix NULL-derefs on open() and write()
    21917fcb05d1 serial: uartlite: fix exit path null pointer
    0c999b4b00db USB: ldusb: fix NULL-derefs on driver unbind
    39fe586c4069 USB: chaoskey: fix use-after-free on release
    2f2b039530ea USB: usblp: fix runtime PM after driver unbind
    2095532522d1 USB: iowarrior: fix use-after-free after driver unbind
    7f93c8c89541 USB: iowarrior: fix use-after-free on release
    2fdcf7e19bde USB: iowarrior: fix use-after-free on disconnect
    ab162d331cc1 USB: adutux: fix use-after-free on release
    ca9c18c00a95 USB: adutux: fix NULL-derefs on disconnect
    316f51d77597 USB: adutux: fix use-after-free on disconnect
    ea7255663398 xhci: Increase STS_SAVE timeout in xhci_suspend()
    cbc5abaa6f30 xhci: Prevent deadlock when xhci adapter breaks during init
    fde058a17c18 usb: xhci: wait for CNR controller not ready bit in xhci resume
    13e793da4f70 xhci: Fix USB 3.1 capability detection on early xHCI 1.1 spec based hosts
    d6bdd4686ffc xhci: Check all endpoints for LPM timeout
    faa0502a5be5 xhci: Prevent device initiated U1/U2 link pm if exit latency is too long
    077855ba2df2 xhci: Fix false warning message about wrong bounce buffer write length
    31604075ceb4 USB: usb-skeleton: fix NULL-deref on disconnect
    dcabc48fe0ac USB: usb-skeleton: fix runtime PM after driver unbind
    571a14063619 USB: yurex: fix NULL-derefs on disconnect
    a8fe336f20b9 USB: yurex: Don't retry on unexpected errors
    86575b7f636f USB: rio500: Remove Rio 500 kernel driver
    95bcc0d980ae f2fs: use EINVAL for superblock with invalid magic
    7d1688c6731b panic: ensure preemption is disabled during panic()
    dafd634415a7 Linux 4.19.79
    1bd17a737c9e nl80211: validate beacon head
    527ba5d7634b cfg80211: Use const more consistently in for_each_element macros
    ad180cace853 cfg80211: add and use strongly typed element iteration macros
    3dab5ba6d7ae staging: erofs: detect potential multiref due to corrupted images
    8b4341f9b80b staging: erofs: add two missing erofs_workgroup_put for corrupted images
    596bbc4e0edf staging: erofs: some compressed cluster should be submitted for corrupted images
    e7c44410387c staging: erofs: fix an error handling in erofs_readdir()
    1b94c1e80ca8 coresight: etm4x: Use explicit barriers on enable/disable
    effad578c23f vfs: Fix EOVERFLOW testing in put_compat_statfs64
    d976344d27f7 arm64/speculation: Support 'mitigations=' cmdline option
    af33d746286c arm64: Use firmware to detect CPUs that are not affected by Spectre-v2
    17d1acc4c61d arm64: Force SSBS on context switch
    fe22ea561ce0 arm64: ssbs: Don't treat CPUs with SSBS as unaffected by SSB
    dada3a4abb43 arm64: add sysfs vulnerability show for speculative store bypass
    f41df38898ec arm64: add sysfs vulnerability show for spectre-v2
    9d1bb39cdd96 arm64: Always enable spectre-v2 vulnerability detection
    b1a33cfd8034 arm64: Advertise mitigation of Spectre-v2, or lack thereof
    59a6dc262c85 arm64: Provide a command line to disable spectre_v2 mitigation
    c131623b1e9d arm64: Always enable ssb vulnerability detection
    47a11f2eafcc arm64: enable generic CPU vulnerabilites support
    512158d0c67e arm64: add sysfs vulnerability show for meltdown
    047aac35fd1a arm64: Add sysfs vulnerability show for spectre-v1
    edfc026626d6 arm64: fix SSBS sanitization
    09c22781dd2c arm64: docs: Document SSBS HWCAP
    a59d42ac50a1 KVM: arm64: Set SCTLR_EL2.DSSBS if SSBD is forcefully disabled and !vhe
    1eaff33e2441 arm64: ssbd: Add support for PSTATE.SSBS rather than trapping to EL3
    d286a37471b6 riscv: Avoid interrupts being erroneously enabled in handle_exception()
    5b67a4721ddd perf stat: Reset previous counts on repeat with interval
    15c57bf9dcf8 perf tools: Fix segfault in cpu_cache_level__read()
    e5331c37c08b tick: broadcast-hrtimer: Fix a race in bc_set_next
    140acbb09384 tools lib traceevent: Do not free tep->cmdlines in add_new_comm() on failure
    d1e4b4cc3bba powerpc/book3s64/radix: Rename CPU_FTR_P9_TLBIE_BUG feature flag
    f5f31a6ea558 powerpc/pseries: Fix cpu_hotplug_lock acquisition in resize_hpt()
    c688982ffaeb nbd: fix crash when the blksize is zero
    63bb8b76ed62 KVM: nVMX: Fix consistency check on injected exception error code
    34b13ff69668 KVM: PPC: Book3S HV: XIVE: Free escalation interrupts before disabling the VP
    1b155b4fe8b4 drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed
    04e0c84f137d nfp: flower: fix memory leak in nfp_flower_spawn_vnic_reprs
    575a5bb3d372 perf unwind: Fix libunwind build failure on i386 systems
    b0aaf65bb16a kernel/elfcore.c: include proper prototypes
    bab46480e6f9 perf build: Add detection of java-11-openjdk-devel package
    46ff0e2f869f sched/core: Fix migration to invalid CPU in __set_cpus_allowed_ptr()
    6cb7aa1b4f94 sched/membarrier: Fix private expedited registration check
    e250f2b6aa9e sched/membarrier: Call sync_core only before usermode for same mm
    9f33b178cbb2 libnvdimm/nfit_test: Fix acpi_handle redefinition
    7b4f541fcd1c fuse: fix memleak in cuse_channel_open
    2e93d24ac75e libnvdimm/region: Initialize bad block for volatile namespaces
    9025adf37ee8 thermal_hwmon: Sanitize thermal_zone type
    c01a9dbec18a thermal: Fix use-after-free when unregistering thermal zone device
    55ebeb4e865d ntb: point to right memory window index
    9dabade5c197 x86/purgatory: Disable the stackleak GCC plugin for the purgatory
    65348659535d pwm: stm32-lp: Add check in case requested period cannot be achieved
    19b1c70e911c pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors
    1c70ae6a91f9 drm/amdgpu: Check for valid number of registers to read
    e0af3b19ad77 drm/amdgpu: Fix KFD-related kernel oops on Hawaii
    f7ace7f25214 netfilter: nf_tables: allow lookups in dynamic sets
    f217883bbc92 watchdog: aspeed: Add support for AST2600
    520c2a64fc78 ceph: reconnect connection if session hang in opening state
    0275113fc09a ceph: fix directories inode i_blkbits initialization
    2bc2a90a083a xen/pci: reserve MCFG areas earlier
    18dd2b05f349 9p: avoid attaching writeback_fid on mmap with type PRIVATE
    07f3596ce344 9p: Transport error uninitialized
    448deb13ab9e fs: nfs: Fix possible null-pointer dereferences in encode_attrs()
    4753e7a824cb ima: fix freeing ongoing ahash_request
    b69c3085fcc6 ima: always return negative code for error
    6df3c66de09d arm64: cpufeature: Detect SSBS and advertise to userspace
    3a0e673305e2 cfg80211: initialize on-stack chandefs
    16c75eb13a72 s390/cio: avoid calling strlen on null pointer
    3f41e88f4bd4 ieee802154: atusb: fix use-after-free at disconnect
    975859bb69b2 xen/xenbus: fix self-deadlock after killing user process
    e409b81d9ddb Revert "locking/pvqspinlock: Don't wait if vCPU is preempted"
    7ed2867ceb41 mmc: sdhci-of-esdhc: set DMA snooping based on DMA coherence
    4509a19d5082 mmc: sdhci: improve ADMA error reporting
    873f49d6a4e8 drm/i915/gvt: update vgpu workload head pointer correctly
    198bc7040c48 drm/nouveau/kms/nv50-: Don't create MSTMs for eDP connectors
    7a85c8673551 drm/msm/dsi: Fix return value check for clk_get_parent
    0e45633f49ef drm/omap: fix max fclk divider for omap36xx
    90ac4028739c perf stat: Fix a segmentation fault when using repeat forever
    22f28afd3d77 watchdog: imx2_wdt: fix min() calculation in imx2_wdt_set_timeout
    e7cf8cc79f93 PCI: Restore Resizable BAR size bits correctly for 1MB BARs
    956ce989c41f PCI: vmd: Fix shadow offsets to reflect spec changes
    06f250215beb timer: Read jiffies once when forwarding base clk
    12c6c4a50f66 usercopy: Avoid HIGHMEM pfn warning
    e010c9835183 tracing: Make sure variable reference alias has correct var_ref_idx
    022ca58f109e power: supply: sbs-battery: only return health when battery present
    5cb6dd823127 power: supply: sbs-battery: use correct flags field
    fb93ccde081e MIPS: Treat Loongson Extensions as ASEs
    a0dc60ac6bef crypto: ccree - use the full crypt length value
    f5c087a0d9a0 crypto: ccree - account for TEE not ready to report
    561bf9309209 crypto: caam - fix concurrency issue in givencrypt descriptor
    3683dd7074dc crypto: cavium/zip - Add missing single_release()
    cd8e0a5d94fb crypto: skcipher - Unmap pages after an external error
    9349108ae499 crypto: qat - Silence smp_processor_id() warning
    532920b26678 tools lib traceevent: Fix "robust" test of do_generate_dynamic_list_file
    4aaea17d3c31 can: mcp251x: mcp251x_hw_reset(): allow more time after a reset
    9124eac41a67 powerpc/book3s64/mm: Don't do tlbie fixup for some hardware revisions
    19c12f12093e powerpc/powernv/ioda: Fix race in TCE level allocation
    032ce7d766a9 powerpc/powernv: Restrict OPAL symbol map to only be readable by root
    ba3ca9fcb0e7 powerpc/mce: Schedule work from irq_work
    ee6eeeb88e79 powerpc/mce: Fix MCE handling for huge pages
    1284f2073415 ASoC: sgtl5000: Improve VAG power and mute control
    50090b75fa89 ASoC: Define a set of DAPM pre/post-up events
    42b888f63333 PM / devfreq: tegra: Fix kHz to Hz conversion
    9f0f39c92e4f nbd: fix max number of supported devs
    eff3a54aae68 KVM: nVMX: handle page fault in vmread fix
    21874027e1de KVM: X86: Fix userspace set invalid CR4
    30fbe0d380aa KVM: PPC: Book3S HV: Don't lose pending doorbell request on migration on P9
    4faa7f05af75 KVM: PPC: Book3S HV: Check for MMU ready on piggybacked virtual cores
    577a5119d7af KVM: PPC: Book3S HV: Fix race in re-enabling XIVE escalation interrupts
    46cb14a57088 s390/cio: exclude subchannels with no parent from pseudo check
    9aa823b3c0a6 s390/topology: avoid firing events before kobjs are created
    ddfef75f877b KVM: s390: Test for bad access register and size at the start of S390_MEM_OP
    8b41a30f91db s390/process: avoid potential reading of freed stack

(From OE-Core rev: 8a36666265002805134cc3786c0e81bc709d8d10)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit e23a86fa40be2e1dfe50baeebe787e98f793cc5b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
65f6271bf5 linux-yocto/5.2: update to v5.2.23
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    6e5893ab1fe2 Linux 5.2.23
    86ac741509b1 kvm: x86: mmu: Recovery of shattered NX large pages
    c553a0a399c9 kvm: Add helper function for creating VM worker threads
    f2bf2c447af6 kvm: mmu: ITLB_MULTIHIT mitigation
    f06ad290c8f0 KVM: x86: make FNAME(fetch) and __direct_map more similar
    18b180d7a0f1 kvm: x86, powerpc: do not allow clearing largepages debugfs entry
    ff893d92a664 Documentation: Add ITLB_MULTIHIT documentation
    f9adaf5c4457 cpu/speculation: Uninline and export CPU mitigations helpers
    0b2c4ab2b97c x86/cpu: Add Tremont to the cpu vulnerability whitelist
    eaa0b155027e x86/bugs: Add ITLB_MULTIHIT bug infrastructure
    dccf9a56da2e x86/speculation/taa: Fix printing of TAA_MSG_SMT on IBRS_ALL CPUs
    32bd35cc9e6c x86/tsx: Add config options to set tsx=on|off|auto
    c4ed63015b6a x86/speculation/taa: Add documentation for TSX Async Abort
    43e4f038964c x86/tsx: Add "auto" option to the tsx= cmdline parameter
    995c701aa712 kvm/x86: Export MDS_NO=0 to guests when TSX is enabled
    085db27a9d8a x86/speculation/taa: Add sysfs reporting for TSX Async Abort
    0d7366963e51 x86/speculation/taa: Add mitigation for TSX Async Abort
    10d64704b2e6 x86/cpu: Add a "tsx=" cmdline option with TSX disabled by default
    e97aa6c96e2e x86/cpu: Add a helper function x86_read_arch_cap_msr()
    817956f7cd90 x86/msr: Add the IA32_TSX_CTRL MSR
    4ad18dc35ed7 x86/cpu: Move arch_smt_update() to a neutral place

(From OE-Core rev: 9049ff4d12ac0f356edd4c755498a016c85dd7ca)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit 441e9dc823fdf4fd9da2332ec63afcf6098773af)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
2d65f82bc8 linux-yocto/5.2: update to v5.2.22
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    0bea818b6e18 Linux 5.2.22
    5f1126e23315 nbd: verify socket is supported during setup
    4888496abcfe USB: usblp: fix use-after-free on disconnect
    0ba545e8fda8 USB: legousbtower: fix a signedness bug in tower_probe()
    4c6f2341bb9f CIFS: Fix use after free of file info structures
    f9c400068647 scsi: mpt3sas_ctl: fix double-fetch bug in _ctl_ioctl_main()
    14c5cace4634 wcd9335: fix a incorrect use of kstrndup()
    da7b0f2312c9 clk-sunxi: fix a missing-check bug in sunxi_divs_clk_setup()
    ee72fe755500 cfg80211: wext: avoid copying malformed SSIDs
    fc86526a556d rtlwifi: Fix potential overflow on P2P code
    0ebeef211891 io_uring: only flush workqueues on fileset removal
    e6a26dac8182 x86/asm: Fix MWAITX C-state hint value
    65113f3d3937 mtd: rawnand: au1550nd: Fix au_read_buf16() prototype
    31012d874e0c hwmon: Fix HWMON_P_MIN_ALARM mask
    3abf2667e95a tracing: Get trace_array reference for available_tracers files
    be0e6c911005 ftrace: Get a reference counter for the trace_array on filter files
    a2a980deef30 tracing/hwlat: Don't ignore outer-loop duration when calculating max_latency
    225fca30418d tracing/hwlat: Report total time spent in all NMIs during the sample
    19b6d82baabe arm64/sve: Fix wrong free for task->thread.sve_state
    2473b968eecb media: stkwebcam: fix runtime PM after driver unbind
    eecc5223277d drm/i915: Mark contents as dirty on a write fault
    04887f273e41 drm/i915: Whitelist COMMON_SLICE_CHICKEN2
    60624198d203 Fix the locking in dcache_readdir() and friends
    c5325876ceb9 arm64: topology: Use PPTT to determine if PE is a thread
    393cf2726151 ACPI/PPTT: Add support for ACPI 6.3 thread flag
    daa13a4b0635 RDMA/vmw_pvrdma: Free SRQ only once
    6243ecc8cab6 MIPS: elf_hwcap: Export userspace ASEs
    ae0799a4da1b MIPS: Disable Loongson MMI instructions for kernel build
    f0f81c9999ab NFS: Fix O_DIRECT accounting of number of bytes read/written
    7a80e6581ea9 btrfs: fix uninitialized ret in ref-verify
    ddf6cef435f0 btrfs: fix incorrect updating of log root tree
    1296b41cc1d3 Btrfs: fix memory leak due to concurrent append writes with fiemap
    810f5770978a btrfs: fix balance convert to single on 32-bit host CPUs
    7816678e3934 btrfs: allocate new inode in NOFS context
    74ec5aa2c30a btrfs: relocation: fix use-after-free on dead relocation roots
    bc1f6ac176a6 firmware: google: increment VPD key_len properly
    9fc11ae5dee9 IB/core: Fix wrong iterating on ports
    fee3c62537ff mm/vmpressure.c: fix a signedness bug in vmpressure_register_event()
    e3a378783419 mm/page_alloc.c: fix a crash in free_pages_prepare()
    e4891ccaef9e mm/z3fold.c: claim page in the beginning of free
    7831f5a6c097 kernel/sysctl.c: do not override max_threads provided by userspace
    44481a12c9bf cifs: use cifsInodeInfo->open_file_lock while iterating to avoid a panic
    16ae17c41281 CIFS: Force reval dentry if LOOKUP_REVAL flag is set
    2c272ff0cbd5 CIFS: Force revalidate inode when dentry is stale
    43273ccd3283 CIFS: Gracefully handle QueryInfo errors during open
    ca814325c659 selinux: fix context string corruption in convert_context()
    ad8d7e2a7a26 blk-wbt: fix performance regression in wbt scale_up/scale_down
    1b64f52e03de perf inject jit: Fix JIT_CODE_MOVE filename
    5cc59bf53d49 perf llvm: Don't access out-of-scope array
    7f9ed4c203f0 efivar/ssdt: Don't iterate over EFI vars if no SSDT override was specified
    5ef016833bac iio: accel: adxl372: Perform a reset at start up
    9f77cc5a7309 iio: accel: adxl372: Fix push to buffers lost samples
    d3db274a52ef iio: accel: adxl372: Fix/remove limitation for FIFO samples
    a9ab504bfa61 iio: adc: stm32-adc: fix a race when using several adcs with dma and irq
    29166478ab00 iio: adc: stm32-adc: move registers definitions
    05505674fad5 iio: adc: axp288: Override TS pin bias current for some models
    f418fb5e545d iio: adc: ad799x: fix probe error handling
    dc9b7ddfd0e5 iio: adc: hx711: fix bug in sampling of data
    5f711a67527d staging: vt6655: Fix memory leak in vt6655_probe
    e72f973d2600 staging: rtl8188eu: fix HighestRate check in odm_ARFBRefresh_8188E()
    34a95338fd57 Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc
    b83f3fd3dc3c staging: bcm2835-audio: Fix draining behavior regression
    fe77671d3437 staging/fbtft: Depend on OF
    597abe928ec2 gpio: eic: sprd: Fix the incorrect EIC offset when toggling
    5e7c238cfafe mei: avoid FW version request on Ibex Peak and earlier
    4e68c8ad0d11 mei: me: add comet point (lake) LP device ids
    74a2ab15fa03 USB: legousbtower: fix use-after-free on release
    d5a37b79b977 USB: legousbtower: fix open after failed reset request
    470d1d920d61 USB: legousbtower: fix potential NULL-deref on disconnect
    b1c95308efbb USB: legousbtower: fix deadlock on disconnect
    0d7afcc3e67d USB: legousbtower: fix slab info leak at probe
    2164d586fe13 usb: typec: ucsi: displayport: Fix for the mode entering routine
    ed9dc2e12645 usb: typec: tcpm: usb: typec: tcpm: Fix a signedness bug in tcpm_fw_get_caps()
    ae07c4d583f0 usb: renesas_usbhs: gadget: Fix usb_ep_set_{halt,wedge}() behavior
    59f9a556d12c usb: renesas_usbhs: gadget: Do not discard queues in usb_ep_set_{halt,wedge}()
    c73e4656e029 USB: dummy-hcd: fix power budget for SuperSpeed mode
    8604ad319705 USB: microtek: fix info-leak at probe
    942d159f33d5 USB: usblcd: fix I/O after disconnect
    45e6742b3543 USB: serial: fix runtime PM after driver unbind
    f07e614a1eae USB: serial: option: add support for Cinterion CLS8 devices
    60efccd42001 USB: serial: option: add Telit FN980 compositions
    96464fe403ed USB: serial: ftdi_sio: add device IDs for Sienna and Echelon PL-20
    e05502d06a6e USB: serial: keyspan: fix NULL-derefs on open() and write()
    eb98769b935a serial: uartps: Fix uartps_major handling
    7dba6bf5f7d8 serial: uartlite: fix exit path null pointer
    46f1bfcd1c4e USB: ldusb: fix NULL-derefs on driver unbind
    536e1ab01853 USB: chaoskey: fix use-after-free on release
    2443d5a06e95 USB: usblp: fix runtime PM after driver unbind
    78941115be20 USB: iowarrior: fix use-after-free after driver unbind
    52f1bf2513ae USB: iowarrior: fix use-after-free on release
    259a1454a1c4 USB: iowarrior: fix use-after-free on disconnect
    63ee1fedd6de USB: adutux: fix use-after-free on release
    b6c09eee2d43 USB: adutux: fix NULL-derefs on disconnect
    0c72bbbe474a USB: adutux: fix use-after-free on disconnect
    a12a9cd6c351 xhci: Increase STS_SAVE timeout in xhci_suspend()
    a260279b7617 xhci: Prevent deadlock when xhci adapter breaks during init
    c8d9f36aa6b1 usb: xhci: wait for CNR controller not ready bit in xhci resume
    6885498721be xhci: Fix USB 3.1 capability detection on early xHCI 1.1 spec based hosts
    137c690e919a xhci: Check all endpoints for LPM timeout
    2cef9b4aef68 xhci: Prevent device initiated U1/U2 link pm if exit latency is too long
    fc87747823b9 xhci: Fix false warning message about wrong bounce buffer write length
    861e3b12fed9 USB: usb-skeleton: fix NULL-deref on disconnect
    9f4070d847cf USB: usb-skeleton: fix runtime PM after driver unbind
    968a3ec8e2de USB: yurex: fix NULL-derefs on disconnect
    f2f71a47512c USB: yurex: Don't retry on unexpected errors
    f12a275ccbf6 panic: ensure preemption is disabled during panic()
    f80586c5fc9e coresight: etm4x: Use explicit barriers on enable/disable
    f38e48b51908 vfs: Fix EOVERFLOW testing in put_compat_statfs64
    a74f766b8f43 riscv: Avoid interrupts being erroneously enabled in handle_exception()
    185f61b3655a perf stat: Reset previous counts on repeat with interval
    1479778a1947 tick: broadcast-hrtimer: Fix a race in bc_set_next
    a41c9cac2d45 KVM: nVMX: Fix consistency check on injected exception error code
    b52c034939de Btrfs: fix selftests failure due to uninitialized i_mode in test inodes
    a125322d48ac drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed
    ea9d6a619d30 nfp: abm: fix memory leak in nfp_abm_u32_knode_replace
    1f9e6c30c7ef mlxsw: spectrum_flower: Fail in case user specifies multiple mirror actions
    cd2fdf60a063 perf unwind: Fix libunwind build failure on i386 systems
    161dda893af0 i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
    86b33efd649a bpf: Fix bpf_event_output re-entry issue
    aaa8c1b8daa9 blk-mq: move lockdep_assert_held() into elevator_exit
    fc1b4d3e8239 kernel/elfcore.c: include proper prototypes
    6b2721b403ee include/trace/events/writeback.h: fix -Wstringop-truncation warnings
    cee4aad767a2 perf build: Add detection of java-11-openjdk-devel package
    043372e0afa3 sched/core: Fix migration to invalid CPU in __set_cpus_allowed_ptr()
    adf80f2feec5 sched/membarrier: Fix private expedited registration check
    61fa5ee7216c sched/membarrier: Call sync_core only before usermode for same mm
    096f6c8487c3 libnvdimm/nfit_test: Fix acpi_handle redefinition
    12a9a49442b2 fuse: fix memleak in cuse_channel_open
    7912cdc163b2 libnvdimm: Fix endian conversion issues 
    4db2cd0d1ce5 libnvdimm/region: Initialize bad block for volatile namespaces
    6fda5a687329 iommu/amd: Fix downgrading default page-sizes in alloc_pte()
    3a019ac29c6b thermal_hwmon: Sanitize thermal_zone type
    5d08f30e96d8 thermal: Fix use-after-free when unregistering thermal zone device
    a429d11015c3 ntb: point to right memory window index
    5aec3da44913 x86/purgatory: Disable the stackleak GCC plugin for the purgatory
    833db2db7272 selftests/seccomp: fix build on older kernels
    407e0ee74d22 pwm: stm32-lp: Add check in case requested period cannot be achieved
    52e5ea59746f SUNRPC: Don't try to parse incomplete RPC messages
    c0636eed33f0 pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors
    18fce724c0ea drm/amdgpu: Check for valid number of registers to read
    aecbaa9bc7af drm/amdgpu: Fix KFD-related kernel oops on Hawaii
    342e564c9b0f netfilter: nf_tables: allow lookups in dynamic sets
    4c53aef11956 watchdog: aspeed: Add support for AST2600
    fa83953efe4b SUNRPC: RPC level errors should always set task->tk_rpc_status
    f835934a6275 ceph: reconnect connection if session hang in opening state
    7403dda16eb9 ceph: fetch cap_gen under spinlock in ceph_add_cap
    5c3e30081baa ceph: fix directories inode i_blkbits initialization
    e821008425d5 fuse: fix request limit
    92549d8ceef5 xen/pci: reserve MCFG areas earlier
    e99fd0070701 9p: avoid attaching writeback_fid on mmap with type PRIVATE
    5f374721b520 9p: Transport error uninitialized
    d9b57935af8d xprtrdma: Send Queue size grows after a reconnect
    d478e5024a78 xprtrdma: Toggle XPRT_CONGESTED in xprtrdma's slot methods
    111e51fcf8b3 fs: nfs: Fix possible null-pointer dereferences in encode_attrs()
    b3703c37a780 ima: fix freeing ongoing ahash_request
    4752354b2b94 ima: always return negative code for error
    9370b48fcb79 drivers: thermal: qcom: tsens: Fix memory leak from qfprom read
    38ab9316e558 cfg80211: initialize on-stack chandefs
    bc518ad5972a cfg80211: validate SSID/MBSSID element ordering assumption
    b1515120bb24 nl80211: validate beacon head
    dc1118edbc7c ieee802154: atusb: fix use-after-free at disconnect
    dd72ec13bbe3 xen/xenbus: fix self-deadlock after killing user process
    ffbd4ae78614 xen/balloon: Set pages PageOffline() in balloon_add_region()
    fb019e226331 DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again
    fd5a2a47f144 libnvdimm/altmap: Track namespace boundaries in altmap
    f6e67e8fdfac Revert "locking/pvqspinlock: Don't wait if vCPU is preempted"
    9898906f5274 mmc: sdhci: Let drivers define their DMA mask
    8968e606a47f mmc: sdhci-of-esdhc: set DMA snooping based on DMA coherence
    56ced5e6024c mmc: sdhci: improve ADMA error reporting
    ba5d052c4e62 mmc: tegra: Implement ->set_dma_mask()
    31565ffd9d5d mac80211: keep BHs disabled while calling drv_tx_wake_queue()
    c5fcd037a2b2 drm/i915/gvt: update vgpu workload head pointer correctly
    359d2cb5c30a drm/nouveau/kms/nv50-: Don't create MSTMs for eDP connectors
    0b1757e6f255 drm/msm/dsi: Fix return value check for clk_get_parent
    00eccaeb55aa drm/omap: fix max fclk divider for omap36xx
    88f34afe2774 drm: mali-dp: Mark expected switch fall-through
    ccc3bc0df68d drm/atomic: Take the atomic toys away from X
    d88c0c23427b drm/atomic: Reject FLIP_ASYNC unconditionally
    6aecce20a2cd perf stat: Fix a segmentation fault when using repeat forever
    1b4371e819e8 perf tools: Fix segfault in cpu_cache_level__read()
    7311201faf48 watchdog: imx2_wdt: fix min() calculation in imx2_wdt_set_timeout
    79f5df7f2f92 selftests/tpm2: Add the missing TEST_FILES assignment
    a895c40ca633 PCI: Restore Resizable BAR size bits correctly for 1MB BARs
    0ea26a3c4336 PCI: vmd: Fix shadow offsets to reflect spec changes
    7dfe1d4b949d PCI: hv: Avoid use of hv_pci_dev->pci_slot after freeing it
    2bd27a041f5b PCI: vmd: Fix config addressing when using bus offsets
    04576078716b timer: Read jiffies once when forwarding base clk
    d964d65c20ae usercopy: Avoid HIGHMEM pfn warning
    37fdb252a315 tracing: Make sure variable reference alias has correct var_ref_idx
    212d21abd0f9 power: supply: sbs-battery: only return health when battery present
    1cee0eb9f606 power: supply: sbs-battery: use correct flags field
    51b90fe021de MIPS: Treat Loongson Extensions as ASEs
    b127de42d3ea crypto: ccree - use the full crypt length value
    f244496b19f2 crypto: ccree - account for TEE not ready to report
    de6922d9ab63 crypto: caam - fix concurrency issue in givencrypt descriptor
    4fd6651142be crypto: caam/qi - fix error handling in ERN handler
    c4b56f7746ff crypto: cavium/zip - Add missing single_release()
    a2edd8487639 crypto: skcipher - Unmap pages after an external error
    85a3e980d873 crypto: qat - Silence smp_processor_id() warning
    f00ae50250a7 tools lib traceevent: Do not free tep->cmdlines in add_new_comm() on failure
    623451aba2cf tools lib traceevent: Fix "robust" test of do_generate_dynamic_list_file
    3dcc2fed6e40 can: mcp251x: mcp251x_hw_reset(): allow more time after a reset
    82262ec35ddb powerpc/mm: Fixup tlbie vs mtpidr/mtlpidr ordering issue on POWER9
    ff2880ac0da2 powerpc/mm: Fix an Oops in kasan_mmu_init()
    5a2987852f46 powerpc/mm: Add a helper to select PAGE_KERNEL_RO or PAGE_READONLY
    45a769de36eb powerpc/book3s64/radix: Rename CPU_FTR_P9_TLBIE_BUG feature flag
    cf2b70b6b656 powerpc/book3s64/mm: Don't do tlbie fixup for some hardware revisions
    2685e06f19a6 powerpc/kasan: Fix shadow area set up for modules.
    5e7044ab7567 powerpc/kasan: Fix parallel loading of modules.
    5e56a0800d67 powerpc/powernv/ioda: Fix race in TCE level allocation
    e0f04cdca674 powerpc/pseries: Fix cpu_hotplug_lock acquisition in resize_hpt()
    e76223f82362 powerpc/powernv: Restrict OPAL symbol map to only be readable by root
    dae12b5175c7 powerpc/ptdump: Fix addresses display on PPC32
    1552ecc37cf8 powerpc/32s: Fix boot failure with DEBUG_PAGEALLOC without KASAN.
    aeea368a2c97 powerpc/603: Fix handling of the DIRTY flag
    838485d94fac powerpc/mce: Schedule work from irq_work
    5a707634e866 powerpc/mce: Fix MCE handling for huge pages
    789e9c0c699d powerpc/xive: Implement get_irqchip_state method for XIVE to fix shutdown race
    f7f281ee8c8d ASoC: sgtl5000: Improve VAG power and mute control
    917b868fc1db ASoC: Define a set of DAPM pre/post-up events
    f153e91caf36 PM / devfreq: tegra: Fix kHz to Hz conversion
    883dbbc1e7ca nbd: fix max number of supported devs
    f3a500b77c59 KVM: X86: Fix userspace set invalid CR4
    15153db63642 KVM: PPC: Book3S HV: Don't lose pending doorbell request on migration on P9
    a0bc470fc62e KVM: PPC: Book3S HV: Check for MMU ready on piggybacked virtual cores
    9772769d3990 KVM: PPC: Book3S HV: Fix race in re-enabling XIVE escalation interrupts
    93fd3eab6a8a KVM: PPC: Book3S HV: Don't push XIVE context when not using XIVE device
    2d09838ea088 KVM: PPC: Book3S HV: XIVE: Free escalation interrupts before disabling the VP
    1da0d7bce2bc KVM: PPC: Book3S: Enable XIVE native capability only if OPAL has required functions
    ed90a05c0b1b KVM: s390: fix __insn32_query() inline assembly
    87a6398ef7b8 s390/cio: exclude subchannels with no parent from pseudo check
    bd54ca01c976 s390/cio: avoid calling strlen on null pointer
    fbba7e0326fe s390/topology: avoid firing events before kobjs are created
    8892a0c67e9a KVM: s390: Test for bad access register and size at the start of S390_MEM_OP
    dac32cc04e95 s390/sclp: Fix bit checked for has_sipl
    d08741d62973 s390/process: avoid potential reading of freed stack

(From OE-Core rev: bbd287c217c8ad0184cdbf13b058aa22858b1138)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit 73c8fc8c9bf4b0fe0e485c12bee9922a64aa1cdd)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Bruce Ashfield
2958805097 linux-yocto/5.2: update to v5.2.21
Updating linux-yocto/5.2 to the latest korg -stable release that comprises
the following commits:

    e91ef5bcdeda Linux 5.2.21

(From OE-Core rev: 1cc43cd87f603651e451087d50662cd694030c01)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
(cherry picked from commit 1f51f1505cdeec5cc464bbbc14f5514d7440a426)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Martin Jansa
53b981ae2a sstate.bbclass: Fix for consistent whitespace
(From OE-Core rev: a15c05fa17bcce345ce254f02c0d6dcd97f60cb8)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e874d067ace03774132ba3030a898678057c1304)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Richard Purdie
be02afefc5 sstate: Ensure mkdir happens before mktemp
This avoids a directory not present error.

Fix a comment typo whilst here.

(From OE-Core rev: c5f285f83ea1e322d5124847904adf488d3e790a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1360d8d7d99b70a80c8cdbc1fc6d9e6752483139)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Richard Purdie
17e3fcab7a sstate: Ensure target sstate directory exists if unihash changes
The previous patches meant the mkdir might no longer match the final target
directory. Fix this.

(From OE-Core rev: 7ce42a30a7508e8fcb496ba05cf6967dc04a988e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0af4dae84099e8632a9ea6a4afdbea2f232bb170)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Richard Purdie
14823a0bda sstate: Ensure SSTATE_PKG is reloaded when handling siginfo
STATE_PKG may have been changed by sstate_report_unihash so don't
cache the variable's value.

(From OE-Core rev: bfed8be91525478ecdf6b64e6308958b3271c8cc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit be29a25400c4ea285ab3f588c5831f00ba5d4f63)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Richard Purdie
5947cc196f sstate: Stop overwriting SSTATE_PKG
Its rather antisocial to overwrite SSTATE_PKG with an expanded form for the variable
and it stops the value of BB_UNIHASH being changed when the package is written out.

Instead of expanding the variable, append to it instead to avoid this rather
hard to figure out behaviour and allow the siggen code to behave as expected.

(From OE-Core rev: fe454e9c7837a903ffcff4c6f8a25070a0f0af82)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 62eca02024b4c44d618ab9bcf87a3166c886dadb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Richard Purdie
8d72948bf4 sstate: Add ability to hide summary output for sstate
Its confusing to keep seeing sstate summary messages when hash equivalency is
active. This adds an option to control it. A default value is given which
maintains compatibility with different bitbake versions.

(From OE-Core rev: a67bd96de2b253c1d4c3bd82120f28dee06a4bf6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 038004866ff6650bcff7bb1bde36de6c0f451d29)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-11 11:06:21 +00:00
Quanyang Wang
0dc56663c6 lttng-modules: fix NULL pointer deference error when testing rpc_task_running
This is a backport from upstream https://github.com/lttng/lttng-modules.git stable-2.10
to fix NULL pointer deference error when running kts testcase lttng_syscall_events.

(From OE-Core rev: a522ccff838ba1577255c90e64d98dd75470fb0a)

(From OE-Core rev: 754d0ae5a960056468cdf50e5965a4c22515f8f9)

Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Slavic Brutalik
07ae996d84 systemd-systemctl: Fix handling of aliased targets
The script scans for services, parses them and makes sure those targets are still
there. The exists file check fails if the target is an alias, such as default.target
so add an additional test.

[YOCTO #13685]

(From OE-Core rev: 10bdbf033e51c97f6408c9114d480372135a2c2e)

(From OE-Core rev: 64d305024e0514b832da05867672f61d1b5b3225)

Signed-off-by: Werner Grift <sky.captin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Richard Purdie
ccff952d9c qemu-helper-native/systemtap-native: Ensure sysroots are populated with dependencies
As Alex Kanavin found, dependencies aren't always populated, particularly
with the hash equivalence server enabled locally:

'bitbake core-image-minimal' with gtk+ disabled.
can confirm with: $ tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -display gtk
qemu-system-x86_64: Display 'gtk' is not available.
Enable gtk in local.conf with: PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"
'bitbake core-image-minimal', without deleting tmp/
$ tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -display gtk
qemu-system-x86_64: Display 'gtk' is not available.

This change ensures the dependencies are correctly handled as the full
sysroot is always depended upon even if things come from sstate.

(From OE-Core rev: d40853b10dd9f01d6a8dd4edcb941cfa8a544922)

(From OE-Core rev: 309424458c73b14a4a4020cd508c2bf37bf2bcbe)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Khem Raj
1699d1d55a nss: Backport clang build fix
(From OE-Core rev: 35bbb1deb4ddab3861dce7ca2ada778094fb353e)

(From OE-Core rev: 6c41308b02b940ab1841c64d73782fd2a5a0f6f6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Adrian Bunk
b67ede4d82 python/python3: Whitelist CVE-2019-18348
This is not exploitable when glibc has CVE-2016-10739 fixed,
which is fixed in the upstream version since warrior.

(From OE-Core rev: a26ac2921a1ad96959364223920402082ccd1d61)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Adrian Bunk
28b490f66a openssl: Whitelist CVE-2019-0190
This is only a problem with older Apache versions.

(From OE-Core rev: 492d43296b15514ec72dfb15f37c6d2ab1fbbae3)

(From OE-Core rev: 9c693dbc0107241613f6ff694046592057c9b377)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Anuj Mittal
0a9ba3a53b sysstat: fix CVE-2019-19725
(From OE-Core rev: 2bf6fdc460526feb0955b3b789e7be78f6e8ec4a)

(From OE-Core rev: 66c428a676acd4dd2c7c7589ac651faef77c1323)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Anuj Mittal
e61dfe872e openssl: fix CVE-2019-1551
(From OE-Core rev: 7a8165e0d833bc64c824fa2aee2ddad21d866675)

(From OE-Core rev: 2187dfb20b12b6de72c5515eca6877319734f752)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Anuj Mittal
fd8720a47e git: upgrade 2.23.0 -> 2.23.1
Fixes a bunch of CVEs:
a7312d1a28

(From OE-Core rev: 743eb9a2f10c3796266e47d4b323b8fc20593ee7)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31 10:37:23 +00:00
Scott Rifenbark
9c0c8e51dd YP 3.0.1 Docs: Fixed manual revision tables.
I had a duplicate "October 2019" release in the dev-manual.
Also, I forgot the year for the "October 2019" release entry.

(From yocto-docs rev: 1d2a6d6c4d0f283dcf2627c9494b204859edd340)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:32:39 +00:00
Scott Rifenbark
651b7448fa poky.ent: Fixed variables for 3.0.1.
They were confused with the 3.0 variable set.

(From yocto-docs rev: 5b5da98ccf5efc1dfc27818016e2583b68b03ec6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:32:39 +00:00
Niko Mauno
4065420e5b cve-check: Switch to NVD CVE JSON feed version 1.1
Switch to recently released version 1.1 of NVD CVE JSON feed, as in
https://nvd.nist.gov/General/News/JSON-1-1-Vulnerability-Feed-Release
it is mentioned that

  Due to changes required to support CVSS v3.1 scoring, the JSON
  vulnerability feeds must be modified. This will require the consumers
  of this data to update their internal processes. We will be providing
  the JSON 1.1 schema on the data feeds page and the information below
  to prepare for this transition.
  ...
  The JSON 1.1 data feeds will be available on September 9th, 2019. At
  that time the current JSON 1.0 data feeds will no longer available.

This change was tested briefly by issuing 'bitbake core-image-minimal'
with 'cve-check.bbclass' inherited via local.conf, and then comparing
the content between the resulting two
'DEPLOY_DIR_IMAGE/core-image-minimal-qemux86.cve' files, which did not
seem to contain any other change, except total of 167 entries like

  CVSS v3 BASE SCORE: 0.0

were replaced with similar 'CVSS v3 BASE SCORE:' entries which had
scores that were greater than '0.0' (up to '9.8').

(From OE-Core rev: cc20e4d8ff2f3aa52a2658404af9a0ff358cc323)

(From OE-Core rev: c92b8804d6e59b2707332859957f0e6a46db0a73)

Signed-off-by: Niko Mauno <niko.mauno@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:52 +00:00
Stefan Müller-Klieser
8673e91f2d recipes: change SRC_URI to use https
Change all recipes to https where we get an http 301 permanent redirect.

(From OE-Core rev: e514acda9e12bccde6d3974e0fd1a37b3837191a)

(From OE-Core rev: e62c39670241136df7f17e5784b3de7b64d8f5d0)

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:52 +00:00
Adrian Bunk
8f8a76d319 python: Whitelist CVE-2017-17522 CVE-2017-18207 CVE-2015-5652
One Windows-only CVE that cannot be fixed, and two CVEs
where upstream agreement is that they are not vulnerabilities.

(From OE-Core rev: 56d5b181f3b119f2bbd310dedd6d3b26e76f5944)

(From OE-Core rev: 13024049625c1705108066b38396ac379aacce84)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:52 +00:00
Peter Kjellerstedt
cd46d6826d meson.bbclass: Prevent meson from downloading wrapped projects
Meson has support for downloading subprojects using something called
wraps. This interferes with bitbake's expectations of all downloads
being done by the fetch task. To avoid this, tell meson to not
download any wraps.

Suggested-by: Mattias Jernberg <mattias.jernberg@axis.com>
(From OE-Core rev: b547637ad84bad8f7fe27193bf636541f8588ae8)

(From OE-Core rev: 4170718196ca734e5dd7635fc98b55ea47a74e88)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:52 +00:00
Adrian Bunk
ff3e1c5e5c glib: Whitelist CVE-2019-12450
Fixed in 2.60.4, but CPE data is outdated.

(From OE-Core rev: 060e46a73fb08b21c2acc5dddce30168574cd4f1)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Peter Kjellerstedt
cf8fb1974b Revert "libtirpc: create the symbol link for rpc header files"
This reverts commit 0b9748c655b6f733b504e70288f4b91dca2e4d58.

The headers provided by libtirpc are not drop in replacements for the
RPC header files previously provided by glibc, so do not install them
as if they were. Additionally, they clash with the header files
installed by glibc if an older version of glibc is used.

Any problems related to the lack of the old header files from glibc
should be addressed in the application/library that expects them.

(From OE-Core rev: ec984a5c56277251da847a62d6e64080be070809)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Mattias Hansson
a2ab2dcf12 base.bbclass: add dependency on pseudo from do_prepare_recipe_sysroot
do_prepare_recipe_sysroot may perform groupadd, which requires pseudo.
However, do_prepare_recipe_sysroot does not depend on pseudo explicitly,
which sometimes causes a build error when building a recipe that adds
groups.

This issue only occurs when executing do_prepare_recipe_sysroot for a
recipe that adds groups before finishing a task that depends on pseudo
for a recipe that doesn't add groups.

(From OE-Core rev: e20a67fe9cc7de042f39f3c39b74de61dc5c6dfe)

Signed-off-by: Mattias Hansson <mattihn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Peter Kjellerstedt
46aacaafae libpng: Remove duplicate license information
The LICENSE file contains all the license information so there is no
need to also include it from the png.h file (and additionally some
lines were left out from the latter).

License-Update: Remove duplicate license information
(From OE-Core rev: c2925e2c744fc234950f6a1a8db5ce179fd1bae7)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Peter Kjellerstedt
dcffd983ac opkg: Trim the text part used for the license file checksum
This avoids including irrelevant information when calculating the
license checksum.

License-Update: Trim the text part used for the license file checksum
(From OE-Core rev: c6bb87e1e9f0ee33e8778da06a64ba9c8755efcc)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Peter Kjellerstedt
d8a123006b alsa-utils: Trim the text part used for the license file checksum
This avoids including irrelevant information when calculating the
license checksum.

License-Update: Trim the text part used for the license file checksum
(From OE-Core rev: cfdda2ab6f986f811fbddd88573b28c239648a15)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Peter Kjellerstedt
e72446b9b4 alsa-lib: Trim the text part used for the license file checksum
This avoids including irrelevant information when calculating the
license checksum.

License-Update: Trim the text part used for the license file checksum
(From OE-Core rev: 17cf76a590474d062180bfd979348ec041d8697f)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16 23:08:51 +00:00
Scott Rifenbark
da81542171 YP 3.0.1 Documentation: Set up the 3.0.1 release.
* Updated poky.ent
* Updated mega-manual.sed
* Updated <manual>.xml with release date

(From yocto-docs rev: 6418138ce8d9f2fa1e3d4ef10ec6187584d15f2c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-09 12:03:06 +00:00
Scott Rifenbark
4bc32d5fb5 dev-manual: Removed duplicate paragraph for selecting init manager.
(From yocto-docs rev: de4e65622fb81ed887a392cf0928f18a681c4935)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-09 12:03:06 +00:00
Christopher Larson
a34a5fb3eb dosfstools: fix CP437 error from dosfsck -l
Fix this error seen when using dosfsck -l to list fs contents:

    CP437: Invalid argument

(From OE-Core rev: 8a5fdac3c2d207b2cfac64ec2a2626c3ef154d84)

(From OE-Core rev: a6bd358a27a9346ab364734ca22f35b30f4eb590)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Anuj Mittal
6945f565c9 libarchive: fix CVE-2019-19221
Also see:
https://github.com/libarchive/libarchive/issues/1276

(From OE-Core rev: 422bef7a205b9b5d48d5b0e0b2b14ac65484607a)

(From OE-Core rev: f3e7298c32c430dfc955a2023474810ae32926ba)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Anuj Mittal
5d1aeb4163 glibc: fix CVE-2019-19126
Backport from 2.30 stable branch and drop NEWS section.

(From OE-Core rev: b4d4f70380c100d8ab06557237d8d5649a885e30)

(From OE-Core rev: 3d790738abd884121372f1e00170f9b42b13b5f1)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Anuj Mittal
e9e96e6e61 nasm: fix CVE-2019-14248
See:
https://bugzilla.nasm.us/show_bug.cgi?id=3392576

(From OE-Core rev: 5ac52e78775759d2d06514ac2ae4c98e94190875)

(From OE-Core rev: f1cc582fe1db4d0d4e87316646a7065c4051c906)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Anuj Mittal
f5d638a93e ghostscript: fix for CVE-2019-14811 is same as CVE-2019-14813
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14813
https://www.openwall.com/lists/oss-security/2019/08/28/2

(From OE-Core rev: afef29326b4332fc87c53a5d9d43288cddcdd944)

(From OE-Core rev: 85ae609d789763f9a6400dc603b675cb57bd7654)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Ross Burton
4c72d90822 libsoup-2.4: upgrade to 2.66.4
Fixes CVE-2019-17266.

(From OE-Core rev: ffdbcd78955d43d34988991f1d217036f044167d)

(From OE-Core rev: d54d6c994850f4c6994dc0974f905148a024e98f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Bug fix release:
https://gitlab.gnome.org/GNOME/libsoup/compare/2.66.2...2.66.4]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Hongxu Jia
198870249e go: fix CVE-2019-17596
2017d88dbc

(From OE-Core rev: 581de91fcf73675f638e7b739dd99291baf36f50)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Adrian Bunk
ccca64c80a bind: Whitelist CVE-2019-6470
(From OE-Core rev: 016bb19213832409dd5b914d54f8af08037e9c07)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Vinay Kumar
473cb322c9 gdb: Fix CVE-2019-1010180
Source: git://sourceware.org/git/binutils-gdb.git
Tracking -- https://sourceware.org/bugzilla/show_bug.cgi?id=23657

Backported upstream commit 950b74950f6020eda38647f22e9077ac7f68ca49 to gdb-8.3.1 sources.

Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=950b74950f6020eda38647f22e9077ac7f68ca49]

(From OE-Core rev: 82a227e54e704ef9237c1613b9d3350fa26fe9dd)

(From OE-Core rev: 0a20e92a02b3ba1687792b3607c0e30a6247b42b)

Signed-off-by: Vinay Kumar <vinay.m.engg@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Stefan Ghinea
bb702471b5 ghostscript: CVE-2019-14869
A flaw was found in all versions of ghostscript 9.x before 9.28,
where the `.charkeys` procedure, where it did not properly secure
its privileged calls, enabling scripts to bypass `-dSAFER` restrictions.
An attacker could abuse this flaw by creating a specially crafted
PostScript file that could escalate privileges within the Ghostscript
and access files outside of restricted areas or execute commands.

References:
https://nvd.nist.gov/vuln/detail/CVE-2019-14869

Upstream patches:
https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=485904

(From OE-Core rev: 0bb88ac63b4e1728373c6425477a32f7a6362b2c)

(From OE-Core rev: 9827b7df6f008f4384bbe22beeb0fe6adfeb36d6)

Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-06 14:49:33 +00:00
Kai Kang
5d50b0549e bitbake: runqueue.py: not show warning for deferred multiconfig task
When follow the instructions of multiconfig from Yocto dev manual that
set in core-image-sato recipe:

  do_image[mcdepends] = "multiconfig:x86:arm:core-image-minimal:do_rootfs"

it show too many annoying warnings look like:

| WARNING: Deferring mc:x86:virtual:native:/buildarea6/kkang/poky/meta/recipes-support/libxslt/libxslt_1.1.33.bb:do_populate_sysroot
| after mc:arm: virtual:native:/buildarea6/kkang/poky/meta/recipes-support/libxslt/libxslt_1.1.33.bb:do_populate_sysroot

Treat them as infomations rather than warnings.

(Bitbake rev: cfa307aabf710d79c404a8571b4158b864a94727)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-29 11:26:18 +00:00
285 changed files with 10143 additions and 892 deletions

View File

@@ -43,6 +43,11 @@ class BBLogger(Logger):
Logger.__init__(self, name)
def bbdebug(self, level, msg, *args, **kwargs):
if not bb.event.worker_pid:
if self.name in bb.msg.loggerDefaultDomains and level > (bb.msg.loggerDefaultDomains[self.name]):
return
if level > (bb.msg.loggerDefaultDebugLevel):
return
return self.log(logging.DEBUG - level + 1, msg, *args, **kwargs)
def plain(self, msg, *args, **kwargs):

View File

@@ -57,8 +57,9 @@ builtins['os'] = os
class TaskBase(event.Event):
"""Base class for task events"""
def __init__(self, t, logfile, d):
def __init__(self, t, fn, logfile, d):
self._task = t
self._fn = fn
self._package = d.getVar("PF")
self._mc = d.getVar("BB_CURRENT_MC")
self.taskfile = d.getVar("FILE")
@@ -81,8 +82,8 @@ class TaskBase(event.Event):
class TaskStarted(TaskBase):
"""Task execution started"""
def __init__(self, t, logfile, taskflags, d):
super(TaskStarted, self).__init__(t, logfile, d)
def __init__(self, t, fn, logfile, taskflags, d):
super(TaskStarted, self).__init__(t, fn, logfile, d)
self.taskflags = taskflags
class TaskSucceeded(TaskBase):
@@ -91,9 +92,9 @@ class TaskSucceeded(TaskBase):
class TaskFailed(TaskBase):
"""Task execution failed"""
def __init__(self, task, logfile, metadata, errprinted = False):
def __init__(self, task, fn, logfile, metadata, errprinted = False):
self.errprinted = errprinted
super(TaskFailed, self).__init__(task, logfile, metadata)
super(TaskFailed, self).__init__(task, fn, logfile, metadata)
class TaskFailedSilent(TaskBase):
"""Task execution failed (silently)"""
@@ -103,8 +104,8 @@ class TaskFailedSilent(TaskBase):
class TaskInvalid(TaskBase):
def __init__(self, task, metadata):
super(TaskInvalid, self).__init__(task, None, metadata)
def __init__(self, task, fn, metadata):
super(TaskInvalid, self).__init__(task, fn, None, metadata)
self._message = "No such task '%s'" % task
class TaskProgress(event.Event):
@@ -572,7 +573,7 @@ def _exec_task(fn, task, d, quieterr):
try:
try:
event.fire(TaskStarted(task, logfn, flags, localdata), localdata)
event.fire(TaskStarted(task, fn, logfn, flags, localdata), localdata)
except (bb.BBHandledException, SystemExit):
return 1
@@ -583,15 +584,15 @@ def _exec_task(fn, task, d, quieterr):
for func in (postfuncs or '').split():
exec_func(func, localdata)
except bb.BBHandledException:
event.fire(TaskFailed(task, logfn, localdata, True), localdata)
event.fire(TaskFailed(task, fn, logfn, localdata, True), localdata)
return 1
except Exception as exc:
if quieterr:
event.fire(TaskFailedSilent(task, logfn, localdata), localdata)
event.fire(TaskFailedSilent(task, fn, logfn, localdata), localdata)
else:
errprinted = errchk.triggered
logger.error(str(exc))
event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata)
event.fire(TaskFailed(task, fn, logfn, localdata, errprinted), localdata)
return 1
finally:
sys.stdout.flush()
@@ -614,7 +615,7 @@ def _exec_task(fn, task, d, quieterr):
logger.debug(2, "Zero size logfn %s, removing", logfn)
bb.utils.remove(logfn)
bb.utils.remove(loglink)
event.fire(TaskSucceeded(task, logfn, localdata), localdata)
event.fire(TaskSucceeded(task, fn, logfn, localdata), localdata)
if not localdata.getVarFlag(task, 'nostamp', False) and not localdata.getVarFlag(task, 'selfstamp', False):
make_stamp(task, localdata)

View File

@@ -208,10 +208,10 @@ class CoreRecipeInfo(RecipeInfoCommon):
# Collect files we may need for possible world-dep
# calculations
if self.not_world:
logger.debug(1, "EXCLUDE FROM WORLD: %s", fn)
else:
if not self.not_world:
cachedata.possible_world.append(fn)
#else:
# logger.debug(2, "EXCLUDE FROM WORLD: %s", fn)
# create a collection of all targets for sanity checking
# tasks, such as upstream versions, license, and tools for

View File

@@ -74,7 +74,7 @@ class FileChecksumCache(MultiProcessCache):
else:
dest[0][h] = source[0][h]
def get_checksums(self, filelist, pn):
def get_checksums(self, filelist, pn, localdirsexclude):
"""Get checksums for a list of files"""
def checksum_file(f):
@@ -90,7 +90,8 @@ class FileChecksumCache(MultiProcessCache):
if pth == "/":
bb.fatal("Refusing to checksum /")
dirchecksums = []
for root, dirs, files in os.walk(pth):
for root, dirs, files in os.walk(pth, topdown=True):
[dirs.remove(d) for d in list(dirs) if d in localdirsexclude]
for name in files:
fullpth = os.path.join(root, name)
checksum = checksum_file(fullpth)

View File

@@ -169,8 +169,8 @@ class BBCooker:
bb.debug(1, "BBCooker pyinotify1 %s" % time.time())
sys.stdout.flush()
self.configwatcher.bbseen = []
self.configwatcher.bbwatchedfiles = []
self.configwatcher.bbseen = set()
self.configwatcher.bbwatchedfiles = set()
self.confignotifier = pyinotify.Notifier(self.configwatcher, self.config_notifications)
bb.debug(1, "BBCooker pyinotify2 %s" % time.time())
sys.stdout.flush()
@@ -180,8 +180,8 @@ class BBCooker:
self.watcher = pyinotify.WatchManager()
bb.debug(1, "BBCooker pyinotify3 %s" % time.time())
sys.stdout.flush()
self.watcher.bbseen = []
self.watcher.bbwatchedfiles = []
self.watcher.bbseen = set()
self.watcher.bbwatchedfiles = set()
self.notifier = pyinotify.Notifier(self.watcher, self.notifications)
bb.debug(1, "BBCooker pyinotify complete %s" % time.time())
@@ -278,14 +278,14 @@ class BBCooker:
if not watcher:
watcher = self.watcher
for i in deps:
watcher.bbwatchedfiles.append(i[0])
watcher.bbwatchedfiles.add(i[0])
if dirs:
f = i[0]
else:
f = os.path.dirname(i[0])
if f in watcher.bbseen:
continue
watcher.bbseen.append(f)
watcher.bbseen.add(f)
watchtarget = None
while True:
# We try and add watches for files that don't exist but if they did, would influence
@@ -294,7 +294,7 @@ class BBCooker:
try:
watcher.add_watch(f, self.watchmask, quiet=False)
if watchtarget:
watcher.bbwatchedfiles.append(watchtarget)
watcher.bbwatchedfiles.add(watchtarget)
break
except pyinotify.WatchManagerError as e:
if 'ENOENT' in str(e):
@@ -302,7 +302,7 @@ class BBCooker:
f = os.path.dirname(f)
if f in watcher.bbseen:
break
watcher.bbseen.append(f)
watcher.bbseen.add(f)
continue
if 'ENOSPC' in str(e):
providerlog.error("No space left on device or exceeds fs.inotify.max_user_watches?")
@@ -1788,7 +1788,7 @@ class CookerCollectFiles(object):
# When constructing an older style single regex, it's possible for BBMASK
# to end up beginning with '|', which matches and masks _everything_.
if mask.startswith("|"):
collectlog.warn("BBMASK contains regular expression beginning with '|', fixing: %s" % mask)
collectlog.warning("BBMASK contains regular expression beginning with '|', fixing: %s" % mask)
mask = mask[1:]
try:
re.compile(mask)
@@ -1944,7 +1944,8 @@ class Parser(multiprocessing.Process):
except IndexError:
break
result = self.parse(*job)
# Clear the siggen cache after parsing to control memory usage, its huge
bb.parse.siggen.postparsing_clean_cache()
try:
self.results.put(result, timeout=0.25)
except queue.Full:

View File

@@ -1197,14 +1197,14 @@ def get_checksum_file_list(d):
return " ".join(filelist)
def get_file_checksums(filelist, pn):
def get_file_checksums(filelist, pn, localdirsexclude):
"""Get a list of the checksums for a list of local files
Returns the checksums for a list of local files, caching the results as
it proceeds
"""
return _checksum_cache.get_checksums(filelist, pn)
return _checksum_cache.get_checksums(filelist, pn, localdirsexclude)
class FetchData(object):
@@ -1567,8 +1567,7 @@ class FetchMethod(object):
return True, str(latest_rev)
def generate_revision_key(self, ud, d, name):
key = self._revision_key(ud, d, name)
return "%s-%s" % (key, d.getVar("PN") or "")
return self._revision_key(ud, d, name)
def latest_versionstring(self, ud, d):
"""

View File

@@ -594,7 +594,9 @@ class Git(FetchMethod):
"""
Return a unique key for the url
"""
return "git:" + ud.host + ud.path.replace('/', '.') + ud.unresolvedrev[name]
# Collapse adjacent slashes
slash_re = re.compile(r"/+")
return "git:" + ud.host + slash_re.sub(".", ud.path) + ud.unresolvedrev[name]
def _lsremote(self, ud, d, search):
"""

View File

@@ -179,6 +179,9 @@ class SQLTable(collections.MutableMapping):
elif not isinstance(value, str):
raise TypeError('Only string values are supported')
# Ensure the entire transaction (including SELECT) executes under write lock
cursor.execute("BEGIN EXCLUSIVE")
cursor.execute("SELECT * from %s where key=?;" % self.table, [key])
row = cursor.fetchone()
if row is not None:

View File

@@ -148,8 +148,9 @@ class RunQueueScheduler(object):
"""
Return the id of the first task we find that is buildable
"""
# Once tasks are running we don't need to worry about them again
self.buildable.difference_update(self.rq.runq_running)
buildable = set(self.buildable)
buildable.difference_update(self.rq.runq_running)
buildable.difference_update(self.rq.holdoff_tasks)
buildable.intersection_update(self.rq.tasks_covered | self.rq.tasks_notcovered)
if not buildable:
@@ -207,8 +208,6 @@ class RunQueueScheduler(object):
def newbuildable(self, task):
self.buildable.add(task)
# Once tasks are running we don't need to worry about them again
self.buildable.difference_update(self.rq.runq_running)
def removebuildable(self, task):
self.buildable.remove(task)
@@ -1125,14 +1124,14 @@ class RunQueueData:
self.init_progress_reporter.next_stage()
# Iterate over the task list looking for tasks with a 'setscene' function
self.runq_setscene_tids = []
self.runq_setscene_tids = set()
if not self.cooker.configuration.nosetscene:
for tid in self.runtaskentries:
(mc, fn, taskname, _) = split_tid_mcfn(tid)
setscenetid = tid + "_setscene"
if setscenetid not in taskData[mc].taskentries:
continue
self.runq_setscene_tids.append(tid)
self.runq_setscene_tids.add(tid)
self.init_progress_reporter.next_stage()
@@ -1182,10 +1181,8 @@ class RunQueueData:
return len(self.runtaskentries)
def prepare_task_hash(self, tid):
procdep = []
for dep in self.runtaskentries[tid].depends:
procdep.append(dep)
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(tid, procdep, self.dataCaches[mc_from_tid(tid)])
bb.parse.siggen.prep_taskhash(tid, self.runtaskentries[tid].depends, self.dataCaches[mc_from_tid(tid)])
self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(tid, self.runtaskentries[tid].depends, self.dataCaches[mc_from_tid(tid)])
self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(tid)
def dump_data(self):
@@ -1711,6 +1708,7 @@ class RunQueueExecute:
self.runq_buildable = set()
self.runq_running = set()
self.runq_complete = set()
self.runq_tasksrun = set()
self.build_stamps = {}
self.build_stamps2 = []
@@ -1896,6 +1894,7 @@ class RunQueueExecute:
self.stats.taskCompleted()
bb.event.fire(runQueueTaskCompleted(task, self.stats, self.rq), self.cfgData)
self.task_completeoutright(task)
self.runq_tasksrun.add(task)
def task_fail(self, task, exitcode):
"""
@@ -1962,12 +1961,17 @@ class RunQueueExecute:
"""
self.rq.read_workers()
self.process_possible_migrations()
if self.updated_taskhash_queue or self.pending_migrations:
self.process_possible_migrations()
if not hasattr(self, "sorted_setscene_tids"):
# Don't want to sort this set every execution
self.sorted_setscene_tids = sorted(self.rqdata.runq_setscene_tids)
task = None
if not self.sqdone and self.can_start_task():
# Find the next setscene to run
for nexttask in sorted(self.rqdata.runq_setscene_tids):
for nexttask in self.sorted_setscene_tids:
if nexttask in self.sq_buildable and nexttask not in self.sq_running and self.sqdata.stamps[nexttask] not in self.build_stamps.values():
if nexttask not in self.sqdata.unskippable and len(self.sqdata.sq_revdeps[nexttask]) > 0 and self.sqdata.sq_revdeps[nexttask].issubset(self.scenequeue_covered) and self.check_dependencies(nexttask, self.sqdata.sq_revdeps[nexttask]):
if nexttask not in self.rqdata.target_tids:
@@ -2090,6 +2094,7 @@ class RunQueueExecute:
logger.debug(2, "Stamp current task %s", task)
self.task_skip(task, "existing")
self.runq_tasksrun.add(task)
return True
taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn]
@@ -2248,6 +2253,7 @@ class RunQueueExecute:
def process_possible_migrations(self):
changed = set()
toprocess = set()
for tid, unihash in self.updated_taskhash_queue.copy():
if tid in self.runq_running and tid not in self.runq_complete:
continue
@@ -2258,39 +2264,60 @@ class RunQueueExecute:
logger.info("Task %s unihash changed to %s" % (tid, unihash))
self.rqdata.runtaskentries[tid].unihash = unihash
bb.parse.siggen.set_unihash(tid, unihash)
toprocess.add(tid)
# Work out all tasks which depend on this one
total = set()
next = set(self.rqdata.runtaskentries[tid].revdeps)
while next:
current = next.copy()
total = total |next
next = set()
for ntid in current:
next |= self.rqdata.runtaskentries[ntid].revdeps
next.difference_update(total)
# Work out all tasks which depend upon these
total = set()
next = set()
for p in toprocess:
next |= self.rqdata.runtaskentries[p].revdeps
while next:
current = next.copy()
total = total | next
next = set()
for ntid in current:
next |= self.rqdata.runtaskentries[ntid].revdeps
next.difference_update(total)
# Now iterate those tasks in dependency order to regenerate their taskhash/unihash
done = set()
next = set(self.rqdata.runtaskentries[tid].revdeps)
while next:
current = next.copy()
next = set()
for tid in current:
if not self.rqdata.runtaskentries[tid].depends.isdisjoint(total):
continue
procdep = []
for dep in self.rqdata.runtaskentries[tid].depends:
procdep.append(dep)
orighash = self.rqdata.runtaskentries[tid].hash
self.rqdata.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(tid, procdep, self.rqdata.dataCaches[mc_from_tid(tid)])
origuni = self.rqdata.runtaskentries[tid].unihash
self.rqdata.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(tid)
logger.debug(1, "Task %s hash changes: %s->%s %s->%s" % (tid, orighash, self.rqdata.runtaskentries[tid].hash, origuni, self.rqdata.runtaskentries[tid].unihash))
next |= self.rqdata.runtaskentries[tid].revdeps
changed.add(tid)
total.remove(tid)
next.intersection_update(total)
# Now iterate those tasks in dependency order to regenerate their taskhash/unihash
next = set()
for p in total:
if len(self.rqdata.runtaskentries[p].depends) == 0:
next.add(p)
elif self.rqdata.runtaskentries[p].depends.isdisjoint(total):
next.add(p)
# When an item doesn't have dependencies in total, we can process it. Drop items from total when handled
while next:
current = next.copy()
next = set()
for tid in current:
if len(self.rqdata.runtaskentries[p].depends) and not self.rqdata.runtaskentries[tid].depends.isdisjoint(total):
continue
orighash = self.rqdata.runtaskentries[tid].hash
newhash = bb.parse.siggen.get_taskhash(tid, self.rqdata.runtaskentries[tid].depends, self.rqdata.dataCaches[mc_from_tid(tid)])
origuni = self.rqdata.runtaskentries[tid].unihash
newuni = bb.parse.siggen.get_unihash(tid)
# FIXME, need to check it can come from sstate at all for determinism?
remapped = False
if newuni == origuni:
# Nothing to do, we match, skip code below
remapped = True
elif tid in self.scenequeue_covered or tid in self.sq_live:
# Already ran this setscene task or it running. Report the new taskhash
bb.parse.siggen.report_unihash_equiv(tid, newhash, origuni, newuni, self.rqdata.dataCaches)
logger.info("Already covered setscene for %s so ignoring rehash (remap)" % (tid))
remapped = True
if not remapped:
#logger.debug(1, "Task %s hash changes: %s->%s %s->%s" % (tid, orighash, newhash, origuni, newuni))
self.rqdata.runtaskentries[tid].hash = newhash
self.rqdata.runtaskentries[tid].unihash = newuni
changed.add(tid)
next |= self.rqdata.runtaskentries[tid].revdeps
total.remove(tid)
next.intersection_update(total)
if changed:
for mc in self.rq.worker:
@@ -2306,19 +2333,13 @@ class RunQueueExecute:
if tid not in self.pending_migrations:
self.pending_migrations.add(tid)
update_tasks = []
for tid in self.pending_migrations.copy():
if tid in self.runq_running:
if tid in self.runq_running or tid in self.sq_live:
# Too late, task already running, not much we can do now
self.pending_migrations.remove(tid)
continue
if tid in self.scenequeue_covered or tid in self.sq_live:
# Already ran this setscene task or it running
# Potentially risky, should we report this hash as a match?
logger.info("Already covered setscene for %s so ignoring rehash" % (tid))
self.pending_migrations.remove(tid)
continue
valid = True
# Check no tasks this covers are running
for dep in self.sqdata.sq_covered_tasks[tid]:
@@ -2335,6 +2356,12 @@ class RunQueueExecute:
if tid in self.tasks_scenequeue_done:
self.tasks_scenequeue_done.remove(tid)
for dep in self.sqdata.sq_covered_tasks[tid]:
if dep in self.runq_complete and dep not in self.runq_tasksrun:
bb.error("Task %s marked as completed but now needing to rerun? Aborting build." % dep)
self.failed_tids.append(tid)
self.rq.state = runQueueCleanUp
return
if dep not in self.runq_complete:
if dep in self.tasks_scenequeue_done and dep not in self.sqdata.unskippable:
self.tasks_scenequeue_done.remove(dep)
@@ -2372,11 +2399,13 @@ class RunQueueExecute:
if tid in self.build_stamps:
del self.build_stamps[tid]
origvalid = False
if tid in self.sqdata.valid:
origvalid = True
update_tasks.append((tid, harddepfail, tid in self.sqdata.valid))
if update_tasks:
self.sqdone = False
update_scenequeue_data([tid], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=False)
update_scenequeue_data([t[0] for t in update_tasks], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=False)
for (tid, harddepfail, origvalid) in update_tasks:
if tid in self.sqdata.valid and not origvalid:
logger.info("Setscene task %s became valid" % tid)
if harddepfail:
@@ -2517,6 +2546,8 @@ class RunQueueExecute:
msg = 'Task %s.%s attempted to execute unexpectedly and should have been setscened' % (pn, taskname)
else:
msg = 'Task %s.%s attempted to execute unexpectedly' % (pn, taskname)
for t in self.scenequeue_notcovered:
msg = msg + "\nTask %s, unihash %s, taskhash %s" % (t, self.rqdata.runtaskentries[t].unihash, self.rqdata.runtaskentries[t].hash)
logger.error(msg + '\nThis is usually due to missing setscene tasks. Those missing in this build were: %s' % pprint.pformat(self.scenequeue_notcovered))
return True
return False
@@ -2767,7 +2798,7 @@ def update_scenequeue_data(tids, sqdata, rqdata, rq, cooker, stampcache, sqrq, s
sqdata.hashes[h] = tid
else:
sqrq.sq_deferred[tid] = sqdata.hashes[h]
bb.warn("Deferring %s after %s" % (tid, sqdata.hashes[h]))
bb.note("Deferring %s after %s" % (tid, sqdata.hashes[h]))
class TaskFailure(Exception):

View File

@@ -40,18 +40,26 @@ class SignatureGenerator(object):
def __init__(self, data):
self.basehash = {}
self.taskhash = {}
self.unihash = {}
self.runtaskdeps = {}
self.file_checksum_values = {}
self.taints = {}
self.unitaskhashes = {}
self.setscenetasks = {}
self.tidtopn = {}
self.setscenetasks = set()
def finalise(self, fn, d, varient):
return
def postparsing_clean_cache(self):
return
def get_unihash(self, tid):
return self.taskhash[tid]
def prep_taskhash(self, tid, deps, dataCache):
return
def get_taskhash(self, tid, deps, dataCache):
self.taskhash[tid] = hashlib.sha256(tid.encode("utf-8")).hexdigest()
return self.taskhash[tid]
@@ -76,19 +84,19 @@ class SignatureGenerator(object):
return
def get_taskdata(self):
return (self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash, self.unitaskhashes, self.setscenetasks)
return (self.runtaskdeps, self.taskhash, self.unihash, self.file_checksum_values, self.taints, self.basehash, self.unitaskhashes, self.tidtopn, self.setscenetasks)
def set_taskdata(self, data):
self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash, self.unitaskhashes, self.setscenetasks = data
self.runtaskdeps, self.taskhash, self.unihash, self.file_checksum_values, self.taints, self.basehash, self.unitaskhashes, self.tidtopn, self.setscenetasks = data
def reset(self, data):
self.__init__(data)
def get_taskhashes(self):
return self.taskhash, self.unitaskhashes
return self.taskhash, self.unihash, self.unitaskhashes, self.tidtopn
def set_taskhashes(self, hashes):
self.taskhash, self.unitaskhashes = hashes
self.taskhash, self.unihash, self.unitaskhashes, self.tidtopn = hashes
def save_unitaskhashes(self):
return
@@ -104,13 +112,14 @@ class SignatureGeneratorBasic(SignatureGenerator):
def __init__(self, data):
self.basehash = {}
self.taskhash = {}
self.unihash = {}
self.taskdeps = {}
self.runtaskdeps = {}
self.file_checksum_values = {}
self.taints = {}
self.gendeps = {}
self.lookupcache = {}
self.setscenetasks = {}
self.setscenetasks = set()
self.basewhitelist = set((data.getVar("BB_HASHBASE_WHITELIST") or "").split())
self.taskwhitelist = None
self.init_rundepcheck(data)
@@ -121,8 +130,10 @@ class SignatureGeneratorBasic(SignatureGenerator):
else:
self.checksum_cache = None
self.unihash_cache = bb.cache.SimpleCache("1")
self.unihash_cache = bb.cache.SimpleCache("3")
self.unitaskhashes = self.unihash_cache.init_cache(data, "bb_unihashes.dat", {})
self.localdirsexclude = (data.getVar("BB_SIGNATURE_LOCAL_DIRS_EXCLUDE") or "CVS .bzr .git .hg .osc .p4 .repo .svn").split()
self.tidtopn = {}
def init_rundepcheck(self, data):
self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None
@@ -157,7 +168,7 @@ class SignatureGeneratorBasic(SignatureGenerator):
return taskdeps
def set_setscene_tasks(self, setscene_tasks):
self.setscenetasks = setscene_tasks
self.setscenetasks = set(setscene_tasks)
def finalise(self, fn, d, variant):
@@ -180,6 +191,14 @@ class SignatureGeneratorBasic(SignatureGenerator):
for task in taskdeps:
d.setVar("BB_BASEHASH_task-%s" % task, self.basehash[fn + ":" + task])
def postparsing_clean_cache(self):
#
# After parsing we can remove some things from memory to reduce our memory footprint
#
self.gendeps = {}
self.lookupcache = {}
self.taskdeps = {}
def rundep_check(self, fn, recipename, task, dep, depname, dataCache):
# Return True if we should keep the dependency, False to drop it
# We only manipulate the dependencies for packages not in the whitelist
@@ -198,15 +217,17 @@ class SignatureGeneratorBasic(SignatureGenerator):
pass
return taint
def get_taskhash(self, tid, deps, dataCache):
def prep_taskhash(self, tid, deps, dataCache):
(mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid)
data = dataCache.basetaskhash[tid]
self.basehash[tid] = data
self.basehash[tid] = dataCache.basetaskhash[tid]
self.runtaskdeps[tid] = []
self.file_checksum_values[tid] = []
recipename = dataCache.pkg_fn[fn]
self.tidtopn[tid] = recipename
for dep in sorted(deps, key=clean_basepath):
(depmc, _, deptaskname, depfn) = bb.runqueue.split_tid_mcfn(dep)
if mc != depmc:
@@ -216,33 +237,56 @@ class SignatureGeneratorBasic(SignatureGenerator):
continue
if dep not in self.taskhash:
bb.fatal("%s is not in taskhash, caller isn't calling in dependency order?" % dep)
data = data + self.get_unihash(dep)
self.runtaskdeps[tid].append(dep)
if task in dataCache.file_checksums[fn]:
if self.checksum_cache:
checksums = self.checksum_cache.get_checksums(dataCache.file_checksums[fn][task], recipename)
checksums = self.checksum_cache.get_checksums(dataCache.file_checksums[fn][task], recipename, self.localdirsexclude)
else:
checksums = bb.fetch2.get_file_checksums(dataCache.file_checksums[fn][task], recipename)
checksums = bb.fetch2.get_file_checksums(dataCache.file_checksums[fn][task], recipename, self.localdirsexclude)
for (f,cs) in checksums:
self.file_checksum_values[tid].append((f,cs))
if cs:
data = data + cs
taskdep = dataCache.task_deps[fn]
if 'nostamp' in taskdep and task in taskdep['nostamp']:
# Nostamp tasks need an implicit taint so that they force any dependent tasks to run
import uuid
taint = str(uuid.uuid4())
data = data + taint
self.taints[tid] = "nostamp:" + taint
if tid in self.taints and self.taints[tid].startswith("nostamp:"):
# Don't reset taint value upon every call
pass
else:
import uuid
taint = str(uuid.uuid4())
self.taints[tid] = "nostamp:" + taint
taint = self.read_taint(fn, task, dataCache.stamp[fn])
if taint:
data = data + taint
self.taints[tid] = taint
logger.warning("%s is tainted from a forced run" % tid)
return
def get_taskhash(self, tid, deps, dataCache):
data = self.basehash[tid]
for dep in self.runtaskdeps[tid]:
if dep in self.unihash:
if self.unihash[dep] is None:
data = data + self.taskhash[dep]
else:
data = data + self.unihash[dep]
else:
data = data + self.get_unihash(dep)
for (f, cs) in self.file_checksum_values[tid]:
if cs:
data = data + cs
if tid in self.taints:
if self.taints[tid].startswith("nostamp:"):
data = data + self.taints[tid][8:]
else:
data = data + self.taints[tid]
h = hashlib.sha256(data.encode("utf-8")).hexdigest()
self.taskhash[tid] = h
#d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task])
@@ -371,50 +415,66 @@ class SignatureGeneratorBasicHash(SignatureGeneratorBasic):
bb.build.write_taint(task, d, fn)
class SignatureGeneratorUniHashMixIn(object):
def __init__(self, data):
self.extramethod = {}
super().__init__(data)
def get_taskdata(self):
return (self.server, self.method) + super().get_taskdata()
return (self.server, self.method, self.extramethod) + super().get_taskdata()
def set_taskdata(self, data):
self.server, self.method = data[:2]
super().set_taskdata(data[2:])
self.server, self.method, self.extramethod = data[:3]
super().set_taskdata(data[3:])
def client(self):
if getattr(self, '_client', None) is None:
self._client = hashserv.create_client(self.server)
return self._client
def __get_task_unihash_key(self, tid):
# TODO: The key only *needs* to be the taskhash, the tid is just
# convenient
return '%s:%s' % (tid.rsplit("/", 1)[1], self.taskhash[tid])
def get_stampfile_hash(self, tid):
if tid in self.taskhash:
# If a unique hash is reported, use it as the stampfile hash. This
# ensures that if a task won't be re-run if the taskhash changes,
# but it would result in the same output hash
unihash = self.unitaskhashes.get(self.__get_task_unihash_key(tid), None)
unihash = self._get_unihash(tid)
if unihash is not None:
return unihash
return super().get_stampfile_hash(tid)
def set_unihash(self, tid, unihash):
self.unitaskhashes[self.__get_task_unihash_key(tid)] = unihash
(mc, fn, taskname, taskfn) = bb.runqueue.split_tid_mcfn(tid)
key = mc + ":" + self.tidtopn[tid] + ":" + taskname
self.unitaskhashes[key] = (self.taskhash[tid], unihash)
self.unihash[tid] = unihash
def _get_unihash(self, tid, checkkey=None):
if tid not in self.tidtopn:
return None
(mc, fn, taskname, taskfn) = bb.runqueue.split_tid_mcfn(tid)
key = mc + ":" + self.tidtopn[tid] + ":" + taskname
if key not in self.unitaskhashes:
return None
if not checkkey:
checkkey = self.taskhash[tid]
(key, unihash) = self.unitaskhashes[key]
if key != checkkey:
return None
return unihash
def get_unihash(self, tid):
taskhash = self.taskhash[tid]
# If its not a setscene task we can return
if self.setscenetasks and tid not in self.setscenetasks:
self.unihash[tid] = None
return taskhash
key = self.__get_task_unihash_key(tid)
# TODO: This cache can grow unbounded. It probably only needs to keep
# for each task
unihash = self.unitaskhashes.get(key, None)
unihash = self._get_unihash(tid)
if unihash is not None:
self.unihash[tid] = unihash
return unihash
# In the absence of being able to discover a unique hash from the
@@ -433,7 +493,10 @@ class SignatureGeneratorUniHashMixIn(object):
unihash = taskhash
try:
data = self.client().get_unihash(self.method, self.taskhash[tid])
method = self.method
if tid in self.extramethod:
method = method + self.extramethod[tid]
data = self.client().get_unihash(method, self.taskhash[tid])
if data:
unihash = data
# A unique hash equal to the taskhash is not very interesting,
@@ -445,7 +508,8 @@ class SignatureGeneratorUniHashMixIn(object):
except hashserv.client.HashConnectionError as e:
bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e)))
self.unitaskhashes[key] = unihash
self.set_unihash(tid, unihash)
self.unihash[tid] = unihash
return unihash
def report_unihash(self, path, task, d):
@@ -457,13 +521,17 @@ class SignatureGeneratorUniHashMixIn(object):
tempdir = d.getVar('T')
fn = d.getVar('BB_FILENAME')
tid = fn + ':do_' + task
key = tid.rsplit("/", 1)[1] + ':' + taskhash
key = tid + ':' + taskhash
if self.setscenetasks and tid not in self.setscenetasks:
return
# This can happen if locked sigs are in action. Detect and just abort
if taskhash != self.taskhash[tid]:
return
# Sanity checks
cache_unihash = self.unitaskhashes.get(key, None)
cache_unihash = self._get_unihash(tid, checkkey=taskhash)
if cache_unihash is None:
bb.fatal('%s not in unihash cache. Please report this error' % key)
@@ -502,13 +570,18 @@ class SignatureGeneratorUniHashMixIn(object):
extra_data['task'] = task
extra_data['outhash_siginfo'] = sigfile.read().decode('utf-8')
data = self.client().report_unihash(taskhash, self.method, outhash, unihash, extra_data)
method = self.method
if tid in self.extramethod:
method = method + self.extramethod[tid]
data = self.client().report_unihash(taskhash, method, outhash, unihash, extra_data)
new_unihash = data['unihash']
if new_unihash != unihash:
bb.debug(1, 'Task %s unihash changed %s -> %s by server %s' % (taskhash, unihash, new_unihash, self.server))
bb.event.fire(bb.runqueue.taskUniHashUpdate(fn + ':do_' + task, new_unihash), d)
self.set_unihash(tid, new_unihash)
d.setVar('BB_UNIHASH', new_unihash)
else:
bb.debug(1, 'Reported task %s as unihash %s to %s' % (taskhash, unihash, self.server))
except hashserv.client.HashConnectionError as e:
@@ -525,6 +598,36 @@ class SignatureGeneratorUniHashMixIn(object):
except OSError:
pass
def report_unihash_equiv(self, tid, taskhash, wanted_unihash, current_unihash, datacaches):
try:
extra_data = {}
method = self.method
if tid in self.extramethod:
method = method + self.extramethod[tid]
data = self.client().report_unihash_equiv(taskhash, method, wanted_unihash, extra_data)
bb.note('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.server, str(data)))
if data is None:
bb.warn("Server unable to handle unihash report")
return False
finalunihash = data['unihash']
if finalunihash == current_unihash:
bb.note('Task %s unihash %s unchanged by server' % (tid, finalunihash))
elif finalunihash == wanted_unihash:
bb.note('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, finalunihash))
self.set_unihash(tid, finalunihash)
return True
else:
# TODO: What to do here?
bb.note('Task %s unihash reported as unwanted hash %s' % (tid, finalunihash))
except hashserv.client.HashConnectionError as e:
bb.warn('Error contacting Hash Equivalence Server %s: %s' % (self.server, str(e)))
return False
#
# Dummy class used for bitbake-selftest

View File

@@ -35,15 +35,15 @@ class BBProgress(progressbar.ProgressBar):
self.msg = msg
self.extrapos = extrapos
if not widgets:
widgets = [progressbar.Percentage(), ' ', progressbar.Bar(), ' ',
progressbar.ETA()]
self.extrapos = 4
widgets = [': ', progressbar.Percentage(), ' ', progressbar.Bar(),
' ', progressbar.ETA()]
self.extrapos = 5
if resize_handler:
self._resize_default = resize_handler
else:
self._resize_default = signal.getsignal(signal.SIGWINCH)
progressbar.ProgressBar.__init__(self, maxval, [self.msg + ": "] + widgets, fd=sys.stdout)
progressbar.ProgressBar.__init__(self, maxval, [self.msg] + widgets, fd=sys.stdout)
def _handle_resize(self, signum=None, frame=None):
progressbar.ProgressBar._handle_resize(self, signum, frame)
@@ -255,19 +255,19 @@ class TerminalFilter(object):
start_time = activetasks[t].get("starttime", None)
if not pbar or pbar.bouncing != (progress < 0):
if progress < 0:
pbar = BBProgress("0: %s (pid %s) " % (activetasks[t]["title"], t), 100, widgets=[progressbar.BouncingSlider(), ''], extrapos=2, resize_handler=self.sigwinch_handle)
pbar = BBProgress("0: %s (pid %s)" % (activetasks[t]["title"], activetasks[t]["pid"]), 100, widgets=[' ', progressbar.BouncingSlider(), ''], extrapos=3, resize_handler=self.sigwinch_handle)
pbar.bouncing = True
else:
pbar = BBProgress("0: %s (pid %s) " % (activetasks[t]["title"], t), 100, widgets=[progressbar.Percentage(), ' ', progressbar.Bar(), ''], extrapos=4, resize_handler=self.sigwinch_handle)
pbar = BBProgress("0: %s (pid %s)" % (activetasks[t]["title"], activetasks[t]["pid"]), 100, widgets=[' ', progressbar.Percentage(), ' ', progressbar.Bar(), ''], extrapos=5, resize_handler=self.sigwinch_handle)
pbar.bouncing = False
activetasks[t]["progressbar"] = pbar
tasks.append((pbar, progress, rate, start_time))
else:
start_time = activetasks[t].get("starttime", None)
if start_time:
tasks.append("%s - %s (pid %s)" % (activetasks[t]["title"], self.elapsed(currenttime - start_time), t))
tasks.append("%s - %s (pid %s)" % (activetasks[t]["title"], self.elapsed(currenttime - start_time), activetasks[t]["pid"]))
else:
tasks.append("%s (pid %s)" % (activetasks[t]["title"], t))
tasks.append("%s (pid %s)" % (activetasks[t]["title"], activetasks[t]["pid"]))
if self.main.shutdown:
content = "Waiting for %s running tasks to finish:" % len(activetasks)
@@ -477,7 +477,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
if event is None:
if main.shutdown > 1:
break
termfilter.updateFooter()
if not parseprogress:
termfilter.updateFooter()
event = eventHandler.waitEvent(0.25)
if event is None:
continue
@@ -517,8 +518,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
continue
# Prefix task messages with recipe/task
if event.taskpid in helper.running_tasks and event.levelno != format.PLAIN:
taskinfo = helper.running_tasks[event.taskpid]
if event.taskpid in helper.pidmap and event.levelno != format.PLAIN:
taskinfo = helper.running_tasks[helper.pidmap[event.taskpid]]
event.msg = taskinfo['title'] + ': ' + event.msg
if hasattr(event, 'fn'):
event.msg = event.fn + ': ' + event.msg
@@ -539,6 +540,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
continue
if event.total == 0:
continue
termfilter.clearFooter()
parseprogress = new_progress("Parsing recipes", event.total).start()
continue
if isinstance(event, bb.event.ParseProgress):
@@ -638,6 +640,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
if isinstance(event, bb.event.ProcessStarted):
if params.options.quiet > 1:
continue
termfilter.clearFooter()
parseprogress = new_progress(event.processname, event.total)
parseprogress.start(False)
continue

View File

@@ -15,39 +15,48 @@ class BBUIHelper:
# Running PIDs preserves the order tasks were executed in
self.running_pids = []
self.failed_tasks = []
self.pidmap = {}
self.tasknumber_current = 0
self.tasknumber_total = 0
def eventHandler(self, event):
# PIDs are a bad idea as they can be reused before we process all UI events.
# We maintain a 'fuzzy' match for TaskProgress since there is no other way to match
def removetid(pid, tid):
self.running_pids.remove(tid)
del self.running_tasks[tid]
if self.pidmap[pid] == tid:
del self.pidmap[pid]
self.needUpdate = True
if isinstance(event, bb.build.TaskStarted):
tid = event._fn + ":" + event._task
if event._mc != "default":
self.running_tasks[event.pid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.time() }
self.running_tasks[tid] = { 'title' : "mc:%s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.time(), 'pid' : event.pid }
else:
self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time() }
self.running_pids.append(event.pid)
self.running_tasks[tid] = { 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time(), 'pid' : event.pid }
self.running_pids.append(tid)
self.pidmap[event.pid] = tid
self.needUpdate = True
elif isinstance(event, bb.build.TaskSucceeded):
del self.running_tasks[event.pid]
self.running_pids.remove(event.pid)
self.needUpdate = True
tid = event._fn + ":" + event._task
removetid(event.pid, tid)
elif isinstance(event, bb.build.TaskFailedSilent):
del self.running_tasks[event.pid]
self.running_pids.remove(event.pid)
tid = event._fn + ":" + event._task
removetid(event.pid, tid)
# Don't add to the failed tasks list since this is e.g. a setscene task failure
self.needUpdate = True
elif isinstance(event, bb.build.TaskFailed):
del self.running_tasks[event.pid]
self.running_pids.remove(event.pid)
tid = event._fn + ":" + event._task
removetid(event.pid, tid)
self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)})
self.needUpdate = True
elif isinstance(event, bb.runqueue.runQueueTaskStarted):
self.tasknumber_current = event.stats.completed + event.stats.active + event.stats.failed + 1
self.tasknumber_total = event.stats.total
self.needUpdate = True
elif isinstance(event, bb.build.TaskProgress):
if event.pid > 0:
self.running_tasks[event.pid]['progress'] = event.progress
self.running_tasks[event.pid]['rate'] = event.rate
if event.pid > 0 and event.pid in self.pidmap:
self.running_tasks[self.pidmap[event.pid]]['progress'] = event.progress
self.running_tasks[self.pidmap[event.pid]]['rate'] = event.rate
self.needUpdate = True
else:
return False

View File

@@ -428,10 +428,11 @@ def fileslocked(files):
for lockfile in files:
locks.append(bb.utils.lockfile(lockfile))
yield
for lock in locks:
bb.utils.unlockfile(lock)
try:
yield
finally:
for lock in locks:
bb.utils.unlockfile(lock)
@contextmanager
def timeout(seconds):
@@ -850,7 +851,7 @@ def copyfile(src, dest, newmtime = None, sstat = None):
if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]):
os.unlink(dest)
os.symlink(target, dest)
#os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
return os.lstat(dest)
except Exception as e:
logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e))

View File

@@ -148,6 +148,14 @@ class Client(object):
m['unihash'] = unihash
return self.send_message({'report': m})
def report_unihash_equiv(self, taskhash, method, unihash, extra={}):
self._set_mode(self.MODE_NORMAL)
m = extra.copy()
m['taskhash'] = taskhash
m['method'] = method
m['unihash'] = unihash
return self.send_message({'report-equiv': m})
def get_stats(self):
self._set_mode(self.MODE_NORMAL)
return self.send_message({'get-stats': None})

View File

@@ -143,6 +143,7 @@ class ServerClient(object):
handlers = {
'get': self.handle_get,
'report': self.handle_report,
'report-equiv': self.handle_equivreport,
'get-stream': self.handle_get_stream,
'get-stats': self.handle_get_stats,
'reset-stats': self.handle_reset_stats,
@@ -303,6 +304,41 @@ class ServerClient(object):
self.write_message(d)
async def handle_equivreport(self, data):
with closing(self.db.cursor()) as cursor:
insert_data = {
'method': data['method'],
'outhash': "",
'taskhash': data['taskhash'],
'unihash': data['unihash'],
'created': datetime.now()
}
for k in ('owner', 'PN', 'PV', 'PR', 'task', 'outhash_siginfo'):
if k in data:
insert_data[k] = data[k]
cursor.execute('''INSERT OR IGNORE INTO tasks_v2 (%s) VALUES (%s)''' % (
', '.join(sorted(insert_data.keys())),
', '.join(':' + k for k in sorted(insert_data.keys()))),
insert_data)
self.db.commit()
# Fetch the unihash that will be reported for the taskhash. If the
# unihash matches, it means this row was inserted (or the mapping
# was already valid)
row = self.query_equivalent(data['method'], data['taskhash'])
if row['unihash'] == data['unihash']:
logger.info('Adding taskhash equivalence for %s with unihash %s',
data['taskhash'], row['unihash'])
d = {k: row[k] for k in ('taskhash', 'method', 'unihash')}
self.write_message(d)
async def handle_get_stats(self, request):
d = {
'requests': self.request_stats.todict(),

View File

@@ -292,10 +292,9 @@ class PRServer(SimpleXMLRPCServer):
logger.addHandler(streamhandler)
# write pidfile
pid = str(os.getpid())
pf = open(self.pidfile, 'w')
pf.write("%s\n" % pid)
pf.close()
pid = str(os.getpid())
with open(self.pidfile, 'w') as pf:
pf.write("%s\n" % pid)
self.work_forever()
self.delpid()
@@ -353,9 +352,8 @@ def start_daemon(dbfile, host, port, logfile):
ip = socket.gethostbyname(host)
pidfile = PIDPREFIX % (ip, port)
try:
pf = open(pidfile,'r')
pid = int(pf.readline().strip())
pf.close()
with open(pidfile) as pf:
pid = int(pf.readline().strip())
except IOError:
pid = None

View File

@@ -168,17 +168,17 @@ class Command(BaseCommand):
try:
self.cleanup()
except Exception as e:
logger.warn("runbuilds: cleanup exception %s" % str(e))
logger.warning("runbuilds: cleanup exception %s" % str(e))
try:
self.archive()
except Exception as e:
logger.warn("runbuilds: archive exception %s" % str(e))
logger.warning("runbuilds: archive exception %s" % str(e))
try:
self.schedule()
except Exception as e:
logger.warn("runbuilds: schedule exception %s" % str(e))
logger.warning("runbuilds: schedule exception %s" % str(e))
def handle(self, **options):
pidfile_path = os.path.join(os.environ.get("BUILDDIR", "."),

View File

@@ -76,6 +76,11 @@
# example publishes the 1.2 version of the PDF and HTML YP Development Tasks Manual
# for the 'denzil' branch.
#
# IN MEMORIAM: This comment is to remember Scott Rifenbark (scottrif), whom we lost
# in January, 2020. Scott was the primary technical writer for the Yocto Project for
# over 9 years. In that time, he contributed many thousands of patches, built this
# documentation tree, and enabled tens of thousands of developers to succeed with
# embedded Linux. He ran this Makefile many thousands of times. Godspeed, Dude.
ifeq ($(DOC),brief-yoctoprojectqs)
XSLTOPTS = --stringparam html.stylesheet brief-yoctoprojectqs-style.css \

12
documentation/bsp-guide/bsp-guide.xml Normal file → Executable file
View File

@@ -133,9 +133,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019;</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

View File

@@ -10844,15 +10844,6 @@
features that are used by many distributions.
</para>
<para>
By default, the Yocto Project uses SysVinit as the initialization
manager.
However, support also exists for systemd,
which is a full replacement for init with
parallel starting of services, reduced shell overhead and other
features that are used by many distributions.
</para>
<para>
Within the system, SysVinit treats system components as services.
These services are maintained as shell scripts stored in the

12
documentation/dev-manual/dev-manual.xml Normal file → Executable file
View File

@@ -118,9 +118,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019;</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

12
documentation/kernel-dev/kernel-dev.xml Normal file → Executable file
View File

@@ -103,9 +103,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019;</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

12
documentation/mega-manual/mega-manual.xml Normal file → Executable file
View File

@@ -89,9 +89,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

12
documentation/overview-manual/overview-manual.xml Normal file → Executable file
View File

@@ -48,9 +48,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

20
documentation/poky.ent Normal file → Executable file
View File

@@ -1,19 +1,19 @@
<!ENTITY DISTRO "3.0">
<!ENTITY DISTRO_COMPRESSED "30">
<!ENTITY DISTRO "3.0.2">
<!ENTITY DISTRO_COMPRESSED "302">
<!ENTITY DISTRO_NAME_NO_CAP "zeus">
<!ENTITY DISTRO_NAME "Zeus">
<!ENTITY DISTRO_NAME_NO_CAP_MINUS_ONE "warrior">
<!ENTITY DISTRO_NAME_MINUS_ONE "Warrior">
<!ENTITY YOCTO_DOC_VERSION "3.0">
<!ENTITY YOCTO_DOC_VERSION_MINUS_ONE "2.7">
<!ENTITY DISTRO_REL_TAG "yocto-3.0">
<!ENTITY METAINTELVERSION "9.0">
<!ENTITY REL_MONTH_YEAR "October 2019">
<!ENTITY YOCTO_DOC_VERSION "3.0.2">
<!ENTITY YOCTO_DOC_VERSION_MINUS_ONE "2.7.2">
<!ENTITY DISTRO_REL_TAG "yocto-3.0.2">
<!ENTITY METAINTELVERSION "12.0">
<!ENTITY REL_MONTH_YEAR "FEBURARY 2020">
<!ENTITY META_INTEL_REL_TAG "&METAINTELVERSION;-&DISTRO_NAME_NO_CAP;-&YOCTO_DOC_VERSION;">
<!ENTITY POKYVERSION "22.0.0">
<!ENTITY POKYVERSION_COMPRESSED "2200">
<!ENTITY POKYVERSION "22.0.2">
<!ENTITY POKYVERSION_COMPRESSED "2202">
<!ENTITY YOCTO_POKY "poky-&DISTRO_NAME_NO_CAP;-&POKYVERSION;">
<!ENTITY COPYRIGHT_YEAR "2010-2019">
<!ENTITY COPYRIGHT_YEAR "2010-2020">
<!ENTITY YOCTO_DL_URL "http://downloads.yoctoproject.org">
<!ENTITY YOCTO_HOME_URL "http://www.yoctoproject.org">
<!ENTITY YOCTO_LISTS_URL "http://lists.yoctoproject.org">

12
documentation/profile-manual/profile-manual.xml Normal file → Executable file
View File

@@ -103,9 +103,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

12
documentation/ref-manual/ref-manual.xml Normal file → Executable file
View File

@@ -134,9 +134,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

12
documentation/sdk-manual/sdk-manual.xml Normal file → Executable file
View File

@@ -68,9 +68,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

12
documentation/toaster-manual/toaster-manual.xml Normal file → Executable file
View File

@@ -78,9 +78,19 @@
</revision>
<revision>
<revnumber>3.0</revnumber>
<date>&REL_MONTH_YEAR;</date>
<date>October 2019</date>
<revremark>Released with the Yocto Project 3.0 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.1</revnumber>
<date>December 2019</date>
<revremark>Released with the Yocto Project 3.0.1 Release.</revremark>
</revision>
<revision>
<revnumber>3.0.2</revnumber>
<date>&REL_MONTH_YEAR;</date>
<revremark>Released with the Yocto Project 3.0.2 Release.</revremark>
</revision>
</revhistory>
<copyright>

46
documentation/tools/mega-manual.sed Normal file → Executable file
View File

@@ -1,36 +1,36 @@
# Processes bitbake-user-manual (<word>-<word>-<word> style).
# This style is for manual three-word folders, which currently is only the BitBake User Manual.
# We used to have the "yocto-project-qs" and "poky-ref-manual" folders but no longer do.
# s@"ulink" href="http://www.yoctoproject.org/docs/3.0/[a-z]*-[a-z]*-[a-z]*/[a-z]*-[a-z]*-[a-z]*.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/bitbake-user-manual/bitbake-user-manual.html#@"link" href="#@g
# s@"ulink" href="http://www.yoctoproject.org/docs/3.0.1/[a-z]*-[a-z]*-[a-z]*/[a-z]*-[a-z]*-[a-z]*.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/bitbake-user-manual/bitbake-user-manual.html#@"link" href="#@g
# Processes all other manuals (<word>-<word> style).
# This style is for manual folders that use two word, which is the standard now (e.g. "ref-manual").
# Here is the one-liner:
# s@"ulink" href="http://www.yoctoproject.org/docs/3.0/[a-z]*-[a-z]*/[a-z]*-[a-z]*.html#@"link" href="#@g
# s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/[a-z]*-[a-z]*/[a-z]*-[a-z]*.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/sdk-manual/sdk-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/bsp-guide/bsp-guide.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/dev-manual/dev-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/overview-manual/overview-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/kernel-dev/kernel-dev.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/profile-manual/profile-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/ref-manual/ref-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0/toaster-manual/toaster-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/sdk-manual/sdk-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/bsp-guide/bsp-guide.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/dev-manual/dev-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/overview-manual/overview-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/brief-yoctoprojectqs/brief-yoctoprojectqs.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/kernel-dev/kernel-dev.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/profile-manual/profile-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/ref-manual/ref-manual.html#@"link" href="#@g
s@"ulink" href="http://www.yoctoproject.org/docs/3.0.2/toaster-manual/toaster-manual.html#@"link" href="#@g
# Process cases where just an external manual is referenced without an id anchor
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html" target="_top">Yocto Project Quick Build</a>@Yocto Project Quick Build@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/bitbake-user-manual/bitbake-user-manual.html" target="_top">BitBake User Manual</a>@BitBake User Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/dev-manual/dev-manual.html" target="_top">Yocto Project Development Tasks Manual</a>@Yocto Project Development Tasks Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/overview-manual/overview-manual.html" target="_top">Yocto Project Overview and Concepts Manual</a>@Yocto project Overview and Concepts Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/sdk-manual/sdk-manual.html" target="_top">Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</a>@Yocto Project Application Development and the Extensible Software Development Kit (eSDK)@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/bsp-guide/bsp-guide.html" target="_top">Yocto Project Board Support Package (BSP) Developer's Guide</a>@Yocto Project Board Support Package (BSP) Developer's Guide@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/profile-manual/profile-manual.html" target="_top">Yocto Project Profiling and Tracing Manual</a>@Yocto Project Profiling and Tracing Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/kernel-dev/kernel-dev.html" target="_top">Yocto Project Linux Kernel Development Manual</a>@Yocto Project Linux Kernel Development Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/ref-manual/ref-manual.html" target="_top">Yocto Project Reference Manual</a>@Yocto Project Reference Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/toaster-manual/toaster-manual.html" target="_top">Toaster User Manual</a>@Toaster User Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/brief-yoctoprojectqs/brief-yoctoprojectqs.html" target="_top">Yocto Project Quick Build</a>@Yocto Project Quick Build@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/bitbake-user-manual/bitbake-user-manual.html" target="_top">BitBake User Manual</a>@BitBake User Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/dev-manual/dev-manual.html" target="_top">Yocto Project Development Tasks Manual</a>@Yocto Project Development Tasks Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/overview-manual/overview-manual.html" target="_top">Yocto Project Overview and Concepts Manual</a>@Yocto project Overview and Concepts Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/sdk-manual/sdk-manual.html" target="_top">Yocto Project Application Development and the Extensible Software Development Kit (eSDK)</a>@Yocto Project Application Development and the Extensible Software Development Kit (eSDK)@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/bsp-guide/bsp-guide.html" target="_top">Yocto Project Board Support Package (BSP) Developer's Guide</a>@Yocto Project Board Support Package (BSP) Developer's Guide@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/profile-manual/profile-manual.html" target="_top">Yocto Project Profiling and Tracing Manual</a>@Yocto Project Profiling and Tracing Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/kernel-dev/kernel-dev.html" target="_top">Yocto Project Linux Kernel Development Manual</a>@Yocto Project Linux Kernel Development Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/ref-manual/ref-manual.html" target="_top">Yocto Project Reference Manual</a>@Yocto Project Reference Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/toaster-manual/toaster-manual.html" target="_top">Toaster User Manual</a>@Toaster User Manual@g
# Process a single, rouge occurrence of a linked reference to the Mega-Manual.
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0/mega-manual/mega-manual.html" target="_top">Yocto Project Mega-Manual</a>@Yocto Project Mega-Manual@g
s@<a class="ulink" href="http://www.yoctoproject.org/docs/3.0.2/mega-manual/mega-manual.html" target="_top">Yocto Project Mega-Manual</a>@Yocto Project Mega-Manual@g

View File

@@ -1,6 +1,6 @@
DISTRO = "poky"
DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
DISTRO_VERSION = "3.0.1"
DISTRO_VERSION = "3.0.3"
DISTRO_CODENAME = "zeus"
SDK_VENDOR = "-pokysdk"
SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${DATE}', 'snapshot')}"

View File

@@ -482,6 +482,7 @@ python () {
# If we're building a target package we need to use fakeroot (pseudo)
# in order to capture permissions, owners, groups and special files
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
d.appendVarFlag('do_prepare_recipe_sysroot', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
d.setVarFlag('do_unpack', 'umask', '022')
d.setVarFlag('do_configure', 'umask', '022')
d.setVarFlag('do_compile', 'umask', '022')

View File

@@ -97,3 +97,4 @@ python do_addto_recipe_sysroot () {
bb.build.exec_func("extend_recipe_sysroot", d)
}
addtask addto_recipe_sysroot after do_populate_sysroot
do_addto_recipe_sysroot[deptask] = "do_populate_sysroot"

View File

@@ -26,7 +26,7 @@ CVE_PRODUCT ??= "${BPN}"
CVE_VERSION ??= "${PV}"
CVE_CHECK_DB_DIR ?= "${DL_DIR}/CVE_CHECK"
CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_1.0.db"
CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_1.1.db"
CVE_CHECK_LOG ?= "${T}/cve.log"
CVE_CHECK_TMP_FILE ?= "${TMPDIR}/cve_check"
@@ -52,11 +52,14 @@ python do_cve_check () {
"""
if os.path.exists(d.getVar("CVE_CHECK_DB_FILE")):
patched_cves = get_patches_cves(d)
patched, unpatched = check_cves(d, patched_cves)
try:
patched_cves = get_patches_cves(d)
except FileNotFoundError:
bb.fatal("Failure in searching patches")
whitelisted, patched, unpatched = check_cves(d, patched_cves)
if patched or unpatched:
cve_data = get_cve_info(d, patched + unpatched)
cve_write_data(d, patched, unpatched, cve_data)
cve_write_data(d, patched, unpatched, whitelisted, cve_data)
else:
bb.note("No CVE database found, skipping CVE check")
@@ -129,6 +132,10 @@ def get_patches_cves(d):
for url in src_patches(d):
patch_file = bb.fetch.decodeurl(url)[2]
if not os.path.isfile(patch_file):
bb.error("File Not found: %s" % patch_file)
raise FileNotFoundError
# Check patch file name for CVE ID
fname_match = cve_file_name_match.search(patch_file)
if fname_match:
@@ -172,13 +179,13 @@ def check_cves(d, patched_cves):
products = d.getVar("CVE_PRODUCT").split()
# If this has been unset then we're not scanning for CVEs here (for example, image recipes)
if not products:
return ([], [])
return ([], [], [])
pv = d.getVar("CVE_VERSION").split("+git")[0]
# If the recipe has been whitlisted we return empty lists
if d.getVar("PN") in d.getVar("CVE_CHECK_PN_WHITELIST").split():
bb.note("Recipe has been whitelisted, skipping check")
return ([], [])
return ([], [], [])
old_cve_whitelist = d.getVar("CVE_CHECK_CVE_WHITELIST")
if old_cve_whitelist:
@@ -214,7 +221,7 @@ def check_cves(d, patched_cves):
(_, _, _, version_start, operator_start, version_end, operator_end) = row
#bb.debug(2, "Evaluating row " + str(row))
if (operator_start == '=' and pv == version_start):
if (operator_start == '=' and pv == version_start) or version_start == '-':
vulnerable = True
else:
if operator_start:
@@ -256,7 +263,7 @@ def check_cves(d, patched_cves):
conn.close()
return (list(patched_cves), cves_unpatched)
return (list(cve_whitelist), list(patched_cves), cves_unpatched)
def get_cve_info(d, cves):
"""
@@ -280,7 +287,7 @@ def get_cve_info(d, cves):
conn.close()
return cve_data
def cve_write_data(d, patched, unpatched, cve_data):
def cve_write_data(d, patched, unpatched, whitelisted, cve_data):
"""
Write CVE information in WORKDIR; and to CVE_CHECK_DIR, and
CVE manifest if enabled.
@@ -296,7 +303,9 @@ def cve_write_data(d, patched, unpatched, cve_data):
write_string += "PACKAGE NAME: %s\n" % d.getVar("PN")
write_string += "PACKAGE VERSION: %s\n" % d.getVar("PV")
write_string += "CVE: %s\n" % cve
if cve in patched:
if cve in whitelisted:
write_string += "CVE STATUS: Whitelisted\n"
elif cve in patched:
write_string += "CVE STATUS: Patched\n"
else:
unpatched_cves.append(cve)

View File

@@ -1,5 +1,5 @@
# remove tasks that modify the source tree in case externalsrc is inherited
SRCTREECOVEREDTASKS += "do_kernel_configme do_validate_branches do_kernel_configcheck do_kernel_checkout do_fetch do_unpack do_patch"
SRCTREECOVEREDTASKS += "do_validate_branches do_kernel_configcheck do_kernel_checkout do_fetch do_unpack do_patch"
PATCH_GIT_USER_EMAIL ?= "kernel-yocto@oe"
PATCH_GIT_USER_NAME ?= "OpenEmbedded"
@@ -301,6 +301,7 @@ do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot"
do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot"
do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot"
do_kernel_configme[depends] += "bc-native:do_populate_sysroot bison-native:do_populate_sysroot"
do_kernel_configme[depends] += "kern-tools-native:do_populate_sysroot"
do_kernel_configme[dirs] += "${S} ${B}"
do_kernel_configme() {
set +e

View File

@@ -613,6 +613,9 @@ do_kernel_link_images() {
if [ -f ../../../vmlinuz.bin ]; then
ln -sf ../../../vmlinuz.bin
fi
if [ -f ../../../vmlinux.64 ]; then
ln -sf ../../../vmlinux.64
fi
}
addtask kernel_link_images after do_compile before do_strip

View File

@@ -1,7 +1,7 @@
S = "${STAGING_KERNEL_DIR}"
deltask do_fetch
deltask do_unpack
do_patch[depends] += "virtual/kernel:do_patch"
do_patch[depends] += "virtual/kernel:do_shared_workdir"
do_patch[noexec] = "1"
do_package[depends] += "virtual/kernel:do_populate_sysroot"
KERNEL_VERSION = "${@get_kernelversion_file("${STAGING_KERNEL_BUILDDIR}")}"

View File

@@ -252,7 +252,7 @@ def canonical_license(d, license):
"""
Return the canonical (SPDX) form of the license if available (so GPLv3
becomes GPL-3.0), for the license named 'X+', return canonical form of
'X' if availabel and the tailing '+' (so GPLv3+ becomes GPL-3.0+),
'X' if available and the tailing '+' (so GPLv3+ becomes GPL-3.0+),
or the passed license if there is no canonical form.
"""
lic = d.getVarFlag('SPDXLICENSEMAP', license) or ""
@@ -262,10 +262,29 @@ def canonical_license(d, license):
lic += '+'
return lic or license
def available_licenses(d):
"""
Return the available licenses by searching the directories specified by
COMMON_LICENSE_DIR and LICENSE_PATH.
"""
lic_dirs = ((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' +
(d.getVar('LICENSE_PATH') or '')).split()
licenses = []
for lic_dir in lic_dirs:
licenses += os.listdir(lic_dir)
licenses = sorted(licenses)
return licenses
# Only determine the list of all available licenses once. This assumes that any
# additions to LICENSE_PATH have been done before this file is parsed.
AVAILABLE_LICENSES := "${@' '.join(available_licenses(d))}"
def expand_wildcard_licenses(d, wildcard_licenses):
"""
Return actual spdx format license names if wildcard used. We expand
wildcards from SPDXLICENSEMAP flags and SRC_DISTRIBUTE_LICENSES values.
Return actual spdx format license names if wildcards are used. We expand
wildcards from SPDXLICENSEMAP flags and AVAILABLE_LICENSES.
"""
import fnmatch
licenses = wildcard_licenses[:]
@@ -274,7 +293,7 @@ def expand_wildcard_licenses(d, wildcard_licenses):
spdxflags = fnmatch.filter(spdxmapkeys, wld_lic)
licenses += [d.getVarFlag('SPDXLICENSEMAP', flag) for flag in spdxflags]
spdx_lics = (d.getVar('SRC_DISTRIBUTE_LICENSES', False) or '').split()
spdx_lics = d.getVar('AVAILABLE_LICENSES').split()
for wld_lic in wildcard_licenses:
licenses += fnmatch.filter(spdx_lics, wld_lic)

View File

@@ -41,7 +41,7 @@ def get_glibc_loader(d):
elif re.search("i.86", targetarch):
dynamic_loader = "${base_libdir}/ld-linux.so.2"
elif targetarch == "arm":
dynamic_loader = "${base_libdir}/ld-linux.so.3"
dynamic_loader = "${base_libdir}/ld-linux${@['-armhf', ''][d.getVar('TARGET_FPU') == 'soft']}.so.3"
elif targetarch.startswith("aarch64"):
dynamic_loader = "${base_libdir}/ld-linux-aarch64${ARMPKGSFX_ENDIAN_64}.so.1"
elif targetarch.startswith("riscv64"):

View File

@@ -24,7 +24,8 @@ MESONOPTS = " --prefix ${prefix} \
--infodir ${@noprefix('infodir', d)} \
--sysconfdir ${sysconfdir} \
--localstatedir ${localstatedir} \
--sharedstatedir ${sharedstatedir} "
--sharedstatedir ${sharedstatedir} \
--wrap-mode nodownload"
EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}"

View File

@@ -186,6 +186,7 @@ python do_addto_recipe_sysroot () {
bb.build.exec_func("extend_recipe_sysroot", d)
}
addtask addto_recipe_sysroot after do_populate_sysroot
do_addto_recipe_sysroot[deptask] = "do_populate_sysroot"
inherit nopackages

View File

@@ -5,6 +5,13 @@ QUILTRCFILE ?= "${STAGING_ETCDIR_NATIVE}/quiltrc"
PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot"
# There is a bug in patch 2.7.3 and earlier where index lines
# in patches can change file modes when they shouldn't:
# http://git.savannah.gnu.org/cgit/patch.git/patch/?id=82b800c9552a088a241457948219d25ce0a407a4
# This leaks into debug sources in particular. Add the dependency
# to target recipes to avoid this problem until we can rely on 2.7.4 or later.
PATCHDEPENDENCY_append_class-target = " patch-replacement-native:do_populate_sysroot"
PATCH_GIT_USER_NAME ?= "OpenEmbedded"
PATCH_GIT_USER_EMAIL ?= "oe.patch@oe"

View File

@@ -0,0 +1,35 @@
python pod_strip_version() {
import re
def opener(filename, mode):
if filename.endswith(".gz"):
import gzip
return gzip.open(filename, mode)
elif filename.endswith(".bz2"):
import bz2
return bz2.open(filename, mode)
else:
return open(filename, mode)
bad_re = re.compile(rb"Automatically generated by Pod::Man( [0-9]+.+)")
for root, dirs, files in os.walk(d.expand("${D}${mandir}")):
for filename in files:
filename = os.path.join(root, filename)
if not os.path.isfile(filename):
continue
with opener(filename, "rb") as manfile:
manpage = manfile.read()
m = bad_re.search(manpage)
if not m:
continue
bb.note("podfix: stripping version from %s" % filename)
os.unlink(filename)
with opener(filename, "wb") as manfile:
manfile.write(manpage[:m.start(1)])
manfile.write(manpage[m.end(1):])
}
do_install[postfuncs] += "pod_strip_version"

View File

@@ -122,7 +122,7 @@ SDK_TITLE_task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or d.getVar('DISTR
def clean_esdk_builddir(d, sdkbasepath):
"""Clean up traces of the fake build for create_filtered_tasklist()"""
import shutil
cleanpaths = 'cache conf/sanity_info tmp'.split()
cleanpaths = ['cache', 'tmp']
for pth in cleanpaths:
fullpth = os.path.join(sdkbasepath, pth)
if os.path.isdir(fullpth):

View File

@@ -44,10 +44,12 @@ SDE_DEPLOYDIR = "${WORKDIR}/deploy-source-date-epoch"
SSTATETASKS += "do_deploy_source_date_epoch"
do_deploy_source_date_epoch () {
echo "Deploying SDE to ${SDE_DIR}."
mkdir -p ${SDE_DEPLOYDIR}
if [ -e ${SDE_FILE} ]; then
echo "Deploying SDE from ${SDE_FILE} -> ${SDE_DEPLOYDIR}."
cp -p ${SDE_FILE} ${SDE_DEPLOYDIR}/__source_date_epoch.txt
else
echo "${SDE_FILE} not found!"
fi
}
@@ -56,7 +58,11 @@ python do_deploy_source_date_epoch_setscene () {
bb.utils.mkdirhier(d.getVar('SDE_DIR'))
sde_file = os.path.join(d.getVar('SDE_DEPLOYDIR'), '__source_date_epoch.txt')
if os.path.exists(sde_file):
os.rename(sde_file, d.getVar('SDE_FILE'))
target = d.getVar('SDE_FILE')
bb.debug(1, "Moving setscene SDE file %s -> %s" % (sde_file, target))
os.rename(sde_file, target)
else:
bb.debug(1, "%s not found!" % sde_file)
}
do_deploy_source_date_epoch[dirs] = "${SDE_DEPLOYDIR}"
@@ -164,16 +170,32 @@ python do_create_source_date_epoch_stamp() {
f.write(str(source_date_epoch))
}
def get_source_date_epoch_value(d):
cached = d.getVar('__CACHED_SOURCE_DATE_EPOCH')
if cached:
return cached
epochfile = d.getVar('SDE_FILE')
source_date_epoch = 0
if os.path.isfile(epochfile):
with open(epochfile, 'r') as f:
s = f.read()
try:
source_date_epoch = int(s)
except ValueError:
bb.warn("SOURCE_DATE_EPOCH value '%s' is invalid. Reverting to 0" % s)
source_date_epoch = 0
bb.debug(1, "SOURCE_DATE_EPOCH: %d" % source_date_epoch)
else:
bb.debug(1, "Cannot find %s. SOURCE_DATE_EPOCH will default to %d" % (epochfile, source_date_epoch))
d.setVar('__CACHED_SOURCE_DATE_EPOCH', str(source_date_epoch))
return str(source_date_epoch)
export SOURCE_DATE_EPOCH ?= "${@get_source_date_epoch_value(d)}"
BB_HASHBASE_WHITELIST += "SOURCE_DATE_EPOCH"
python () {
if d.getVar('BUILD_REPRODUCIBLE_BINARIES') == '1':
d.appendVarFlag("do_unpack", "postfuncs", " do_create_source_date_epoch_stamp")
epochfile = d.getVar('SDE_FILE')
source_date_epoch = "0"
if os.path.isfile(epochfile):
with open(epochfile, 'r') as f:
source_date_epoch = f.read()
bb.debug(1, "SOURCE_DATE_EPOCH: %s" % source_date_epoch)
d.setVar('SOURCE_DATE_EPOCH', source_date_epoch)
}

View File

@@ -8,3 +8,4 @@ export SOURCE_DATE_EPOCH ??= "1520598896"
REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896"
inherit podfix

View File

@@ -625,13 +625,14 @@ def check_sanity_version_change(status, d):
# In other words, these tests run once in a given build directory and then
# never again until the sanity version or host distrubution id/version changes.
# Check the python install is complete. glib-2.0-natives requries
# xml.parsers.expat
# Check the python install is complete. Examples that are often removed in
# minimal installations: glib-2.0-natives requries # xml.parsers.expat and icu
# requires distutils.sysconfig.
try:
import xml.parsers.expat
except ImportError:
status.addresult('Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n')
import stat
import distutils.sysconfig
except ImportError as e:
status.addresult('Your Python 3 is not a full install. Please install the module %s (see the Getting Started guide for further information).\n' % e.name)
status.addresult(check_make_version(d))
status.addresult(check_patch_version(d))
@@ -667,6 +668,7 @@ def check_sanity_version_change(status, d):
status.addresult('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n')
# Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS)
import stat
tmpdir = d.getVar('TMPDIR')
status.addresult(check_create_long_filename(tmpdir, "TMPDIR"))
tmpdirmode = os.stat(tmpdir).st_mode
@@ -927,7 +929,7 @@ def check_sanity(sanity_data):
last_tmpdir = ""
last_sstate_dir = ""
last_nativelsbstr = ""
sanityverfile = sanity_data.expand("${TOPDIR}/conf/sanity_info")
sanityverfile = sanity_data.expand("${TOPDIR}/cache/sanity_info")
if os.path.exists(sanityverfile):
with open(sanityverfile, 'r') as f:
for line in f:

View File

@@ -318,7 +318,8 @@ def sstate_installpkg(ss, d):
sstateinst = d.expand("${WORKDIR}/sstate-install-%s/" % ss['task'])
sstatefetch = d.getVar('SSTATE_PKGNAME') + '_' + ss['task'] + ".tgz"
sstatepkg = d.getVar('SSTATE_PKG') + '_' + ss['task'] + ".tgz"
d.appendVar('SSTATE_PKG', '_'+ ss['task'] + ".tgz")
sstatepkg = d.getVar('SSTATE_PKG')
if not os.path.exists(sstatepkg):
pstaging_fetch(sstatefetch, d)
@@ -330,7 +331,6 @@ def sstate_installpkg(ss, d):
sstate_clean(ss, d)
d.setVar('SSTATE_INSTDIR', sstateinst)
d.setVar('SSTATE_PKG', sstatepkg)
if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False):
signer = get_signer(d, 'local')
@@ -612,10 +612,9 @@ def sstate_package(ss, d):
tmpdir = d.getVar('TMPDIR')
sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['task'])
sstatepkg = d.getVar('SSTATE_PKG') + '_'+ ss['task'] + ".tgz"
d.appendVar('SSTATE_PKG', '_'+ ss['task'] + ".tgz")
bb.utils.remove(sstatebuild, recurse=True)
bb.utils.mkdirhier(sstatebuild)
bb.utils.mkdirhier(os.path.dirname(sstatepkg))
for state in ss['dirs']:
if not os.path.exists(state[1]):
continue
@@ -648,7 +647,6 @@ def sstate_package(ss, d):
os.rename(plain, pdir)
d.setVar('SSTATE_BUILDDIR', sstatebuild)
d.setVar('SSTATE_PKG', sstatepkg)
d.setVar('SSTATE_INSTDIR', sstatebuild)
if d.getVar('SSTATE_SKIP_CREATION') == '1':
@@ -664,7 +662,8 @@ def sstate_package(ss, d):
# All hooks should run in SSTATE_BUILDDIR.
bb.build.exec_func(f, d, (sstatebuild,))
bb.siggen.dump_this_task(sstatepkg + ".siginfo", d)
# SSTATE_PKG may have been changed by sstate_report_unihash
bb.siggen.dump_this_task(d.getVar('SSTATE_PKG') + ".siginfo", d)
return
@@ -748,18 +747,19 @@ sstate_task_postfunc[dirs] = "${WORKDIR}"
# set as SSTATE_BUILDDIR. Will be run from within SSTATE_BUILDDIR.
#
sstate_create_package () {
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
# Exit earlu if it already exists
# Exit early if it already exists
if [ -e ${SSTATE_PKG} ]; then
return
fi
# Use pigz if available
OPT="-czS"
if [ -x "$(command -v pigz)" ]; then
OPT="-I pigz -cS"
fi
mkdir -p `dirname ${SSTATE_PKG}`
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
# Use pigz if available
OPT="-czS"
if [ -x "$(command -v pigz)" ]; then
OPT="-I pigz -cS"
fi
# Need to handle empty directories
if [ "$(ls -A)" ]; then
@@ -818,7 +818,7 @@ sstate_unpack_package () {
BB_HASHCHECK_FUNCTION = "sstate_checkhashes"
def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, **kwargs):
def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, **kwargs):
found = set()
missed = set()
extension = ".tgz"
@@ -951,16 +951,17 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, **kwargs):
evdata['found'].append((bb.runqueue.fn_from_tid(tid), bb.runqueue.taskname_from_tid(tid), gethash(tid), sstatefile ) )
bb.event.fire(bb.event.MetadataEvent("MissedSstate", evdata), d)
# Print some summary statistics about the current task completion and how much sstate
# reuse there was. Avoid divide by zero errors.
total = len(sq_data['hash'])
complete = 0
if currentcount:
complete = (len(found) + currentcount) / (total + currentcount) * 100
match = 0
if total:
match = len(found) / total * 100
bb.plain("Sstate summary: Wanted %d Found %d Missed %d Current %d (%d%% match, %d%% complete)" % (total, len(found), len(missed), currentcount, match, complete))
if summary:
# Print some summary statistics about the current task completion and how much sstate
# reuse there was. Avoid divide by zero errors.
total = len(sq_data['hash'])
complete = 0
if currentcount:
complete = (len(found) + currentcount) / (total + currentcount) * 100
match = 0
if total:
match = len(found) / total * 100
bb.plain("Sstate summary: Wanted %d Found %d Missed %d Current %d (%d%% match, %d%% complete)" % (total, len(found), len(missed), currentcount, match, complete))
if hasattr(bb.parse.siggen, "checkhashes"):
bb.parse.siggen.checkhashes(sq_data, missed, found, d)

View File

@@ -113,7 +113,7 @@ def _toaster_load_pkgdatafile(dirpath, filepath):
pass # ignore lines without valid key: value pairs
return pkgdata
python toaster_package_dumpdata() {
def _toaster_dumpdata(pkgdatadir, d):
"""
Dumps the data about the packages created by a recipe
"""
@@ -122,7 +122,6 @@ python toaster_package_dumpdata() {
if not d.getVar('PACKAGES'):
return
pkgdatadir = d.getVar('PKGDESTWORK')
lpkgdata = {}
datadir = os.path.join(pkgdatadir, 'runtime')
@@ -132,6 +131,14 @@ python toaster_package_dumpdata() {
lpkgdata = _toaster_load_pkgdatafile(datadir, datafile)
# Fire an event containing the pkg data
bb.event.fire(bb.event.MetadataEvent("SinglePackageInfo", lpkgdata), d)
python toaster_package_dumpdata() {
_toaster_dumpdata(d.getVar('PKGDESTWORK'), d)
}
python toaster_packagedata_dumpdata() {
# This path needs to match do_packagedata[sstate-inputdirs]
_toaster_dumpdata(os.path.join(d.getVar('WORKDIR'), 'pkgdata-pdata-input'), d)
}
# 2. Dump output image files information
@@ -366,8 +373,8 @@ toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
addhandler toaster_artifacts
toaster_artifacts[eventmask] = "bb.runqueue.runQueueTaskSkipped bb.runqueue.runQueueTaskCompleted"
do_packagedata_setscene[postfuncs] += "toaster_package_dumpdata "
do_packagedata_setscene[vardepsexclude] += "toaster_package_dumpdata "
do_packagedata_setscene[postfuncs] += "toaster_packagedata_dumpdata "
do_packagedata_setscene[vardepsexclude] += "toaster_packagedata_dumpdata "
do_package[postfuncs] += "toaster_package_dumpdata "
do_package[vardepsexclude] += "toaster_package_dumpdata "

View File

@@ -82,6 +82,7 @@ RECIPE_MAINTAINER_pn-build-appliance-image = "Richard Purdie <richard.purdie@lin
RECIPE_MAINTAINER_pn-build-compare = "Paul Eggleton <paul.eggleton@linux.intel.com>"
RECIPE_MAINTAINER_pn-build-sysroots = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER_pn-builder = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER_pn-buildtools-extended-tarball = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER_pn-buildtools-tarball = "Richard Purdie <richard.purdie@linuxfoundation.org>"
RECIPE_MAINTAINER_pn-busybox = "Andrej Valek <andrej.valek@siemens.com>"
RECIPE_MAINTAINER_pn-busybox-inittab = "Denys Dmytriyenko <denys@ti.com>"

View File

@@ -57,6 +57,8 @@ SECURITY_STRINGFORMAT_pn-gcc = ""
TARGET_CC_ARCH_append_class-target = " ${SECURITY_CFLAGS}"
TARGET_LDFLAGS_append_class-target = " ${SECURITY_LDFLAGS}"
TARGET_CC_ARCH_append_class-cross-canadian = " ${SECURITY_CFLAGS}"
TARGET_LDFLAGS_append_class-cross-canadian = " ${SECURITY_LDFLAGS}"
SECURITY_STACK_PROTECTOR_pn-gcc-runtime = ""
SECURITY_STACK_PROTECTOR_pn-glibc = ""

View File

@@ -6,9 +6,9 @@
# to the distro running on the build machine.
#
UNINATIVE_MAXGLIBCVERSION = "2.30"
UNINATIVE_MAXGLIBCVERSION = "2.31"
UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/2.7/"
UNINATIVE_CHECKSUM[aarch64] ?= "e76a45886ee8a0b3904b761c17ac8ff91edf9811ee455f1832d10763ba794dfc"
UNINATIVE_CHECKSUM[i686] ?= "810d027dfb1c7675226afbcec07808770516c969ee7378f6d8240281083f8924"
UNINATIVE_CHECKSUM[x86_64] ?= "9498d8bba047499999a7310ac2576d0796461184965351a56f6d32c888a1f216"
UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/2.8/"
UNINATIVE_CHECKSUM[aarch64] ?= "989187344bf9539b464fb7ed9c223e51f4bdb4c7a677d2c314e6fed393176efe"
UNINATIVE_CHECKSUM[i686] ?= "cc3e45bc8594488b407363e3fa9af5a099279dab2703c64342098719bd674990"
UNINATIVE_CHECKSUM[x86_64] ?= "a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab"

View File

@@ -69,6 +69,7 @@ ASSUME_SHLIBS[doc] = "List of shlib:package[_version] mappings. Useful for lib p
AUTHOR[doc] = "Email address used to contact the original author(s) in order to send patches and forward bugs."
AUTO_SYSLINUXMENU[doc] = "Enables creating an automatic menu for the syslinux bootloader."
AUTOREV[doc] = "When SRCREV is set to the value of this variable, it specifies to use the latest source revision in the repository."
AVAILABLE_LICENSES[doc] = "List of licenses found in the directories specified by COMMON_LICENSE_DIR and LICENSE_PATH."
#B

View File

@@ -1,44 +1,3 @@
# These aren't actually used anywhere that I can tell
# They may be in the future (or are used by someone else
# For completion sake, I've updated them
SRC_DISTRIBUTE_LICENSES += "AAL Adobe AFL-1.2 AFL-2.0 AFL-2.1 AFL-3.0"
SRC_DISTRIBUTE_LICENSES += "AGPL-3.0 ANTLR-PD Apache-1.0 Apache-1.1 Apache-2.0"
SRC_DISTRIBUTE_LICENSES += "APL-1.0 APSL-1.0 APSL-1.1 APSL-1.2 APSL-2.0"
SRC_DISTRIBUTE_LICENSES += "Artistic-1.0 Artistic-2.0 BitstreamVera BSD"
SRC_DISTRIBUTE_LICENSES += "BSD-2-Clause BSD-3-Clause BSD-4-Clause BSL-1.0"
SRC_DISTRIBUTE_LICENSES += "CATOSL-1.1 CC0-1.0 CC-BY-1.0 CC-BY-2.0 CC-BY-2.5"
SRC_DISTRIBUTE_LICENSES += "CC-BY-3.0 CC-BY-NC-1.0 CC-BY-NC-2.0 CC-BY-NC-2.5"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-3.0 CC-BY-NC-ND-1.0 CC-BY-NC-ND-2.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-ND-2.5 CC-BY-NC-ND-3.0 CC-BY-NC-SA-1.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-SA-2.0 CC-BY-NC-SA-2.5 CC-BY-NC-SA-3.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-ND-1.0 CC-BY-ND-2.0 CC-BY-ND-2.5 CC-BY-ND-3.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-SA-1.0 CC-BY-SA-2.0 CC-BY-SA-2.5 CC-BY-SA-3.0 CC-BY-SA-4.0"
SRC_DISTRIBUTE_LICENSES += "CDDL-1.0 CECILL-1.0 CECILL-2.0 CECILL-B CECILL-C"
SRC_DISTRIBUTE_LICENSES += "ClArtistic CPAL-1.0 CPL-1.0 CUA-OPL-1.0 DSSSL"
SRC_DISTRIBUTE_LICENSES += "ECL-1.0 ECL-2.0 eCos-2.0 EDL-1.0 EFL-1.0 EFL-2.0"
SRC_DISTRIBUTE_LICENSES += "Entessa EPL-1.0 EPL-2.0 ErlPL-1.1"
SRC_DISTRIBUTE_LICENSES += "EUDatagrid EUPL-1.0 EUPL-1.1 Fair Frameworx-1.0"
SRC_DISTRIBUTE_LICENSES += "FreeType GFDL-1.1 GFDL-1.2 GFDL-1.3 GPL-1.0"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0 GPL-2.0-with-autoconf-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-classpath-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-font-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-GCC-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2-with-bison-exception GPL-3.0"
SRC_DISTRIBUTE_LICENSES += "GPL-3.0-with-autoconf-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-3.0-with-GCC-exception"
SRC_DISTRIBUTE_LICENSES += "gSOAP-1 gSOAP-1.3b HPND IPA IPL-1.0 ISC LGPL-2.0"
SRC_DISTRIBUTE_LICENSES += "LGPL-2.1 LGPL-3.0 Libpng LPL-1.02 LPPL-1.0 LPPL-1.1"
SRC_DISTRIBUTE_LICENSES += "LPPL-1.2 LPPL-1.3c MirOS MIT Motosoto MPL-1.0"
SRC_DISTRIBUTE_LICENSES += "MPL-1.1 MS-PL MS-RL Multics NASA-1.3 Nauman NCSA"
SRC_DISTRIBUTE_LICENSES += "NGPL Nokia NPOSL-3.0 NTP OASIS OCLC-2.0 ODbL-1.0"
SRC_DISTRIBUTE_LICENSES += "OFL-1.1 OGTSL OLDAP-2.8 OpenSSL OSL-1.0 OSL-2.0"
SRC_DISTRIBUTE_LICENSES += "OSL-3.0 PD PHP-3.0 PostgreSQL Proprietary"
SRC_DISTRIBUTE_LICENSES += "Python-2.0 QPL-1.0 RHeCos-1 RHeCos-1.1 RPL-1.5"
SRC_DISTRIBUTE_LICENSES += "RPSL-1.0 RSCPL Ruby SAX-PD SGI-1 Simple-2.0 Sleepycat"
SRC_DISTRIBUTE_LICENSES += "SPL-1.0 SugarCRM-1 SugarCRM-1.1.3 UCB VSL-1.0 W3C"
SRC_DISTRIBUTE_LICENSES += "Watcom-1.0 WXwindows XFree86-1.0 XFree86-1.1 Xnet XSL YPL-1.1"
SRC_DISTRIBUTE_LICENSES += "Zimbra-1.3 Zlib ZPL-1.1 ZPL-2.0 ZPL-2.1"
# Standards are great! Everyone has their own. In an effort to standardize licensing
# names, common-licenses will use the SPDX standard license names. In order to not
# break the non-standardized license names that we find in LICENSE, we'll set
@@ -188,5 +147,3 @@ FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"
FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"

View File

@@ -9,6 +9,7 @@ MULTILIBS ??= "multilib:lib32"
STAGING_DIR_HOST = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
STAGING_DIR_TARGET = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
RECIPE_SYSROOT = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
RECIPE_SYSROOT_class-native = "${WORKDIR}/recipe-sysroot"
INHERIT += "multilib_global"

View File

@@ -249,7 +249,7 @@ if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then
rm sdk.zip && exit 1
fi
else
tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
tail -n +$payload_offset $0| $SUDO_EXEC tar mxJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
fi
echo "done"

View File

@@ -40,8 +40,9 @@ def opkg_query(cmd_output):
ver = ""
filename = ""
dep = []
prov = []
pkgarch = ""
for line in cmd_output.splitlines():
for line in cmd_output.splitlines()+['']:
line = line.rstrip()
if ':' in line:
if line.startswith("Package: "):
@@ -64,6 +65,10 @@ def opkg_query(cmd_output):
dep.append("%s [REC]" % recommend)
elif line.startswith("PackageArch: "):
pkgarch = line.split(": ")[1]
elif line.startswith("Provides: "):
provides = verregex.sub('', line.split(": ")[1])
for provide in provides.split(", "):
prov.append(provide)
# When there is a blank line save the package information
elif not line:
@@ -72,20 +77,15 @@ def opkg_query(cmd_output):
filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
if pkg:
output[pkg] = {"arch":arch, "ver":ver,
"filename":filename, "deps": dep, "pkgarch":pkgarch }
"filename":filename, "deps": dep, "pkgarch":pkgarch, "provs": prov}
pkg = ""
arch = ""
ver = ""
filename = ""
dep = []
prov = []
pkgarch = ""
if pkg:
if not filename:
filename = "%s_%s_%s.ipk" % (pkg, ver, arch)
output[pkg] = {"arch":arch, "ver":ver,
"filename":filename, "deps": dep }
return output
def failed_postinsts_abort(pkgs, log_path):
@@ -360,7 +360,7 @@ class DpkgPkgsList(PkgsList):
"--admindir=%s/var/lib/dpkg" % self.rootfs_dir,
"-W"]
cmd.append("-f=Package: ${Package}\nArchitecture: ${PackageArch}\nVersion: ${Version}\nFile: ${Package}_${Version}_${Architecture}.deb\nDepends: ${Depends}\nRecommends: ${Recommends}\n\n")
cmd.append("-f=Package: ${Package}\nArchitecture: ${PackageArch}\nVersion: ${Version}\nFile: ${Package}_${Version}_${Architecture}.deb\nDepends: ${Depends}\nRecommends: ${Recommends}\nProvides: ${Provides}\n\n")
try:
cmd_output = subprocess.check_output(cmd, stderr=subprocess.STDOUT).strip().decode("utf-8")
@@ -578,6 +578,11 @@ class PackageManager(object, metaclass=ABCMeta):
# oe-pkgdata-util reads it from a file
with tempfile.NamedTemporaryFile(mode="w+", prefix="installed-pkgs") as installed_pkgs:
pkgs = self.list_installed()
provided_pkgs = set()
for pkg in pkgs.values():
provided_pkgs |= set(pkg.get('provs', []))
output = oe.utils.format_pkg_list(pkgs, "arch")
installed_pkgs.write(output)
installed_pkgs.flush()
@@ -589,10 +594,15 @@ class PackageManager(object, metaclass=ABCMeta):
if exclude:
cmd.extend(['--exclude=' + '|'.join(exclude.split())])
try:
bb.note("Installing complementary packages ...")
bb.note('Running %s' % cmd)
complementary_pkgs = subprocess.check_output(cmd, stderr=subprocess.STDOUT).decode("utf-8")
self.install(complementary_pkgs.split(), attempt_only=True)
complementary_pkgs = set(complementary_pkgs.split())
skip_pkgs = sorted(complementary_pkgs & provided_pkgs)
install_pkgs = sorted(complementary_pkgs - provided_pkgs)
bb.note("Installing complementary packages ... %s (skipped already provided packages %s)" % (
' '.join(install_pkgs),
' '.join(skip_pkgs)))
self.install(install_pkgs, attempt_only=True)
except subprocess.CalledProcessError as e:
bb.fatal("Could not compute complementary packages list. Command "
"'%s' returned %d:\n%s" %
@@ -1619,7 +1629,7 @@ class DpkgPM(OpkgDpkgPM):
os.environ['APT_CONFIG'] = self.apt_conf_file
cmd = "%s %s install --force-yes --allow-unauthenticated %s" % \
cmd = "%s %s install --force-yes --allow-unauthenticated --no-remove %s" % \
(self.apt_get_cmd, self.apt_args, ' '.join(pkgs))
try:
@@ -1781,8 +1791,7 @@ class DpkgPM(OpkgDpkgPM):
open(os.path.join(target_dpkg_dir, "available"), "w+").close()
def remove_packaging_data(self):
bb.utils.remove(os.path.join(self.target_rootfs,
self.d.getVar('opkglibdir')), True)
bb.utils.remove(self.target_rootfs + self.d.getVar('opkglibdir'), True)
bb.utils.remove(self.target_rootfs + "/var/lib/dpkg/", True)
def fix_broken_dependencies(self):

View File

@@ -3,6 +3,10 @@
#
def prserv_make_conn(d, check = False):
# Otherwise this fails when called from recipes which e.g. inherit python3native (which sets _PYTHON_SYSCONFIGDATA_NAME) with:
# No module named '_sysconfigdata'
if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
import prserv.serv
host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
try:

View File

@@ -103,6 +103,7 @@ class SignatureGeneratorOEBasicHashMixIn(object):
self.unlockedrecipes = (data.getVar("SIGGEN_UNLOCKED_RECIPES") or
"").split()
self.unlockedrecipes = { k: "" for k in self.unlockedrecipes }
self.buildarch = data.getVar('BUILD_ARCH')
pass
def tasks_resolved(self, virtmap, virtpnmap, dataCache):
@@ -140,6 +141,14 @@ class SignatureGeneratorOEBasicHashMixIn(object):
self.dump_lockedsigs(sigfile)
return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options)
def prep_taskhash(self, tid, deps, dataCache):
super().prep_taskhash(tid, deps, dataCache)
if hasattr(self, "extramethod"):
(_, _, _, fn) = bb.runqueue.split_tid_mcfn(tid)
inherits = " ".join(dataCache.inherits[fn])
if inherits.find("/native.bbclass") != -1 or inherits.find("/cross.bbclass") != -1:
self.extramethod[tid] = ":" + self.buildarch
def get_taskhash(self, tid, deps, dataCache):
h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
@@ -512,8 +521,12 @@ def OEOuthashBasic(path, sigfile, task, d):
add_perm(stat.S_IXOTH, 'x')
if include_owners:
update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
try:
update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
except KeyError:
bb.warn("KeyError in %s" % path)
raise
update_hash(" ")
if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode):

View File

@@ -462,7 +462,7 @@ class BuildPerfTestCase(unittest.TestCase):
def rm_tmp(self):
"""Cleanup temporary/intermediate files and directories"""
log.debug("Removing temporary and cache files")
for name in ['bitbake.lock', 'conf/sanity_info',
for name in ['bitbake.lock', 'cache/sanity_info',
self.bb_vars['TMPDIR']]:
oe.path.remove(name, recurse=True)

View File

@@ -12,12 +12,12 @@ class IncompatibleLicenseTests(OESelftestTestCase):
if error_msg not in result.output:
raise AssertionError(result.output)
# Verify that a package with an SPDX license (from SRC_DISTRIBUTE_LICENSES)
# Verify that a package with an SPDX license (from AVAILABLE_LICENSES)
# cannot be built when INCOMPATIBLE_LICENSE contains this SPDX license
def test_incompatible_spdx_license(self):
self.lic_test('incompatible-license', 'GPL-3.0', 'GPL-3.0')
# Verify that a package with an SPDX license (from SRC_DISTRIBUTE_LICENSES)
# Verify that a package with an SPDX license (from AVAILABLE_LICENSES)
# cannot be built when INCOMPATIBLE_LICENSE contains an alias (in
# SPDXLICENSEMAP) of this SPDX license
def test_incompatible_alias_spdx_license(self):
@@ -35,7 +35,7 @@ class IncompatibleLicenseTests(OESelftestTestCase):
self.lic_test('incompatible-license-alias', 'GPLv3', 'GPLv3')
# Verify that a package with a non-SPDX license (neither in
# SRC_DISTRIBUTE_LICENSES nor in SPDXLICENSEMAP) cannot be built when
# AVAILABLE_LICENSES nor in SPDXLICENSEMAP) cannot be built when
# INCOMPATIBLE_LICENSE contains this license
def test_incompatible_nonspdx_license(self):
self.lic_test('incompatible-nonspdx-license', 'FooLicense', 'FooLicense')

View File

@@ -174,6 +174,8 @@ class ReproducibleTests(OESelftestTestCase):
# NOTE: The temp directories from the reproducible build are purposely
# kept after the build so it can be diffed for debugging.
fails = []
for c in self.package_classes:
with self.subTest(package_class=c):
package_class = 'package_' + c
@@ -197,6 +199,9 @@ class ReproducibleTests(OESelftestTestCase):
self.copy_file(d.test, '/'.join([save_dir, d.test]))
if result.missing or result.different:
self.fail("The following %s packages are missing or different: %s" %
(c, ' '.join(r.test for r in (result.missing + result.different))))
fails.append("The following %s packages are missing or different: %s" %
(c, '\n'.join(r.test for r in (result.missing + result.different))))
if fails:
self.fail('\n'.join(fails))

View File

@@ -446,6 +446,46 @@ BB_SIGNATURE_HANDLER = "OEBasicHash"
self.assertCountEqual(files1, files2)
def test_sstate_multilib_or_not_native_samesigs(self):
"""The sstate checksums of two native recipes (and their dependencies)
where the target is using multilib in one but not the other
should be the same. We use the qemux86copy machine to test
this.
"""
self.write_config("""
TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\"
TCLIBCAPPEND = \"\"
MACHINE = \"qemux86\"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
BB_SIGNATURE_HANDLER = "OEBasicHash"
""")
self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash")
bitbake("binutils-native -S none")
self.write_config("""
TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\"
TCLIBCAPPEND = \"\"
MACHINE = \"qemux86copy\"
BB_SIGNATURE_HANDLER = "OEBasicHash"
""")
self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash2")
bitbake("binutils-native -S none")
def get_files(d):
f = []
for root, dirs, files in os.walk(d):
for name in files:
f.append(os.path.join(root, name))
return f
files1 = get_files(self.topdir + "/tmp-sstatesamehash/stamps")
files2 = get_files(self.topdir + "/tmp-sstatesamehash2/stamps")
files2 = [x.replace("tmp-sstatesamehash2", "tmp-sstatesamehash") for x in files2]
self.maxDiff = None
self.assertCountEqual(files1, files2)
def test_sstate_noop_samesigs(self):
"""
The sstate checksums of two builds with these variables changed or

View File

@@ -396,7 +396,10 @@ class QemuRunner:
self.qemupid = None
self.ip = None
if os.path.exists(self.qemu_pidfile):
os.remove(self.qemu_pidfile)
try:
os.remove(self.qemu_pidfile)
except FileNotFoundError as e:
self.logger.warning('qemu pidfile is no longer present')
if self.monitorpipe:
self.monitorpipe.close()

View File

@@ -0,0 +1,65 @@
SUMMARY = "U-Boot bootloader tools"
DEPENDS += "openssl"
PROVIDES = "${MLPREFIX}u-boot-mkimage ${MLPREFIX}u-boot-mkenvimage"
PROVIDES_class-native = "u-boot-mkimage-native u-boot-mkenvimage-native"
PACKAGES += "${PN}-mkimage ${PN}-mkenvimage"
# Required for backward compatibility with "u-boot-mkimage-xxx.bb"
RPROVIDES_${PN}-mkimage = "u-boot-mkimage"
RREPLACES_${PN}-mkimage = "u-boot-mkimage"
RCONFLICTS_${PN}-mkimage = "u-boot-mkimage"
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
SED_CONFIG_EFI = '-e "s/CONFIG_EFI_LOADER=.*/# CONFIG_EFI_LOADER is not set/"'
SED_CONFIG_EFI_x86 = ''
SED_CONFIG_EFI_x86-64 = ''
SED_CONFIG_EFI_arm = ''
SED_CONFIG_EFI_armeb = ''
SED_CONFIG_EFI_aarch64 = ''
do_compile () {
oe_runmake sandbox_defconfig
# Disable CONFIG_CMD_LICENSE, license.h is not used by tools and
# generating it requires bin2header tool, which for target build
# is built with target tools and thus cannot be executed on host.
sed -i -e "s/CONFIG_CMD_LICENSE=.*/# CONFIG_CMD_LICENSE is not set/" ${SED_CONFIG_EFI} .config
oe_runmake cross_tools NO_SDL=1
}
do_install () {
install -d ${D}${bindir}
# mkimage
install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
ln -sf uboot-mkimage ${D}${bindir}/mkimage
# mkenvimage
install -m 0755 tools/mkenvimage ${D}${bindir}/uboot-mkenvimage
ln -sf uboot-mkenvimage ${D}${bindir}/mkenvimage
# dumpimage
install -m 0755 tools/dumpimage ${D}${bindir}/uboot-dumpimage
ln -sf uboot-dumpimage ${D}${bindir}/dumpimage
# fit_check_sign
install -m 0755 tools/fit_check_sign ${D}${bindir}/uboot-fit_check_sign
ln -sf uboot-fit_check_sign ${D}${bindir}/fit_check_sign
}
ALLOW_EMPTY_${PN} = "1"
FILES_${PN} = ""
FILES_${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage ${bindir}/uboot-dumpimage ${bindir}/dumpimage ${bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign"
FILES_${PN}-mkenvimage = "${bindir}/uboot-mkenvimage ${bindir}/mkenvimage"
RDEPENDS_${PN}-mkimage += "dtc"
RDEPENDS_${PN} += "${PN}-mkimage ${PN}-mkenvimage"
RDEPENDS_${PN}_class-native = ""
BBCLASSEXTEND = "native nativesdk"

View File

@@ -1,67 +1,2 @@
require u-boot-common.inc
SUMMARY = "U-Boot bootloader tools"
DEPENDS += "openssl"
PROVIDES = "${MLPREFIX}u-boot-mkimage ${MLPREFIX}u-boot-mkenvimage"
PROVIDES_class-native = "u-boot-mkimage-native u-boot-mkenvimage-native"
PACKAGES += "${PN}-mkimage ${PN}-mkenvimage"
# Required for backward compatibility with "u-boot-mkimage-xxx.bb"
RPROVIDES_${PN}-mkimage = "u-boot-mkimage"
RREPLACES_${PN}-mkimage = "u-boot-mkimage"
RCONFLICTS_${PN}-mkimage = "u-boot-mkimage"
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
SED_CONFIG_EFI = '-e "s/CONFIG_EFI_LOADER=.*/# CONFIG_EFI_LOADER is not set/"'
SED_CONFIG_EFI_x86 = ''
SED_CONFIG_EFI_x86-64 = ''
SED_CONFIG_EFI_arm = ''
SED_CONFIG_EFI_armeb = ''
SED_CONFIG_EFI_aarch64 = ''
do_compile () {
oe_runmake sandbox_defconfig
# Disable CONFIG_CMD_LICENSE, license.h is not used by tools and
# generating it requires bin2header tool, which for target build
# is built with target tools and thus cannot be executed on host.
sed -i -e "s/CONFIG_CMD_LICENSE=.*/# CONFIG_CMD_LICENSE is not set/" ${SED_CONFIG_EFI} .config
oe_runmake cross_tools NO_SDL=1
}
do_install () {
install -d ${D}${bindir}
# mkimage
install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
ln -sf uboot-mkimage ${D}${bindir}/mkimage
# mkenvimage
install -m 0755 tools/mkenvimage ${D}${bindir}/uboot-mkenvimage
ln -sf uboot-mkenvimage ${D}${bindir}/mkenvimage
# dumpimage
install -m 0755 tools/dumpimage ${D}${bindir}/uboot-dumpimage
ln -sf uboot-dumpimage ${D}${bindir}/dumpimage
# fit_check_sign
install -m 0755 tools/fit_check_sign ${D}${bindir}/uboot-fit_check_sign
ln -sf uboot-fit_check_sign ${D}${bindir}/fit_check_sign
}
ALLOW_EMPTY_${PN} = "1"
FILES_${PN} = ""
FILES_${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage ${bindir}/uboot-dumpimage ${bindir}/dumpimage ${bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign"
FILES_${PN}-mkenvimage = "${bindir}/uboot-mkenvimage ${bindir}/mkenvimage"
RDEPENDS_${PN}-mkimage += "dtc"
RDEPENDS_${PN} += "${PN}-mkimage ${PN}-mkenvimage"
RDEPENDS_${PN}_class-native = ""
BBCLASSEXTEND = "native nativesdk"
require u-boot-tools.inc

View File

@@ -87,6 +87,8 @@ do_configure () {
fi
merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
cml1_do_configure
else
DEVTOOL_DISABLE_MENUCONFIG=true
fi
}

View File

@@ -37,6 +37,10 @@ UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/"
# stay at 9.11 until 9.16, from 9.16 follow the ESV versions divisible by 4
UPSTREAM_CHECK_REGEX = "(?P<pver>9.(11|16|20|24|28)(\.\d+)+(-P\d+)*)/"
# BIND >= 9.11.2 need dhcpd >= 4.4.0,
# don't report it here since dhcpd is already recent enough.
CVE_CHECK_WHITELIST += "CVE-2019-6470"
inherit autotools update-rc.d systemd useradd pkgconfig multilib_script
MULTILIB_SCRIPTS = "${PN}:${bindir}/bind9-config ${PN}:${bindir}/isc-config.sh"

View File

@@ -58,6 +58,8 @@ SRC_URI = "\
file://CVE-2018-10910.patch \
file://gcc9-fixes.patch \
file://0001-tools-Fix-build-after-y2038-changes-in-glibc.patch \
file://CVE-2020-0556-1.patch \
file://CVE-2020-0556-2.patch \
"
S = "${WORKDIR}/bluez-${PV}"

View File

@@ -0,0 +1,35 @@
From 8cdbd3b09f29da29374e2f83369df24228da0ad1 Mon Sep 17 00:00:00 2001
From: Alain Michaud <alainm@chromium.org>
Date: Tue, 10 Mar 2020 02:35:16 +0000
Subject: [PATCH 1/2] HOGP must only accept data from bonded devices.
HOGP 1.0 Section 6.1 establishes that the HOGP must require bonding.
Reference:
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00352.htm
Upstream-Status: Backport [https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=8cdbd3b09f29da29374e2f83369df24228da0ad1]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
CVE: CVE-2020-0556
---
profiles/input/hog.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index 83c017dcb..dfac68921 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -186,6 +186,10 @@ static int hog_accept(struct btd_service *service)
return -EINVAL;
}
+ /* HOGP 1.0 Section 6.1 requires bonding */
+ if (!device_is_bonded(device, btd_device_get_bdaddr_type(device)))
+ return -ECONNREFUSED;
+
/* TODO: Replace GAttrib with bt_gatt_client */
bt_hog_attach(dev->hog, attrib);
--
2.24.1

View File

@@ -0,0 +1,143 @@
From 3cccdbab2324086588df4ccf5f892fb3ce1f1787 Mon Sep 17 00:00:00 2001
From: Alain Michaud <alainm@chromium.org>
Date: Tue, 10 Mar 2020 02:35:18 +0000
Subject: [PATCH 2/2] HID accepts bonded device connections only.
This change adds a configuration for platforms to choose a more secure
posture for the HID profile. While some older mice are known to not
support pairing or encryption, some platform may choose a more secure
posture by requiring the device to be bonded and require the
connection to be encrypted when bonding is required.
Reference:
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00352.html
Upstream-Status: Backport [https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=3cccdbab2324086588df4ccf5f892fb3ce1f1787]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
CVE: CVE-2020-0556
---
profiles/input/device.c | 23 ++++++++++++++++++++++-
profiles/input/device.h | 1 +
profiles/input/input.conf | 8 ++++++++
profiles/input/manager.c | 13 ++++++++++++-
4 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/profiles/input/device.c b/profiles/input/device.c
index 2cb3811c8..d89da2d7c 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -92,6 +92,7 @@ struct input_device {
static int idle_timeout = 0;
static bool uhid_enabled = false;
+static bool classic_bonded_only = false;
void input_set_idle_timeout(int timeout)
{
@@ -103,6 +104,11 @@ void input_enable_userspace_hid(bool state)
uhid_enabled = state;
}
+void input_set_classic_bonded_only(bool state)
+{
+ classic_bonded_only = state;
+}
+
static void input_device_enter_reconnect_mode(struct input_device *idev);
static int connection_disconnect(struct input_device *idev, uint32_t flags);
@@ -970,8 +976,18 @@ static int hidp_add_connection(struct input_device *idev)
if (device_name_known(idev->device))
device_get_name(idev->device, req->name, sizeof(req->name));
+ /* Make sure the device is bonded if required */
+ if (classic_bonded_only && !device_is_bonded(idev->device,
+ btd_device_get_bdaddr_type(idev->device))) {
+ error("Rejected connection from !bonded device %s", dst_addr);
+ goto cleanup;
+ }
+
/* Encryption is mandatory for keyboards */
- if (req->subclass & 0x40) {
+ /* Some platforms may choose to require encryption for all devices */
+ /* Note that this only matters for pre 2.1 devices as otherwise the */
+ /* device is encrypted by default by the lower layers */
+ if (classic_bonded_only || req->subclass & 0x40) {
if (!bt_io_set(idev->intr_io, &gerr,
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_MEDIUM,
BT_IO_OPT_INVALID)) {
@@ -1203,6 +1219,11 @@ static void input_device_enter_reconnect_mode(struct input_device *idev)
DBG("path=%s reconnect_mode=%s", idev->path,
reconnect_mode_to_string(idev->reconnect_mode));
+ /* Make sure the device is bonded if required */
+ if (classic_bonded_only && !device_is_bonded(idev->device,
+ btd_device_get_bdaddr_type(idev->device)))
+ return;
+
/* Only attempt an auto-reconnect when the device is required to
* accept reconnections from the host.
*/
diff --git a/profiles/input/device.h b/profiles/input/device.h
index 51a9aee18..3044db673 100644
--- a/profiles/input/device.h
+++ b/profiles/input/device.h
@@ -29,6 +29,7 @@ struct input_conn;
void input_set_idle_timeout(int timeout);
void input_enable_userspace_hid(bool state);
+void input_set_classic_bonded_only(bool state);
int input_device_register(struct btd_service *service);
void input_device_unregister(struct btd_service *service);
diff --git a/profiles/input/input.conf b/profiles/input/input.conf
index 3e1d65aae..166aff4a4 100644
--- a/profiles/input/input.conf
+++ b/profiles/input/input.conf
@@ -11,3 +11,11 @@
# Enable HID protocol handling in userspace input profile
# Defaults to false (HIDP handled in HIDP kernel module)
#UserspaceHID=true
+
+# Limit HID connections to bonded devices
+# The HID Profile does not specify that devices must be bonded, however some
+# platforms may want to make sure that input connections only come from bonded
+# device connections. Several older mice have been known for not supporting
+# pairing/encryption.
+# Defaults to false to maximize device compatibility.
+#ClassicBondedOnly=true
diff --git a/profiles/input/manager.c b/profiles/input/manager.c
index 1d31b0652..5cd27b839 100644
--- a/profiles/input/manager.c
+++ b/profiles/input/manager.c
@@ -96,7 +96,7 @@ static int input_init(void)
config = load_config_file(CONFIGDIR "/input.conf");
if (config) {
int idle_timeout;
- gboolean uhid_enabled;
+ gboolean uhid_enabled, classic_bonded_only;
idle_timeout = g_key_file_get_integer(config, "General",
"IdleTimeout", &err);
@@ -114,6 +114,17 @@ static int input_init(void)
input_enable_userspace_hid(uhid_enabled);
} else
g_clear_error(&err);
+
+ classic_bonded_only = g_key_file_get_boolean(config, "General",
+ "ClassicBondedOnly", &err);
+
+ if (!err) {
+ DBG("input.conf: ClassicBondedOnly=%s",
+ classic_bonded_only ? "true" : "false");
+ input_set_classic_bonded_only(classic_bonded_only);
+ } else
+ g_clear_error(&err);
+
}
btd_profile_register(&input_profile);
--
2.24.1

View File

@@ -0,0 +1,165 @@
From f369dbb9e67eb5ef336944af63039b6d8f838384 Mon Sep 17 00:00:00 2001
From: Thomas Markwalder <tmark@isc.org>
Date: Thu, 12 Sep 2019 10:35:46 -0400
Subject: [PATCH 1/3] Ensure context is running prior to calling
isc_app_ctxsuspend
Add a release note.
includes/omapip/isclib.h
Added actx_running flag to global context, dhcp_gbl_ctx
omapip/isclib.c
set_ctx_running() - new function used as the ctxonrun callback
dhcp_context_create() - installs set_ctx_running callback
dhcp_signal_handler() - modified to use act_running flag to
determine is context is running and should be suspended
Upstream-Status: Backport [https://gitlab.isc.org/isc-projects/dhcp.git]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
---
RELNOTES | 7 +++++
includes/omapip/isclib.h | 3 ++-
omapip/isclib.c | 57 +++++++++++++++++++++++++++++++++-------
3 files changed, 57 insertions(+), 10 deletions(-)
diff --git a/RELNOTES b/RELNOTES
index f10305d..1730473 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -6,6 +6,13 @@
NEW FEATURES
+- Closed a small window of time between the installation of graceful
+ shutdown signal handlers and application context startup, during which
+ the receipt of shutdown signal would cause a REQUIRE() assertion to
+ occur. Note this issue is only visible when compiling with
+ ENABLE_GENTLE_SHUTDOWN defined.
+ [Gitlab #53,!18 git TBD]
+
Please note that that ISC DHCP is now licensed under the Mozilla Public License,
MPL 2.0. Please see https://www.mozilla.org/en-US/MPL/2.0/ to read the MPL 2.0
license terms.
diff --git a/includes/omapip/isclib.h b/includes/omapip/isclib.h
index 6c20584..af6a6fc 100644
--- a/includes/omapip/isclib.h
+++ b/includes/omapip/isclib.h
@@ -94,7 +94,8 @@
typedef struct dhcp_context {
isc_mem_t *mctx;
isc_appctx_t *actx;
- int actx_started;
+ int actx_started; // ISC_TRUE if ctxstart has been called
+ int actx_running; // ISC_TRUE if ctxrun has been called
isc_taskmgr_t *taskmgr;
isc_task_t *task;
isc_socketmgr_t *socketmgr;
diff --git a/omapip/isclib.c b/omapip/isclib.c
index ce4b4a1..73e017c 100644
--- a/omapip/isclib.c
+++ b/omapip/isclib.c
@@ -134,6 +134,35 @@ handle_signal(int sig, void (*handler)(int)) {
}
}
+/* Callback passed to isc_app_ctxonrun
+ *
+ * BIND9 context code will invoke this handler once the context has
+ * entered the running state. We use it to set a global marker so that
+ * we can tell if the context is running. Several of the isc_app_
+ * calls REQUIRE that the context is running and we need a way to
+ * know that.
+ *
+ * We also check to see if we received a shutdown signal prior to
+ * the context entering the run state. If we did, then we can just
+ * simply shut the context down now. This closes the relatively
+ * small window between start up and entering run via the call
+ * to dispatch().
+ *
+ */
+static void
+set_ctx_running(isc_task_t *task, isc_event_t *event) {
+ task = task; // unused;
+ dhcp_gbl_ctx.actx_running = ISC_TRUE;
+
+ if (shutdown_signal) {
+ // We got signaled shutdown before we entered running state.
+ // Now that we've reached running state, shut'er down.
+ isc_app_ctxsuspend(dhcp_gbl_ctx.actx);
+ }
+
+ isc_event_free(&event);
+}
+
isc_result_t
dhcp_context_create(int flags,
struct in_addr *local4,
@@ -141,6 +170,9 @@ dhcp_context_create(int flags,
isc_result_t result;
if ((flags & DHCP_CONTEXT_PRE_DB) != 0) {
+ dhcp_gbl_ctx.actx_started = ISC_FALSE;
+ dhcp_gbl_ctx.actx_running = ISC_FALSE;
+
/*
* Set up the error messages, this isn't the right place
* for this call but it is convienent for now.
@@ -204,15 +236,24 @@ dhcp_context_create(int flags,
if (result != ISC_R_SUCCESS)
goto cleanup;
- result = isc_task_create(dhcp_gbl_ctx.taskmgr, 0, &dhcp_gbl_ctx.task);
+ result = isc_task_create(dhcp_gbl_ctx.taskmgr, 0,
+ &dhcp_gbl_ctx.task);
if (result != ISC_R_SUCCESS)
goto cleanup;
result = isc_app_ctxstart(dhcp_gbl_ctx.actx);
if (result != ISC_R_SUCCESS)
- return (result);
+ goto cleanup;
+
dhcp_gbl_ctx.actx_started = ISC_TRUE;
+ // Install the onrun callback.
+ result = isc_app_ctxonrun(dhcp_gbl_ctx.actx, dhcp_gbl_ctx.mctx,
+ dhcp_gbl_ctx.task, set_ctx_running,
+ dhcp_gbl_ctx.actx);
+ if (result != ISC_R_SUCCESS)
+ goto cleanup;
+
/* Not all OSs support suppressing SIGPIPE through socket
* options, so set the sigal action to be ignore. This allows
* broken connections to fail gracefully with EPIPE on writes */
@@ -335,19 +376,17 @@ isclib_make_dst_key(char *inname,
* @param signal signal code that we received
*/
void dhcp_signal_handler(int signal) {
- isc_appctx_t *ctx = dhcp_gbl_ctx.actx;
- int prev = shutdown_signal;
-
- if (prev != 0) {
+ if (shutdown_signal != 0) {
/* Already in shutdown. */
return;
}
+
/* Possible race but does it matter? */
shutdown_signal = signal;
- /* Use reload (aka suspend) for easier dispatch() reenter. */
- if (ctx && ctx->methods && ctx->methods->ctxsuspend) {
- (void) isc_app_ctxsuspend(ctx);
+ /* If the application context is running tell it to shut down */
+ if (dhcp_gbl_ctx.actx_running == ISC_TRUE) {
+ (void) isc_app_ctxsuspend(dhcp_gbl_ctx.actx);
}
}
--
2.23.0

View File

@@ -0,0 +1,29 @@
From adcd34ae1f56b16d7e9696d980332b4cf6c7ce91 Mon Sep 17 00:00:00 2001
From: Thomas Markwalder <tmark@isc.org>
Date: Fri, 13 Sep 2019 15:03:31 -0400
Subject: [PATCH 2/3] Added shutdown log statment to dhcrelay
Upstream-Status: Backport [https://gitlab.isc.org/isc-projects/dhcp.git]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
---
relay/dhcrelay.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c
index d8caaaf..4bd1d47 100644
--- a/relay/dhcrelay.c
+++ b/relay/dhcrelay.c
@@ -2076,6 +2076,9 @@ dhcp_set_control_state(control_object_state_t oldstate,
if (newstate != server_shutdown)
return ISC_R_SUCCESS;
+ /* Log shutdown on signal. */
+ log_info("Received signal %d, initiating shutdown.", shutdown_signal);
+
if (no_pid_file == ISC_FALSE)
(void) unlink(path_dhcrelay_pid);
--
2.23.0

View File

@@ -0,0 +1,31 @@
From e4b54b4d676783152d487103714cba2913661ef8 Mon Sep 17 00:00:00 2001
From: Thomas Markwalder <tmark@isc.org>
Date: Wed, 6 Nov 2019 15:53:50 -0500
Subject: [PATCH 3/3] Addressed review comment.
omapip/isclib.c
Added use of IGNORE_UNUSED()
Upstream-Status: Backport [https://gitlab.isc.org/isc-projects/dhcp.git]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
---
omapip/isclib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/omapip/isclib.c b/omapip/isclib.c
index 73e017c..1d52463 100644
--- a/omapip/isclib.c
+++ b/omapip/isclib.c
@@ -151,7 +151,7 @@ handle_signal(int sig, void (*handler)(int)) {
*/
static void
set_ctx_running(isc_task_t *task, isc_event_t *event) {
- task = task; // unused;
+ IGNORE_UNUSED(task);
dhcp_gbl_ctx.actx_running = ISC_TRUE;
if (shutdown_signal) {
--
2.23.0

View File

@@ -11,6 +11,9 @@ SRC_URI += "file://0001-define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.pat
file://0013-fixup_use_libbind.patch \
file://0001-master-Added-includes-of-new-BIND9-compatibility-hea.patch \
file://0001-Fix-a-NSUPDATE-compiling-issue.patch \
file://0001-Ensure-context-is-running-prior-to-calling-isc_app_c.patch \
file://0002-Added-shutdown-log-statment-to-dhcrelay.patch \
file://0003-Addressed-review-comment.patch \
"
SRC_URI[md5sum] = "18c7f4dcbb0a63df25098216d47b1ede"

View File

@@ -143,11 +143,15 @@ ALTERNATIVE_${PN}-traceroute = "traceroute"
ALTERNATIVE_${PN}-hostname = "hostname"
ALTERNATIVE_LINK_NAME[hostname] = "${base_bindir}/hostname"
ALTERNATIVE_${PN}-doc = "hostname.1 dnsdomainname.1 logger.1 syslogd.8"
ALTERNATIVE_${PN}-doc = "hostname.1 dnsdomainname.1 logger.1 syslogd.8 \
tftpd.8 tftp.1 telnetd.8"
ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1"
ALTERNATIVE_LINK_NAME[dnsdomainname.1] = "${mandir}/man1/dnsdomainname.1"
ALTERNATIVE_LINK_NAME[logger.1] = "${mandir}/man1/logger.1"
ALTERNATIVE_LINK_NAME[syslogd.8] = "${mandir}/man8/syslogd.8"
ALTERNATIVE_LINK_NAME[telnetd.8] = "${mandir}/man8/telnetd.8"
ALTERNATIVE_LINK_NAME[tftpd.8] = "${mandir}/man8/tftpd.8"
ALTERNATIVE_LINK_NAME[tftp.1] = "${mandir}/man1/tftp.1"
ALTERNATIVE_${PN}-ifconfig = "ifconfig"
ALTERNATIVE_LINK_NAME[ifconfig] = "${base_sbindir}/ifconfig"

View File

@@ -0,0 +1,34 @@
From ff3ad88c233ecd87f7983ad13836323f944540ec Mon Sep 17 00:00:00 2001
From: Doug Nazar <nazard@nazar.ca>
Date: Mon, 9 Dec 2019 10:53:37 -0500
Subject: [PATCH] Disable statx if using glibc emulation
On older kernels without statx, glibc with statx support will attempt
to emulate the call. However it doesn't support AT_STATX_DONT_SYNC and
will return EINVAL. This causes all xstat/xlstat calls to fail.
Upstream-Status: Backport
Signed-off-by: Doug Nazar <nazard@nazar.ca>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
support/misc/xstat.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/support/misc/xstat.c b/support/misc/xstat.c
index 661e29e4..a438fbcc 100644
--- a/support/misc/xstat.c
+++ b/support/misc/xstat.c
@@ -51,6 +51,9 @@ statx_do_stat(int fd, const char *pathname, struct stat *statbuf, int flags)
statx_copy(statbuf, &stxbuf);
return 0;
}
+ /* glibc emulation doesn't support AT_STATX_DONT_SYNC */
+ if (errno == EINVAL)
+ errno = ENOSYS;
if (errno == ENOSYS)
statx_supported = 0;
} else
--
2.19.1

View File

@@ -33,6 +33,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \
file://0001-Don-t-build-tools-with-CC_FOR_BUILD.patch \
file://0001-Fix-include-order-between-config.h-and-stat.h.patch \
file://0001-Disable-statx-if-using-glibc-emulation.patch \
"
SRC_URI_append_libc-glibc = " file://0001-configure.ac-Do-not-fatalize-Wmissing-prototypes.patch"
SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch"

View File

@@ -0,0 +1,46 @@
From 3cccc0a2ab597b8273bddf08e9a3cc5551d7e530 Mon Sep 17 00:00:00 2001
From: "djm@openbsd.org" <djm@openbsd.org>
Date: Fri, 3 Jan 2020 03:02:26 +0000
Subject: [PATCH] upstream: what bozo decided to use 2020 as a future date in a
regress
test?
OpenBSD-Regress-ID: 3b953df5a7e14081ff6cf495d4e8d40e153cbc3a
Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/ff31f15773ee173502eec4d7861ec56f26bba381]
[Dropped the script version and copyright year change at the top]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
regress/cert-hostkey.sh | 2 +-
regress/cert-userkey.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh
index 3ce7779..74d5a53 100644
--- a/regress/cert-hostkey.sh
+++ b/regress/cert-hostkey.sh
@@ -248,7 +248,7 @@ test_one() {
test_one "user-certificate" failure "-n $HOSTS"
test_one "empty principals" success "-h"
test_one "wrong principals" failure "-h -n foo"
-test_one "cert not yet valid" failure "-h -V20200101:20300101"
+test_one "cert not yet valid" failure "-h -V20300101:20320101"
test_one "cert expired" failure "-h -V19800101:19900101"
test_one "cert valid interval" success "-h -V-1w:+2w"
test_one "cert has constraints" failure "-h -Oforce-command=false"
diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh
index 6849e99..de455b8 100644
--- a/regress/cert-userkey.sh
+++ b/regress/cert-userkey.sh
@@ -327,7 +327,7 @@ test_one() {
test_one "correct principal" success "-n ${USER}"
test_one "host-certificate" failure "-n ${USER} -h"
test_one "wrong principals" failure "-n foo"
-test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101"
+test_one "cert not yet valid" failure "-n ${USER} -V20300101:20320101"
test_one "cert expired" failure "-n ${USER} -V19800101:19900101"
test_one "cert valid interval" success "-n ${USER} -V-1w:+2w"
test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8"

View File

@@ -25,6 +25,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
file://sshd_check_keys \
file://add-test-support-for-busybox.patch \
file://0001-upstream-fix-integer-overflow-in-XMSS-private-key-pa.patch \
file://0001-upstream-what-bozo-decided-to-use-2020-as-a-future-d.patch \
"
SRC_URI[md5sum] = "bf050f002fe510e1daecd39044e1122d"
SRC_URI[sha256sum] = "bd943879e69498e8031eb6b7f44d08cdc37d59a7ab689aa0b437320c3481fd68"

View File

@@ -0,0 +1,32 @@
The value for perl_archname can vary depending on the host, e.g.
x86_64-linux-gnu-thread-multi or x86_64-linux-thread-multi which
makes the ptest package non-reproducible. Its unused other than
these references so drop it.
RP 2020/2/6
Upstream-Status: Pending
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Index: openssl-1.1.1d/Configure
===================================================================
--- openssl-1.1.1d.orig/Configure
+++ openssl-1.1.1d/Configure
@@ -286,7 +286,7 @@ if (defined env($local_config_envname))
# Save away perl command information
$config{perl_cmd} = $^X;
$config{perl_version} = $Config{version};
-$config{perl_archname} = $Config{archname};
+#$config{perl_archname} = $Config{archname};
$config{prefix}="";
$config{openssldir}="";
@@ -2517,7 +2517,7 @@ _____
@{$config{perlargv}}), "\n";
print "\nPerl information:\n\n";
print ' ',$config{perl_cmd},"\n";
- print ' ',$config{perl_version},' for ',$config{perl_archname},"\n";
+ print ' ',$config{perl_version},"\n";
}
if ($dump || $options) {
my $longest = 0;

View File

@@ -16,14 +16,14 @@ SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
file://0001-skip-test_symbol_presence.patch \
file://0001-buildinfo-strip-sysroot-and-debug-prefix-map-from-co.patch \
file://afalg.patch \
file://reproducible.patch \
"
SRC_URI_append_class-nativesdk = " \
file://environment.d-openssl.sh \
"
SRC_URI[md5sum] = "3be209000dbc7e1b95bcdf47980a3baa"
SRC_URI[sha256sum] = "1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2"
SRC_URI[sha256sum] = "ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46"
inherit lib_package multilib_header multilib_script ptest
MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash"
@@ -32,7 +32,7 @@ PACKAGECONFIG ?= ""
PACKAGECONFIG_class-native = ""
PACKAGECONFIG_class-nativesdk = ""
PACKAGECONFIG[cryptodev-linux] = "enable-devcryptoeng,disable-devcryptoeng,cryptodev-linux"
PACKAGECONFIG[cryptodev-linux] = "enable-devcryptoeng,disable-devcryptoeng,cryptodev-linux,,cryptodev-module"
B = "${WORKDIR}/build"
do_configure[cleandirs] = "${B}"
@@ -202,3 +202,7 @@ RDEPENDS_${PN}-ptest += "openssl-bin perl perl-modules bash"
BBCLASSEXTEND = "native nativesdk"
CVE_PRODUCT = "openssl:openssl"
# Only affects OpenSSL >= 1.1.1 in combination with Apache < 2.4.37
# Apache in meta-webserver is already recent enough
CVE_CHECK_WHITELIST += "CVE-2019-0190"

View File

@@ -0,0 +1,47 @@
From 8d7970b8f3db727fe798b65f3377fe6787575426 Mon Sep 17 00:00:00 2001
From: Paul Mackerras <paulus@ozlabs.org>
Date: Mon, 3 Feb 2020 15:53:28 +1100
Subject: [PATCH] pppd: Fix bounds check in EAP code
Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname). This fixes the check so we
actually avoid overflowing the rhostname array.
Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Upstream-Status: Backport
[https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426]
CVE: CVE-2020-8597
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
pppd/eap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pppd/eap.c b/pppd/eap.c
index 94407f5..1b93db0 100644
--- a/pppd/eap.c
+++ b/pppd/eap.c
@@ -1420,7 +1420,7 @@ int len;
}
/* Not so likely to happen. */
- if (vallen >= len + sizeof (rhostname)) {
+ if (len - vallen >= sizeof (rhostname)) {
dbglog("EAP: trimming really long peer name down");
BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
rhostname[sizeof (rhostname) - 1] = '\0';
@@ -1846,7 +1846,7 @@ int len;
}
/* Not so likely to happen. */
- if (vallen >= len + sizeof (rhostname)) {
+ if (len - vallen >= sizeof (rhostname)) {
dbglog("EAP: trimming really long peer name down");
BCOPY(inp + vallen, rhostname, sizeof (rhostname) - 1);
rhostname[sizeof (rhostname) - 1] = '\0';
--
2.17.1

View File

@@ -33,6 +33,7 @@ SRC_URI = "https://download.samba.org/pub/${BPN}/${BP}.tar.gz \
file://0001-pppoe-include-netinet-in.h-before-linux-in.h.patch \
file://0001-ppp-Remove-unneeded-include.patch \
file://ppp-2.4.7-DES-openssl.patch \
file://0001-pppd-Fix-bounds-check-in-EAP-code.patch \
"
SRC_URI_append_libc-musl = "\

View File

@@ -1,6 +1,6 @@
SUMMARY = "Tiny versions of many common UNIX utilities in a single small executable"
DESCRIPTION = "BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. BusyBox provides a fairly complete POSIX environment for any small or embedded system."
HOMEPAGE = "http://www.busybox.net"
HOMEPAGE = "https://www.busybox.net"
BUGTRACKER = "https://bugs.busybox.net/"
DEPENDS += "kern-tools-native virtual/crypt"
@@ -431,6 +431,32 @@ fi
d.prependVar('pkg_postinst_%s' % pkg, postinst)
}
pkg_postinst_${PN}_prepend () {
# Need path to saved utils, but they may have be removed on upgrade of busybox
# Only use shell to get paths. Also capture if busybox was saved.
BUSYBOX=""
if [ "x$D" = "x" ] ; then
for busybox_rmdir in /tmp/busyboxrm-*; do
if [ "$busybox_rmdir" != '/tmp/busyboxrm-*' ] ; then
export PATH=$busybox_rmdir:$PATH
if [ -e $busybox_rmdir/busybox* ] ; then
BUSYBOX="$busybox_rmdir/busybox*"
fi
fi
done
fi
}
pkg_postinst_${PN}_append () {
# If busybox exists in the remove directory it is because it was the only shell left.
if [ "x$D" = "x" ] ; then
if [ "x$BUSYBOX" != "x" ] ; then
update-alternatives --remove sh $BUSYBOX
rm -f $BUSYBOX
fi
fi
}
pkg_prerm_${PN} () {
# This is so you can make busybox commit suicide - removing busybox with no other packages
# providing its files, this will make update-alternatives work, but the update-rc.d part
@@ -451,9 +477,26 @@ pkg_prerm_${PN} () {
ln -s ${base_bindir}/busybox $tmpdir/grep
ln -s ${base_bindir}/busybox $tmpdir/tail
export PATH=$PATH:$tmpdir
# If busybox is the shell, we need to save it since its the lowest priority shell
# Register saved bitbake as the lowest priority shell possible as back up.
if [ -n "$(readlink -f /bin/sh | grep busybox)" ] ; then
BUSYBOX=$(readlink -f /bin/sh)
cp $BUSYBOX $tmpdir/$(basename $BUSYBOX)
update-alternatives --install /bin/sh sh $tmpdir/$(basename $BUSYBOX) 1
fi
}
pkg_postrm_${PN} () {
# Add path to remove dir in case we removed our only grep
if [ "x$D" = "x" ] ; then
for busybox_rmdir in /tmp/busyboxrm-*; do
if [ "$busybox_rmdir" != '/tmp/busyboxrm-*' ] ; then
export PATH=$busybox_rmdir:$PATH
fi
done
fi
if grep -q "^${base_bindir}/bash$" $D${sysconfdir}/busybox.links* && [ ! -e $D${base_bindir}/bash ]; then
printf "$(grep -v "^${base_bindir}/bash$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
fi

View File

@@ -1,6 +1,6 @@
require busybox.inc
SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://busybox-udhcpc-no_deconfig.patch \
file://find-touchscreen.sh \
file://busybox-cron \

View File

@@ -1,7 +1,7 @@
SUMMARY = "High level language (GLib) binding for D-Bus"
DESCRIPTION = "GLib bindings for the D-Bus message bus that integrate \
the D-Bus library with the GLib thread abstraction and main loop."
HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
HOMEPAGE = "https://www.freedesktop.org/Software/dbus"
LICENSE = "AFL-2.1 | GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=cf5b3a2f7083750d504333114e738656 \
file://dbus/dbus-glib.h;beginline=7;endline=21;md5=7755c9d7abccd5dbd25a6a974538bb3c"
@@ -10,7 +10,7 @@ SECTION = "base"
DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"
DEPENDS_class-native = "glib-2.0-native dbus-native"
SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
file://no-examples.patch \
file://test-install-makefile.patch \
"

View File

@@ -1,6 +1,6 @@
SUMMARY = "D-Bus message bus"
DESCRIPTION = "D-Bus is a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a \"single instance\" application or daemon, and to launch applications and daemons on demand when their services are needed."
HOMEPAGE = "http://dbus.freedesktop.org"
HOMEPAGE = "https://dbus.freedesktop.org"
SECTION = "base"
LICENSE = "AFL-2.1 | GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
@@ -12,7 +12,7 @@ PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '',
ALLOW_EMPTY_dbus-ptest = "1"
RDEPENDS_dbus-ptest_class-target = "dbus-test-ptest"
SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
file://tmpdir.patch \
file://dbus-1.init \
file://clear-guid_from_server-if-send_negotiate_unix_f.patch \

View File

@@ -0,0 +1,741 @@
From 747f2c646f5a86ac58ad59be08036e81388e971d Mon Sep 17 00:00:00 2001
From: Patrick Griffis <tingping@tingping.se>
Date: Thu, 23 Jan 2020 19:58:41 -0800
Subject: [PATCH] Refactor g_socket_client_connect_async()
This is a fairly large refactoring. The highlights are:
- Removing in-progress connections/addresses from GSocketClientAsyncConnectData:
This caused issues where multiple ConnectionAttempt's would step over eachother
and modify shared state causing bugs like accidentally bypassing a set proxy.
Fixes #1871
Fixes #1989
Fixes #1902
- Cancelling address enumeration on error/completion
- Queuing successful TCP connections and doing application layer work serially:
This is more in the spirit of Happy Eyeballs but it also greatly simplifies
the flow of connection handling so fewer tasks are happening in parallel
when they don't need to be.
The behavior also should more closely match that of g_socket_client_connect().
- Better track the state of address enumeration:
Previously we were over eager to treat enumeration finishing as an error.
Fixes #1872
See also #1982
- Add more detailed documentation and logging.
Closes #1995
CVE: CVE-2020-6750
Upstream-Status: Backport [ https://gitlab.gnome.org/GNOME/glib.git;
commit=2722620e3291b930a3a228100d7c0e07b69534e3 ]
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
---
gio/gsocketclient.c | 459 ++++++++++++++++++++++++++++----------------
1 file changed, 296 insertions(+), 163 deletions(-)
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 81767c0..b1d5f6c 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -1332,13 +1332,15 @@ typedef struct
GSocketConnectable *connectable;
GSocketAddressEnumerator *enumerator;
- GProxyAddress *proxy_addr;
- GSocket *socket;
- GIOStream *connection;
+ GCancellable *enumeration_cancellable;
GSList *connection_attempts;
+ GSList *successful_connections;
GError *last_error;
+ gboolean enumerated_at_least_once;
+ gboolean enumeration_completed;
+ gboolean connection_in_progress;
gboolean completed;
} GSocketClientAsyncConnectData;
@@ -1350,10 +1352,9 @@ g_socket_client_async_connect_data_free (GSocketClientAsyncConnectData *data)
data->task = NULL;
g_clear_object (&data->connectable);
g_clear_object (&data->enumerator);
- g_clear_object (&data->proxy_addr);
- g_clear_object (&data->socket);
- g_clear_object (&data->connection);
+ g_clear_object (&data->enumeration_cancellable);
g_slist_free_full (data->connection_attempts, connection_attempt_unref);
+ g_slist_free_full (data->successful_connections, connection_attempt_unref);
g_clear_error (&data->last_error);
@@ -1365,6 +1366,7 @@ typedef struct
GSocketAddress *address;
GSocket *socket;
GIOStream *connection;
+ GProxyAddress *proxy_addr;
GSocketClientAsyncConnectData *data; /* unowned */
GSource *timeout_source;
GCancellable *cancellable;
@@ -1396,6 +1398,7 @@ connection_attempt_unref (gpointer pointer)
g_clear_object (&attempt->socket);
g_clear_object (&attempt->connection);
g_clear_object (&attempt->cancellable);
+ g_clear_object (&attempt->proxy_addr);
if (attempt->timeout_source)
{
g_source_destroy (attempt->timeout_source);
@@ -1413,37 +1416,59 @@ connection_attempt_remove (ConnectionAttempt *attempt)
}
static void
-g_socket_client_async_connect_complete (GSocketClientAsyncConnectData *data)
+cancel_all_attempts (GSocketClientAsyncConnectData *data)
{
- g_assert (data->connection);
+ GSList *l;
- if (!G_IS_SOCKET_CONNECTION (data->connection))
+ for (l = data->connection_attempts; l; l = g_slist_next (l))
{
- GSocketConnection *wrapper_connection;
-
- wrapper_connection = g_tcp_wrapper_connection_new (data->connection, data->socket);
- g_object_unref (data->connection);
- data->connection = (GIOStream *)wrapper_connection;
+ ConnectionAttempt *attempt_entry = l->data;
+ g_cancellable_cancel (attempt_entry->cancellable);
+ connection_attempt_unref (attempt_entry);
}
+ g_slist_free (data->connection_attempts);
+ data->connection_attempts = NULL;
- if (!data->completed)
+ g_slist_free_full (data->successful_connections, connection_attempt_unref);
+ data->successful_connections = NULL;
+
+ g_cancellable_cancel (data->enumeration_cancellable);
+}
+
+static void
+g_socket_client_async_connect_complete (ConnectionAttempt *attempt)
+{
+ GSocketClientAsyncConnectData *data = attempt->data;
+ GError *error = NULL;
+ g_assert (attempt->connection);
+ g_assert (!data->completed);
+
+ if (!G_IS_SOCKET_CONNECTION (attempt->connection))
{
- GError *error = NULL;
+ GSocketConnection *wrapper_connection;
- if (g_cancellable_set_error_if_cancelled (g_task_get_cancellable (data->task), &error))
- {
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, NULL);
- g_task_return_error (data->task, g_steal_pointer (&error));
- }
- else
- {
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, data->connection);
- g_task_return_pointer (data->task, g_steal_pointer (&data->connection), g_object_unref);
- }
+ wrapper_connection = g_tcp_wrapper_connection_new (attempt->connection, attempt->socket);
+ g_object_unref (attempt->connection);
+ attempt->connection = (GIOStream *)wrapper_connection;
+ }
- data->completed = TRUE;
+ data->completed = TRUE;
+ cancel_all_attempts (data);
+
+ if (g_cancellable_set_error_if_cancelled (g_task_get_cancellable (data->task), &error))
+ {
+ g_debug ("GSocketClient: Connection cancelled!");
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, NULL);
+ g_task_return_error (data->task, g_steal_pointer (&error));
+ }
+ else
+ {
+ g_debug ("GSocketClient: Connection successful!");
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, attempt->connection);
+ g_task_return_pointer (data->task, g_steal_pointer (&attempt->connection), g_object_unref);
}
+ connection_attempt_unref (attempt);
g_object_unref (data->task);
}
@@ -1465,59 +1490,63 @@ static void
enumerator_next_async (GSocketClientAsyncConnectData *data,
gboolean add_task_ref)
{
- /* We need to cleanup the state */
- g_clear_object (&data->socket);
- g_clear_object (&data->proxy_addr);
- g_clear_object (&data->connection);
-
/* Each enumeration takes a ref. This arg just avoids repeated unrefs when
an enumeration starts another enumeration */
if (add_task_ref)
g_object_ref (data->task);
g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_RESOLVING, data->connectable, NULL);
+ g_debug ("GSocketClient: Starting new address enumeration");
g_socket_address_enumerator_next_async (data->enumerator,
- g_task_get_cancellable (data->task),
+ data->enumeration_cancellable,
g_socket_client_enumerator_callback,
data);
}
+static void try_next_connection_or_finish (GSocketClientAsyncConnectData *, gboolean);
+
static void
g_socket_client_tls_handshake_callback (GObject *object,
GAsyncResult *result,
gpointer user_data)
{
- GSocketClientAsyncConnectData *data = user_data;
+ ConnectionAttempt *attempt = user_data;
+ GSocketClientAsyncConnectData *data = attempt->data;
if (g_tls_connection_handshake_finish (G_TLS_CONNECTION (object),
result,
&data->last_error))
{
- g_object_unref (data->connection);
- data->connection = G_IO_STREAM (object);
+ g_object_unref (attempt->connection);
+ attempt->connection = G_IO_STREAM (object);
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_TLS_HANDSHAKED, data->connectable, data->connection);
- g_socket_client_async_connect_complete (data);
+ g_debug ("GSocketClient: TLS handshake succeeded");
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_TLS_HANDSHAKED, data->connectable, attempt->connection);
+ g_socket_client_async_connect_complete (attempt);
}
else
{
g_object_unref (object);
- enumerator_next_async (data, FALSE);
+ connection_attempt_unref (attempt);
+ g_debug ("GSocketClient: TLS handshake failed: %s", data->last_error->message);
+ try_next_connection_or_finish (data, TRUE);
}
}
static void
-g_socket_client_tls_handshake (GSocketClientAsyncConnectData *data)
+g_socket_client_tls_handshake (ConnectionAttempt *attempt)
{
+ GSocketClientAsyncConnectData *data = attempt->data;
GIOStream *tlsconn;
if (!data->client->priv->tls)
{
- g_socket_client_async_connect_complete (data);
+ g_socket_client_async_connect_complete (attempt);
return;
}
- tlsconn = g_tls_client_connection_new (data->connection,
+ g_debug ("GSocketClient: Starting TLS handshake");
+ tlsconn = g_tls_client_connection_new (attempt->connection,
data->connectable,
&data->last_error);
if (tlsconn)
@@ -1529,11 +1558,12 @@ g_socket_client_tls_handshake (GSocketClientAsyncConnectData *data)
G_PRIORITY_DEFAULT,
g_task_get_cancellable (data->task),
g_socket_client_tls_handshake_callback,
- data);
+ attempt);
}
else
{
- enumerator_next_async (data, FALSE);
+ connection_attempt_unref (attempt);
+ try_next_connection_or_finish (data, TRUE);
}
}
@@ -1542,23 +1572,38 @@ g_socket_client_proxy_connect_callback (GObject *object,
GAsyncResult *result,
gpointer user_data)
{
- GSocketClientAsyncConnectData *data = user_data;
+ ConnectionAttempt *attempt = user_data;
+ GSocketClientAsyncConnectData *data = attempt->data;
- g_object_unref (data->connection);
- data->connection = g_proxy_connect_finish (G_PROXY (object),
- result,
- &data->last_error);
- if (data->connection)
+ g_object_unref (attempt->connection);
+ attempt->connection = g_proxy_connect_finish (G_PROXY (object),
+ result,
+ &data->last_error);
+ if (attempt->connection)
{
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_PROXY_NEGOTIATED, data->connectable, data->connection);
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_PROXY_NEGOTIATED, data->connectable, attempt->connection);
}
else
{
- enumerator_next_async (data, FALSE);
+ connection_attempt_unref (attempt);
+ try_next_connection_or_finish (data, TRUE);
return;
}
- g_socket_client_tls_handshake (data);
+ g_socket_client_tls_handshake (attempt);
+}
+
+static void
+complete_connection_with_error (GSocketClientAsyncConnectData *data,
+ GError *error)
+{
+ g_debug ("GSocketClient: Connection failed: %s", error->message);
+ g_assert (!data->completed);
+
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, NULL);
+ data->completed = TRUE;
+ cancel_all_attempts (data);
+ g_task_return_error (data->task, error);
}
static gboolean
@@ -1572,15 +1617,114 @@ task_completed_or_cancelled (GSocketClientAsyncConnectData *data)
return TRUE;
else if (g_cancellable_set_error_if_cancelled (cancellable, &error))
{
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, NULL);
- g_task_return_error (task, g_steal_pointer (&error));
- data->completed = TRUE;
+ complete_connection_with_error (data, g_steal_pointer (&error));
return TRUE;
}
else
return FALSE;
}
+static gboolean
+try_next_successful_connection (GSocketClientAsyncConnectData *data)
+{
+ ConnectionAttempt *attempt;
+ const gchar *protocol;
+ GProxy *proxy;
+
+ if (data->connection_in_progress)
+ return FALSE;
+
+ g_assert (data->successful_connections != NULL);
+ attempt = data->successful_connections->data;
+ g_assert (attempt != NULL);
+ data->successful_connections = g_slist_remove (data->successful_connections, attempt);
+ data->connection_in_progress = TRUE;
+
+ g_debug ("GSocketClient: Starting application layer connection");
+
+ if (!attempt->proxy_addr)
+ {
+ g_socket_client_tls_handshake (g_steal_pointer (&attempt));
+ return TRUE;
+ }
+
+ protocol = g_proxy_address_get_protocol (attempt->proxy_addr);
+
+ /* The connection should not be anything other than TCP,
+ * but let's put a safety guard in case
+ */
+ if (!G_IS_TCP_CONNECTION (attempt->connection))
+ {
+ g_critical ("Trying to proxy over non-TCP connection, this is "
+ "most likely a bug in GLib IO library.");
+
+ g_set_error_literal (&data->last_error,
+ G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+ _("Proxying over a non-TCP connection is not supported."));
+ }
+ else if (g_hash_table_contains (data->client->priv->app_proxies, protocol))
+ {
+ /* Simply complete the connection, we don't want to do TLS handshake
+ * as the application proxy handling may need proxy handshake first */
+ g_socket_client_async_connect_complete (g_steal_pointer (&attempt));
+ return TRUE;
+ }
+ else if ((proxy = g_proxy_get_default_for_protocol (protocol)))
+ {
+ GIOStream *connection = attempt->connection;
+ GProxyAddress *proxy_addr = attempt->proxy_addr;
+
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_PROXY_NEGOTIATING, data->connectable, attempt->connection);
+ g_debug ("GSocketClient: Starting proxy connection");
+ g_proxy_connect_async (proxy,
+ connection,
+ proxy_addr,
+ g_task_get_cancellable (data->task),
+ g_socket_client_proxy_connect_callback,
+ g_steal_pointer (&attempt));
+ g_object_unref (proxy);
+ return TRUE;
+ }
+ else
+ {
+ g_clear_error (&data->last_error);
+
+ g_set_error (&data->last_error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
+ _("Proxy protocol “%s” is not supported."),
+ protocol);
+ }
+
+ data->connection_in_progress = FALSE;
+ g_clear_pointer (&attempt, connection_attempt_unref);
+ return FALSE; /* All non-return paths are failures */
+}
+
+static void
+try_next_connection_or_finish (GSocketClientAsyncConnectData *data,
+ gboolean end_current_connection)
+{
+ if (end_current_connection)
+ data->connection_in_progress = FALSE;
+
+ if (data->connection_in_progress)
+ return;
+
+ /* Keep trying successful connections until one works, each iteration pops one */
+ while (data->successful_connections)
+ {
+ if (try_next_successful_connection (data))
+ return;
+ }
+
+ if (!data->enumeration_completed)
+ {
+ enumerator_next_async (data, FALSE);
+ return;
+ }
+
+ complete_connection_with_error (data, data->last_error);
+}
+
static void
g_socket_client_connected_callback (GObject *source,
GAsyncResult *result,
@@ -1588,10 +1732,7 @@ g_socket_client_connected_callback (GObject *source,
{
ConnectionAttempt *attempt = user_data;
GSocketClientAsyncConnectData *data = attempt->data;
- GSList *l;
GError *error = NULL;
- GProxy *proxy;
- const gchar *protocol;
if (task_completed_or_cancelled (data) || g_cancellable_is_cancelled (attempt->cancellable))
{
@@ -1613,11 +1754,12 @@ g_socket_client_connected_callback (GObject *source,
{
clarify_connect_error (error, data->connectable, attempt->address);
set_last_error (data, error);
+ g_debug ("GSocketClient: Connection attempt failed: %s", error->message);
connection_attempt_remove (attempt);
- enumerator_next_async (data, FALSE);
connection_attempt_unref (attempt);
+ try_next_connection_or_finish (data, FALSE);
}
- else
+ else /* Silently ignore cancelled attempts */
{
g_clear_error (&error);
g_object_unref (data->task);
@@ -1627,74 +1769,21 @@ g_socket_client_connected_callback (GObject *source,
return;
}
- data->socket = g_steal_pointer (&attempt->socket);
- data->connection = g_steal_pointer (&attempt->connection);
-
- for (l = data->connection_attempts; l; l = g_slist_next (l))
- {
- ConnectionAttempt *attempt_entry = l->data;
- g_cancellable_cancel (attempt_entry->cancellable);
- connection_attempt_unref (attempt_entry);
- }
- g_slist_free (data->connection_attempts);
- data->connection_attempts = NULL;
- connection_attempt_unref (attempt);
-
- g_socket_connection_set_cached_remote_address ((GSocketConnection*)data->connection, NULL);
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_CONNECTED, data->connectable, data->connection);
+ g_socket_connection_set_cached_remote_address ((GSocketConnection*)attempt->connection, NULL);
+ g_debug ("GSocketClient: TCP connection successful");
+ g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_CONNECTED, data->connectable, attempt->connection);
/* wrong, but backward compatible */
- g_socket_set_blocking (data->socket, TRUE);
+ g_socket_set_blocking (attempt->socket, TRUE);
- if (!data->proxy_addr)
- {
- g_socket_client_tls_handshake (data);
- return;
- }
-
- protocol = g_proxy_address_get_protocol (data->proxy_addr);
-
- /* The connection should not be anything other than TCP,
- * but let's put a safety guard in case
+ /* This ends the parallel "happy eyeballs" portion of connecting.
+ Now that we have a successful tcp connection we will attempt to connect
+ at the TLS/Proxy layer. If those layers fail we will move on to the next
+ connection.
*/
- if (!G_IS_TCP_CONNECTION (data->connection))
- {
- g_critical ("Trying to proxy over non-TCP connection, this is "
- "most likely a bug in GLib IO library.");
-
- g_set_error_literal (&data->last_error,
- G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- _("Proxying over a non-TCP connection is not supported."));
-
- enumerator_next_async (data, FALSE);
- }
- else if (g_hash_table_contains (data->client->priv->app_proxies, protocol))
- {
- /* Simply complete the connection, we don't want to do TLS handshake
- * as the application proxy handling may need proxy handshake first */
- g_socket_client_async_connect_complete (data);
- }
- else if ((proxy = g_proxy_get_default_for_protocol (protocol)))
- {
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_PROXY_NEGOTIATING, data->connectable, data->connection);
- g_proxy_connect_async (proxy,
- data->connection,
- data->proxy_addr,
- g_task_get_cancellable (data->task),
- g_socket_client_proxy_connect_callback,
- data);
- g_object_unref (proxy);
- }
- else
- {
- g_clear_error (&data->last_error);
-
- g_set_error (&data->last_error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- _("Proxy protocol “%s” is not supported."),
- protocol);
-
- enumerator_next_async (data, FALSE);
- }
+ connection_attempt_remove (attempt);
+ data->successful_connections = g_slist_append (data->successful_connections, g_steal_pointer (&attempt));
+ try_next_connection_or_finish (data, FALSE);
}
static gboolean
@@ -1702,7 +1791,11 @@ on_connection_attempt_timeout (gpointer data)
{
ConnectionAttempt *attempt = data;
- enumerator_next_async (attempt->data, TRUE);
+ if (!attempt->data->enumeration_completed)
+ {
+ g_debug ("GSocketClient: Timeout reached, trying another enumeration");
+ enumerator_next_async (attempt->data, TRUE);
+ }
g_clear_pointer (&attempt->timeout_source, g_source_unref);
return G_SOURCE_REMOVE;
@@ -1712,9 +1805,9 @@ static void
on_connection_cancelled (GCancellable *cancellable,
gpointer data)
{
- GCancellable *attempt_cancellable = data;
+ GCancellable *linked_cancellable = G_CANCELLABLE (data);
- g_cancellable_cancel (attempt_cancellable);
+ g_cancellable_cancel (linked_cancellable);
}
static void
@@ -1738,39 +1831,49 @@ g_socket_client_enumerator_callback (GObject *object,
result, &error);
if (address == NULL)
{
- if (data->connection_attempts)
+ if (G_UNLIKELY (data->enumeration_completed))
+ return;
+
+ data->enumeration_completed = TRUE;
+ g_debug ("GSocketClient: Address enumeration completed (out of addresses)");
+
+ /* As per API docs: We only care about error if its the first call,
+ after that the enumerator is done.
+
+ Note that we don't care about cancellation errors because
+ task_completed_or_cancelled() above should handle that.
+
+ If this fails and nothing is in progress then we will complete task here.
+ */
+ if ((data->enumerated_at_least_once && !data->connection_attempts && !data->connection_in_progress) ||
+ !data->enumerated_at_least_once)
{
- g_object_unref (data->task);
- return;
+ g_debug ("GSocketClient: Address enumeration failed: %s", error ? error->message : NULL);
+ if (data->last_error)
+ {
+ g_clear_error (&error);
+ error = data->last_error;
+ data->last_error = NULL;
+ }
+ else if (!error)
+ {
+ g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
+ _("Unknown error on connect"));
+ }
+
+ complete_connection_with_error (data, error);
}
- g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_COMPLETE, data->connectable, NULL);
- data->completed = TRUE;
- if (!error)
- {
- if (data->last_error)
- {
- error = data->last_error;
- data->last_error = NULL;
- }
- else
- {
- g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Unknown error on connect"));
- }
- }
- g_task_return_error (data->task, error);
+ /* Enumeration should never trigger again, drop our ref */
g_object_unref (data->task);
return;
}
+ data->enumerated_at_least_once = TRUE;
+ g_debug ("GSocketClient: Address enumeration succeeded");
g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_RESOLVED,
data->connectable, NULL);
- if (G_IS_PROXY_ADDRESS (address) &&
- data->client->priv->enable_proxy)
- data->proxy_addr = g_object_ref (G_PROXY_ADDRESS (address));
-
g_clear_error (&data->last_error);
socket = create_socket (data->client, address, &data->last_error);
@@ -1788,6 +1891,10 @@ g_socket_client_enumerator_callback (GObject *object,
attempt->cancellable = g_cancellable_new ();
attempt->connection = (GIOStream *)g_socket_connection_factory_create_connection (socket);
attempt->timeout_source = g_timeout_source_new (HAPPY_EYEBALLS_CONNECTION_ATTEMPT_TIMEOUT_MS);
+
+ if (G_IS_PROXY_ADDRESS (address) && data->client->priv->enable_proxy)
+ attempt->proxy_addr = g_object_ref (G_PROXY_ADDRESS (address));
+
g_source_set_callback (attempt->timeout_source, on_connection_attempt_timeout, attempt, NULL);
g_source_attach (attempt->timeout_source, g_main_context_get_thread_default ());
data->connection_attempts = g_slist_append (data->connection_attempts, attempt);
@@ -1797,6 +1904,7 @@ g_socket_client_enumerator_callback (GObject *object,
g_object_ref (attempt->cancellable), g_object_unref);
g_socket_connection_set_cached_remote_address ((GSocketConnection *)attempt->connection, address);
+ g_debug ("GSocketClient: Starting TCP connection attempt");
g_socket_client_emit_event (data->client, G_SOCKET_CLIENT_CONNECTING, data->connectable, attempt->connection);
g_socket_connection_connect_async (G_SOCKET_CONNECTION (attempt->connection),
address,
@@ -1849,24 +1957,48 @@ g_socket_client_connect_async (GSocketClient *client,
else
data->enumerator = g_socket_connectable_enumerate (connectable);
- /* The flow and ownership here isn't quite obvious:
- - The task starts an async attempt to connect.
- - Each attempt holds a single ref on task.
- - Each attempt may create new attempts by timing out (not a failure) so
- there are multiple attempts happening in parallel.
- - Upon failure an attempt will start a new attempt that steals its ref
- until there are no more attempts left and it drops its ref.
- - Upon success it will cancel all other attempts and continue on
- to the rest of the connection (tls, proxies, etc) which do not
- happen in parallel and at the very end drop its ref.
- - Upon cancellation an attempt drops its ref.
- */
+ /* This function tries to match the behavior of g_socket_client_connect ()
+ which is simple enough but much of it is done in parallel to be as responsive
+ as possible as per Happy Eyeballs (RFC 8305). This complicates flow quite a
+ bit but we can describe it in 3 sections:
+
+ Firstly we have address enumeration (DNS):
+ - This may be triggered multiple times by enumerator_next_async().
+ - It also has its own cancellable (data->enumeration_cancellable).
+ - Enumeration is done lazily because GNetworkAddressAddressEnumerator
+ also does work in parallel and may lazily add new addresses.
+ - If the first enumeration errors then the task errors. Otherwise all enumerations
+ will potentially be used (until task or enumeration is cancelled).
+
+ Then we start attempting connections (TCP):
+ - Each connection is independent and kept in a ConnectionAttempt object.
+ - They each hold a ref on the main task and have their own cancellable.
+ - Multiple attempts may happen in parallel as per Happy Eyeballs.
+ - Upon failure or timeouts more connection attempts are made.
+ - If no connections succeed the task errors.
+ - Upon success they are kept in a list of successful connections.
+
+ Lastly we connect at the application layer (TLS, Proxies):
+ - These are done in serial.
+ - The reasoning here is that Happy Eyeballs is about making bad connections responsive
+ at the IP/TCP layers. Issues at the application layer are generally not due to
+ connectivity issues but rather misconfiguration.
+ - Upon failure it will try the next TCP connection until it runs out and
+ the task errors.
+ - Upon success it cancels everything remaining (enumeration and connections)
+ and returns the connection.
+ */
data->task = g_task_new (client, cancellable, callback, user_data);
g_task_set_check_cancellable (data->task, FALSE); /* We handle this manually */
g_task_set_source_tag (data->task, g_socket_client_connect_async);
g_task_set_task_data (data->task, data, (GDestroyNotify)g_socket_client_async_connect_data_free);
+ data->enumeration_cancellable = g_cancellable_new ();
+ if (cancellable)
+ g_cancellable_connect (cancellable, G_CALLBACK (on_connection_cancelled),
+ g_object_ref (data->enumeration_cancellable), g_object_unref);
+
enumerator_next_async (data, FALSE);
}
@@ -1985,6 +2117,7 @@ g_socket_client_connect_to_uri_async (GSocketClient *client,
}
else
{
+ g_debug("g_socket_client_connect_to_uri_async");
g_socket_client_connect_async (client,
connectable, cancellable,
callback, user_data);
--
2.23.0

View File

@@ -16,6 +16,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://0001-Do-not-write-bindir-into-pkg-config-files.patch \
file://0001-meson.build-do-not-hardcode-linux-as-the-host-system.patch \
file://0001-meson-do-a-build-time-check-for-strlcpy-before-attem.patch \
file://CVE-2020-6750.patch \
"
SRC_URI_append_class-native = " file://relocate-modules.patch"
@@ -23,3 +24,6 @@ SRC_URI_append_class-target = " file://glib-meson.cross"
SRC_URI[md5sum] = "f036f78a7fca330d9f7d939fcf794bde"
SRC_URI[sha256sum] = "8b12c0af569afd3b71200556ad751bad4cf4bf7bc4b5f880638459a42ca86310"
# Fixed in 2.60.4, but CPE data is outdated
CVE_CHECK_WHITELIST += "CVE-2019-12450"

View File

@@ -1,5 +1,7 @@
require glibc_${PV}.bb
EXCLUDE_FROM_WORLD = "1"
# handle PN differences
FILESEXTRAPATHS_prepend := "${THISDIR}/glibc:"
@@ -58,3 +60,4 @@ addtask do_check after do_compile
inherit nopackages
deltask do_stash_locale
deltask do_install

View File

@@ -0,0 +1,32 @@
From 37c90e117310728a4ad1eb998c0bbe7d79c4a398 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Marcin=20Ko=C5=9Bcielnicki?= <mwk@0x04.net>
Date: Thu, 21 Nov 2019 00:20:15 +0100
Subject: [PATCH] rtld: Check __libc_enable_secure before honoring
LD_PREFER_MAP_32BIT_EXEC (CVE-2019-19126) [BZ #25204]
The problem was introduced in glibc 2.23, in commit
b9eb92ab05204df772eb4929eccd018637c9f3e9
("Add Prefer_MAP_32BIT_EXEC to map executable pages with MAP_32BIT").
(cherry picked from commit d5dfad4326fc683c813df1e37bbf5cf920591c8e)
Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=37c90e117310728a4ad1eb998c0bbe7d79c4a398]
CVE: CVE-2019-19126
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
diff --git a/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h b/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
index 975cbe2..df2cdfd 100644
--- a/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
+++ b/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
@@ -31,7 +31,8 @@
environment variable, LD_PREFER_MAP_32BIT_EXEC. */
#define EXTRA_LD_ENVVARS \
case 21: \
- if (memcmp (envline, "PREFER_MAP_32BIT_EXEC", 21) == 0) \
+ if (!__libc_enable_secure \
+ && memcmp (envline, "PREFER_MAP_32BIT_EXEC", 21) == 0) \
GLRO(dl_x86_cpu_features).feature[index_arch_Prefer_MAP_32BIT_EXEC] \
|= bit_arch_Prefer_MAP_32BIT_EXEC; \
break;
--
2.9.3

View File

@@ -0,0 +1,128 @@
From ce265ec5bc25ec35fba53807abac1b0c8469895e Mon Sep 17 00:00:00 2001
From: Joseph Myers <joseph@codesourcery.com>
Date: Wed, 12 Feb 2020 23:31:56 +0000
Subject: [PATCH] Avoid ldbl-96 stack corruption from range reduction of
pseudo-zero (bug 25487).
Bug 25487 reports stack corruption in ldbl-96 sinl on a pseudo-zero
argument (an representation where all the significand bits, including
the explicit high bit, are zero, but the exponent is not zero, which
is not a valid representation for the long double type).
Although this is not a valid long double representation, existing
practice in this area (see bug 4586, originally marked invalid but
subsequently fixed) is that we still seek to avoid invalid memory
accesses as a result, in case of programs that treat arbitrary binary
data as long double representations, although the invalid
representations of the ldbl-96 format do not need to be consistently
handled the same as any particular valid representation.
This patch makes the range reduction detect pseudo-zero and unnormal
representations that would otherwise go to __kernel_rem_pio2, and
returns a NaN for them instead of continuing with the range reduction
process. (Pseudo-zero and unnormal representations whose unbiased
exponent is less than -1 have already been safely returned from the
function before this point without going through the rest of range
reduction.) Pseudo-zero representations would previously result in
the value passed to __kernel_rem_pio2 being all-zero, which is
definitely unsafe; unnormal representations would previously result in
a value passed whose high bit is zero, which might well be unsafe
since that is not a form of input expected by __kernel_rem_pio2.
Tested for x86_64.
CVE: CVE-2020-10029
Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=glibc.git;
a=patch;h=9333498794cde1d5cca518badf79533a24114b6f]
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
---
sysdeps/ieee754/ldbl-96/Makefile | 3 ++-
sysdeps/ieee754/ldbl-96/e_rem_pio2l.c | 12 +++++++++
sysdeps/ieee754/ldbl-96/test-sinl-pseudo.c | 41 ++++++++++++++++++++++++++++++
3 files changed, 55 insertions(+), 1 deletion(-)
create mode 100644 sysdeps/ieee754/ldbl-96/test-sinl-pseudo.c
diff --git a/sysdeps/ieee754/ldbl-96/Makefile b/sysdeps/ieee754/ldbl-96/Makefile
index b103254..052c1c7 100644
--- a/sysdeps/ieee754/ldbl-96/Makefile
+++ b/sysdeps/ieee754/ldbl-96/Makefile
@@ -17,5 +17,6 @@
# <http://www.gnu.org/licenses/>.
ifeq ($(subdir),math)
-tests += test-canonical-ldbl-96 test-totalorderl-ldbl-96
+tests += test-canonical-ldbl-96 test-totalorderl-ldbl-96 test-sinl-pseudo
+CFLAGS-test-sinl-pseudo.c += -fstack-protector-all
endif
diff --git a/sysdeps/ieee754/ldbl-96/e_rem_pio2l.c b/sysdeps/ieee754/ldbl-96/e_rem_pio2l.c
index 805de22..1aeccb4 100644
--- a/sysdeps/ieee754/ldbl-96/e_rem_pio2l.c
+++ b/sysdeps/ieee754/ldbl-96/e_rem_pio2l.c
@@ -210,6 +210,18 @@ __ieee754_rem_pio2l (long double x, long double *y)
return 0;
}
+ if ((i0 & 0x80000000) == 0)
+ {
+ /* Pseudo-zero and unnormal representations are not valid
+ representations of long double. We need to avoid stack
+ corruption in __kernel_rem_pio2, which expects input in a
+ particular normal form, but those representations do not need
+ to be consistently handled like any particular floating-point
+ value. */
+ y[1] = y[0] = __builtin_nanl ("");
+ return 0;
+ }
+
/* Split the 64 bits of the mantissa into three 24-bit integers
stored in a double array. */
exp = j0 - 23;
diff --git a/sysdeps/ieee754/ldbl-96/test-sinl-pseudo.c b/sysdeps/ieee754/ldbl-96/test-sinl-pseudo.c
new file mode 100644
index 0000000..f59b977
--- /dev/null
+++ b/sysdeps/ieee754/ldbl-96/test-sinl-pseudo.c
@@ -0,0 +1,41 @@
+/* Test sinl for pseudo-zeros and unnormals for ldbl-96 (bug 25487).
+ Copyright (C) 2020 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <math.h>
+#include <math_ldbl.h>
+#include <stdint.h>
+
+static int
+do_test (void)
+{
+ for (int i = 0; i < 64; i++)
+ {
+ uint64_t sig = i == 63 ? 0 : 1ULL << i;
+ long double ld;
+ SET_LDOUBLE_WORDS (ld, 0x4141,
+ sig >> 32, sig & 0xffffffffULL);
+ /* The requirement is that no stack overflow occurs when the
+ pseudo-zero or unnormal goes through range reduction. */
+ volatile long double ldr;
+ ldr = sinl (ld);
+ (void) ldr;
+ }
+ return 0;
+}
+
+#include <support/test-driver.c>

View File

@@ -0,0 +1,70 @@
From d93769405996dfc11d216ddbe415946617b5a494 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@suse.de>
Date: Mon, 20 Jan 2020 17:01:50 +0100
Subject: [PATCH] Fix array overflow in backtrace on PowerPC (bug 25423)
When unwinding through a signal frame the backtrace function on PowerPC
didn't check array bounds when storing the frame address. Fixes commit
d400dcac5e ("PowerPC: fix backtrace to handle signal trampolines").
CVE: CVE-2020-1751
Upstream-Status: Backport [git://sourceware.org/git/glibc.git]
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
---
debug/tst-backtrace5.c | 12 ++++++++++++
sysdeps/powerpc/powerpc32/backtrace.c | 2 ++
sysdeps/powerpc/powerpc64/backtrace.c | 2 ++
3 files changed, 16 insertions(+)
diff --git a/debug/tst-backtrace5.c b/debug/tst-backtrace5.c
index e7ce410845..b2f46160e7 100644
--- a/debug/tst-backtrace5.c
+++ b/debug/tst-backtrace5.c
@@ -89,6 +89,18 @@ handle_signal (int signum)
}
/* Symbol names are not available for static functions, so we do not
check do_test. */
+
+ /* Check that backtrace does not return more than what fits in the array
+ (bug 25423). */
+ for (int j = 0; j < NUM_FUNCTIONS; j++)
+ {
+ n = backtrace (addresses, j);
+ if (n > j)
+ {
+ FAIL ();
+ return;
+ }
+ }
}
NO_INLINE int
diff --git a/sysdeps/powerpc/powerpc32/backtrace.c b/sysdeps/powerpc/powerpc32/backtrace.c
index 7c2d4726f8..d1456c8ae4 100644
--- a/sysdeps/powerpc/powerpc32/backtrace.c
+++ b/sysdeps/powerpc/powerpc32/backtrace.c
@@ -114,6 +114,8 @@ __backtrace (void **array, int size)
}
if (gregset)
{
+ if (count + 1 == size)
+ break;
array[++count] = (void*)((*gregset)[PT_NIP]);
current = (void*)((*gregset)[PT_R1]);
}
diff --git a/sysdeps/powerpc/powerpc64/backtrace.c b/sysdeps/powerpc/powerpc64/backtrace.c
index 65c260ab76..8a53a1088f 100644
--- a/sysdeps/powerpc/powerpc64/backtrace.c
+++ b/sysdeps/powerpc/powerpc64/backtrace.c
@@ -87,6 +87,8 @@ __backtrace (void **array, int size)
if (is_sigtramp_address (current->return_address))
{
struct signal_frame_64 *sigframe = (struct signal_frame_64*) current;
+ if (count + 1 == size)
+ break;
array[++count] = (void*) sigframe->uc.uc_mcontext.gp_regs[PT_NIP];
current = (void*) sigframe->uc.uc_mcontext.gp_regs[PT_R1];
}
--
2.23.0

View File

@@ -41,6 +41,9 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
file://0026-intl-Emit-no-lines-in-bison-generated-files.patch \
file://0027-inject-file-assembly-directives.patch \
file://0028-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch \
file://CVE-2019-19126.patch \
file://CVE-2020-10029.patch \
file://CVE-2020-1751.patch \
"
S = "${WORKDIR}/git"
B = "${WORKDIR}/build-${TARGET_SYS}"

View File

@@ -24,7 +24,7 @@ IMAGE_FSTYPES = "wic.vmdk"
inherit core-image module-base setuptools3
SRCREV ?= "cf0cefd53c5d4f72e26c74571a10e098996a1ff2"
SRCREV ?= "0ae1964fb16a0e92b163f48ceb127a40e8397339"
SRC_URI = "git://git.yoctoproject.org/poky;branch=zeus \
file://Yocto_Build_Appliance.vmx \
file://Yocto_Build_Appliance.vmxf \

View File

@@ -0,0 +1,31 @@
From f7f357ef079b6d185f340e716d7c72a98d82bad0 Mon Sep 17 00:00:00 2001
From: Garry Filakhtov <filakhtov@gmail.com>
Date: Fri, 20 Jul 2018 15:58:56 +0200
Subject: [PATCH] configure.ac: Fix logic of vlock configure switch
Downstream bug report: https://bugs.gentoo.org/661650
Upstream-Status: Backport [f7f357ef079b6d185f340e716d7c72a98d82bad0]
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: De Huo <de.huo@windriver.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 87eb63c..07098cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,7 +119,7 @@ AM_CONDITIONAL(BUILD_LIBKEYMAP, test "$BUILD_LIBKEYMAP" = "yes")
AC_ARG_ENABLE(vlock,
AS_HELP_STRING(--disable-vlock, [do not build vlock]),
- [VLOCK_PROG=no],[VLOCK_PROG=yes])
+ [VLOCK_PROG=$enableval],[VLOCK_PROG=yes])
AM_CONDITIONAL(VLOCK, test "$VLOCK_PROG" = "yes")
if test "$VLOCK_PROG" = "yes"; then
--
2.23.0

View File

@@ -13,6 +13,7 @@ RCONFLICTS_${PN} = "console-tools"
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/${BP}.tar.xz \
file://run-ptest \
${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'file://set-proper-path-of-resources.patch', '', d)} \
file://0001-configure.ac-Fix-logic-of-vlock-configure-switch.patch \
"
SRC_URI[md5sum] = "c1635a5a83b63aca7f97a3eab39ebaa6"
@@ -58,7 +59,8 @@ RDEPENDS_${PN}-ptest = "make"
inherit update-alternatives
ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey"
ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'vlock','', d)}"
ALTERNATIVE_PRIORITY = "100"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,37 @@
From 7ffcd44d7e6c46704f8af0321d9314cd26e0e18a Mon Sep 17 00:00:00 2001
From: Zhipeng Xie <xiezhipeng1@huawei.com>
Date: Tue, 20 Aug 2019 16:33:06 +0800
Subject: [PATCH] Fix memory leak in xmlSchemaValidateStream
When ctxt->schema is NULL, xmlSchemaSAXPlug->xmlSchemaPreRun
alloc a new schema for ctxt->schema and set vctxt->xsiAssemble
to 1. Then xmlSchemaVStart->xmlSchemaPreRun initialize
vctxt->xsiAssemble to 0 again which cause the alloced schema
can not be freed anymore.
Found with libFuzzer.
Upstream-Status: Accepted [https://gitlab.gnome.org/GNOME/libxml2/commit/7ffcd44d7e6c46704f8af0321d9314cd26e0e18a]
CVE: CVE-2019-20388
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
---
xmlschemas.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/xmlschemas.c b/xmlschemas.c
index 301c8449..39d92182 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -28090,7 +28090,6 @@ xmlSchemaPreRun(xmlSchemaValidCtxtPtr vctxt) {
vctxt->nberrors = 0;
vctxt->depth = -1;
vctxt->skipDepth = -1;
- vctxt->xsiAssemble = 0;
vctxt->hasKeyrefs = 0;
#ifdef ENABLE_IDC_NODE_TABLES_TEST
vctxt->createIDCNodeTables = 1;
--
2.24.1

View File

@@ -0,0 +1,36 @@
From 0e1a49c8907645d2e155f0d89d4d9895ac5112b5 Mon Sep 17 00:00:00 2001
From: Zhipeng Xie <xiezhipeng1@huawei.com>
Date: Thu, 12 Dec 2019 17:30:55 +0800
Subject: [PATCH] Fix infinite loop in xmlStringLenDecodeEntities
When ctxt->instate == XML_PARSER_EOF,xmlParseStringEntityRef
return NULL which cause a infinite loop in xmlStringLenDecodeEntities
Found with libFuzzer.
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxml2/commit/0e1a49c89076]
CVE: CVE-2020-7595
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
parser.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/parser.c b/parser.c
index d1c31963..a34bb6cd 100644
--- a/parser.c
+++ b/parser.c
@@ -2646,7 +2646,8 @@ xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
else
c = 0;
while ((c != 0) && (c != end) && /* non input consuming loop */
- (c != end2) && (c != end3)) {
+ (c != end2) && (c != end3) &&
+ (ctxt->instate != XML_PARSER_EOF)) {
if (c == 0) break;
if ((c == '&') && (str[1] == '#')) {
--
2.24.1

Some files were not shown because too many files have changed in this diff Show More